Technical Debt in In-Context Learning: Diminishing Efficiency in Long Context
Not on the map. Why?
Abstract (arXiv)
Transformers have demonstrated remarkable in-context learning (ICL) capabilities, adapting to new tasks by simply conditioning on demonstrations without parameter updates. Compelling empirical and theoretical evidence suggests that ICL, as a general-purpose learner, could outperform task-specific models. However, it remains unclear to what extent the transformers optimally learn in-context compared to principled learning algorithms. To investigate this, we employ a meta ICL framework in which each prompt defines a distinctive regression task whose target function is drawn from a hierarchical distribution, requiring inference over both the latent model class and task-specific parameters. Within this setup, we benchmark sample complexity of ICL against principled learning algorithms, including the Bayes optimal estimator, under varying performance requirements. Our findings reveal a striking dichotomy: while ICL initially matches the efficiency of a Bayes optimal estimator, its efficiency significantly deteriorates in long context. Through an information-theoretic analysis, we show that the diminishing efficiency is inherent to ICL. These results clarify the trade-offs in adopting ICL as a universal problem solver, motivating a new generation of on-the-fly adaptive methods without the diminishing efficiency.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 38 of its 57 references that are in the map. First posted on arXiv 7 Feb 2025.
Builds on
38 of 57 references.
References · 38
- 2017Attention Is All You Needcited by 59,932
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2023GPT-4 Technical Reportcited by 18,132
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2020Scaling Laws for Neural Language Modelscited by 6,411
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,616
- 2019Benchmarking Neural Network Robustness to Common Corruptions and Perturbationscited by 2,857
- 2022Emergent Abilities of Large Language Modelscited by 2,483
- 2022Beyond the Imitation Game: Quantifying and extrapolating the capabilities of language modelscited by 1,970
- 2020WILDS: A Benchmark of in-the-Wild Distribution Shiftscited by 1,366
- 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 915
26 more
- 2022Transformers learn in-context by gradient descentcited by 714
- 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 700
- 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 671
- 2017Computing Nonvacuous Generalization Bounds for Deep (Stochastic) Neural Networks with Many More Parameters than Training Datacited by 527
- 2023Larger language models do in-context learning differentlycited by 386
- 2023The Impact of Positional Encoding on Length Generalization in Transformerscited by 319
- 2023Transformers as Statisticians: Provable In-Context Learning with In-Context Algorithm Selectioncited by 291
- 2023Transformers as Algorithms: Generalization and Stability in In-context Learningcited by 220
- 2022Exploring Length Generalization in Large Language Modelscited by 204
- 2024Many-Shot In-Context Learningcited by 203
- 2023Pretraining task diversity and the emergence of non-Bayesian in-context learning for regressioncited by 138
- 2024In-Context Learning with Long-Context Models: An In-Depth Explorationcited by 126
- 2023What and How does In-Context Learning Learn? Bayesian Model Averaging, Parameterization, and Generalizationcited by 112
- 2023Linear attention is (maybe) all you need (to understand transformer optimization)cited by 97
- 2023How Do Transformers Learn Topic Structure: Towards a Mechanistic Understandingcited by 85
- 2023Physics of Language Models: Part 1, Learning Hierarchical Language Structurescited by 83
- 2024Transformers Can Achieve Length Generalization But Not Robustlycited by 82
- 2023In-Context Learning through the Bayesian Prismcited by 78
- 2022Learning threshold neurons via the "edge of stability"cited by 50
- 2024DeciMamba: Exploring the Length Extrapolation Potential of Mambacited by 45
- 2024An Information-Theoretic Analysis of In-Context Learningcited by 39
- 2018Model Selection Techniques -- An Overviewcited by 36
- 2023A Closer Look at In-Context Learning under Distribution Shiftscited by 25
- 2023Transformers can optimally learn regression mixture modelscited by 15
- 2024In-context learning and Occam's razorcited by 7
- 2022An Information-Theoretic Framework for Supervised Learningcited by 6
Built on by
Not cited yet.