Delta N-gram: Forward-Only Continual Writing into a Language Model's Native N-gram Memory
Not on the map. Why?
Abstract (arXiv)
Our previous analysis found that a model's native hashed N-gram table is where continual updates disturb the base least, but its writes needed backpropagation and changed the pretrained table. We present Delta N-gram, a forward-only write path into that table. The pretrained table T0 is never modified. Evidence is written into a sparse patch Delta on the rows it addresses: a 4.1M-parameter writer emits a target and a gate per (position, hash head) event, and a block-averaged delta rule keeps each row a convex combination of its old value and the gated targets. The writer is trained offline on raw text with the pretraining objective; at use time writing takes forward passes only, and clearing Delta restores the original model. A 0.6B prototype trained to answer questions keeps 16/16 facts after a second write; online gradient writes keep 2--4/16. We study two writers: a plain writer that encodes evidence with the T0-only model, and a delta writer that reads its current memory while encoding. On Qwen3.8-Flash-Next, the plain writer's memory is document-specific: on 64 held-out news events it lowers continuation NLL by 0.068 nats/token against empty memory and by 0.024 against another document's memory, and 0.063 and 0.013 after 16 intervening articles. The delta writer's memory is more document-specific and keeps more of it under distraction (70% vs 54%). Over 35,000 writes on our previous seven-task chain both writers stay stable and the delta writer drifts less (layer-2 math drift 176% vs 188%); later accuracy changes by -0.26/-0.52pp (-7.29pp for gradient updates) and small-ki drift is 17.9/17.5% (39.2%). Acquisition is negative, and general-input drift reaches 32.8% (20.75%): format rows read by every example grow to 4--12 times their pretrained norm. Zeroing eight such rows removes over 98% of layer-2 drift on math inputs, together with their NLL gain.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Builds on 26 of its 40 references that are in the map. Submitted 22 Oct 2026.
Builds on
26 of 40 references.
References · 26
- 2016Overcoming catastrophic forgetting in neural networkscited by 4,989
- 2022Locating and Editing Factual Associations in GPTcited by 2,951
- 2024The FineWeb Datasets: Decanting the Web for the Finest Text Data at Scalecited by 1,356
- 2022Mass-Editing Memory in a Transformercited by 1,110
- 2024Evaluating Very Long-Term Conversational Memory of LLM Agentscited by 977
- 2023An Empirical Study of Catastrophic Forgetting in Large Language Models During Continual Fine-tuningcited by 709
- 2024Gated Delta Networks: Improving Mamba2 with Delta Rulecited by 690
- 2021Linear Transformers Are Secretly Fast Weight Programmerscited by 554
- 2024Parallelizing Linear Transformers with the Delta Rule over Sequence Lengthcited by 455
- 2024Learning to (Learn at Test Time): RNNs with Expressive Hidden Statescited by 415
- 2019Orthogonal Gradient Descent for Continual Learningcited by 397
- 2024LoRA Learns Less and Forgets Lesscited by 387
14 more
- 2023Orthogonal Subspace Learning for Language Model Continual Learningcited by 354
- 2025Kimi Linear: An Expressive, Efficient Attention Architecturecited by 249
- 2024InfLoRA: Interference-Free Low-Rank Adaptation for Continual Learningcited by 225
- 2019Large Memory Layers with Product Keyscited by 134
- 2026On the Design of Qwen3.8-Next Architecture: Evaluation, Efficiency, and Training Stabilitycited by 96
- 2024Memory Layers at Scalecited by 55
- 2025The Common Pile v0.1: An 8TB Dataset of Public Domain and Openly Licensed Textcited by 38
- 2025Continual Learning via Sparse Memory Finetuningcited by 26
- 2026Fast-weight Product Key Memorycited by 15
- 2026Sparse Delta Memory: Scaling the State of Linear RNNs through Sparsitycited by 11
- 2026Sparse Memory Finetuning as a Low-Forgetting Alternative to LoRA and Full Finetuningcited by 1
- 2026EngramEdit: Decoupled Knowledge Updates in LLMs through Conditional Memorycited by 1
- 2026Representation Drift in Continual Learning: LoRA versus N-gram Memorycited by 1
- 2026MemT-1.0: Towards Memory-Native Evolutioncited by 1
Built on by
Not cited yet.