atlas

Research map / Architectures and efficiency / Attention and transformers

Technical Debt in In-Context Learning: Diminishing Efficiency in Long Context

NeurIPS 2025 · Architectures and efficiency › Attention and transformers · approach: Training dynamics of in-context learning · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Benchmarks in-context learning of a GPT-2-style transformer on a hierarchical meta-ICL regression task against Bayes-optimal BMA and model-selection baselines (AIC, BIC, BMC), finding ICL is near-optimal in few-shot but its sample efficiency degrades in long context, and proves via information theory that this diminishing efficiency follows from a non-vanishing excess risk.

Problem

Whether in-context learning by transformers is an optimal learning algorithm compared to principled learners (e.g., Bayes-optimal estimator), and how its sample complexity scales with the number of demonstrations, especially in long context.

Approach

Benchmark ICL's sample complexity against principled learners using performance ratios and performance profiles (borrowed from optimization software benchmarking) in a meta-ICL hierarchical regression setup, and show with information-theoretic bounds that a non-vanishing excess risk in long context forces suboptimality that grows with performance requirements.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use ICL rather than BMA to reach low performance requirements (quantile ≤ 0.3)ICL vs. BMA · Meta ICL scenariosmean performance ratio: at most 1.1No clear effect
Use ICL rather than BMA for higher performance requirements, from quantile 0.3 to 0.99ICL vs. BMA · Meta ICL scenariosmean performance ratio: around 1.1 at gQ=0.3; around 1.2 at gQ = 0.7; around 1.45 at gQ = 0.99Hurt
Use ICL rather than the best principled single-model baseline at low requirements (quantile ≤ 0.3)ICL vs. AIC, BIC, and BMC · Meta ICL scenariosperformance profile at τ = 1: perfectHelped
Use ICL rather than principled single-model baselines at high requirements (quantile ≥ 0.8)ICL vs. AIC, BIC, and BMC · Meta ICL scenariosperformance profile at τ = 3: around 0.8Hurt
Increase pretraining prompt lengthICL · Meta ICL, long-context regimesexcess risk: 1.06, 0.58, and 0.34Helped
Increase model capacityICL · Meta ICL, long-context regimesexcess risk: 1.36, 1.19, 0.99, and 0.90Helped
Increase pretraining prompt length or model capacityICL · Meta ICL, long-context regimesexcess-risk curve shapeNo clear effect
Replace the transformer with Mamba or LSTMICL sequence models · Meta ICL, long-context regimesexcess-risk curve shapeNo clear effect

Surprising findings

Limitations

Experimental setup

Datasets: synthetic hierarchical meta-ICL regression prompts

Benchmarks: synthetic meta-ICL regression scenarios (M=10, sigma_y^2 in {0.003,0.03,0.3}, sigma_w^2 in {0.1,1,10})

Metrics: mean squared error performance ratio mean performance ratio performance profile squared prediction difference to BMA

Baselines: Bayesian model averaging (BMA) AIC BIC Bayesian model comparison (BMC) equal-weight ensemble of ridge estimators

Builds on: GPT-2 meta-learning in-context learning (Garg et al.) performance profiles (Dolan & More) Bayesian model averaging

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