scimeatlas

Research map / Large language models / Language, safety and interpretability

In-Context Learning with Long-Context Models: An In-Depth Exploration

Amanda Bertsch, Maor Ivgi, Emily Xiao, Uri Alon, Jonathan Berant, Matthew R. Gormley, Graham Neubig

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

Carnegie Mellon University · Tel Aviv University

Read the paperPlace an idea next to itCheck your own paper ↗

12measured effects
4improved
1no clear effect
4hurt
3mixed

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
scale ICL from 10 to 1000 demonstrationsLlama2-80k ICL · 5 classification datasetsaccuracy: up to +50.8 points; average +36.8 pointsImproved
use BM25 retrieval instead of random demonstrationsICL · Banking-77accuracy: gain shrinks from 51.5 points (1-shot) to 4.9 points (1500-shot)Improved
use a single random demonstration set instead of retrieval at ~2000 shotslong-context ICL · classification datasetsaccuracy: penalty never more than 5 points, as low as 1.8 points (TREC, 2000-shot)Hurt
add retrieval to long-context ICL on SAMSumICL · SAMSumBERTScoreNo clear effect
sort demonstrations by label (ablation)Llama2-32k ICL · Clinic-150 (1169-shot)accuracy: -25.7 pointsHurt
randomly shuffle demonstration order (ablation)long-context ICL · all datasetspercent predictions changed: flips at 1000-shot less than half of those at 10-shotImproved
full finetuning on drastically more examples than fit in context, versus long-context ICLLlama2-7b · most datasetsaccuracyImproved
LoRA finetuning versus long-context ICLLlama2-7b · most datasetsaccuracyHurt
finetuning (LoRA or full) versus ICL at same number of examplesLlama2-7b · Clinic-150accuracyHurt
restrict attention among demonstrations to blockwise (sink plus two local blocks) (ablation)Llama2-32k ICL · Banking-77accuracy: 95% of full-attention performance at block size 50; near-zero for b<10Mixed
add more locally encoded blocks with same small block size (ablation)blockwise attention ICL · Banking-77accuracy: worse than single block for b<10; dramatic increase after about b=10Mixed
add more demonstrations for frontier modelsClaude Sonnet 3.5, Llama 3.1 405B · Clinic-150accuracyMixed

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