Skip to content
AI-generated research idea🟠Medium💡Moderate InnovationRelated work found

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

several weeks

Compute level

Large cluster

Resources

16 NVIDIA H800 GPUs, ProLong dataset, and ChatQA long-context SFT data.

What the paper used

Training uses BF16 mixed precision and full activation recomputation on 16 NVIDIA H800 GPUs per run across 39,473 optimizer steps on 82.78B tokens.

Prerequisites

Lyapunov stability analysis, state space models, recurrent neural network dynamics

Scope

modify existing code

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.”
From the paper, Section 4.1, page 6. Matched against the PDF text.

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.

  1. Implement a state energy tracking module within the recurrent chunk boundary state update.
  2. Formulate the parameterization for state-dependent residual scaling such that the scaling multiplier dynamically smoothly interpolates between one and the conservative bound.
  3. Verify stability through offline simulation of synthetic adversarial inputs matching the worst-case singular alignment conditions of Corollary 3.2.
  4. 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?

Related work found

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.

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 Instability

Xichong 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

Is this a good idea?

Share onXLinkedIn