English

Surprise Calibration for Better In-Context Learning

Computation and Language 2025-06-18 v2

Abstract

In-context learning (ICL) has emerged as a powerful paradigm for task adaptation in large language models (LLMs), where models infer underlying task structures from a few demonstrations. However, ICL remains susceptible to biases that arise from prior knowledge and contextual demonstrations, which can degrade the performance of LLMs. Existing bias calibration methods typically apply fixed class priors across all inputs, limiting their efficacy in dynamic ICL settings where the context for each query differs. To address these limitations, we adopt implicit sequential Bayesian inference as a framework for interpreting ICL, identify "surprise" as an informative signal for class prior shift, and introduce a novel method--Surprise Calibration (SC). SC leverages the notion of surprise to capture the temporal dynamics of class priors, providing a more adaptive and computationally efficient solution for in-context learning. We empirically demonstrate the superiority of SC over existing bias calibration techniques across a range of benchmark natural language processing tasks.

Keywords

Cite

@article{arxiv.2506.12796,
  title  = {Surprise Calibration for Better In-Context Learning},
  author = {Zhihang Tan and Jingrui Hou and Ping Wang and Qibiao Hu and Peng Zhu},
  journal= {arXiv preprint arXiv:2506.12796},
  year   = {2025}
}

Comments

16 pages, 11 figures

R2 v1 2026-07-01T03:18:21.776Z