mlsanityData to 7 Oct 2026

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

arXiv 2502.04580 ↗First posted 7 Feb 2025cs.LG cs.AIcited by 0

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2020Language Models are Few-Shot Learnerscited by 32,199
  3. 2023GPT-4 Technical Reportcited by 18,132
  4. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  5. 2020Scaling Laws for Neural Language Modelscited by 6,411
  6. 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
  7. 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,616
  8. 2019Benchmarking Neural Network Robustness to Common Corruptions and Perturbationscited by 2,857
  9. 2022Emergent Abilities of Large Language Modelscited by 2,483
  10. 2022Beyond the Imitation Game: Quantifying and extrapolating the capabilities of language modelscited by 1,970
  11. 2020WILDS: A Benchmark of in-the-Wild Distribution Shiftscited by 1,366
  12. 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 915
26 more
  1. 2022Transformers learn in-context by gradient descentcited by 714
  2. 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 700
  3. 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 671
  4. 2017Computing Nonvacuous Generalization Bounds for Deep (Stochastic) Neural Networks with Many More Parameters than Training Datacited by 527
  5. 2023Larger language models do in-context learning differentlycited by 386
  6. 2023The Impact of Positional Encoding on Length Generalization in Transformerscited by 319
  7. 2023Transformers as Statisticians: Provable In-Context Learning with In-Context Algorithm Selectioncited by 291
  8. 2023Transformers as Algorithms: Generalization and Stability in In-context Learningcited by 220
  9. 2022Exploring Length Generalization in Large Language Modelscited by 204
  10. 2024Many-Shot In-Context Learningcited by 203
  11. 2023Pretraining task diversity and the emergence of non-Bayesian in-context learning for regressioncited by 138
  12. 2024In-Context Learning with Long-Context Models: An In-Depth Explorationcited by 126
  13. 2023What and How does In-Context Learning Learn? Bayesian Model Averaging, Parameterization, and Generalizationcited by 112
  14. 2023Linear attention is (maybe) all you need (to understand transformer optimization)cited by 97
  15. 2023How Do Transformers Learn Topic Structure: Towards a Mechanistic Understandingcited by 85
  16. 2023Physics of Language Models: Part 1, Learning Hierarchical Language Structurescited by 83
  17. 2024Transformers Can Achieve Length Generalization But Not Robustlycited by 82
  18. 2023In-Context Learning through the Bayesian Prismcited by 78
  19. 2022Learning threshold neurons via the "edge of stability"cited by 50
  20. 2024DeciMamba: Exploring the Length Extrapolation Potential of Mambacited by 45
  21. 2024An Information-Theoretic Analysis of In-Context Learningcited by 39
  22. 2018Model Selection Techniques -- An Overviewcited by 36
  23. 2023A Closer Look at In-Context Learning under Distribution Shiftscited by 25
  24. 2023Transformers can optimally learn regression mixture modelscited by 15
  25. 2024In-context learning and Occam's razorcited by 7
  26. 2022An Information-Theoretic Framework for Supervised Learningcited by 6

Built on by

Not cited yet.