Stable Gated DeltaNet-2: Understanding and Mitigating Recurrent State Instability
Summary (Overview)
-
Identifies a fundamental instability in Gated DeltaNet-2 (GDN-2): The asymmetric coupling between channel-wise erase gates and keys creates non-normal erase operators that can amplify recurrent state energy, leading to training failures during long-context training.
-
Provides theoretical characterization: Proves that GDN-2's erase operator can have spectral norm > 1 despite all eigenvalues having magnitude ≤ 1, and demonstrates that directional gains can accumulate across tokens, causing unbounded state growth even without further writes (Corollary 3.2).
-
Proposes Stable GDN-2: A stabilization mechanism using symmetric erasure (splitting the erase gate into two square-root factors applied to each key factor) plus a decay-regulated residual writing path, guaranteeing non-expansive state propagation while retaining channel-wise gating flexibility.
-
Establishes theoretical guarantees: Proves an upper bound on recurrent state growth (Proposition 4.2) while maintaining chunkwise parallel computation compatibility.
-
Demonstrates empirical improvements: On 1.6B parameter models, Stable GDN-2 improves 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 compared to GDN-2.
Introduction and Theoretical Foundation
Background
Linear attention offers efficient long-sequence modeling through linear complexity and fixed-size recurrent states. The field has evolved from basic linear attention (Katharopoulos et al., 2020) through delta-rule updates (Schlag et al., 2021; Yang et al., 2024b) to gated variants like Gated DeltaNet (GDN) and Kimi Delta Attention (KDA). GDN-2 (Hatamizadeh et al., 2026) represents the latest advance, introducing independent channel-wise erase and write gates for more expressive state updates.
The Core Problem
The fundamental issue lies in GDN-2's erase operation asymmetry:
Here, the erase gate weights the key coordinates used to read content for erasure, but the modification is applied along the original key . Since and need not be parallel, the erase matrix need not be symmetric.
Theoretical Foundation
The key insight is that non-symmetric matrices can be non-normal, meaning they can amplify certain directions even when all eigenvalues have magnitude ≤ 1. This is formalized through the decomposition of the erase operator:
which yields the two-dimensional representation:
The shear parameter measures the asymmetry; when , the operator can amplify state energy.
Methodology
Theoretical Analysis
Theorem 3.1 (Single-step amplification in GDN-2) establishes that for :
The spectral norm equals 1 if and only if (i.e., and are collinear); otherwise, .
Corollary 3.2 (Unbounded growth without further writes) proves that there exist admissible sequences of GDN-2 updates such that:
after a finite nonzero write at the first token, even with no writes at subsequent tokens.
Stable GDN-2 Architecture
The proposed solution has two key components:
1. Symmetric Erasure: Split the erase gate into two square-root factors:
2. Decay-Regulated Residual Writing: Add a residual path with amplitude regulated by decay:
The complete update becomes:
Stability Guarantees
Proposition 4.1 (Non-expansive transitions without writes):
Proposition 4.2 (Recurrent state norm bound) with :
Chunkwise Parallel Computation
Stable GDN-2 retains the chunkwise parallel structure through a Diagonal-Plus-Low-Rank (DPLR) transition. The computation involves:
- Precomputing chunk-local auxiliaries via triangular solves
- Propagating boundary states recurrently across chunks
- Computing output blocks in parallel
Empirical Validation / Results
Training Stability
Table 1 shows training failures across regimes:
| Architecture | Pretraining | Post-training | Pretraining → Post-training |
|---|---|---|---|
| GDN-2 Recurrent | 1/4 | 1/4 | 0/3 |
| GDN-2 Hybrid | 2/4 | 3/4 | 0/2 |
Stable GDN-2 achieves stable training across all configurations.
Downstream Performance (Table 2)
Recurrent Setting:
- Stable GDN-2 achieves 50.39% average accuracy, matching GDN-2 while outperforming D-Clip (49.10%), β-Guard (48.89%), and KDA (49.02%)
- Lower WikiText perplexity than GDN-2 across all context windows (7.801 vs 7.849 at 8K)
Hybrid Setting:
- Stable GDN-2 achieves the highest average accuracy of 50.53%, improving over GDN-2 by 0.62 percentage points
Long-Context Retrieval (Table 3)
Recurrent Setting at 128K:
- Stable GDN-2: 11.62 average RULER score
- GDN-2: 4.82, D-Clip: 7.02, β-Guard: 10.82, KDA: 9.96
Notable advantage on Variable Tracking (Hybrid setting):
- Stable GDN-2: 31.88 at 32K, 17.80 at 64K
- All baselines: < 5.28 at 32K
Ablation Studies
Removing either component degrades performance:
- Removing residual writing (RW): accuracy drops from 50.39% to 49.43%, RULER score from 25.43 to 22.22
- Removing decay regulation (DR): RULER score drops to 13.53, accuracy to 49.18%
Theoretical and Practical Implications
Theoretical Implications
-
Non-normality as a stability criterion: The work demonstrates that spectral analysis alone is insufficient for assessing recurrent state stability in linear attention models; non-normal operators require explicit control of directional gains.
-
Generalization to other architectures: The findings suggest that any delta-rule variant introducing asymmetry between read and write directions may face similar instability issues.
-
O(√T) growth bound: The theoretical guarantee provides a principled framework for understanding how decay regulation and symmetric erasure jointly control state growth.
Practical Implications
-
Training reliability: Stable GDN-2 eliminates numerical failures during long-context training, reducing the risk of wasted computational resources.
-
Improved retrieval: The stabilization enables better long-context retrieval, particularly in purely recurrent architectures where GDN-2 suffers most.
-
Architecture design guidance: The work provides concrete design principles—symmetric erasure and decay-regulated residual writing—that can guide future linear attention architecture development.
Conclusion
This work identifies asymmetric erasure as a fundamental source of recurrent state instability in GDN-2, providing both theoretical characterization and empirical evidence of the failure mechanism. The proposed Stable GDN-2 solution combines:
- Symmetric erasure to guarantee non-expansive state propagation
- Decay-regulated residual writing to preserve writing flexibility
The approach maintains chunkwise parallel computation and achieves stable training alongside improved long-context retrieval and downstream performance. Key results include a 6.80-point improvement in 128K RULER scores (recurrent setting) and a 0.62-point improvement in downstream accuracy (hybrid setting) over GDN-2.
Future directions may include:
- Extending the stability analysis to other linear attention variants
- Exploring adaptive decay regulation mechanisms
- Investigating the relationship between state capacity and retrieval performance in stabilized architectures
Related papers
- Unlocking the Power of Loops in Pretrained LLMs with Loop Residuals
LoopRes finetunes pretrained LLMs into looped Transformers, adding loop-aware keys and residual windows to boost math and code scores by up to 29.1% over SFT.
- Harness-Delta Attribution: Dissecting Gains From Harness Evolution
Across 21 settings, harness evolution gains are largely overfitting (54%) and test-time scaling (14%), with only a residual upper bound on generalizable improvement.
- Hidden Sensitivity in LLM Pre-training: A Dynamic System View
Tiny weight perturbations amplify into divergent LLM predictions despite unchanged validation loss, and sensitivity-timed stabilization restores 88.3% generation agreement at only 0.11 nats cost.