scimeatlas

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

EMNLP 2025Large language models › Language, safety and interpretabilityapproach: In-context learning analysisopen problems in this approach20 citations (OpenAlex)

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 changedWhereMeasuredEffect
place demos at start of system prompt (ssp) instead of zero-shot (ablation)ICL with ten open LLMs · MMLUaccuracy: 0.3364 -> 0.6885Improved
place demos at end of user message (eum) instead of zero-shot (ablation)ICL with ten open LLMs · MMLUaccuracy: 0.3364 -> 0.4519 (p=0.1659)No clear effect
move demos from ssp to eum (ablation)ICL with ten open LLMs · MMLUaccuracy: mean difference +0.182 favoring ssp (p=0.023)Hurt
move demos among ssp, esp and sum (ablation)ICL with ten open LLMs · MMLUaccuracy: |delta| < 0.03, p > 0.4No 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) · MNLIprediction change sum->ssp: over 20% (3B) -> below 10% (70B)Improved
vary demo position for arithmetic reasoning (ablation)Llama3-70B / Qwen-72B · GSM8Kprediction change: change rate above 90%Hurt

Open problems this paper states

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?

All 5 open problems and what was already tried →

Closest papers by meaning

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.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy