A paper posted to arXiv by researchers at MemTensor and several universities explains why Gated DeltaNet-2, a linear-attention architecture, failed in long-context training, and proposes Stable GDN-2. The cause is a mismatch between how the erase step reads the memory and how it modifies it, which lets the recurrent state grow exponentially even when nothing new is written.
Choosing a model architecture is rarely our clients' problem, but understanding what makes long-context systems fail is how we tell a real capability from a demo. We build with that discipline. Start a project โ
The setting.
Softmax attention stores every past token and costs more as context grows. Linear attention replaces that with a fixed-size recurrent state, a matrix that is updated at each token, so decoding uses constant memory and the cost grows linearly with sequence length. Delta-rule variants such as Gated DeltaNet (GDN) and Kimi Delta Attention (KDA) improve the update: at each token the model first reads what the state currently predicts for the key, then erases that content and writes the new value. Gated DeltaNet-2 (GDN-2) went further by replacing the shared scalar gate with independent channel-wise erase and write gates.
What failed.
The authors report that GDN-2 suffered training failures at long context. Training with 64K-token sequences, they recorded a failure whenever the loss became NaN. Across pure linear and hybrid architectures they report failures in 3 of 8 pretraining runs and 4 of 8 post-training runs. Replaying one failed run, the loss went NaN at step 2,058, and on the triggering sequence the recurrent state overflowed at token 52,736. GDN and KDA did not show the same growth on the same replay. Even in runs that finished, one recorded a largest state entry of about 3.157 times 10 to the 36th, which still fits in FP32 but shows how far the state can drift.
The cause: a non-normal erase operator.
In GDN and KDA, retrieval and modification both use the key vector, so the erase operator is symmetric and cannot amplify the state. In GDN-2, retrieval uses the gated key, the elementwise product of the erase gate and the key, while the modification is still applied along the original key. That asymmetry makes the erase operator non-normal, which means it can have directions in which it expands the state. The paper proves that erasure alone can increase the state's energy even with no new write, and that when an amplified output direction lines up with an expanding input direction at the next token, gains accumulate. The authors also report that the state's effective rank collapses towards one before overflow, so the memory loses capacity before it breaks numerically.
The fix: symmetric erasure and decay-regulated writing.
Stable GDN-2 splits the erase gate so that the same vector, the square root of the gate times the key, is used for reading and for modifying. With keys normalised, this makes the erase operator positive semidefinite and bounded by the identity, so it cannot expand the state. Symmetric erasure suppresses some of the write, so the authors add a residual write along the part of the key that the erase vector does not cover, with its amplitude scaled by the square root of one minus the squared decay. Under a bound on the value vectors, they prove the state norm grows at most on the order of the square root of the sequence length, instead of exponentially. The update keeps the chunkwise parallel structure used for training.
What the numbers say.
The experiments use 1.6B-parameter models trained on about 82.78 billion tokens of 64K-token sequences from the ProLong data, against GDN-2, KDA and two other stabilisation methods, D-Clip and Beta-Guard. Compared with GDN-2, Stable GDN-2 trains stably and raises the average RULER long-context retrieval score at 128K by 6.80 points in the recurrent setting, and average accuracy on nine downstream tasks by 0.62 points in the hybrid setting. These are the authors' own results on small models, so they show stability rather than frontier quality, and the paper has not been independently reproduced.
Why it matters beyond one architecture.
Hybrid stacks that mix linear-attention layers with a few full-attention layers are spreading because they cut inference memory. Their failure modes are different from transformers, and a published diagnosis with a proof and a tested patch is useful to anyone training or fine-tuning them. For businesses that only call models through an API, the takeaway is smaller but real: long-context claims depend on architecture details, so ask for retrieval results at the context length you actually need.
Source: arXiv 2611.34051, posted 25 Nov 2026.