←Latent
    Dispatch · Linear attention stability · 4 min

    A symmetric way to forget keeps a linear-attention model's memory from blowing up

    A 2026 preprint traces training crashes in Gated DeltaNet-2 to a lopsided erase step, then redesigns it so the model's memory provably cannot grow exponentially.

    29 November 2026 · arXiv preprint, not yet peer reviewed
    3D render, tangled glowing blue coil strands on black
    Photo: Logan Voss

    Standard attention in language models compares every token with every other one, so the work grows steeply as inputs get longer. Linear attention takes a cheaper route. It compresses everything read so far into a fixed-size matrix, called the recurrent state, and updates it token by token, so cost grows only in proportion to length and memory stays constant. A 2026 preprint from researchers at MemTensor and several universities, which has not yet been peer reviewed, looks at one design in this family, Gated DeltaNet-2 (GDN-2), and argues that its training failures come from a geometric flaw in how it forgets.

    GDN-2 uses the delta rule. Before storing a new value under a key, it removes what its memory currently predicts for that key, so it corrects an old association rather than piling a new one on top. GDN-2 gives each key channel its own erase gate and each value channel its own write gate, learned knobs set between 0 and 1. The authors point out that in the erase step, old content is read along the gated key but removed along the original key. Because those two directions differ, the erase matrix is what mathematicians call non-normal: its stretching directions are skewed, so it can enlarge some vectors even though it is supposed to shrink them. They prove that its spectral norm, the largest factor by which it can stretch any vector, exceeds 1 whenever the two directions are not aligned. They also show that these gains can compound from token to token, so the state can grow exponentially even when nothing new is written.

    The experiments match the theory. In training with 64K-token contexts, 3 of 8 pretraining runs and 4 of 8 post-training runs ended with the loss turning into NaN, a numerical breakdown. The authors replayed one failure, at training step 2,058. The state overflowed at token 52,736, and it kept growing after writes were switched off following the first 64 tokens. Its effective rank, roughly how many directions the memory actually uses, quickly approached 1. Two related designs, GDN and KDA, decayed instead. Even a GDN-2 run that completed training contained a state entry of 3.157×10^36, and the training loss gave little sign of trouble.

    The fix, Stable GDN-2, splits each erase gate into two square-root factors and applies one on each side, so content is read and removed along the same direction. This symmetric erasure keeps the same diagonal entries as the original and never enlarges the state. On its own, though, it would choke off writing in channels whose erase gate sits near zero. So the authors add a residual write along the gap between the original key and the half-gated key, scaled by each channel's decay, so that channels that forget more are allowed to write more. Assuming bounded values and an empty starting state, they prove the state's size grows at most with the square root of sequence length. Without the decay scaling, the guarantee they give is only linear. The update keeps a diagonal-plus-low-rank structure, so the standard chunk-by-chunk parallel training algorithm still applies.

    The team trained models of about 1.60 billion parameters (purely recurrent) and 1.55 billion (hybrid, with one full-attention layer after every three linear ones) on about 82.78 billion tokens of ProLong data, using 16 H800 GPUs per run. The baselines were GDN-2, KDA, and two existing stabilisers, D-Clip and β-Guard, both of which keep GDN-2's original write. On the RULER long-context benchmark, the recurrent model averaged 11.62 at 128K tokens, against 4.82 for GDN-2, 10.82 for β-Guard and 9.96 for KDA. At 32K it edged D-Clip, 17.35 against 17.34. In the hybrid setting it led at 32K but trailed β-Guard at 128K (8.78 against 10.52), barely above GDN-2's 8.57. Its standout result was hybrid variable tracking, with 31.88 at 32K against 5.28 for the best baseline; GDN-2 scored 0.00 at every length. Average accuracy across nine zero-shot commonsense tasks tied GDN-2 at 50.39 in the recurrent setting and rose from 49.91 to 50.53 in the hybrid one.

    Language modelling was mixed. KDA had the best WikiText perplexity among recurrent models, and GDN-2, D-Clip and KDA all edged the new design among hybrids. Recurrent LAMBADA perplexity worsened from 7.856 to 9.333, a figure shown in a table but not discussed in the text. In ablations, removing the decay scaling cut a needle-in-a-haystack retrieval score from 25.43 to 13.53.

    The main comparisons rest on a single random seed with no error bars, and many of the gaps are small. The main text reports failure counts across seeds for GDN-2 but not for Stable GDN-2 or the other baselines. Everything was tested at one scale, on one dataset and at one training length. The residual write adds matrix operations, yet the main text gives no speed or memory figures. Average RULER scores are low throughout, roughly 5 to 32 per cent. The authors also note that whether the unstable trajectories actually arise depends on the learned parameters and the data.

    Paper
    Stable Gated DeltaNet-2: Understanding and Mitigating Recurrent State Instability
    Authors
    Xichong Zhang, Xixuan Hao, Zhichen Liu, Le Zhou, Zeyu Zhang, Boyu Chen et al.
    Venue
    arXiv preprint — not yet peer reviewed · 25 November 2026
    Link
    arxiv.org/abs/2611.34051
    Index
    stacks.braintank.ai
    Cite

    Keep reading

    Photo: Umut Tuluoglu

    Latent · Training on Ascend

    Xing 4 report details training a 285B-parameter model on 8,192 Huawei Ascend chips

    China Telecom's Xingchen lab sets out the architecture and systems changes behind its TeleChat-line models, reporting speed gains but no model-quality results.

    arXiv preprint · 17 November 2026
    orange fractal reaction-diffusion pattern on black
    orange fractal reaction-diffusion pattern on black

    Orange fractal reaction-diffusion pattern on black · Photo: Logan Voss

    Latent · One-pass image generation

    A frozen vision-language model learns to draw a 512-pixel image in one pass

    Jeveration picks all 128 image codes at once from a shared random state, trading some quality for speed, and the same checkpoint also edits images and predicts depth.

    arXiv preprint · 18 November 2026
    linocut of biplanes in a storm
    linocut of biplanes in a storm

    Linocut of biplanes in a storm · Photo: Museum Of New Zealand Te Papa Tongarewa

    Latent · Visual reward models

    An image judge that writes its own checklist before it gives a score

    A 2026 preprint trains a model to decide what matters for each picture, check each point, then score, and uses those judgements to train image generators and editors.

    arXiv preprint · 29 September 2026