← News

ResearchSources: arXiv · 17 Nov 2026

Researchers bound how adaptive prompt selection distorts in-context learning results

An arXiv paper treats prompt construction as adaptive data analysis and derives a generalization bound tied to how much information retrieval leaks into the final prompt.

In plain words

When a system picks which examples to show a language model, it chooses them after seeing the query, so the selected examples can make results look better than they are. The authors measure this with a quantity called context capacity and prove how much error to expect. They also give rules that certify when reported results can be trusted.

What was announced

Most analysis of in-context learning assumes the examples in a prompt are fixed before the learner is chosen, but the authors note that deployed pipelines retrieve, filter, re-rank, and edit examples after seeing the query and data store. They formalize this as adaptive data analysis and define context capacity, the mutual information or approximate max-information between the data store and the final prompt transcript. For any frozen learner and adaptive pipeline, they prove a finite-sample generalization bound of order the square root of capacity divided by the number of selected examples, plus a matching lower bound and two PAC-Bayesian retrieval rules.

In experiments on Banking77 with 64 retrieval recipes and two model families, the certificates held across all 24,000 resampled selection events. From 64 reused validation queries for Qwen2.5-7B and 128 for GPT-4.1-mini, the Gibbs rule certified risk below the zero-shot error in over 99 percent of validation draws. The authors conclude that longer or more relevant contexts improve risk only when the selection procedure is stable enough for selected-context evidence to transfer, separating context quality from context certification.

What it does not show

  • The source is the paper abstract only; experimental details, assumptions, and peer review status are not verifiable from the supplied passages.
  • Reported certificates and error rates are the authors' own claims on Banking77 and two model families, with no independent confirmation.

For security and IT teams

Scope
The reported guarantees apply to frozen in-context learners whose prompt examples are selected adaptively, as evaluated by the authors on Banking77 with two model families.

Sources

Source-support review completed 28 Nov 2026. This story was drafted with AI assistance and checked against retained source passages. Automated checking is not independent verification.

Coverage: arXiv: abstract.

Updates and corrections

No corrections so far.

First published 28 Nov 2026

New to the subject? AI from the Ground Up starts from the beginning.