Commutator Memory: Sparse, Path-Local Reading and Steering in Language Models
Not on the map. Why?
Abstract (arXiv)
Gradient updates on different data generally do not commute: training a language model on two data sources in opposite orders gives different weights, even with the same data and total exposure. Loss or benchmark deltas show that the models differ, not where. We ask whether this path dependence leaves a parametric training-history memory: a weight component that flips sign when the two sources are swapped, is localized in output space, changes the held-out loss gap between the two orders under targeted interventions, and reveals which trained model came from which order. For one small SGD step of size η on each of sources A and B, the weight difference θAB-θBA is, to leading order, η2 bAB, where bAB=HBgA-HAgB is the Lie bracket of the two gradient fields at the base model. We define commutator memory by projecting the bracket through the logits into one score per vocabulary token; the scores sum to the bracket's prediction of the gap. The scores are localized: on three models, the same readout of the measured θAB-θBA, or of a bracket from disjoint batches, shares 82-99% of the original top-20 tokens, versus 35-49% for norm-matched random directions. They are causally actionable: in Qwen-3-4B SFT, downweighting the ten tokens with the largest predicted share of the gap closes a median 32% of the measured gap, while frequency-matched tokens with near-zero scores have almost no effect. The weights themselves carry the component: projecting the difference between the two trained models onto bAB identifies which came from which order in 92% of cases across four LLMs (chance 50%). Controlled tests also cover matched-batch DPO, a frozen-rollout GRPO-style objective, and an AdamW endpoint check. The memory is defined per source pair, not per example, and its projection on bAB decays with further training.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 34 of its 48 references that are in the map. First posted on arXiv 28 Sep 2026.
Builds on
34 of 48 references.
References · 34
- 2017Proximal Policy Optimization Algorithmscited by 14,441
- 2024The Llama 3 Herd of Modelscited by 14,192
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 8,851
- 2025Qwen3 Technical Reportcited by 8,195
- 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 7,916
- 2016Overcoming catastrophic forgetting in neural networkscited by 4,718
- 2024Qwen2.5 Technical Reportcited by 4,713
- 2022Locating and Editing Factual Associations in GPTcited by 2,609
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
- 2016Membership Inference Attacks against Machine Learning Modelscited by 2,221
- 2017Gradient Episodic Memory for Continual Learningcited by 1,871
- 2017Understanding Black-box Predictions via Influence Functionscited by 1,714
22 more
- 2020Gradient Surgery for Multi-Task Learningcited by 1,210
- 2022Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 smallcited by 1,130
- 2022Editing Models with Task Arithmeticcited by 1,076
- 2022Mass-Editing Memory in a Transformercited by 976
- 2021Membership Inference Attacks From First Principlescited by 839
- 2015Optimizing Neural Networks with Kronecker-factored Approximate Curvaturecited by 776
- 2023Towards Automated Circuit Discovery for Mechanistic Interpretabilitycited by 700
- 2023A Watermark for Large Language Modelscited by 667
- 2023Eliciting Latent Predictions from Transformers with the Tuned Lenscited by 579
- 2023UltraFeedback: Boosting Language Models with Scaled AI Feedbackcited by 394
- 2020Fine-Tuning Pretrained Language Models: Weight Initializations, Data Orders, and Early Stoppingcited by 377
- 2023Studying Large Language Model Generalization with Influence Functionscited by 311
- 2023TRAK: Attributing Model Behavior at Scalecited by 273
- 2023Provable Robust Watermarking for AI-Generated Textcited by 259
- 2026Scaling Monosemanticity: Extracting Interpretable Features from Claude 3 Sonnetcited by 175
- 2026Mechanistic Data Attribution: Tracing the Training Origins of Interpretable LLM Unitscited by 10
- 2025Commute Your Domains: Trajectory Optimality Criterion for Multi-Domain Learningcited by 9
- 2025SeedPrints: Fingerprints Can Even Tell Which Seed Your Large Language Model Was Trained Fromcited by 9
- 2026The Geometry of Sequential Learning: Lie-Bracket Prediction of Transfer Ordercited by 8
- 2026Optimizer Memory Makes Shuffle Order a First-Order Source of Fine-Tuning Noisecited by 6
- 2025Fresh in memory: Training-order recency is linearly encoded in language model activationscited by 5
- 2024Does the Order of Fine-tuning Matter and Why?cited by 4
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2025Tracing the Representation Geometry of Language Models from Pretraining to Post-training
- 2026Benchmark Shadows: Data Alignment, Parameter Footprints, and Generalization in Large Language Models
- 2026A Theoretical Analysis of Why Masked Diffusion Models Mitigate the Reversal Curse
- 2026Representation Collapse in Sequential Post-Training of Large Language Models
- 2026Learning the Signature of Memorization in Autoregressive Language Models
- 2026Memory Grafting: Scaling Language Model Pre-training via Offline Conditional Memory
- 2026DreamingGoose: Staged Distillation from Autoregressive Transformers to Bidirectional Recurrent Diffusion Language Models
- 2025Pretraining with hierarchical memories: separating long-tail and common knowledge