TL;DR
This paper formalizes task descriptions in In-Context Learning (ICL) as Bayesian priors, quantifying their value through Effective Sample Size (ESS)—the number of demonstrations a description is worth. The authors show that while highly specific descriptions can replace hundreds of examples, their value is strictly capped by their reliability unless demonstrations are provided to verify them.
What Problem Does This Paper Address?
In-Context Learning (ICL) allows Large Language Models (LLMs) to solve tasks using prompts that contain either natural-language descriptions (instructions), demonstrations (examples), or both. While the role of demonstrations is well-studied, the theoretical understanding of task descriptions remains thin.
Specifically, the authors address two main questions:
- How can we formally characterize task descriptions in terms of specificity (how much information they provide) and reliability (the probability that the instruction is actually correct for the current task)?
- Do current models—both meta-trained Transformers and pretrained LLMs—actually use these descriptions in a Bayes-optimal way?
Methods
The authors adopt a Bayesian view of ICL, modeling a task description as an informative prior over a latent task space. They primarily use a $d$-dimensional Gaussian linear regression setting as a controlled environment.
- Specificity ($c$): Modeled as the precision (inverse variance) of the prior. A more specific instruction leaves less uncertainty about the task.
- Reliability ($p$): Modeled as the probability that the description is "relevant." If irrelevant, the task is drawn from a vague baseline prior instead.
- Predictive Effective Sample Size (ESS): This is the paper's core metric. It quantifies a description's value by calculating how many additional demonstrations a model would need to reach the same expected error reduction that the description provides.
The researchers tested two types of models:
- Meta-trained Transformers: Trained from scratch on the regression model to learn specificity and reliability from the data distribution.
- Pretrained LLMs: (e.g., GPT-6 Sol, Claude 4.6, Qwen 3.5) tested on scalar mean estimation and a "message-sorting" task where precision and reliability were explicitly stated in the prompt.
Datasets
- Synthetic Linear Regression: $d$-dimensional Gaussian tasks (typically $d=5$ or $d=10$) used for theoretical proofs and meta-training Transformers.
- Gaussian Mean Estimation: A scalar version of the regression task used to evaluate how pretrained LLMs handle stated precision.
- Message-Sorting Task: A newly introduced benchmark where models must sort messages into folders based on rules. Descriptions are provided as text-based "policy notes" that vary in specificity (constraining the rule to 2 vs. 20 possibilities) and reliability.
Key Insights and Ideas
- The Reliability Ceiling: If there is any chance a description is wrong ($p < 1$), its "zero-shot" value (value before seeing any examples) is strictly capped. No matter how specific the instruction is, you can't trust it blindly.
- Dimension as a Multiplier: For reliable descriptions, the ESS grows not just with specificity, but with the task's dimension ($d$). In high-dimensional spaces, a good description is worth significantly more demonstrations.
- Demonstrations as Verification: When a description is unreliable, demonstrations serve a dual purpose: they provide task data and act as evidence to confirm or refute the description's relevance. As shown in Figure 2, demonstrations can actually "unlock" the value of a specific but unreliable description.
- Reasoning is the "Bayesian Engine": Pretrained LLMs are surprisingly poor at using specific instructions when answering directly. However, when "reasoning" (Chain-of-Thought) is enabled, they closely match the Bayes-optimal predictor's performance.
Key Results
- Theoretical Limits: For a reliable description, the zero-shot ESS approaches $c + d + 1$ as the baseline prior becomes vague. For an unreliable one, the zero-shot ESS is capped at $p^2 d$.
- Meta-trained Transformers: These models approach Bayes-optimal ESS when tested on their training distribution. However, they are "stubborn"—if trained on reliable descriptions, they over-rely on them even if the test-time reliability drops (Figure 3).
- LLM Performance: Without reasoning, models like GPT-6 and Claude Opus 4.6 capture less than a third of a specific description's potential value. With reasoning, they achieve nearly 100% of the reference ESS (Figure 4).
Limitations and Future Work
- Gaussian Simplification: The study relies heavily on Gaussian priors. Real-world task distributions are likely non-Gaussian and multi-modal.
- Binary Relevance: The model treats reliability as "all-or-nothing" (the instruction is either totally right or totally wrong). In reality, instructions are often partially correct or slightly outdated.
- Explicit vs. Implicit Properties: The LLM experiments used prompts that explicitly stated numbers for precision and reliability. Future work is needed to see how well models infer these properties from the wording of natural language instructions (e.g., "this might be wrong" vs. "this is a strict rule").
Summary updated