Is a Description Worth a Thousand Demonstrations? Specificity and Reliability of Task Descriptions in In-Context Learning
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.
Create a lesson
Metadata
- Comments
- 39 pages, 6 figures, 17 tables
Related papers
MolReJev: Decision Models Are In-Context Molecular Predictors
Shared title terminologycs.LGKaiyuan Lu, Jiatong Li, Yatao Bian
Attacking Tabular Foundation Models: An Experimental Taxonomy of Context Poisoning and Test-Time Evasion
Shared title terminologycs.LGRamak Nassiri, Sujan Kumar Reddy Challa, Feroz Ahmed et al.
BenchMint: From Real-World Tasks to Executable Benchmarks
Shared title terminologycs.LGZining Huang, Zuo Wang, Mengyao Zhang et al.
DeciForm: Incorporating Task Structure into Decision Models
Shared title terminologycs.LGQiuyu Tian, Haojie Yin, Yingce Xia et al.
Denoised but Not Improved: What EEG Denoising Does to a Downstream Task
Shared title terminologycs.LGXianglong Bao, Zhe Wang, Kewen Wang et al.
S^2LMR: Supervised Sequential Long-Context Multi-Step Retriever
Shared title terminologycs.LGQiang Hu, Kaiyi Ji