Gated DeltaNet-2: Decoupling Erase and Write in Linear Attention
Ali Hatamizadeh, Yejin Choi, Jan Kautz
NeurIPS page · OpenReview · alphaXiv · Open on the map
Category: Efficient LLM Inference & Training › Linear Attention Memory Mechanisms · Type: new method · Keywords: linear attention, erase and write gates, DeltaNet, Kimi Delta Attention, language modeling, long-context retrieval
Areas: Memory › Memory mechanisms › State-Space Memory; Long Context › Long-context mechanisms › State space models for long sequences; Model Architectures & Sequence Modeling › Language Model Architectures › Long-Context Memory
Summary
Gated DeltaNet-2 introduces separate channel-wise erase and write gates to decouple forgetting and updating in linear attention, improving performance on language modeling, commonsense reasoning, and long-context retrieval.
Explained to a 5-year-old
A computer brain remembers a lot of information in a small box. When we want to change something, we need to forget the old part and add a new part without mixing them up. The new idea uses two special knobs: one to erase old memories and another to write new ones. This helps the brain stay organized and work better on long stories and puzzles.
Explained to a 5-year-old, longer
Imagine you have a tiny notebook that holds all the words you read. When you learn something new, you want to update the notebook, but you don’t want to lose the old words you already know. The old method used one button that did both erasing and writing, which sometimes made the notebook messy. The new method adds two separate buttons: one button only erases the old words, and another button only writes the new words. This way the notebook stays clean and accurate. The scientists also found a fast way to update the notebook so it can be used on big computers without slowing down. Because of these improvements, the notebook can handle long stories, answer tricky questions, and find information quickly, making reading and learning easier for everyone.
For a technical reader
The paper presents a linear attention mechanism that uses two independent channel-wise gates to control erasing and writing, addressing the limitation of a single scalar gate. It provides a fast-weight update formulation, a chunkwise WY algorithm, and a gate-aware backward pass for efficient training. Experiments show superior performance on language modeling, commonsense reasoning, and retrieval tasks, especially on long-context needle-in-a-haystack benchmarks.
Problem
Linear attention models store information in a small memory, but editing this memory without losing existing knowledge is difficult because current methods use a single scalar to control both erasing old content and writing new content.
Method
The approach adds independent channel-wise erase and write gates to control forgetting and updating, derives a fast-weight update view and a chunkwise WY algorithm, and implements a gate-aware backward pass for efficient parallel training.
Results
The approach achieves state-of-the-art results on language modeling, commonsense reasoning, and retrieval, and notably improves multi-key retrieval on the RULER needle-in-a-haystack benchmark while remaining strong in recurrent and hybrid settings.
Contributions
It provides a way to separately control erasing and writing in linear attention, generalizes prior delta-rule models, and offers efficient training algorithms for scalable deployment.
Research questions this paper is counted under
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction