In-Context Learning can Perform Continual Learning Like Humans
Not on the map. Why?
Abstract (arXiv)
Large language models (LLMs) can adapt to new tasks via in-context learning (ICL) without parameter updates, making them powerful learning engines for fast adaptation. While extensive research has examined ICL as a few-shot learner, whether it can achieve long-term retention and cross-task knowledge accumulation when multitasks arrive sequentially remains underexplored. Motivated by human memory studies, we investigate the retention characteristics of ICL in multitask settings and extend it to in-context continual learning (ICCL), where continual learning ability emerges through task scheduling and prompt rearrangement. Experiments on Markov-Chain benchmarks demonstrate that, for specific large-language models, ICCL benefits from distributed practice (DP) in a manner analogous to humans, consistently revealing a spacing "sweet spot" for retention. Beyond retention performance, we propose a human-retention similarity metric to quantify how closely a continual-learning (CL) method aligns with human retention dynamics. Using this metric, we show that linear-attention models such as MAMBA and RWKV exhibit particularly human-like retention patterns, despite their retention performance lagging behind that of Transformer-based LLMs. Overall, our results establish ICCL as both cognitively plausible and practically effective, providing an inference-only CL paradigm that mitigates catastrophic forgetting and addresses the stability-plasticity dilemma in conventional CL methods.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 29 of its 49 references that are in the map. First posted on arXiv 26 Sep 2025.
Builds on
29 of 49 references.
References · 29
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2022Training language models to follow instructions with human feedbackcited by 15,971
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
- 2023Retrieval-Augmented Generation for Large Language Models: A Surveycited by 2,212
- 2021Calibrate Before Use: Improving Few-Shot Performance of Language Modelscited by 1,392
- 2021What Makes Good In-Context Examples for GPT-3?cited by 1,195
- 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,135
- 2018Experience Replay for Continual Learningcited by 1,095
- 2021Learning to Prompt for Continual Learningcited by 944
- 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 938
- 2022Transformers learn in-context by gradient descentcited by 732
- 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 715
17 more
- 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 684
- 2024Many-Shot In-Context Learningcited by 206
- 2022In-context Reinforcement Learning with Algorithm Distillationcited by 190
- 2023Pretraining task diversity and the emergence of non-Bayesian in-context learning for regressioncited by 146
- 2023Supervised Pretraining Can Learn In-Context Reinforcement Learningcited by 139
- 2020Few-shot Image Generation with Elastic Weight Consolidationcited by 122
- 2020Online stochastic gradient descent on non-convex losses from high-dimensional inferencecited by 119
- 2023How Many Pretraining Tasks Are Needed for In-Context Learning of Linear Regression?cited by 96
- 2020Rethinking Experience Replay: a Bag of Tricks for Continual Learningcited by 94
- 2024In-Context Language Learning: Architectures and Algorithmscited by 89
- 2024Large Language Models as Markov Chainscited by 35
- 2024LLMs learn governing principles of dynamical systems, revealing an in-context neural scaling lawcited by 32
- 2024InstructDoc: A Dataset for Zero-Shot Generalization of Visual Document Understanding with Instructionscited by 27
- 2017Continual Learning Through Synaptic Intelligencecited by 14
- 2024In-context Continual Learning Assisted by an External Continual Learnercited by 7
- 2023Toward Zero-Shot Instruction Followingcited by 2
- 2025Memory-Augmented Architecture for Long-Term Context Handling in Large Language Modelscited by 1
Built on by
Citing papers per year: 2026: 1.
1 paper.
Similar, not cited
Close in wording, no citation either way
- 2026When Does Continual Learning Require Learning
- 2024Does In-Context Learning Really Learn? Rethinking How Large Language Models Respond and Solve Tasks via In-Context Learning
- 2026Representation Drift in Continual Learning: LoRA versus N-gram Memory
- 2025When Continue Learning Meets Multimodal Large Language Model: A Survey
- 2026Learning, Fast and Slow: Towards LLMs That Adapt Continually
- 2024Towards Practical Tool Usage for Continually Learning LLMs
- 2024Continual Learning for Large Language Models: A Survey
- 2023TRACE: A Comprehensive Benchmark for Continual Learning in Large Language Models