cs.LGNov 19, 2026

Is a Description Worth a Thousand Demonstrations? Specificity and Reliability of Task Descriptions in In-Context Learning

Authors: Bruce Nguyen, Bei Jiang, Linglong Kong

Organizations: Decaude · Department of Mathematical and Statistical Sciences, University of Alberta, Edmonton, Canada

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.

Figures & tables

Appendix figures & tables19 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. A Theoretical Interpretation of In-Context Learning via Probabilistic Modeling

    Jun 27, 2026Zhenyu Liu, Huaze Tang, Shao-Lun HuangProbabilistic ModelingIn-Context Learning

  2. When Correct Demonstrations Hurt: Rethinking the Role of Exemplars in In-Context Learning

    May 25, 2026Chenghao Qiu, Chunli Peng, Yufeng Yang +2In-Context Learning

  3. Demonstrations, CoT, and Prompting: A Theoretical Analysis of ICL

    Mar 20, 2026Xuhan Tong, Yuchen Zeng, Jiawei ZhangDemonstration SelectionIn-Context Learning