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

DevFeed: [DAMI: Dual-Axis Memory Initialization for Enhanced Long-Context Retrieval in Gated Linear Attention](<https://devfeed.tech/articles/dami-dual-axis-memory-initialization-for-enhanced-long-context-retrieval-in-gated-linear-attention-112133.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2610.41994>)

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

Published: 2026-11-02T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>)

Topics: [Enhancing AI model performance](<https://devfeed.tech/topics/enhancing-ai-model-performance.md>), [Mamba](<https://devfeed.tech/topics/mamba.md>)

Tags: [activation](<https://devfeed.tech/tags/activation.md>), [attention](<https://devfeed.tech/tags/attention.md>), [context](<https://devfeed.tech/tags/context.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [cs-cl](<https://devfeed.tech/tags/cs-cl.md>), [gate](<https://devfeed.tech/tags/gate.md>), [input](<https://devfeed.tech/tags/input.md>), [language](<https://devfeed.tech/tags/language.md>), [layers](<https://devfeed.tech/tags/layers.md>), [linear](<https://devfeed.tech/tags/linear.md>), [long-context](<https://devfeed.tech/tags/long-context.md>), [memory](<https://devfeed.tech/tags/memory.md>), [retrieval](<https://devfeed.tech/tags/retrieval.md>), [sequence](<https://devfeed.tech/tags/sequence.md>), [state](<https://devfeed.tech/tags/state.md>), [training](<https://devfeed.tech/tags/training.md>)

## AI overview

DAMI targets long-context retrieval limits in gated linear attention by jointly initializing gate parameters A_log and dt_bias before training. It assigns geometric memory timescales across heads and a low-high-low input-sensitivity profile across layers; a small activation sample calibrates the GDN-family implementation, with no added trainable parameters. In experiments on GDN, KDA, GDN2, Mamba-2, and RWKV-7, it improved average RULER-style retrieval accuracy by 5.29-16.71 percentage points over random-initialization baselines. Language modeling, commonsense reasoning, and 2K real-world retrieval performance remained broadly comparable. The supplied text describes abstract-level findings, not the full paper.

## Source excerpt

arXiv:2610.41994v1 Announce Type: new 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 to 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. Our code is available at https://speedai.com/research/dami.