Surprise Calibration for Better In-Context Learning

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Tan, Zhihang, Hou, Jingrui, Wang, Ping, Hu, Qibiao, Zhu, Peng
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866908410493009920
author Tan, Zhihang
Hou, Jingrui
Wang, Ping
Hu, Qibiao
Zhu, Peng
author_facet Tan, Zhihang
Hou, Jingrui
Wang, Ping
Hu, Qibiao
Zhu, Peng
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2506_12796
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Surprise Calibration for Better In-Context Learning
Tan, Zhihang
Hou, Jingrui
Wang, Ping
Hu, Qibiao
Zhu, Peng
Computation and Language
I.2.7
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.
title Surprise Calibration for Better In-Context Learning
topic Computation and Language
I.2.7
url https://arxiv.org/abs/2506.12796