Dual Process Learning: Controlling Use of In-Context vs. In-Weights Strategies with Weight Forgetting
Not on the map. Why?
Abstract (arXiv)
Language models have the ability to perform in-context learning (ICL), allowing them to flexibly adapt their behavior based on context. This contrasts with in-weights learning (IWL), where memorized information is encoded in model parameters after iterated observations of data. An ideal model should be able to flexibly deploy both of these abilities. Despite their apparent ability to learn in-context, language models are known to struggle when faced with unseen or rarely seen tokens (Land & Bartolo, 2024). Hence, we study structural in-context learning, which we define as the ability of a model to execute in-context learning on arbitrary novel tokens -- so called because the model must generalize on the basis of e.g. sentence structure or task structure, rather than content encoded in token embeddings. We study structural in-context algorithms on both synthetic and naturalistic tasks using toy models, masked language models, and autoregressive language models. We find that structural ICL appears before quickly disappearing early in LM pretraining. While it has been shown that ICL can diminish during training (Singh et al., 2023), we find that prior work does not account for structural ICL. Building on Chen et al. (2024) 's active forgetting method, we introduce pretraining and finetuning methods that can modulate the preference for structural ICL and IWL. Importantly, this allows us to induce a textitdual process strategy where in-context and in-weights solutions coexist within a single model.
Key facts. Cited by 15 papers in the map (data through 14 Oct 2026). Builds on 22 of its 54 references that are in the map. First posted on arXiv 28 May 2024.
Builds on
22 of 54 references.
References · 22
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2016Overcoming catastrophic forgetting in neural networkscited by 4,787
- 2016Pointer Sentinel Mixture Modelscited by 3,096
- 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,786
- 2019BERT Rediscovers the Classical NLP Pipelinecited by 1,059
- 2015Aligning Books and Movies: Towards Story-like Visual Explanations by Watching Movies and Reading Bookscited by 1,043
- 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 715
- 2017Measuring Catastrophic Forgetting in Neural Networkscited by 360
- 2022Toward Transparent AI: A Survey on Interpreting the Inner Structures of Deep Neural Networkscited by 129
- 2023The mechanistic basis of data dependence and abrupt learning in an in-context classification taskcited by 118
- 2021The MultiBERTs: BERT Reproductions for Robustness Analysiscited by 92
10 more
- 2023The Transient Nature of Emergent In-Context Learning in Transformerscited by 76
- 2021Conditional probing: measuring usable information beyond a baselinecited by 62
- 2022Transformers generalize differently from information stored in context vs in weightscited by 49
- 2024Fishing for Magikarp: Automatically Detecting Under-trained Tokens in Large Language Modelscited by 46
- 2023Neural Collapse in the Intermediate Hidden Layers of Classification Neural Networkscited by 21
- 2021The Impact of Reinitialization on Generalization in Convolutional Neural Networkscited by 20
- 2021Knowledge Evolution in Neural Networkscited by 18
- 2020Amnesic Probing: Behavioral Explanation with Amnesic Counterfactualscited by 14
- 2020Syntax Representation in Word Embeddings and Neural Networks -- A Surveycited by 5
- 2022A Neural Network Model of Continual Learning with Cognitive Controlcited by 4
Built on by
Citing papers per year: 2024: 2; 2025: 9; 2026: 4.
15 papers.
Sort:
By area:
- 2025Training Dynamics of In-Context Learning in Linear Attentioncited by 46
- 2025Emergent Abilities in Large Language Models: A Surveycited by 37
- 2025Pixels Versus Priors: Controlling Knowledge Priors in Vision-Language Models through Visual Counterfactscited by 32
- 2025Strategy Coopetition Explains the Emergence and Transience of In-Context Learningcited by 17
- 2024Investigating the Pre-Training Dynamics of In-Context Learning: Task Recognition vs. Task Learningcited by 6
- 2025Rapid Word Learning Through Meta In-Context Learningcited by 4
- 2025ICL CIPHERS: Quantifying "Learning" in In-Context Learning via Substitution Cipherscited by 4
- 2025Softmax ≥ Linear: Transformers may learn to classify in-context by kernel gradient descentcited by 4
- 2024In-context Learning in Presence of Spurious Correlationscited by 3
- 2025Evaluating Steering Techniques using Human Similarity Judgmentscited by 2
- 2026Large language models reorganize representational geometry during in-context learningcited by 2
- 2026To See the Unseen: on the Generalization Ability of Transformers in Symbolic Reasoningcited by 1
- 2026Information Abundance Paradox: Long-Context Training Undermines Parametric Knowledge12 Aug 2026
- 2026Large language models reorganize representational geometry during in-context learning16 May 2026
- 2026To See the Unseen: on the Generalization Ability of Transformers in Symbolic Reasoning23 Apr 2026
- 2026Reconciling In-Context and In-Weight Learning via Dual Representation Space Encoding13 Mar 2026
- 2025Softmax ≥ Linear: Transformers may learn to classify in-context by kernel gradient descent12 Oct 2025
- 2025Decomposing Prediction Mechanisms for In-Context Recall2 Jul 2025
- 2025Evaluating Steering Techniques using Human Similarity Judgments25 May 2025
- 2025Pixels Versus Priors: Controlling Knowledge Priors in Vision-Language Models through Visual Counterfacts21 May 2025
- 2025ICL CIPHERS: Quantifying "Learning" in In-Context Learning via Substitution Ciphers28 Apr 2025
- 2025Strategy Coopetition Explains the Emergence and Transience of In-Context Learning7 Mar 2025
- 2025Emergent Abilities in Large Language Models: A Survey28 Feb 2025
- 2025Rapid Word Learning Through Meta In-Context Learning20 Feb 2025
- 2025Training Dynamics of In-Context Learning in Linear Attentioncited by 46
- 2025Emergent Abilities in Large Language Models: A Surveycited by 37
- 2025Strategy Coopetition Explains the Emergence and Transience of In-Context Learningcited by 17
- 2025Rapid Word Learning Through Meta In-Context Learningcited by 4
- 2025ICL CIPHERS: Quantifying "Learning" in In-Context Learning via Substitution Cipherscited by 4
- 2025Softmax ≥ Linear: Transformers may learn to classify in-context by kernel gradient descentcited by 4
- 2024In-context Learning in Presence of Spurious Correlationscited by 3
- 2025Evaluating Steering Techniques using Human Similarity Judgmentscited by 2
- 2026Large language models reorganize representational geometry during in-context learningcited by 2
- 2026Information Abundance Paradox: Long-Context Training Undermines Parametric Knowledgecited by 1
- 2025Decomposing Prediction Mechanisms for In-Context Recallcited by 0
- 2026Reconciling In-Context and In-Weight Learning via Dual Representation Space Encodingcited by 0
- 2026Information Abundance Paradox: Long-Context Training Undermines Parametric Knowledge12 Aug 2026
- 2026Large language models reorganize representational geometry during in-context learning16 May 2026
- 2026Reconciling In-Context and In-Weight Learning via Dual Representation Space Encoding13 Mar 2026
- 2025Softmax ≥ Linear: Transformers may learn to classify in-context by kernel gradient descent12 Oct 2025
- 2025Decomposing Prediction Mechanisms for In-Context Recall2 Jul 2025
- 2025Evaluating Steering Techniques using Human Similarity Judgments25 May 2025
- 2025ICL CIPHERS: Quantifying "Learning" in In-Context Learning via Substitution Ciphers28 Apr 2025
- 2025Strategy Coopetition Explains the Emergence and Transience of In-Context Learning7 Mar 2025
- 2025Emergent Abilities in Large Language Models: A Survey28 Feb 2025
- 2025Rapid Word Learning Through Meta In-Context Learning20 Feb 2025
- 2025Training Dynamics of In-Context Learning in Linear Attention27 Jan 2025
- 2024In-context Learning in Presence of Spurious Correlations4 Oct 2024