SDG: State-Dependent Gating at Chunk Boundaries for Linear Attention
Abstract
Recent gated linear attention models use state-independent gates, computed from token representations without directly reading the recurrent memory. This design supports efficient chunkwise computation: sequences are divided into chunks of consecutive tokens, with parallel computation within each chunk. However, the same token representation produces the same gate, even when the layer stores different information. We introduce State-Dependent Gating (SDG), which computes element-wise gates from the change in memory over a chunk and applies them at the chunk boundary. This provides state feedback for forgetting while preserving parallel computation within each chunk. We develop fused kernels for Gated DeltaNet, Kimi Delta Attention, Gated DeltaNet-2, and Mamba-3. Our theoretical analysis quantifies the potential reconstruction benefits of state-dependent, element-wise gating under a signal--noise model. We also show that boundary decay is an element-wise ridge proximal step when the gate is held fixed. Empirical evaluation of 1.3B linear attention and hybrid models trained on 100B tokens shows improvements across language modeling, commonsense reasoning, synthetic and real-world retrieval, and long-context understanding. These results demonstrate that SDG is an effective approach to enhancing existing linear attention models.
Create a lesson
Related papers
In-context classification: Calibration and noise in linear attention with softmax readout
Shared title terminology · Arman Rysmakhanov, Mary Letey, Yue M. Lu et al.
Not All Dimensions Are Equal: Outlier-Aware Attention Linearization with Grouped Quadratic Kernels
Shared title terminology · Weiqi Sun, Qianyue Wu, Wenjia Wang et al.
Improved Leverage Score Sampling for Constrained Active Linear Regression
Shared title terminology · Aarshvi Gajjar, Syamantak Kumar, Aditya Makkar et al.
Taking Band-Limited Maximum Likelihood to High Dimensions: Linear Memory, the Parametric Rate, and a Self-Tuning Cut-off
Shared title terminology · Rahul Agarwal, Ankit Agarwal
Trajectory-Based Bayesian Discovery of a Host-Pathogen Model from Quasi-Steady-State Observations
Shared title terminology · Reymart Salcedo Lagunero, Andreas Langer, Cordula Reisch
Outliers and the Hard-Margin Linear SVM in High-Dimension, Low-Sample-Size Settings
Shared title terminology · Yugo Nakayama