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 Alog and dtbias 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.
Create a lesson
Metadata
- Categories
- cs.AI, cs.CL
Related papers
Latent Sparse Attention: Towards Subquadratic Ultra-Long Context Attention
Shared title terminologycs.AIAles Kubicek, Andrea Caciolai, Liangzu Peng et al.
Who Asks, Who Answers: Linear Attention Builds the Query in Hybrid Language Models
Shared title terminologycs.AIWenqi Zeng, Chen Feng, YuAng Chen
Just-in-Time Skill Retrieval via Long-Horizon State Tracking
Shared title terminologycs.AIXin Lin, Ziheng Wang, Zerui Chen et al.
EMG-Hybrid: A Dual-Engine Elite Memory--Guided Adaptive Optimization Framework for High-Dimensional Feature Selection
Shared title terminologycs.AISaba Zare, Mohammad Taheri
Constraint Dependency Graph Retrieval for Compliance Detection on Long SKILL Documents
Shared title terminologycs.AIShuaitao Zhao, Feng Ni, Lichao Ma et al.
VCoT-SQL: Enhancing Text-to-SQL Generation through Dual Chain-of-Thought Validation Training
Shared title terminologycs.AIRui Zhang, Yujia Su, Ruixuan Li et al.