Linear attention is attractive for long sequences because its computation scales linearly with sequence length and its recurrent state has a fixed size. But compact memory is not automatically stable memory. If repeated updates amplify even a small component of the state, that growth can compound over a long context. A study of Gated DeltaNet-2 (GDN-2) investigates one such failure and proposes a modification designed to retain efficient recurrent processing.
How erasure can amplify state
GDN-2 gives the model independent, channel-wise controls for erasing old information and writing new information. This added flexibility can improve state updates and in-context retrieval. The paper identifies a problem in the erasure step: the directions used to read state and to modify it are asymmetric. That asymmetry can produce a non-normal erase operator, whose gains vary by direction. Even if an update is intended to erase information overall, directional gains can accumulate across tokens. The recurrent state may then grow exponentially, including in periods with no new writes, contributing to failures during long-context training.
The proposed changes
Stable GDN-2 changes how erasure and writing interact:
- Symmetric erasure is designed to make state propagation non-expansive, reducing the risk of repeated directional amplification.
- Decay-regulated residual writing aims to preserve flexibility when adding information while keeping state growth in check.
- Chunkwise parallel computation is retained, so the approach keeps a key computational feature of the original linear-attention setup.
The paper's text gives an O(√T) upper bound on recurrent state growth, where T is sequence length. There is a discrepancy in the supplied source material: its summary says O(T), while the paper text says O(√T). This article uses the latter and flags the mismatch rather than silently treating the two claims as equivalent.
Results and significance
Experiments with models of roughly 1.6 billion parameters report stable training alongside better long-context retrieval. Relative to GDN-2, Stable GDN-2 improves the average RULER score at 128K by 6.80 points in the recurrent setting. In the hybrid setting, average accuracy across nine downstream tasks rises by 0.62 points. The supplied material does not give absolute scores or statistical significance, so these gains should not be read as evidence of uniform improvement on every task.
The broader contribution is a reminder that fixed-size recurrent memory does not guarantee bounded numerical behavior. The direction in which an update erases state can matter as much as the design of new writes. If the stability approach holds across further models and training regimes, it could make linear-attention systems more dependable for long-context learning without giving up their recurrent and parallel-processing advantages.
Source: Hugging Face Daily Papers
Comments
Checking sign-in status...
Loading comments...