mlsanityData to 14 Oct 2026

Dual Process Learning: Controlling Use of In-Context vs. In-Weights Strategies with Weight Forgetting

arXiv 2406.00053 ↗First posted 28 May 2024cs.CL cs.LGcited by 15

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

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  2. 2020Language Models are Few-Shot Learnerscited by 32,419
  3. 2016Overcoming catastrophic forgetting in neural networkscited by 4,787
  4. 2016Pointer Sentinel Mixture Modelscited by 3,096
  5. 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,786
  6. 2019BERT Rediscovers the Classical NLP Pipelinecited by 1,059
  7. 2015Aligning Books and Movies: Towards Story-like Visual Explanations by Watching Movies and Reading Bookscited by 1,043
  8. 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 715
  9. 2017Measuring Catastrophic Forgetting in Neural Networkscited by 360
  10. 2022Toward Transparent AI: A Survey on Interpreting the Inner Structures of Deep Neural Networkscited by 129
  11. 2023The mechanistic basis of data dependence and abrupt learning in an in-context classification taskcited by 118
  12. 2021The MultiBERTs: BERT Reproductions for Robustness Analysiscited by 92
10 more
  1. 2023The Transient Nature of Emergent In-Context Learning in Transformerscited by 76
  2. 2021Conditional probing: measuring usable information beyond a baselinecited by 62
  3. 2022Transformers generalize differently from information stored in context vs in weightscited by 49
  4. 2024Fishing for Magikarp: Automatically Detecting Under-trained Tokens in Large Language Modelscited by 46
  5. 2023Neural Collapse in the Intermediate Hidden Layers of Classification Neural Networkscited by 21
  6. 2021The Impact of Reinitialization on Generalization in Convolutional Neural Networkscited by 20
  7. 2021Knowledge Evolution in Neural Networkscited by 18
  8. 2020Amnesic Probing: Behavioral Explanation with Amnesic Counterfactualscited by 14
  9. 2020Syntax Representation in Word Embeddings and Neural Networks -- A Surveycited by 5
  10. 2022A Neural Network Model of Continual Learning with Cognitive Controlcited by 4

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2024: 2; 2025: 9; 2026: 4.

15 papers.

Sort:

By area: