Stable Gated DeltaNet-2: Understanding and Mitigating Recurrent State Instability
Organizations: MemTensor · USTC · HKUST(GZ) · SUSTech ·
Abstract
Linear attention offers an efficient solution for long-sequence modeling via linear complexity and fixed-size recurrent states. Gated DeltaNet-2 (GDN-2) introduces independent channel-wise control over erasure and writing, enhancing state-update expressiveness and in-context retrieval, yet it suffers from training failures during long-context training. We trace these failures to the asymmetry between reading and modification directions during erasure, which yields non-normal erase operators whose directional gains accumulate across tokens, triggering exponential state growth even without new writes. To resolve this, we propose \model{}, employing symmetric erasure to ensure non-expansive state propagation and decay-regulated residual writing to preserve writing flexibility. Theoretically, we establish an upper bound on recurrent state growth while retaining chunkwise parallel computation. Experiments on ~1.6B parameter models show that \model{} achieves stable training alongside improved long-context retrieval. Compared to GDN-2, it boosts the 128K average RULER score by 6.80 points in the recurrent setting and average accuracy across nine downstream tasks by 0.62 points in the hybrid setting.
Figures & tables
| Architecture | Pretraining | Post-training | Pretraining Post-training | |
| GDN-2 | Recurrent Model | 1/4 | 1/4 | 0/3 |
| Hybrid Model | 2/4 | 3/4 | 0/2 | |
| Method | Accuracy (%) | WikiText PPL | LAMBADA PPL | ||||||||||||
| Average | PIQA | Hella Swag | Wino Grande | ARC-C | ARC-E | Open BookQA | Social IQA | BoolQ | LAMBADA | 8K | 16K | 32K | 64K | ||
| Recurrent Setting | |||||||||||||||
| GDN-2 | 50.39 | 71.27 | 52.21 | 56.35 | 30.29 | 54.42 | 35.20 | 40.12 | 58.04 | 55.56 | 7.849 | 7.838 | 7.825 | 7.804 | 7.856 |
| D-Clip | 49.10 | 70.67 | 51.65 | 55.96 | 28.41 | 53.11 | 34.60 | 41.76 | 51.99 | 53.72 | 7.889 | 7.877 | 7.873 | 7.871 | 8.691 |
| -Guard | 48.89 | 70.29 | 51.46 | 57.46 | 29.69 | 55.05 | 32.80 | 41.15 | 50.89 | 51.25 | 7.858 | 7.835 | 7.820 | 7.806 | 9.543 |
| KDA | 49.02 | 71.60 | 52.95 | 56.99 | 31.31 | 53.70 | 37.00 | 40.53 | 44.13 | 53.00 | 7.697 | 7.695 | 7.688 | 7.677 | 9.250 |
| Recurrent Setting | ||||||||||
| Model | Seq Len | Avg. | NIAH | MQ | MV | CWE | FWE | QA-H | QA-S | VT |
| GDN-2 | 32K | 15.85 | 28.65 | 4.40 | 10.00 | 0.20 | 19.73 | 12.60 | 7.95 | 4.84 |
| 64K | 12.95 | 24.45 | 2.25 | 4.30 | 0.20 | 13.33 | 11.60 | 6.95 | 6.04 | |
| 128K | 4.82 | 2.35 | 2.40 | 2.55 | 0.32 | 12.87 | 11.80 | 6.15 | 7.48 | |
| D-Clip | 32K | 17.34 | 27.80 | 5.15 | 11.40 | 5.40 | 35.40 | 12.60 | 6.93 | 2.68 |
| 64K | 11.94 | 15.75 | 3.35 | 5.45 | 1.60 | 34.13 | 10.60 | 6.15 | 7.08 | |
Appendix figures & tables2 assets
Supplementary material from the paper’s appendix.
Appendix
| Model | Seed | Pretraining | Post-training | Pretraining Post-training |
| Pure Linear | 1 | |||
| 2 | ✗ | |||
| 3 | ||||
| 4 | ✗ | — | ||
| Hybrid | 1 | ✗ | ||
| 2 | ✗ | ✗ | — |
Gated Delta Networks
Gated Delta Networks are recurrent linear-attention models that update compressed memory with gated, error-correcting delta-rule writes.
See all 29 papers