GDN-2 training crashes traced to asymmetric erasure; the fix adds 6.8 points on 128K RULER

Stable Gated DeltaNet-2: Understanding and Mitigating Recurrent State Instability

Xichong Zhang, Xixuan Hao, Zhichen Liu, Le Zhou, Zeyu Zhang, Boyu Chen, Mingfei Lu, Zehao Lin, Bo Tang, Yonggang Zhang, Linyun Liu, Feiyu Xiong, Jianlin Su, Zhiyu Li

cs.CL, cs.LG

2026-11-25

Traces GDN-2's long-context training failures to asymmetric erasure; the fix, symmetric erasure plus decay-regulated residual writing, lifts 128K RULER from 4.82 to 11.62.

What problem this solves

Linear attention compresses the entire prefix into a fixed-size recurrent state, which buys linear-time training and constant-memory decoding. GDN-2, the newest entry in the delta-rule line, splits the shared scalar update gate into channel-wise erase and write gates; erasure gets finer control and in-context retrieval improves.

The cost is instability at long context. At 64K, 3 of 8 pretraining runs and 4 of 8 post-training runs ended with a NaN loss, in both recurrent-only and hybrid architectures. A quieter failure mode hides inside runs that finish: one model completed training with a normal loss curve while entries of its recurrent state reached 3.157×10^36, not far below the FP32 ceiling. Loss-based monitoring cannot catch this class of problem.

Method

The pathology sits in asymmetric erasure. When GDN-2 removes old content it reads along the gated key b⊙k but applies the modification along the original key k. Those directions need not be parallel, so the erase matrix is non-normal: every eigenvalue sits inside the unit circle, yet the operator norm can exceed 1. The paper proves that any nonzero shear γ lets a single erase step amplify state energy, and constructs two alternating admissible transitions whose gains compound token after token, so the state grows exponentially even after writing stops.

A replay of a run that NaN'd at step 2,058 makes the mechanism concrete. Keeping only the first 64 tokens' writes and zeroing the rest, with keys, gates, and decay held fixed, the states of GDN and KDA decay while GDN-2 keeps growing and overflows at token 52,736. Along the way the state's effective rank collapses toward 1: energy piles into a single direction, and representational capacity is gone before the numbers are.

The fix has two halves.

Two guarantees follow. Without writes, the state norm never increases; with writes, the bound tightens from the O(T) of plain linear attention to O(√T). The transition stays diagonal-plus-low-rank, and the residual depends only on chunk inputs, entering the same C×C triangular solve as a known term, so chunkwise parallel training carries over unchanged.

Results

Models at 1.6B parameters (1.60B recurrent, 1.55B hybrid), pretrained on 82.78B tokens of ProLong at 64K context for one epoch, 16 H800 GPUs per run. Baselines: GDN-2, KDA, and two existing stabilizers, D-Clip and β-Guard.

SettingMetricGDN-2Stable GDN-2
RecurrentRULER 128K avg4.8211.62 (+6.80)
RecurrentRULER 64K avg12.9516.34
Recurrent9-task avg accuracy50.39%50.39%
Hybrid9-task avg accuracy49.91%50.53% (+0.62)
RecurrentWikiText 64K PPL7.8047.759

In the recurrent 128K setting it also clears D-Clip (7.02), KDA (9.96), and β-Guard (10.82). The widest gap is Variable Tracking in the hybrid setting: 31.88 at 32K against 5.28 for the best baseline (KDA) and 0.00 for GDN-2. Ablations show both components matter: removing residual writing drops the RULER average from 25.43 to 22.22, removing decay regulation drops it to 13.53, with long-context retrieval hit hardest.

It does not win everywhere. At 128K in the hybrid setting it scores 8.78 against 10.52 for β-Guard, and the recurrent NIAH subset at 128K gives it 17.30 against 17.95. On language modeling, KDA posts the lowest perplexity across all four windows in the recurrent setting.

Why it matters

For teams training linear-attention or hybrid models, this is a directly usable result: the crash has a located cause, the fix comes with a proof, parameter count is unchanged, and the chunkwise training structure is untouched. The diagnostics transfer too; state norm and effective rank alarm long before the loss does, and anyone already running GDN-2 should log both. The +0.62 downstream gain is incremental, so the value ordering here is stability first, long-context retrieval second, general capability third. The work comes from a MemTensor-led team with authors from USTC, SUSTech, HKUST(GZ), SJTU, and HKUST, including Jianlin Su of kexue.fm.

Limitations

The authors state plainly that the theory is a worst-case existence construction; whether amplification occurs in practice depends on how the token sequence and the learned parameters interact. Validation covers 1.6B parameters, 82.78B tokens, and one epoch, with no larger-scale evidence. The hybrid 128K retrieval loss to β-Guard and slightly higher hybrid perplexity point to a real trade between stability and capacity. And every method's absolute RULER scores at 128K sit in the single digits or low teens, far from solved long-range retrieval.

Terms

Source

Related papers

All paper explainers