atlas

Research map / Architectures and efficiency / Attention and transformers

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

ICLR 2025 · Architectures and efficiency › Attention and transformers · approach: Training dynamics of in-context learning · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Studies structural in-context learning (generalizing to random novel tokens) in LMs, shows it is transient in training, and proposes active and temporary forgetting of embeddings to maintain it and induce dual-process (ICL + IWL) behavior, plus probabilistic temporary forgetting for fine-tuning GPT-2.

Problem

Language models fail on unseen or rarely seen tokens because in-context learning ability degrades during training, so they cannot generalize structurally to novel tokens while still memorizing common ones.

Approach

Extends active forgetting (periodically re-initializing the embedding matrix) with temporary forgetting, applying resets only for the first N steps so the model keeps structural ICL for tail/unseen tokens while memorizing head tokens; a probabilistic variant applies random-embedding replacement during fine-tuning of pretrained LMs.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use probabilistic temporary forgetting during fine-tuning instead of vanilla fine-tuningGPT-2 large · Syllogism, unseen tokensaccuracy: 0.02 to 0.927Helped
Use probabilistic temporary forgetting during fine-tuningGPT-2 large · Syllogism, baseline conditionsaccuracy: 0.933 to 0.923No clear effect
Increase weight decay from 0.01 to 0.1 (ablation)Synthetic POS model · Synthetic POS task, structural ICLaccuracyNo clear effect
Use active forgetting instead of vanilla trainingSynthetic masked language model · Random Token dataset across tested distributionsaccuracyHelped
Use active forgetting instead of vanilla trainingSynthetic masked language model · Synthetic POS task, in-weights learningaccuracyHurt
Use temporary forgetting instead of vanilla trainingSynthetic masked language model · Tail and unseen tokensaccuracyHelped
Use temporary forgetting instead of active forgettingSynthetic masked language model · Head tokens, in-weights learningaccuracyHelped
Vary temporary forgetting duration N (ablation)Synthetic masked language model · Zipf distribution, α=1.5accuracyMixed
Increase ambiguity ε (ablation)Synthetic masked language model · Synthetic POS task, unambiguous tokensaccuracyMixed
Vary vocabulary size (ablation)Synthetic masked language model · Synthetic POS task, structural ICLaccuracyMixed
Use temporary forgetting instead of vanilla trainingAutoregressive transformer · Few-shot task, Zipf distributions α=1.0001, 2, 3accuracyHelped
Use temporary forgetting instead of vanilla fine-tuningGPT-2 large · Syllogism, unseen tokensaccuracy: 0.02 to 0.927Helped

Surprising findings

Limitations

Experimental setup

Datasets: Penn Treebank-3 Wikitext BookCorpus English Wikipedia English UD Treebank OntoNotes-v5

Benchmarks: Head/Tail/Head Switch/Tail Switch/Random Token POS probing datasets syllogism task with unseen tokens

Metrics: accuracy probe accuracy unseen token accuracy

Baselines: vanilla training active forgetting L2 regularization

Builds on: active forgetting L2 regularization for ICL persistence MultiBERTs

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy