| type | braintank dispatch |
|---|---|
| headline | A symmetric way to forget keeps a linear-attention model's memory from blowing up |
| dek | 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. |
| date | 2026-11-29 |
| section | Latent · Linear attention stability |
| paper | Stable Gated DeltaNet-2: Understanding and Mitigating Recurrent State Instability |
| status | preprint, not peer reviewed |
| original | https://braintank.ai/a/arxiv-2611.34051.html |
| cite | |
| text | 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. |