Manuscript Offprint

arXiv:2610.38578

Dual DeltaNet: Value-Side Memory Reorganization for Linear Attention

Yixiao Qian, Yaxin Zhang, Song Chen, Jiaxu Liu, Shengze Cai, Chao Xu

Abstract

Linear attention and state space models (SSMs) offer efficient alternatives to softmax attention by maintaining a fixed-size recurrent state, but this design requires careful management to preserve useful historical associations and limit interference. The delta rule helps reduce interference through correction of the value associated with each key, but it does not explicitly account for how related value features are distributed across the state. We observe that a state S∈Rdk×dvS \in \mathbb{R}^{d_k \times d_v} can be viewed as a bank of dkd_k addresses storing dvd_v-dimensional values. While a key-side read S⊤kS^\top k retrieves the value associated with kk, a value-side read SeSe aggregates addresses whose stored value features match the selector ee. Based on this observation, we propose Dual DeltaNet (DDN), which extends Kimi Delta Attention (KDA) with a two-sided delta rule. The key-side delta rule reads with the current key to correct its associated value, while the complementary value-side delta rule reads with selected features of the current value to reorganize the addresses it occupies. We derive a chunkwise parallel training algorithm and a rank-2 recurrence that increases arithmetic intensity during inference. Compared with KDA, GDN-2, and Mamba-3, DDN achieves the strongest overall performance across language modeling, zero-shot downstream tasks, and retrieval, while incurring modest training and inference overhead relative to KDA. Code: https://github.com/ReichtumQian/DualDeltaNet

1. Introduction

Transformers have become the dominant backbone of modern large language models (Vaswani et al., 2017). How-

ever, full attention incurs quadratic computation in sequence length during training, while autoregressive inference maintains a token-level KV cache that grows linearly with the context length. Modern recurrent sequence models, including state space models (SSMs) and linear attention, offer efficient alternatives by processing sequences through recurrent state updates and compressing the history into a fixed-size state (Gu & Dao, 2023; Dao & Gu, 2024; Qian et al., 2026a; Katharopoulos et al., 2020). This recurrent formulation enables linear-time sequence processing and fixed-size inference memory, and recent work has shown that such models can achieve language-modeling performance competitive with Transformers (Yang et al., 2025; Zhang et al., 2025; Lahoti et al., 2026). This compression, however, introduces a fundamental challenge: the recurrent fixed-size state must continuously accommodate new information while preserving useful historical associations and avoiding interference among them. Prior studies on associative recall, copying, and long-context retrieval suggest that recurrent models can be less effective at retrieving precise information than softmax attention in certain settings. (Arora et al., 2024a; Jelassi et al., 2024; Waleffe et al., 2024). Therefore, effectively utilizing the recurrent fixed-size state while maintaining reliable associative memory remains a central challenge.

Prior work has sought to improve recurrent-state utilization along several complementary directions. The Mamba family improves the underlying state-space dynamics: Mamba introduces input-dependent selective propagation and forgetting, Mamba-2 develops state space duality and a more efficient structured recurrence, and Mamba-3 combines a more expressive discretization with complex-valued states and multi-input multi-output updates (Gu & Dao, 2023; Dao & Gu, 2024; Lahoti et al., 2026). In parallel, the DeltaNet family improves the associative update itself. DeltaNet uses the delta rule to correct the value associated with the current key (Schlag et al., 2021), and a subsequent parallel formulation enables efficient training over sequence length (Yang et al., 2024). Gated DeltaNet (GDN) adds an adaptive forgetting gate, Kimi Delta Attention (KDA) extends decay to individual key channels, and Gated DeltaNet-2 (GDN-2) further decouples erasure from writing (Yang et al., 2025; Zhang et al., 2025; Hatamizadeh et al., 2026). Preconditioned GDN (PGDN) and Kalman Delta Networks (KDNs)

¹College of Control Science and Engineering, Zhejiang University ²Polytechnic Institute, Zhejiang University ³Department of Mathematics, National University of Singapore ⁴School of Science, Huzhou Normal University. Correspondence to: Song Chen song.chen@nus.edu.sg, Shengze Cai shengze_cai@zju.edu.cn, Chao Xu cxu@zju.edu.cn.

Preprint.

