Is a Description Worth a Thousand Demonstrations? Specificity and Reliability of Task Descriptions in In-Context Learning
Bruce Nguyen, Bei Jiang, Linglong Kong
Key points
From the paper's conclusion- These results extend the Bayesian analysis of ICL from demonstrations to descriptions.
Abstract
A prompt for in-context learning (ICL) can describe a task in addition to, or instead of, demonstrating it through examples. Yet how task descriptions work remains poorly understood theoretically. Through the Bayesian view of ICL, we model descriptions as informative priors characterized by their specificity and reliability. We adapt the effective sample size (ESS) from Bayesian statistics, quantifying a description's predictive value as an equivalent number of demonstrations. For in-context linear regression, we show that a reliable description's ESS grows with its specificity and with the task's dimension. A description that may be irrelevant, however, gains little from its specificity unless demonstrations are given. In practice, do in-context learners use descriptions as a Bayes-optimal predictor would? Our experiments show that meta-trained Transformers come close to the Bayes-optimal ESS when tested on their training distribution. Pretrained language models, however, make too little use of highly specific descriptions when answering without reasoning; most of them closely match the Bayes-optimal predictor only when reasoning is enabled. These results extend the Bayesian analysis of ICL from demonstrations to descriptions.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- From Copying to Composition: How Language Models Develop In-Context LearningarXiv · 2026
- Characterizing In-Context Learning: When Can Transformers Match Standard Learning Algorithms?2026
- Beyond Prediction: A Component-Level Study of Concept Recovery in In-Context LearningarXiv · 2026
- Learn the Effects, Not the Examples: Implicit ICL via Attention PatchingarXiv · 2026
- Capturing In-Context Learning Dynamics with Task OperatorsarXiv · 2026
- Variable names provide priors: semantic grounding enables data-efficient numerical prediction by large language modelsarXiv · 2026