arXiv:2610.41994cs.AIOct 2026

Manuscript Offprint

arXiv:2610.41994

DAMI: Dual-Axis Memory Initialization for Enhanced Long-Context Retrieval in Gated Linear Attention

Zhangchi Feng, Harry Jiang, Yangyifei Luo, Ray Zhang, Richong Zhang

Abstract

Linear attention scales linearly with sequence length, but its finite-state memory can limit long-context retrieval. In gated linear recurrences, memory retention depends on state decay, which is shaped jointly by gate parameters A_log and dt_bias and by input activations. In controlled Gated DeltaNet (GDN) experiments, both parameters remain highly correlated with their initial values after training, highlighting the importance of initialization. Therefore, we introduce Dual-Axis Memory Initialization (DAMI), which jointly configures these parameters before training. DAMI assigns geometric timescales across heads for varied retrieval distances and a low-high-low input-sensitivity profile across layers. A small activation sample calibrates the GDN-family implementation to match both behavioral targets without adding trainable parameters. Across GDN, KDA, GDN2, Mamba-2, and RWKV-7, DAMI improves average RULER-style retrieval accuracy by 5.29–16.71 percentage points over the corresponding random-initialization baselines. Performance on language modeling, commonsense reasoning, and 2K real-world retrieval remains broadly comparable to those baselines. 1^{1}

1 Introduction

Long-context retrieval requires retaining distant information despite intervening distractors. Linear attention and gated recurrences replace softmax attention's quadratic computation and growing cache with fixed-size states (Vaswani et al., 2017; Katharopoulos et al., 2020). Retrieval remains challenging even as recurrent architectures advance (Arora et al., 2024a,b; Yang et al., 2025;

Figure

Figure 1: Dual-axis memory initialization. (a) Diverse head-wise timescales broaden memory coverage across evidence-query distances; curves illustrate normalized exponential decay. (b) Schematic uniform-high and uniform-low Random regimes illustrate recent-pair bias and mixed memories, contrasted with DAMI's low-high-low sensitivity profile. Text excerpts are from RULER; placements and outcomes are schematic.

Kimi Team, 2025; Hatamizadeh et al., 2026). We investigate decay-gate initialization as a means of improving memory without changing state-update operators.

In controlled Gated DeltaNet (GDN) runs, the learnable memory parameters A_log and dt_bias remain highly correlated with their initial values (Section 3.2), motivating structured initialization. PoST improves long-range memory through geometric decay spectra and position-adaptive scaling (Cao, 2026). Realized decay, however, depends jointly on the decay multiplier A_log, the Softplus

1^{1}Our code is available at https://speedai.com/research/dami.

operating region shifted by dt_bias, and input activations. Achieving intended memory behavior therefore requires coordinating both parameters.

We propose Dual-Axis Memory Initialization (DAMI): geometric target timescales across heads and a low-high-low input-sensitivity profile across layers. Approximate power-law dependencies in text and their exponential-mixture representation motivate multiscale coverage (Altmann et al., 2012; Lin and Tegmark, 2017; Beylkin and Monzón, 2010), while different representation stages motivate depth-dependent responses. Figure 1 illustrates these complementary requirements. DAMI jointly calibrates both targets from actual activations before training. Its GDN-family implementation adjusts native memory parameters; Mamba-2 and RWKV-7 use architecture-specific extensions (Section 3.5).

Across approximately 100M-parameter GDN, KDA, GDN2, Mamba-2, and RWKV-7 models trained on 5B tokens, DAMI improves average RULER-style NIAH accuracy (Hsieh et al., 2024) by 5.29–16.71 percentage points over Random and outperforms PoST-style spectral initialization. Language modeling, commonsense reasoning, and real-world retrieval remain broadly comparable.

Our main contributions are:

  • We identify persistent correlations between initial and trained GDN memory parameters, motivating structured initialization.

  • We introduce DAMI, jointly configuring head-wise timescales and layer-wise sensitivities, with extensions to Mamba-2 and RWKV-7.

  • Five-architecture experiments demonstrate improved retrieval with broadly comparable general capabilities; GDN ablations establish the benefit of the joint configuration.