further refine residual writes using curvature and uncertainty information, respectively (Tumma et al., 2026; Bui et al., 2026). Another line organizes memory into explicit slots with separately maintained key and value states. Gated Slot Attention (GSA) uses input-dependent routing and adaptive forgetting to update these slots, Raven sparsifies this routing so that each token modifies only a selected subset of slots, and GSA2 implements two-sided correction through separate key-slot and slot-value recurrences, using Gated Oja Rule-2 and Gated Delta Rule-2, respectively (Zhang et al., 2024; Afzal et al., 2026; Li et al., 2026). These approaches improve recurrent memory through richer dynamics, associative correction, or explicit slot routing.

Linear attention constructs an associative state St∈Rdk×dvS_t \in \mathbb{R}^{d_k \times d_v} by accumulating an outer-product update ktvt⊤k_t v_t^\top from each token, where kt∈Rdkk_t \in \mathbb{R}^{d_k} and vt∈Rdvv_t \in \mathbb{R}^{d_v}. Viewed row-wise, this state StS_t forms a bank of dkd_k addresses, each carrying a dvd_v-dimensional value representation. In this view, ktk_t serves two roles: it is the semantic key matched by subsequent queries, and it acts as the write-address vector in the outer-product update ktvt⊤k_t v_t^\top, determining how vtv_t is distributed across the address bank. For vanilla linear attention with S0=0S_0 = 0, these two roles appear in the state construction and readout:

St=∑j=1tkjvj⊤S_{t}=\sum_{j=1}^{t}k_{j}v_{j}^{\top}

(write address),

St⊤qt=∑j=1tvj(kj⊤qt)S_{t}^{\top}q_{t}=\sum_{j=1}^{t}v_{j}(k_{j}^{\top}q_{t})

(semantic matching).

Existing delta rules use the key-side read St−1⊤ktS_{t-1}^{\top}k_t to correct the value associated with the current key, but do not explicitly examine how related value features are distributed across different addresses. Building on DART's observation that value-side reads from recurrent states can decode token-conditioned keys (Qian et al., 2026b), we exploit this complementary operation to guide associative memory updates. While linear attention is designed for key-to-value retrieval and a value-side read does not generally invert this mapping to recover semantic keys, this read can reveal how selected value features are represented across the recurrent state's addresses. Specifically, given a value-side selector et∈Rdve_t \in \mathbb{R}^{d_v}, the response St−1et∈RdkS_{t-1}e_t \in \mathbb{R}^{d_k} aggregates the address directions associated with the selected value features, as illustrated in Figure 1(a). The resulting state-dependent address vector can guide the reorganization of related value content within the associative memory.

Motivated by this observation, we propose Dual DeltaNet (DDN), which extends KDA with complementary key-side and value-side delta rules. While the key-side delta rule corrects the value associated with the current key ktk_{t}, the value-side delta rule adjusts the addresses of value features.

Specifically, DDN constructs a selector ete_t by applying a sigmoid channel gate to the normalized value direction v^t\hat{v}_t. The value-side read StetS_t e_t aggregates stored address directions weighted by their alignment with the selected value features. For each outer-product write kjvj⊤k_j v_j^\top, the value-side read gives (kjvj⊤)et=(vj⊤et)kj(k_j v_j^\top) e_t = (v_j^\top e_t) k_j, weighting its write address by the selected value features. The value-side delta rule moves the aggregated address toward (vt⊤et)kt(v_t^\top e_t) k_t, the corresponding address of the current key-value association, as illustrated in Figure 1(b). This correction reorganizes value-conditioned address occupancy within the state, potentially reducing redundant storage and interference. Our contributions are summarized as follows:

• We introduce Dual DeltaNet (DDN), which applies a key-side delta rule to correct the value associated with the current key and a complementary value-side delta rule to reorganize value content across addresses within the same associative state.

• We develop efficient training and inference algorithms for DDN. For training, we extend KDA's chunkwise parallel formulation using two-sided compact WY factorizations. For inference, we express the recurrence in a rank-2 factorized form that increases theoretical arithmetic intensity during memory-bound decoding. Our experiments show modest training and inference overhead relative to KDA, with efficiency competitive with GDN-2 and Mamba-3 MIMO.

• We compare DDN with KDA, GDN-2, and Mamba-3 on language-model pretraining, zero-shot downstream tasks, real-world retrieval tasks, and synthetic NIAH tasks. DDN achieves the strongest overall performance across the 130M, 340M, and 1B scales, with the most pronounced gains on the needle-in-a-haystack benchmark.

References (43)