State-Dependent Adaptive Residual Scaling for Persistent Memory Channels
Scale residual linear attention memory writes using real-time recurrent state norms rather than static decay rates to allow new information storage into non-decaying, persistent memory channels.
Time
Compute level
Resources
What the paper used
Prerequisites
Scope
The Gap
In Section 4.1, Equation (13), and Section C.3, the residual write vector is scaled by the square root of one minus the squared decay factor to enforce a strict theoretical norm bound. When a channel requires long-term retention with decay near one and minimal erasure, this scaling factor forces the residual write amplitude to approach zero.
“As dt,i approaches one, the residual write vanishes in that channel; stronger decay permits a larger additional write.”
Limitation
Rigidly coupling residual write scaling to decay prevents the architecture from writing new information into channels that require persistent, long-term memory retention without forgetting.
Proposed Solution
Replace the static decay-dependent scaling factor with an energy-aware gate conditioned on the running Frobenius norm of the recurrent state. When the state norm remains well below the maximum theoretical safety threshold, allow the residual scaling factor to remain close to one even for channels with near-unity decay. Derive an adaptive contraction criterion that throttles the residual write amplitude only when recurrent state energy approaches a predetermined safety limit.
Why This Matters
Allowing independent writes into non-decaying channels is expected to boost multi-turn recall and persistent fact tracking over extended 128K+ sequences, closing the gap with non-recurrent attention.
How to Get Started
How to test it: Test whether state-dependent scaling outperforms fixed decay-regulated scaling on RULER needle-in-a-haystack tasks at 128K context length. Halt the approach if state energy exceeds 1e5 during training or if average RULER accuracy does not exceed the baseline by at least 1.0 point.
- Implement a state energy tracking module within the recurrent chunk boundary state update.
- Formulate the parameterization for state-dependent residual scaling such that the scaling multiplier dynamically smoothly interpolates between one and the conservative bound.
- Verify stability through offline simulation of synthetic adversarial inputs matching the worst-case singular alignment conditions of Corollary 3.2.
- Pretrain a 1.6B recurrent model configuration for 10,000 steps on 64K sequences and evaluate 128K RULER performance.
Suggested by AI. Adapt it to your setup.
Has This Been Done?
Works such as When Dynamic Scaling Fails address dynamic scaling and state feedback in linear-attention and SSM models, while A Hippocampus for Linear Attention deals with recurrent state retention. They do not cover state-dependent adaptive residual scaling conditioned on the running Frobenius norm to throttle write amplitude near safety limits.
- A Hippocampus for Linear Attention: An Exact Memory for What the Recurrent State Forgets · 2026 · 9 citations
- When Dynamic Scaling Fails: A Scale-State Feedback Governs Recurrent-State Quantization in Linear-Attention and SSM LLMs · 2026 · 0 citations
We searched OpenAlex and arXiv for “adaptive residual scaling recurrent state stability linear attention” and “State-Dependent Adaptive Residual Scaling for Persistent Memory Channels” and an AI compared the idea with the top 10 results. A small search can miss relevant work.
Source Paper
Stable Gated DeltaNet-2: Understanding and Mitigating Recurrent State InstabilityXichong Zhang, Xixuan Hao, Zhichen Liu +11 more · 2026
This paper investigates recurrent state instability in Gated DeltaNet-2 (GDN-2), demonstrating that asymmetric erase operators induce non-normal state transitions whose directional gains accumulate and trigger exponential state growth and training crashes during long-context training. To resolve this, the authors introduce Stable GDN-2, which enforces non-expansive recurrent state propagation via symmetric erasure while preserving update flexibility through decay-regulated residual writing. Evaluated at the 1.6B parameter scale across recurrent and hybrid configurations, Stable GDN-2 eliminates catastrophic numerical failures, guarantees an O(sqrt(T)) recurrent state norm bound, and improves long-context retrieval scores on RULER at 128K context length.
Related Ideas
- Depth-Wise Gated Delta-Rule Updates for Interference-Free Matrix MemoryRewirable Circuits in Transformers with Loom Attention🟡Fairly easy
- Hierarchical Decay Mechanisms for Infinite-Context MemorytttLRM: Test-Time Training for Long Context and Autoregressive 3D Reconstruction🟡Fairly easy
- Dynamic Content-Aware Segment Compression for Memory Encoder-DecodersMemOnce: A Scalable Memory Architecture for Large Language Models🟠Medium
- Adaptive Attention-Based Memory CompressionHelios: Real Real-Time Long Video Generation Model🟠Medium
- Token-Conditioned Input Injection and Adaptive Update Budgets in Loopback ResidualsLoopback Transformer: Towards a Unified View of Residual Looped Transformers🟠Medium