🛰️ Daily AI Frontier
‹ back to 2026-11-17

The Price of Choosing Examples: Context Overfitting in Adaptive In-Context Learning

arXiv cs.LG LLMs & Foundation Models Xiaoyu Li, Jiangxuan Long 2026-11-16
Representative image for The Price of Choosing Examples: Context Overfitting in Adaptive In-Context Learning

TL;DR - This paper formalizes context overfitting caused by adaptively selecting in-context examples and derives generalization guarantees based on how much information prompt construction extracts from the data store.

  • Proves a finite-sample generalization bound of order $\sqrt{\kappa/k}$ for context capacity $\kappa$ and $k$ selected examples, plus a matching lower bound.
  • Introduces two PAC-Bayesian retrieval rules: a first-order Gibbs rule and a self-normalized second-order rule.
  • On Banking77, certificates held across 24,000 resampled selection events and frequently certified lower risk than zero-shot prompting.
  • Shows that relevant or longer contexts help reliably only when their selection process is sufficiently stable.

view merged work →