Research map / Large language models / Language, safety and interpretability
Where to show Demos in Your Prompt: A Positional Bias of In-Context Learning
Kwesi Cobbina, Tianyi Zhou
University of Maryland, College Park
Read the paperPlace an idea next to itCheck your own paper ↗
10measured effects
3improved
2no clear effect
5hurt
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| place demos at start of system prompt (ssp) instead of zero-shot (ablation) | ICL with ten open LLMs · MMLU | accuracy: 0.3364 -> 0.6885 | Improved |
| place demos at end of user message (eum) instead of zero-shot (ablation) | ICL with ten open LLMs · MMLU | accuracy: 0.3364 -> 0.4519 (p=0.1659) | No clear effect |
| move demos from ssp to eum (ablation) | ICL with ten open LLMs · MMLU | accuracy: mean difference +0.182 favoring ssp (p=0.023) | Hurt |
| move demos among ssp, esp and sum (ablation) | ICL with ten open LLMs · MMLU | accuracy: |delta| < 0.03, p > 0.4 | No clear effect |
| move demos from ssp to eum (ablation) | Llama3-3B · GSM8K | % improved predictions: 42.0% -> 11% | Hurt |
| move demos from ssp to eum (ablation) | Llama3-70B · GSM8K | % improved predictions: 21.5% -> 88% | Improved |
| move demos from ssp to eum (ablation) | Llama3-3B · CNN/DailyMail | % improved predictions: 49% -> 1% | Hurt |
| move demos from ssp to eum (ablation) | Llama3-3B · XSum | % improved predictions: 82.5% -> 27.5% | Hurt |
| increase model scale (ablation) | Llama3 (3B to 70B) · MNLI | prediction change sum->ssp: over 20% (3B) -> below 10% (70B) | Improved |
| vary demo position for arithmetic reasoning (ablation) | Llama3-70B / Qwen-72B · GSM8K | prediction change: change rate above 90% | Hurt |
Open problems this paper states
- “Evaluated only a small subset of model sizes and architectures, such as 7B and 13B.” → Only a few small or medium open models were tested. (an open problem in in-context learning analysis)
- “Results focus primarily on English data.” → Evaluated on English data only, with other languages untested. (an open problem in in-context learning analysis)
Open problems in in-context learning analysis
Which in-context learning methods hold up beyond English classification on small open models, and what do they cost?
- Only a few small or medium open models were tested. · 14 papers state it
- The method needs many extra LLM calls or passes. · 13 papers state it
- Evaluated on English data only, with other languages untested. · 12 papers state it
Closest papers by meaning
- Rethinking the Role of Demonstrations: What Makes In-Context Learning Work? (EMNLP 2022 · similarity 0.90)
- Hierarchical Demonstration Order Optimization for Many-shot In-Context Learning (NeurIPS 2025 · similarity 0.90)
- How Many Demonstrations Do You Need for In-context Learning? (EMNLP 2023 · similarity 0.90)
- Is In-Context Learning Learning? (ICLR 2026 · similarity 0.89)
- In-context Vectors: Making In Context Learning More Effective and Controllable Through Latent Space Steering (ICML 2024 · similarity 0.88)
- Distributional Alignment as a Criterion for Designing Task Vectors in In-Context Learning (NeurIPS 2026 · similarity 0.88)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.