betaFeedback

WorksComputer Science

Integral DeltaNet: Improved Linear Attention with Adaptive Memory Integration

Abstract

Linear attention replaces softmax attention with a linear formulation, enabling linear-time computation with a fixed-size recurrent state instead of a growing key-value cache. These computational and memory advantages have attracted growing interest in linear attention for long-context language modeling. However, compressing past information into a fixed-size state causes memory collisions that hinder long-context understanding. Although DeltaNet mitigates memory collisions through delta-rule updates and Gated DeltaNet extends this approach with gating, these mechanisms may also discard information relevant to future predictions. To address this limitation, we introduce Integral DeltaNet, which maintains two complementary recurrent states: a fast-updating delta state that captures current key-value associations and an integral state that preserves a weighted history of the delta state. At readout, the model adaptively combines these states to access information across different timescales. We further derive a chunkwise parallel formulation that enables hardware-efficient training. We evaluate Integral DeltaNet using 340M and 1.3B parameter models trained from scratch on 15B and 100B FineWeb-Edu tokens, respectively. Comparisons with strong recurrent baselines show improved overall performance in language modeling, commonsense reasoning, real-world and synthetic retrieval, long-context understanding, and length extrapolation. We also compare training throughput and activation memory, as well as decoding latency and memory.

github.com/junsoo424/Integral-DeltaNet

Introduction

Most modern large language models (LLMs) are built on the Transformer architecture ([68]), whose softmax attention enables effective sequence modeling and hardware-efficient parallel training on GPUs. However, its computation scales quadratically with context length, and the key–value cache grows linearly during autoregressive inference. The demand for longer contexts has motivated alternatives with linear computational complexity and constant memory usage in sequence length. Linear attention ([36]) achieves this through a kernelized dot-product formulation that admits a matrix-valued linear recurrence, supporting parallel training and efficient recurrent inference. Although early linear attention models ([12, 57]) struggled to match Transformers in language modeling, recent variants have become increasingly competitive and have been incorporated into frontier-scale models such as Qwen3-Next ([58]) and Kimi K3 ([39]).

Recent linear attention architectures control memory through decay or gating, as in RetNet ([65]), Mamba-2 ([13]), and Gated Linear Attention ([71]) or delta-rule updates, as in DeltaNet ([61, 72]). These mechanisms mitigate memory collisions caused by compressing many key–value associations into a fixed-size state ([61]). Gating reduces previously stored associations, whereas the delta rule performs targeted updates by removing the value currently associated with an incoming key before writing the new association. Gated DeltaNet (GDN) ([73]) combines these mechanisms, while Kimi Delta Attention (KDA) ([38]) and Gated DeltaNet-2 (GDN-2) ([25]) introduce more expressive updates. However, both decay and targeted overwriting can discard information needed over long contexts. In this work, we address the following question:

Can we mitigate memory collisions while better retaining information needed for the future?

We propose Integral DeltaNet, which addresses this limitation using two states operating at different timescales: a fast delta state StS_t, updated using an expressive linear-attention rule such as Kimi Delta Attention or Gated DeltaNet-2, and a slow integral state XtX_t, which maintains a channel-wise weighted history of past delta states. As illustrated in Figure 1, the model adaptively combines the two states at readout, enabling it to access information across multiple timescales.

Schematic of Integral DeltaNet showing context, integral state, delta state, and gated readout

Figure 1. Integral DeltaNet. The integral state accumulates a weighted history of delta states. At readout, the model adaptively combines both states to access information across timescales.

We derive a chunkwise parallel formulation for Integral DeltaNet that enables hardware-efficient training and use it to train 340M- and 1.3B-parameter models from scratch on 15B and 100B tokens, respectively. We compare these models with strong recurrent baselines and Transformer++ on language modeling, commonsense reasoning, and real-world retrieval at both scales. We further evaluate the 1.3B models on tasks requiring longer contexts: synthetic retrieval, long-context understanding, and length extrapolation. We observe gains over the backbones across multiple tasks and also compare training throughput and activation memory, as well as decoding latency and memory.

Preliminaries

Linear Attention

Linear attention ([36]) replaces softmax-normalized query–key similarities with a kernelized dot product, yielding the output at position tt as

ot=∑i=1tvi(kiTqt)=(∑i=1tvikiT)qt∈Rdv,o_t = \sum_{i=1}^{t} v_i(k_i^\mathsf{T}q_t) = \left(\sum_{i=1}^{t}v_i k_i^\mathsf{T}\right)q_t \in\mathbb{R}^{d_v},

where ktk_t, qt∈Rdkq_t \in\mathbb{R}^{d_k} and vt∈Rdvv_t \in\mathbb{R}^{d_v} denote the key, query, and value vectors, respectively. By maintaining a prefix state StS_t, the same computation can be written in recurrent form as

S0=0,St=St−1+vtktT∈Rdv×dk,ot=Stqt∈Rdv.(1)S_0 = 0,\qquad S_t = S_{t-1} + v_t k_t^\mathsf{T} \in\mathbb{R}^{d_v \times d_k},\qquad o_t = S_t q_t \in\mathbb{R}^{d_v}. \tag*{(1)}

For a sequence of length LL, the equivalent masked matrix form is

O=(QKT⊙M)V∈RL×dv,O = (QK^\mathsf{T} \odot M)V \in\mathbb{R}^{L \times d_v},

where QQ, K∈RL×dkK \in\mathbb{R}^{L \times d_k} and VV, O∈RL×dvO \in\mathbb{R}^{L \times d_v} are the query, key, value, and output matrices, respectively. The causal mask M∈{0,1}L×LM \in\{0,1\}^{L \times L} satisfies Mt,i=1M_{t,i}=1 for i≤ti \leq t and Mt,i=0M_{t,i}=0 otherwise.

Chunkwise Parallel Training. The recurrent form scales linearly with the sequence length LL but processes tokens sequentially, whereas the fully parallel form exploits efficient matrix multiplications at the cost of materializing an L×LL \times L interaction matrix. Chunkwise training ([27, 65, 72]) bridges this gap by partitioning the sequence into chunks of size CC, evaluating token interactions in parallel within each chunk, and propagating only a fixed-size state across chunks. Let N=⌊L/C⌋N = \lfloor L/C \rfloor be the number of chunks. For chunk [t][t], where t∈{0,…,N−1}t \in\{0,\ldots,N-1\}, let Q[t],K[t]∈RC×dk\mathbf{Q}_{[t]},\mathbf{K}_{[t]} \in\mathbb{R}^{C \times d_k} and V[t],O[t]∈RC×dv\mathbf{V}_{[t]},\mathbf{O}_{[t]} \in\mathbb{R}^{C \times d_v} denote the row-stacked query, key, value, and output matrices, and let S[t]:=StC\mathbf{S}_{[t]} := \mathbf{S}_{tC} denote the incoming state. Then, chunkwise form can be written as

O[t]=Q[t]S[t]T+(Q[t]K[t]T⊙MC)V[t],S[t+1]=S[t]+V[t]TK[t].\mathbf{O}_{[t]} = \mathbf{Q}_{[t]}\mathbf{S}_{[t]}^{\mathsf{T}} + \left(\mathbf{Q}_{[t]}\mathbf{K}_{[t]}^{\mathsf{T}} \odot\mathbf{M}_C\right)\mathbf{V}_{[t]}, \qquad\mathbf{S}_{[t+1]} = \mathbf{S}_{[t]} + \mathbf{V}_{[t]}^{\mathsf{T}}\mathbf{K}_{[t]}.

where MC∈{0,1}C×C\mathbf{M}_C \in\{0,1\}^{C \times C} is the causal mask within each chunk. This reduces the sequential depth from LL to approximately L/CL/C without constructing a global attention matrix. The same principle extends to many linear attention variants and underlies FlashLinearAttention (Yang and Zhang, [70]), whose fused chunkwise kernels enable efficient training on modern accelerators.

Memory Collision

Linear attention compresses all past key–value associations into the fixed-size state St\mathbf{S}_t. Assuming unit-normalized keys, retrieving the value associated with kj\mathbf{k}_j gives

Stkj=vj+∑i=1i≠jt(kiTkj)vi.\mathbf{S}_t\mathbf{k}_j = \mathbf{v}_j + \sum_{\substack{i=1\\i\ne j}}^{t} \left(\mathbf{k}_i^{\mathsf{T}}\mathbf{k}_j\right)\mathbf{v}_i.

The second term captures interference from other associations and vanishes when all other keys are orthogonal to kj\mathbf{k}_j; otherwise, it is generally nonzero. Therefore, storing a growing number of associations in the same state inevitably causes memory collision, particularly over long contexts.

DeltaNet mitigates this interference using a delta-rule update with input-dependent strength βt=sigmoid⁡(wβTht)\beta_t = \operatorname{sigmoid}(\mathbf{w}_{\beta}^{\mathsf{T}}\mathbf{h}_t), where ht\mathbf{h}_t is the input hidden state. This gate controls both erasure of the previously stored value and writing of the new key–value association:

St=St−1(I−βtktktT)+βtvtktT=St−1+βt(vt−St−1kt)ktT.(2)\mathbf{S}_t = \mathbf{S}_{t-1}\left(\mathbf{I}-\beta_t\mathbf{k}_t\mathbf{k}_t^{\mathsf{T}}\right)+\beta_t\mathbf{v}_t\mathbf{k}_t^{\mathsf{T}} = \mathbf{S}_{t-1}+\beta_t\left(\mathbf{v}_t-\mathbf{S}_{t-1}\mathbf{k}_t\right)\mathbf{k}_t^{\mathsf{T}}. \tag*{(2)}

Mamba-2 takes a complementary approach, using a data-dependent decay to suppress old information, parameterized as αt=exp⁡(−softplus⁡(wΔTht+bΔ)exp⁡(a))\alpha_t = \exp\left(-\operatorname{softplus}\left(\mathbf{w}_{\Delta}^{\mathsf{T}}\mathbf{h}_t+b_{\Delta}\right)\exp(a)\right) with a learnable scalar aa per head:

St=αtSt−1+vtktT.(3)\mathbf{S}_t = \alpha_t\mathbf{S}_{t-1}+\mathbf{v}_t\mathbf{k}_t^{\mathsf{T}}. \tag*{(3)}

Gated DeltaNet combines these complementary approaches, coupling data-dependent decay with the targeted overwriting of the delta rule:

St=αtSt−1(I−βtktktT)+βtvtktT.(4)\mathbf{S}_t = \alpha_t\mathbf{S}_{t-1}\left(\mathbf{I}-\beta_t\mathbf{k}_t\mathbf{k}_t^{\mathsf{T}}\right)+\beta_t\mathbf{v}_t\mathbf{k}_t^{\mathsf{T}}. \tag*{(4)}

Kimi Delta Attention and Gated DeltaNet-2 further increase the expressivity of this framework through channel-wise update mechanisms: Kimi Delta Attention replaces scalar decay with per-channel gating, and Gated DeltaNet-2 introduces separate channel-wise erase and write gates.

These mechanisms reduce memory collisions, but information removed by decay or overwriting may later become important and cannot be recovered from the recurrent state. In this work, we address this trade-off between reducing interference and preserving potentially useful memory.

Illustrative Example. To illustrate this trade-off (Figure 2), we consider three sequential key–value pairs (kt,vt)t=13(\mathbf{k}_t,\mathbf{v}_t)_{t=1}^{3} with keys kt∈R2\mathbf{k}_t \in\mathbb{R}^{2}. Let vY,vN∈Rdv\mathbf{v}_Y,\mathbf{v}_N \in\mathbb{R}^{d_v}, dv≥2d_v \ge2, represent Yes and No, respectively. We choose the keys and values to satisfy

Illustrative example and retrieval performance

Figure 2. Illustrative example and retrieval performance.

∥kt∥2=1,k1=k2+k3,\lVert\mathbf{k}_t\rVert_2 = 1,\qquad\mathbf{k}_1 = \mathbf{k}_2+\mathbf{k}_3,
vY⊥vN,∥vY∥22=1,∥vN∥22=2,\mathbf{v}_Y \perp\mathbf{v}_N,\qquad\lVert\mathbf{v}_Y\rVert_2^2 = 1,\qquad\lVert\mathbf{v}_N\rVert_2^2 = 2,
(v1,v2,v3)=(vN,vY,vY).(\mathbf{v}_1,\mathbf{v}_2,\mathbf{v}_3) = (\mathbf{v}_N,\mathbf{v}_Y,\mathbf{v}_Y).

We compare the state updates for linear attention ((1)), Mamba-2 ((3)), DeltaNet ((2)), and Gated DeltaNet ((4)). Each αt,βt\alpha_t,\beta_t may vary across writes within (0,1](0,1]. Given the final memory state S3\mathbf{S}_3, we sample a query uniformly from the stored keys:

q3∼Unif⁡{k1,k2,k3}.\mathbf{q}_3 \sim\operatorname{Unif}\{\mathbf{k}_1,\mathbf{k}_2,\mathbf{k}_3\}.

Each model M\mathcal{M} (Linear Attention, Mamba-2, DeltaNet, Gated DeltaNet) reads S3q3S_3q_3 and predicts y^3M=arg⁡max⁡y∈{Y,N}vy⊤S3q3\hat{y}_3^{\mathcal{M}} = \mathop{\arg\max}_{y \in\{Y,N\}} v^y{}^\top S_3q_3. The correct answers are y(k1)=Ny(k_1) = N and y(k2)=y(k3)=Yy(k_2) = y(k_3) = Y. We define the retrieval risk as RM=Pr⁡q3[y^3M≠y(q3)]\mathcal{R}_{\mathcal{M}} = \Pr_{q_3}[\hat{y}_3^{\mathcal{M}} \ne y(q_3)], where the probability is over the uniformly sampled query.

Below in Proposition 1, we show that there exists a trade-off between memory collision and forgetting.

Proposition 1. Under the setup above, the retrieval risks satisfy

RLinearAttention=23,min⁡{αt}RMamba-2=min⁡{βt}RDeltaNet=min⁡{αt,βt}RGatedDeltaNet=13.(5)\mathcal{R}_{\mathrm{LinearAttention}} = \frac{2}{3}, \qquad\min_{\{\alpha_t\}} \mathcal{R}_{\mathrm{Mamba\text{-}2}} = \min_{\{\beta_t\}} \mathcal{R}_{\mathrm{DeltaNet}} = \min_{\{\alpha_t,\beta_t\}} \mathcal{R}_{\mathrm{GatedDeltaNet}} = \frac{1}{3}. \tag*{(5)}

In Linear Attention, the initial No association dominates the readouts for both later Yes keys, causing two retrieval errors. Mamba-2 and DeltaNet can reduce this interference through decay and targeted overwriting, respectively, and recover both later Yes answers. However, both models forget the first No answer, illustrating how suppressing interference can weaken earlier information still needed for retrieval.

Gated DeltaNet combines decay and overwriting, but it still cannot recover both later Yes answers without forgetting the first No answer. This limitation is inherent to the structure of our example: since k1=k2+k3k_1 = k_2 + k_3, any single-state linear readout satisfies S3k1=S3k2+S3k3S_3k_1 = S_3k_2 + S_3k_3. Hence, two readouts favoring Yes also make the first favor Yes. Thus, even with optimal gates, Gated DeltaNet cannot achieve zero retrieval error in this example; its minimum risk remains 1/31/3. Although this limitation follows from the chosen key structure, the example provides a concrete illustration of the trade-off discussed above: the same updates that reduce memory collisions can also cause forgetting of earlier associations that remain relevant to subsequent queries. The full proof is in Appendix § 9.§ 1.

Integral DeltaNet

In this work, we propose Integral DeltaNet to reduce memory interference while preserving useful information from distant past. Figure 1 illustrates the central idea: maintain an adaptive delta state for the current context alongside an integral state that retains a weighted history of earlier delta states. Reading both states gives the model access to information that subsequent updates may have weakened. The two-state recurrence also supports hardware-efficient chunkwise parallel training.

Delta States and Integral States

Our Integral DeltaNet consists of a fast delta state StS_t and a slower integral state XtX_t, defined below. We update StS_t using the expressive channel-wise rules of Kimi Delta Attention and Gated DeltaNet-2:

KDA:St=St−1Diag⁡(αt)(I−βtktkt⊤)+βtvtkt⊤\mathrm{KDA:}\quad S_t = S_{t-1}\operatorname{Diag}(\alpha_t)\left(I-\beta_t k_t k_t^\top\right)+\beta_t v_t k_t^\top
GDN-2:St=St−1Diag⁡(αt)(I−(bt⊙kt)kt⊤)+(wt⊙vt)kt⊤\mathrm{GDN\text{-}2:}\quad S_t = S_{t-1}\operatorname{Diag}(\alpha_t)\left(I-(b_t \odot k_t)k_t^\top\right)+(w_t \odot v_t)k_t^\top

We define the integral state XtX_t by

Xt=StDiag⁡(λt)+Xt−1Diag⁡(1−λt),(6)X_t = S_t\operatorname{Diag}(\lambda_t)+X_{t-1}\operatorname{Diag}(1-\lambda_t), \tag*{(6)}

where X0=0\mathbf{X}_0=\mathbf{0} and λt∈[0,1]dk\boldsymbol{\lambda}_t \in[0,1]^{d_k} specifies the integration rate in each key channel. Given a query qt\mathbf{q}_t and a channel-wise readout gate γt∈[0,1]dk\boldsymbol{\gamma}_t \in[0,1]^{d_k}, we compute the output as

ot=St(γt⊙qt)+Xt((1−γt)⊙qt).(7)\mathbf{o}_t = \mathbf{S}_t(\boldsymbol{\gamma}_t \odot\mathbf{q}_t) + \mathbf{X}_t((1-\boldsymbol{\gamma}_t) \odot\mathbf{q}_t). \tag*{(7)}

Figure 1 illustrates how the two states complement each other. The delta state is updated with incoming key–value pairs, while the integral state accumulates a weighted history of delta states, preserving contributions that subsequent updates may weaken. Smaller integration rates retain this history for longer, while larger rates make Xt\mathbf{X}_t follow St\mathbf{S}_t more closely. At readout, larger entries of γt\boldsymbol{\gamma}_t place more weight on the current delta state in the corresponding key channels, favoring current information over accumulated history. These gates allow the model to balance information from different timescales according to the current context. Note that the two states are combined only at readout, leaving the delta-state updates unchanged.

Benefits of the Integral State. We revisit the illustrative example analyzed in Proposition 1 to show how Integral DeltaNet improves retrieval performance. We use the same key–value pairs and query distribution, and retain the Gated DeltaNet update (4) for the delta state. For simplicity, we use scalar gates for integration and readout:

Xt=λtSt+(1−λt)Xt−1,o3=[γ3S3+(1−γ3)X3]q3,(8)X_t = \lambda_t S_t + (1-\lambda_t)X_{t-1}, \qquad o_3 = [\gamma_3 S_3 + (1-\gamma_3)X_3]q_3, \tag*{(8)}

where X0=0X_0=0, λt∈(0,1)\lambda_t \in(0,1) is the integration rate at step tt, and γ3∈[0,1]\gamma_3 \in[0,1] can depend on the query q3q_3. The model selects the answer maximizing vy⊤o3v_y^\top o_3. Its retrieval risk is RIntegralR_{\mathrm{Integral}}.

The integral state can preserve the first answer even when the delta state loses it, allowing adaptive readout to recover all three answers.

Proposition 2. In the illustrative example shown in Figure 2, Integral DeltaNet (8) can achieve zero retrieval risk, i.e., min⁡{αt,βt,λt},γ3(⋅)RIntegral=0\min\{\alpha_t,\beta_t,\lambda_t\}, \gamma_3(\cdot) R_{\mathrm{Integral}} = 0.

One construction uses βt=1\beta_t=1, (α1,α2,α3)=(1,1/4,1)(\alpha_1,\alpha_2,\alpha_3)=(1,1/4,1), and λt=1/8\lambda_t=1/8 for t=1,2,3t=1,2,3. With these updates, the delta state S3S_3 suppresses interference from the initial No association enough to recover both later Yes answers, but loses the first answer. However, the integral state X3X_3 retains a weighted contribution from earlier delta states, including S1S_1, before the initial association was weakened. This retained history allows it to recover the first No answer. This result also holds in other settings; we chose this simple case for clarity. The full proof is in Appendix § 9.§ 2.

Parametrization. We compute both gates introduced in (6) and (7) from the normalized hidden state ht\mathbf{h}_t as

γt=exp⁡[−softplus⁡(WγTWγTht+bγ)],λt=1−exp⁡[−softplus⁡(WλTWλTht+bλ)].\boldsymbol{\gamma}_t = \exp[-\operatorname{softplus}(\mathbf{W}_{\gamma}^{\mathsf{T}}\mathbf{W}_{\gamma}^{\mathsf{T}}\mathbf{h}_t+\mathbf{b}_{\gamma})], \qquad\boldsymbol{\lambda}_t = 1-\exp[-\operatorname{softplus}(\mathbf{W}_{\lambda}^{\mathsf{T}}\mathbf{W}_{\lambda}^{\mathsf{T}}\mathbf{h}_t+\mathbf{b}_{\lambda})].

Following the low-rank parametrization of KDA, each projection uses a bottleneck rank small relative to the hidden dimension. We initialize the gates so that 1−γt1-\boldsymbol{\gamma}_t and λt\boldsymbol{\lambda}_t are both small. This initialization places nearly all readout weight on the delta state St\mathbf{S}_t, while Xt\mathbf{X}_t gradually accumulates a smoothed history of St\mathbf{S}_t. The gates learn its retention time and readout weight.

Hardware Efficient Training

Chunkwise form supports hardware-efficient training by parallelizing matrix operations within chunks while propagating recurrent states across chunks ([71] (Yang and Zhang 2024)). We derive this formulation for Integral DeltaNet. For simplicity, assume L=NCL=NC and index the NN chunks of size CC by t=0,…,N−1t=0,\ldots,N-1. A superscript r∈{1,…,C}r \in\{1,\ldots,C\} denotes a position within chunk tt. We write □tr=□tC+r\square_t^r=\square_{tC+r} for □∈{q,k,v,o,λ,γ,S,X}\square\in\{\mathbf{q},\mathbf{k},\mathbf{v},\mathbf{o},\boldsymbol{\lambda},\boldsymbol{\gamma},\mathbf{S},\mathbf{X}\}. For the recurrent states, we define □[t]:=□[t]0:=□tC\square_{[t]}:=\square_{[t]}^0:=\square_{tC} for □∈{S,X}\square\in\{\mathbf{S},\mathbf{X}\}, where r=0r=0 marks the chunk start; hence □[t+1]=□[t]C\square_{[t+1]}=\square_{[t]}^C.

The delta state evolves according to a linear RNN. Within each chunk, the state at position rr is

S[t]r=S[t]P[t]r+H[t]r,P[t]0=I,H[t]0=0,0≤r≤C,S_{[t]}^r = S_{[t]}P_{[t]}^r + H_{[t]}^r,\qquad P_{[t]}^0=I,\qquad H_{[t]}^0=0,\qquad0\le r\le C,

where P[t]r∈Rdk×dkP_{[t]}^r \in\mathbb{R}^{d_k\times d_k} propagates the incoming state and H[t]r∈Rdv×dkH_{[t]}^r \in\mathbb{R}^{d_v\times d_k} collects the writes within the first rr positions. Both operators depend only on the inputs and gates in the current chunk. A line of work ([25, 38, 72, 73]) has developed efficient algorithms based on WY representations (Bischof and Van Loan, [10]) and UT transforms (Joffrain et al., [33]) to compute state updates and outputs without materializing all prefix matrices.

We express the integral state similarly using within-chunk retention weights for 0≤r≤C0 \le r \le C:

ω[t]0→r:=∏s=1r(1−λ[t]s),ω[t]i→r:=λ[t]i⊙∏s=i+1r(1−λ[t]s),1≤i≤r,\omega_{[t]}^{0\to r} := \prod_{s=1}^{r} (1-\lambda_{[t]}^{s}), \qquad\omega_{[t]}^{i\to r} := \lambda_{[t]}^{i} \odot\prod_{s=i+1}^{r} (1-\lambda_{[t]}^{s}), \qquad1 \le i \le r,

where products are elementwise and an empty product is 1. Define the retention-weighted operators:

Pˉ[t]r:=∑i=1rP[t]iDiag⁡(ω[t]i→r),Hˉ[t]r:=∑i=1rH[t]iDiag⁡(ω[t]i→r),\bar{P}_{[t]}^{r} := \sum_{i=1}^{r} P_{[t]}^{i}\operatorname{Diag}\left(\omega_{[t]}^{i\to r}\right), \qquad\bar{H}_{[t]}^{r} := \sum_{i=1}^{r} H_{[t]}^{i}\operatorname{Diag}\left(\omega_{[t]}^{i\to r}\right),

with empty sums equal to zero matrices of the corresponding dimensions. Substituting the delta-state representation into the integral-state recurrence gives

X[t]r=S[t]Pˉ[t]r+X[t]Diag⁡(ω[t]0→r)+Hˉ[t]r.X_{[t]}^{r} = S_{[t]}\bar{P}_{[t]}^{r} + X_{[t]}\operatorname{Diag}\left(\omega_{[t]}^{0\to r}\right) + \bar{H}_{[t]}^{r}.

Thus, the integral state combines retention-weighted prefix operators with the retained incoming integral state. For the full-chunk operators, we omit the superscript CC and write □[t]:=□[t]C\square_{[t]} := \square_{[t]}^{C} for □∈{P,H,Pˉ,Hˉ}\square\in\{P,H,\bar{P},\bar{H}\}. The two states then propagate to the next chunk as

S[t+1]=S[t]P[t]+H[t],X[t+1]=S[t]Pˉ[t]+X[t]Diag⁡(ω[t]0→C)+Hˉ[t].S_{[t+1]} = S_{[t]}P_{[t]} + H_{[t]}, \qquad X_{[t+1]} = S_{[t]}\bar{P}_{[t]} + X_{[t]}\operatorname{Diag}\left(\omega_{[t]}^{0\to C}\right) + \bar{H}_{[t]}.

The outputs similarly separate into contributions from the two incoming states and the writes within the chunk. For r=1,…,Cr=1,\ldots,C, define the effective queries and the within-chunk output contribution as

q~S,[t]r:=P[t]r(γ[t]r⊙q[t]r)+Pˉ[t]r((1−γ[t]r)⊙q[t]r),q~X,[t]r:=ω[t]0→r(1−γ[t]r)⊙q[t]r,\widetilde{q}_{S,[t]}^{r} := P_{[t]}^{r}\left(\gamma_{[t]}^{r} \odot q_{[t]}^{r}\right) + \bar{P}_{[t]}^{r}\left(\left(1-\gamma_{[t]}^{r}\right)\odot q_{[t]}^{r}\right), \qquad\widetilde{q}_{X,[t]}^{r} := \omega_{[t]}^{0\to r}\left(1-\gamma_{[t]}^{r}\right)\odot q_{[t]}^{r},
z[t]r:=H[t]r(γ[t]r⊙q[t]r)+Hˉ[t]r((1−γ[t]r)⊙q[t]r).z_{[t]}^{r} := H_{[t]}^{r}\left(\gamma_{[t]}^{r}\odot q_{[t]}^{r}\right) + \bar{H}_{[t]}^{r}\left(\left(1-\gamma_{[t]}^{r}\right)\odot q_{[t]}^{r}\right).

We stack (q~a,[t]r)T(\widetilde{q}_{a,[t]}^{r})^{\mathsf{T}}, (z[t]r)T(z_{[t]}^{r})^{\mathsf{T}}, and (o[t]r)T(o_{[t]}^{r})^{\mathsf{T}} as the rr-th rows of Q~a,[t]∈RC×dk\widetilde{Q}_{a,[t]} \in\mathbb{R}^{C\times d_k} and Z[t],O[t]∈RC×dvZ_{[t]}, O_{[t]} \in\mathbb{R}^{C\times d_v}, respectively, for a∈{S,X}a \in\{S,X\}. The chunk output is then

O[t]=Q~S,[t]S[t]T+Q~X,[t]X[t]T+Z[t].O_{[t]} = \widetilde{Q}_{S,[t]}S_{[t]}^{\mathsf{T}} + \widetilde{Q}_{X,[t]}X_{[t]}^{\mathsf{T}} + Z_{[t]}.

We implement Integral DeltaNet kernels using this chunkwise form and FlashLinearAttention (Yang and Zhang, 2024). We compare training throughput and activation memory in § 4.

Experiments

We apply Integral DeltaNet to KDA and GDN-2, yielding Integral KDA and Integral GDN-2, respectively. We compare them with strong recurrent baselines Mamba-2, DeltaNet, GDN, KDA, and GDN-2, and with Transformer++ (Touvron et al., [66]). We pretrain all models from scratch with 340M/1.3B non-embedding parameters on 15B/100B FineWeb-Edu (Penedo et al., [55]) tokens, using Llama-2 tokenization and 4K sequences.

Both scales use AdamW (Loshchilov and Hutter, [46]) (β1=0.9\beta_1 = 0.9, β2=0.95\beta_2 = 0.95, ϵ=10−8\epsilon= 10^{-8}), 0.5M-token global batches, cosine learning-rate decay from 4×10−44 \times10^{-4} to 4×10−54 \times10^{-5}, weight decay 0.1, and gradient clipping at 1.0. We use 0.5B/1B tokens of linear warmup at 340M/1.3B. We initialize rank-128 gate projections so that λt,j≈1−γt,j≈1/1024\lambda_{t,j} \approx1-\gamma_{t,j} \approx1/1024 for each key channel jj.

We evaluate these trained models on language modeling, commonsense reasoning, and real-world retrieval at both scales. For tasks requiring longer contexts, we additionally evaluate the 1.3B models on Needle-in-a-Haystack (Hsieh et al., [26]), LongBench (Bai et al., [5]), and length extrapolation. Finally, we evaluate training and decoding efficiency at the 1.3B scale. In the tables, we bold the better result in each baseline/Integral pair and mark the top two distinct scores among recurrent models with ⋆/†\star/\dagger at each scale.

Language Modeling and Commonsense Reasoning. We use the LM Evaluation Harness [19] for evaluation. We report perplexity (ppl) on WikiText-2 [48] and LAMBADA [52] and zero-shot accuracy (acc) on nine tasks (Table 1). We use length-normalized accuracy (accn_n) on selected tasks to reduce answer-length bias. Both Integral variants show overall gains at both scales.

ModelWiki. ppl ↓\downarrowLMB. ppl ↓\downarrowLMB. acc ↑\uparrowPIQA acc ↑\uparrowHella. accn_n ↑\uparrowWino. acc ↑\uparrowARC-e acc ↑\uparrowARC-c accn_n ↑\uparrowOBQA accn_n ↑\uparrowSIQA acc ↑\uparrowBoolQ acc ↑\uparrowAvg. acc ↑\uparrow
340M parameters / 15B tokens
Transformer++26.3736.2033.165.839.351.159.027.633.638.159.545.2
Mamba-227.9536.8930.166.439.550.858.2†27.033.838.9†55.344.4
DeltaNet27.5238.8630.966.138.050.556.226.931.437.757.043.8
GDN26.3231.3733.466.840.452.657.727.034.2†38.456.745.3
KDA24.89⋆26.16†36.4†66.9†41.2⋆53.4⋆59.4⋆27.3†33.639.0⋆57.9†46.1†
Integral KDA24.97†24.99⋆36.9⋆68.4⋆40.7†52.9†58.2†28.0⋆34.8⋆38.859.5⋆46.5⋆
GDN-226.7630.1334.166.238.549.356.026.932.438.659.5⋆44.6
Integral GDN-227.5928.8235.865.438.752.857.426.233.038.9†57.245.0
1.3B parameters / 100B tokens
Transformer++15.9011.0449.472.058.458.672.137.940.241.062.254.7
Mamba-216.5512.2245.672.058.256.471.6†38.741.6⋆39.763.0⋆54.1
DeltaNet15.7311.5147.373.2†58.156.771.040.0†41.040.460.754.3
GDN16.0810.9848.573.2†58.759.4†71.339.340.841.059.954.7†
KDA15.33†9.63†50.473.9⋆60.2†57.671.239.041.6⋆40.757.254.6
Integral KDA15.00⋆9.16⋆52.7⋆73.2†60.7⋆61.1⋆72.3⋆40.6⋆41.242.5⋆60.756.1⋆
GDN-216.3410.5649.371.957.957.670.039.339.841.5†60.9†54.2
Integral GDN-215.9210.3150.6†71.757.859.271.538.141.4†41.159.654.6

Table 1. Performance on language modeling and zero-shot commonsense reasoning.

Real-World Retrieval. We evaluate document retrieval tasks [4] (Table 2). SWDE [24] and FDA [2] test extraction from webpages and medical reports respectively. SQuAD [60] and TriviaQA [35] test question answering alongside NQ [41] and DROP [18]. Both Integral variants improve average retrieval accuracy over their baselines at both scales.

Model340M parameters / 15B tokens: SWDESQuADFDATriviaQANQDROPAvg.1.3B parameters / 100B tokens: SWDESQuADFDATriviaQANQDROPAvg.
Transformer++31.834.248.248.417.319.433.248.245.365.762.826.725.145.6
Mamba-26.624.03.742.910.514.917.120.736.513.659.420.121.1†28.6
DeltaNet7.023.77.745.712.416.118.829.636.727.460.321.921.032.8
GDN11.227.67.246.314.217.520.734.0†39.6†27.362.324.1†20.734.7
KDA10.228.6†8.147.8†14.4†17.7†21.132.741.1†30.2†62.9†24.1†21.6⋆35.4†
Integral KDA18.1⋆30.6⋆9.6⋆48.9⋆15.0⋆17.323.3⋆40.4⋆39.535.1⋆62.425.3⋆20.937.3⋆
GDN-210.226.94.545.913.318.3⋆19.824.537.527.960.923.319.932.3
Integral GDN-215.7†27.48.9†45.614.016.221.3†31.739.429.362.6†24.020.234.5

Table 2. Accuracy (%, ↑\uparrow) on six real-world retrieval tasks.

Needle-in-a-Haystack (NIAH). We evaluate long-context retrieval using four synthetic Needle-in-a-Haystack tasks from RULER [26]. We evaluate the 1.3B models on the same 500 examples per task and context length (Table 3). S-NIAH-1/2 retrieve a number from repetitive/natural text, respectively; S-NIAH-3 retrieves a UUID from natural text, and MK-NIAH-1 queries one of multiple key-value pairs. Both Integral variants improve overall performance: Integral KDA matches or outperforms KDA in nearly all settings, with substantial gains on the challenging S-NIAH-3 at 4K and MK-NIAH-1 tasks. Integral GDN-2 underperforms GDN-2 in some settings but improves S-NIAH-3 at 4K and achieves particularly large gains on MK-NIAH-1 at every tested length.

ModelS-NIAH-1 1K2K4K8KS-NIAH-2 1K2K4K8KS-NIAH-3 1K2K4KMK-NIAH-1 1K2K4K
Transformer++100.0100.098.40.0100.0100.086.20.0100.099.469.898.494.477.0
Mamba-2100.0{sup}⋆`99.8{sup}†`69.021.4100.0{sup}⋆`98.665.823.863.446.613.229.221.218.4
DeltaNet100.0{sup}⋆`100.0{sup}⋆`100.0{sup}⋆`100.0{sup}⋆`100.0{sup}⋆`97.480.647.6{sup}†`95.2{sup}⋆`65.221.052.833.430.4
GDN100.0{sup}⋆`99.291.663.688.899.6{sup}⋆`89.8{sup}†`28.090.863.220.048.839.025.0
KDA100.0{sup}⋆`100.0{sup}⋆`99.678.4100.0{sup}⋆`79.870.032.890.468.824.847.237.020.8
Integral KDA100.0{sup}⋆`100.0{sup}⋆`100.0{sup}⋆`92.4100.0{sup}⋆`99.2{sup}†`99.6{sup}⋆`49.2{sup}⋆`91.858.641.6{sup}⋆`54.0{sup}†`50.4{sup}†`35.6{sup}†`
GDN-2100.0{sup}⋆`100.0{sup}⋆`99.8{sup}†`97.8{sup}†`99.6{sup}†`93.874.230.894.0{sup}†`80.0{sup}⋆`30.045.232.823.8
Integral GDN-2100.0{sup}⋆`99.8{sup}†`98.885.8100.0{sup}⋆`94.665.229.493.477.4{sup}†`34.6{sup}†`76.4{sup}⋆`67.2{sup}⋆`39.8{sup}⋆`

Table 3. Accuracy (%, ↑) on Needle-in-a-Haystack tasks.

LongBench. We assess long-context understanding using the 1.3B models on English LongBench tasks ([5]) covering question answering, summarization, few-shot learning, and code completion. We use the LM Evaluation Harness ([19]) with greedy decoding, a 16K-token context budget, and default prompts and truncation, reporting the mean of official task scores. Both Integral variants achieve strong overall performance on LongBench (Table 4).

ModelSingle-Doc QA NQAQQAMFQMulti-Doc QA HQA2WMMusSummarization GvRQMSMNsFew-shot TRCTQASSMCode LCCRBPAvg.
Transformer++0.52.35.31.12.20.45.35.87.511.56.63.917.48.45.6
Mamba-22.04.312.54.18.13.1{sup}†`6.616.68.731.022.820.511.217.812.1
DeltaNet2.23.913.65.38.12.44.917.5{sup}†`10.437.019.827.6{sup}†`15.718.313.3
GDN2.15.1{sup}†`13.7{sup}†`5.18.43.3{sup}⋆`6.818.3{sup}⋆`12.326.020.723.317.7{sup}†`19.413.0
KDA2.04.313.05.18.43.1{sup}†`10.0{sup}†`16.29.629.520.527.521.9{sup}⋆`24.0{sup}⋆`13.9
Integral KDA2.6{sup}⋆`4.49.75.18.12.96.616.411.852.5{sup}⋆`27.3{sup}⋆`28.1{sup}⋆`16.318.015.0{sup}⋆`
GDN-22.25.2{sup}⋆`13.15.5{sup}†`9.2{sup}⋆`3.3{sup}⋆`9.816.712.4{sup}†`42.0{sup}†`25.4{sup}†`24.015.419.7{sup}†`14.6
Integral GDN-22.5{sup}†`5.2{sup}⋆`13.9{sup}⋆`5.9{sup}⋆`9.1{sup}†`2.812.5{sup}⋆`16.113.0{sup}⋆`40.524.827.415.917.114.8{sup}†`

Table 4. Scores (↑) on LongBench tasks.

Length Extrapolation

We evaluate how well Integral DeltaNet generalizes beyond the 4K training length compared with other recurrent models. We measure perplexity of the 1.3B models up to 20K on six datasets: GovReport ([28]), QMSum ([75]), NarrativeQA ([40]), Qasper ([14]), CodeParrot ([69]), and PG19 ([59]). Both Integral variants outperform their respective baselines across all six datasets at every evaluated length beyond the 4K training context. Together, they achieve the lowest perplexity among all compared models at every evaluated length on every dataset: Integral KDA leads on GovReport, QMSum, Qasper, and CodeParrot, while Integral GDN-2 leads on NarrativeQA and PG19 (Figure 3).

Length extrapolation plots for GovReport, QMSum, NarrativeQA, Qasper, CodeParrot, and PG19

Figure 3. Length extrapolation of 1.3B models trained at 4K (perplexity, ↓).

Training Throughput and Memory Cost. We compare recurrent baselines using Flash Linear Attention (FLA) kernels, Transformer++ using FlashAttention-2 and FlashAttention-4, and Integral using our FLA-based implementation. We provide two implementations: throughput-first stores intermediates for reuse, while memory-first recomputes them during backpropagation. We measure training throughput and activation memory of 1.3B models on a B300 at a fixed token budget without model-level activation checkpointing (Figure 4). Throughput-first retains throughput close to the backbones, while memory-first substantially reduces activation memory with a moderate slowdown.2

Training throughput and activation memory

Figure 4. Training throughput and activation memory. T: throughput-first; M: memory-first.

Decoding Memory and Latency. We compare decoding memory and per-token latency of 1.3B models on a B300 with batch size 8 across context lengths (Table 5). Memory is computed from the architecture; latency is measured with CUDA graph replay, excluding prefill. Both costs remain nearly constant for recurrent models, while Transformer++ requires increasing memory and computation as its KV cache grows. The integral state adds a small memory overhead and increases per-token latency while preserving this context-length scaling.

ModelMemory (GiB) 4KMemory (GiB) 16KMemory (GiB) 64KLatency (ms) 4KLatency (ms) 16KLatency (ms) 64K
Mamba-22.852.852.852.152.152.15
DeltaNet2.872.872.872.612.602.60
GDN2.942.942.942.502.512.50
KDA2.852.852.853.343.343.34
Integral KDA2.992.992.994.634.634.63
GDN-22.852.852.853.193.193.19
Integral GDN-22.992.992.994.794.794.79
Transformer++7.7722.9583.705.1812.7442.59

Table 5. Decoding memory and per-token latency across context lengths.

Related Work

Linear RNNs. Linear RNNs, including state space models and linear attention, combine parallel training and efficient recurrent inference [13, 36, 47] with strong sequence modeling performance [22, 23, 51], making them promising alternatives to Transformers. Representative models include S4 ([23]), the Linear Recurrent Unit (LRU) ([51]), RWKV ([56]), Mamba ([22]), Mamba-2 ([13]), and Mamba-3 ([42]). They also show promise on several tasks, including in-context learning ([11, 20, 32, 43, 44, 50, 53]). However, constrained state transitions and fixed-size memory can hinder state tracking, associative recall, and copying ([3, 21, 31, 49]).

Linear Attention. Linear attention ([36]) additively accumulates key–value associations, which can interfere with one another ([61]). To address this interference, RetNet ([65]) uses constant scalar decay and Mamba-2 ([13]) and Gated Linear Attention (GLA) ([71]) extend this mechanism to time-varying scalar and channel-wise decay, respectively. DeltaNet ([61, 72]) addresses interference through delta-rule updates for targeted overwriting of key–value memory, with later variants adding gating ([25, 38, 73]). The DeltaNet state update corresponds to one stochastic gradient descent (SGD) step on squared prediction error for values given keys. This perspective motivates variants of DeltaNet that perform multiple updates per token ([62]), apply diagonal preconditioning ([67]), or incorporate momentum ([29]). Park et al. [54] incorporate queries into state updates by combining key- and query-based prediction errors.

Neural Memory. From an online optimization view, DeltaNet can be interpreted as learning key–value associations by updating a linear model to minimize squared prediction error. Sun et al. [64] extend this view by treating the parameters of a neural network, such as an MLP, as the recurrent state, with each state update corresponding to a gradient descent step on these parameters. For these neural memory updates, Behrouz et al. [7] add momentum and Behrouz et al. [8] use Muon ([34]). These memories offer greater expressiveness and can improve long-context modeling with memory size independent of sequence length. However, nonlinear updates can increase computation and memory I/O while limiting parallelization relative to linear attention ([9, 64]).

Complementary Memories. Similar to our work, other approaches have explored combining complementary memories. Behrouz et al. [7] combine local attention with neural memory and Liu et al. [45] add a Gated DeltaNet-2 branch to a pretrained Transformer to retain information beyond its bounded attention window. Du et al. [17] route tokens to independent recurrent states and Bayat et al. [6] progressively activate memory as context grows. Integral DeltaNet instead preserves information weakened by later updates through a weighted history of delta states.

Iterate Averaging. We form the integral state as an exponential moving average of delta states across tokens, starting from a zero initial state. Averaging iterates across steps is also used in Stochastic Weight Averaging ([30]) and Lookahead ([74]). Other examples include schedule-free methods and their variants ([1, 15, 16, 37]): they combine a fast iterate with its running average and compute gradients at their interpolation, avoiding a prescribed learning-rate decay schedule. Song et al. [63] show that implicit weight averaging helps schedule-free methods track low-loss trajectories. Despite this similarity, Integral DeltaNet differs from applying a schedule-free optimizer: we use the integral state for adaptive readout, not to update the delta state.

Conclusion

In this work, we introduced Integral DeltaNet to address the trade-off between mitigating memory collisions and retaining useful information. To this end, the model pairs a delta state that adapts to incoming key–value associations with an integral state that preserves a weighted history of delta states. Adaptive readout combines these complementary states to access information weakened by later updates, while our chunkwise parallel formulation enables hardware-efficient training. Experiments with Integral KDA and Integral GDN-2 show overall gains in language modeling, commonsense reasoning, retrieval, long-context understanding, and length extrapolation. Our evaluation also compares training throughput and activation memory, as well as decoding latency and memory. These results highlight the importance of integrated memory and adaptive readout. A possible direction for future work is to use the integral state to guide delta-state updates, similar to how schedule-free methods ([16]) use averaged iterates.

Acknowledgement

This research was supported by a grant from KRAFTON AI.

Proofs for the Illustrative Example

Proof of Proposition 1

Note that k1Tk2=k1Tk3=1/2k_1^{\mathsf{T}}k_2=k_1^{\mathsf{T}}k_3=1/2 and k2Tk3=−1/2k_2^{\mathsf{T}}k_3=-1/2. For each final state S3S_3, define the Yes–No score differences

mi:=(vY−vN)TS3ki,i=1,2,3.m_i := (\mathbf{v}_{Y}-\mathbf{v}_{N})^{\mathsf{T}}S_3k_i,\qquad i=1,2,3.

A positive score difference predicts Yes, and a negative one predicts No. For linear attention, summing the three writes gives

S3=vNk1T+vY(k2+k3)T=(vN+vY)k1T.S_3=\mathbf{v}_{N}k_1^{\mathsf{T}}+\mathbf{v}_{Y}(k_2+k_3)^{\mathsf{T}}=(\mathbf{v}_{N}+\mathbf{v}_{Y})k_1^{\mathsf{T}}.

The answer-vector norms and orthogonality give (m1,m2,m3)=(−1,−1/2,−1/2)(m_1,m_2,m_3)=(-1,-1/2,-1/2). All three predictions are No, with risk RLinear Attention=2/3\mathcal{R}_{\mathrm{Linear\ Attention}}=2/3.

For Mamba-2, applying the update St=αtSt−1+vtktTS_t=\alpha_tS_{t-1}+\mathbf{v}_tk_t^{\mathsf{T}} three times gives

S3=α2α3vNk1T+α3vYk2T+vYk3T.S_3=\alpha_2\alpha_3\mathbf{v}_{N}k_1^{\mathsf{T}}+\alpha_3\mathbf{v}_{Y}k_2^{\mathsf{T}}+\mathbf{v}_{Y}k_3^{\mathsf{T}}.

With (α1,α2,α3)=(1,1/4,1)(\alpha_1,\alpha_2,\alpha_3)=(1,1/4,1), the final state is S3=(14vN+vY)k1TS_3=(\frac{1}{4}\mathbf{v}_{N}+\mathbf{v}_{Y})k_1^{\mathsf{T}}. The corresponding score differences are

(m1,m2,m3)=(12,14,14).(m_1,m_2,m_3)=(\frac{1}{2},\frac{1}{4},\frac{1}{4}).

All three predictions are Yes. Only the first query is incorrect, and RMamba−2=1/3\mathcal{R}_{\mathrm{Mamba-2}}=1/3.

For DeltaNet, αt=1\alpha_t=1 in (4). With (β1,β2,β3)=(1/4,1,1)(\beta_1,\beta_2,\beta_3)=(1/4,1,1), the first two states are

S1=14vNk1T,S2=14vN(k1−12k2)T+vYk2T.S_1=\frac{1}{4}\mathbf{v}_{N}k_1^{\mathsf{T}},\qquad S_2=\frac{1}{4}\mathbf{v}_{N}(k_1-\frac{1}{2}k_2)^{\mathsf{T}}+\mathbf{v}_{Y}k_2^{\mathsf{T}}.

These states satisfy S2k2=vYS_2k_2=\mathbf{v}_{Y} and S2k3=316vN−12vYS_2k_3=\frac{3}{16}\mathbf{v}_{N}-\frac{1}{2}\mathbf{v}_{Y}. After the third write,

S3k2=S2(k2+12k3)−12vY=332vN+14vY,S_3k_2=S_2(k_2+\frac{1}{2}k_3)-\frac{1}{2}\mathbf{v}_{Y}=\frac{3}{32}\mathbf{v}_{N}+\frac{1}{4}\mathbf{v}_{Y},
S3k3=vY,S3k1=332vN+54vY.S_3k_3=\mathbf{v}_{Y},\qquad S_3k_1=\frac{3}{32}\mathbf{v}_{N}+\frac{5}{4}\mathbf{v}_{Y}.

The final score differences are

(m1,m2,m3)=(1716,116,1).(m_1,m_2,m_3)=(\frac{17}{16},\frac{1}{16},1).

Only the first query is incorrect, and RDeltaNet=1/3\mathcal{R}_{\mathrm{DeltaNet}}=1/3.

Gated DeltaNet combines Mamba-2’s decay with the delta rule and includes DeltaNet as the case αt=1\alpha_t=1. It therefore also attains risk 1/31/3 with the DeltaNet gates above.

To show that Mamba-2, DeltaNet, and Gated DeltaNet cannot achieve risk below 1/31/3, consider any final state S3S_3. Since k1=k2+k3k_1=k_2+k_3, the score differences satisfy m1=m2+m3m_1=m_2+m_3. Correctly answering the second and third queries requires m2,m3>0m_2,m_3>0. This forces m1>0m_1>0, giving an incorrect Yes answer to the first query. Thus at least one of the three equally likely queries must be incorrect. Together with the constructions above, this proves that all three models have minimum risk 1/31/3. □

Proof of Proposition 2

Consider Gated DeltaNet with βt=1\beta_t=1 and (α1,α2,α3)=(1,1/4,1)(\alpha_1,\alpha_2,\alpha_3)=(1,1/4,1). The three states are

S1=vNk1T,S_1=\mathbf{v}_{N}k_1^{\mathsf{T}},
S2=14vN(k1−12k2)T+vYk2T,S_2=\frac{1}{4}\mathbf{v}_{N}(k_1-\frac{1}{2}k_2)^{\mathsf{T}}+\mathbf{v}_{Y}k_2^{\mathsf{T}},
S3=14vN(k1−12k2−34k3)T+vY(k2+32k3)T.S_3=\frac{1}{4}\mathbf{v}_{N}(k_1-\frac{1}{2}k_2-\frac{3}{4}k_3)^{\mathsf{T}}+\mathbf{v}_{Y}(k_2+\frac{3}{2}k_3)^{\mathsf{T}}.

The Yes–No score differences for the first query at the three write times are

(vY−vN)TS1k1=−2,(vY−vN)TS2k1=18,(vY−vN)TS3k1=1716.(\mathbf{v}_{Y}-\mathbf{v}_{N})^{\mathsf{T}}S_1k_1=-2,\qquad (\mathbf{v}_{Y}-\mathbf{v}_{N})^{\mathsf{T}}S_2k_1=\frac{1}{8},\qquad (\mathbf{v}_{Y}-\mathbf{v}_{N})^{\mathsf{T}}S_3k_1=\frac{17}{16}.

With λt=1/8\lambda_t=1/8 for t=1,2,3t=1,2,3, applying Xt=λtSt+(1−λt)Xt−1X_t=\lambda_tS_t+(1-\lambda_t)X_{t-1} three times from X0=0X_0=0 gives

X3=λ1(1−λ2)(1−λ3)S1+λ2(1−λ3)S2+λ3S3=18(4964S1+78S2+S3).\begin{aligned} X_3=\lambda_1(1-\lambda_2)(1-\lambda_3)S_1+\lambda_2(1-\lambda_3)S_2+\lambda_3S_3 \\ &=\frac{1}{8}\left(\frac{49}{64}S_1+\frac{7}{8}S_2+S_3\right). \end{aligned}

The score difference for the first query is

(vY−vN)⊤X3k1=18(−4964⋅2+78⋅18+1716)=−23512<0.(\mathbf{v}_{Y}-\mathbf{v}_{N})^{\top}\mathbf{X}_{3}\mathbf{k}_{1}=\frac{1}{8}\left(-\frac{49}{64}\cdot2+\frac{7}{8}\cdot\frac{1}{8}+\frac{17}{16}\right)=-\frac{23}{512}<0.

Read X3\mathbf{X}_{3} for q3=k1\mathbf{q}_{3}=\mathbf{k}_{1} and S3\mathbf{S}_{3} for q3∈{k2,k3}\mathbf{q}_{3}\in\{\mathbf{k}_{2},\mathbf{k}_{3}\}. For the latter two queries,

(vY−vN)⊤S3k2=116>0,(vY−vN)⊤S3k3=1>0.(\mathbf{v}_{Y}-\mathbf{v}_{N})^{\top}\mathbf{S}_{3}\mathbf{k}_{2}=\frac{1}{16}>0,\qquad(\mathbf{v}_{Y}-\mathbf{v}_{N})^{\top}\mathbf{S}_{3}\mathbf{k}_{3}=1>0.

The Yes–No score difference is negative for the first query and positive for the other two. These signs give the correct answers No, Yes, and Yes, respectively, proving RIntegral=0\mathcal{R}_{\mathrm{Integral}}=0. □

Ablation Studies and Additional Analyses

We conduct additional experiments to validate three key design choices of Integral DeltaNet: (i) an integral state that accumulates the history of the delta state, (ii) an input-dependent readout that adaptively combines the two states, and (iii) channel-wise readout and integration gates.

Effect of the Integral State

To validate the effect of the integral state, we compare Integral KDA with models that share the KDA backbone but have larger recurrent states, using the 340M parameter, 15B token recipe in § 4. KDA dk×2d_k\times2 and KDA dv×2d_v\times2 double the key and value dimensions, respectively. To show that maintaining states at different timescales matters, rather than simply doubling the state, we also train a variant with two KDA states, which have independent decay and erase/write gates, share queries, keys, and values, and are combined with the same readout as Integral KDA. For all variants, we adjust the FFN width to match the total parameter count. Table 6 shows the performance of these models. Integral KDA performs best overall, suggesting that the gains come from integrating the delta-state history at a slower timescale rather than from a larger state.

ModelWiki. ppl ↓LMB. ppl ↓LMB. acc ↑PIQA acc ↑Hella. accₙ ↑Wino. acc ↑ARC-e acc ↑ARC-c accₙ ↑OBQA accₙ ↑SIQA acc ↑BoolQ acc ↑Avg. acc ↑SWDE acc ↑SQuAD acc ↑FDA acc ↑TriviaQA acc ↑NQ acc ↑DROP acc ↑Avg. acc ↑
KDA24.8926.1636.466.941.253.459.427.333.639.057.946.110.228.68.147.814.417.721.1
KDA dk×2d_k\times225.8725.8835.866.840.554.358.527.032.038.760.946.19.330.27.648.414.616.421.1
KDA dv×2d_v\times224.9524.4037.466.741.353.361.727.533.638.750.345.615.130.57.646.814.019.122.2
Two KDA states25.1025.4036.365.940.852.057.927.134.639.461.746.213.029.77.648.614.918.222.0
Integral KDA24.9724.9936.968.440.752.958.228.034.838.859.546.518.130.69.648.915.017.323.3

Table 6. Effect of the integral state (340M parameters, 15B tokens).

Effect of Input-Dependent Readout

We examine the input-dependent readout in two ways: an ablation that removes its input dependence at the 340M scale, and an analysis of the learned readout in the 1.3B model from the main experiments.

Constant Readout Gate. To validate the effect of input-dependent readout, we replace the readout gate of Integral KDA with a constant γt=γˉ\gamma_t=\bar{\gamma}, learned per channel and shared across tokens, while keeping the input-dependent integration gate. We train this variant with the 340M parameter, 15B token recipe in § 4. Table 7 shows the performance of these models. The constant readout gate retains a modest retrieval gain over KDA but lowers both averages relative to Integral KDA, suggesting that adapting the readout to the input is beneficial.

ModelWiki. ppl ↓LMB. ppl ↓LMB. acc ↑PIQA acc ↑Hella. accₙ ↑Wino. acc ↑ARC-e acc ↑ARC-c accₙ ↑OBQA accₙ ↑SIQA acc ↑BoolQ acc ↑Avg. acc ↑SWDE acc ↑SQuAD acc ↑FDA acc ↑TriviaQA acc ↑NQ acc ↑DROP acc ↑Avg. acc ↑
KDA24.8926.1636.466.941.253.459.427.333.639.057.946.110.228.68.147.814.417.721.1
Constant readout gate25.2625.0436.767.140.750.559.027.733.839.058.545.912.728.99.646.913.219.521.8
Integral KDA24.9724.9936.968.440.752.958.228.034.838.859.546.518.130.69.648.915.017.323.3

Table 7. Effect of input-dependent readout (340M parameters, 15B tokens).

Learned Readout Behavior. We next analyze how the learned readout uses the two states in the 1.3B Integral KDA trained on 100B tokens, which is the same model evaluated in § 4. On S-NIAH-2 (4K), we compare distant needles (3,122–3,922 tokens before the answer) and recent needles (44–132 tokens). For each sample and head in each layer, we compute the following ratio at the answer position tt:

Integral-state contribution=∥Xt((1−γt)⊙qt)∥2∥St(γt⊙qt)∥2+∥Xt((1−γt)⊙qt)∥2\text{Integral-state contribution} = \frac{\lVert X_t((1-\gamma_t) \odot q_t)\rVert_2}{\lVert S_t(\gamma_t \odot q_t)\rVert_2 + \lVert X_t((1-\gamma_t) \odot q_t)\rVert_2}

Figure 5 plots this ratio by layer, pooling one value per sample/head pair within each needle group. While some layers show little separation, layers 15 and 16 show markedly greater integral contributions for distant than recent needles, consistent with using accumulated memory for distant retrieval.

Integral-state contribution by layer

Figure 5. Integral-state contribution by layer. Plots show distributions over sample/head pairs for distant (left) and recent (right) needles; open circles and filled diamonds mark means and medians.

Effect of Channel-Wise Gating

Integral DeltaNet uses channel-wise gates so that each key channel has its own readout weight and integration rate, allowing different channels to operate at different timescales. To validate the effect of channel-wise gating, we compare all four combinations of scalar and channel-wise readout (γ\gamma) and integration (λ\lambda) gates in Integral KDA, using the 340M parameter, 15B token recipe in § 4. All variants share the same initial gate values. Table 8 shows the performance of these variants. Using channel-wise gates for both the readout and integration achieves the lowest perplexities and the highest commonsense average, suggesting that allowing each key channel to adjust its own readout weight and integration rate is beneficial.

γ\gammaλ\lambdaWiki. ppl ↓\downarrowLMB. ppl ↓\downarrowLMB. acc ↑\uparrowPIQA acc ↑\uparrowHella. accn_n ↑\uparrowWino. acc ↑\uparrowARC-e acc ↑\uparrowARC-c accn_n ↑\uparrowOBQA accn_n ↑\uparrowSIQA acc ↑\uparrowBoolQ acc ↑\uparrowAvg. acc ↑\uparrowSWDE acc ↑\uparrowSQuAD acc ↑\uparrowFDA acc ↑\uparrowTriviaQA acc ↑\uparrowNQ acc ↑\uparrowDROP acc ↑\uparrowAvg. acc ↑\uparrow
SS25.1828.3134.167.241.151.857.427.333.639.653.545.114.029.09.147.414.618.922.2
CS25.0825.3037.067.041.250.659.828.232.038.259.746.016.230.011.547.614.618.323.0
SC25.0726.0636.166.341.051.358.628.034.839.057.545.816.629.113.448.014.920.723.8
CC24.9724.9936.968.440.752.958.228.034.838.859.546.518.130.69.648.915.017.323.3

Table 8. Effect of channel-wise gating (340M parameters, 15B tokens). S: scalar; C: channel-wise.

References

  1. [1]Anuj Apte, Pranav Deshpande, Niraj Kumar, Shouvannik Chakrabarti, and Junhyung Lyle Kim. Anytime training with schedule-free spectral optimization. arXiv preprint arXiv:2605.23061, 2026. URL https://arxiv.org/abs/2605.23061.
  2. [2]Simran Arora, Brandon Yang, Sabri Eyuboglu, Avanika Narayan, Andrew Hojel, Immanuel Trummer, and Christopher Ré. Language models enable simple systems for generating structured views of heterogeneous data lakes. arXiv preprint arXiv:2304.09433, 2023. URL https://arxiv.org/abs/2304.09433.
  3. [3]Simran Arora, Sabri Eyuboglu, Aman Timalsina, Isys Johnson, Michael Poli, James Zou, Atri Rudra, and Christopher Ré. Zoology: Measuring and improving recall in efficient language models. In The Twelfth International Conference on Learning Representations, 2024a. URL https://openreview.net/forum?id=LY3ukUANko.arxiv.org/abs/2312.04927
  4. [4]Simran Arora, Aman Timalsina, Aaryan Singhal, Benjamin Spector, Sabri Eyuboglu, Xinyi Zhao, Ashish Rao, Atri Rudra, and Christopher Ré. Just read twice: closing the recall gap for recurrent language models. arXiv preprint arXiv:2407.05483, 2024b. URL https://arxiv.org/abs/2407.05483.
  5. [5]Yushi Bai, Xin Lv, Jiajie Zhang, Hongchang Lyu, Jiankai Tang, Zhidian Huang, Zhengxiao Du, Xiao Liu, Aohan Zeng, Lei Hou, Yuxiao Dong, Jie Tang, and Juanzi Li. LongBench: A bilingual, multitask benchmark for long context understanding. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 3119–3137, 2024. doi: 10.18653/v1/2024.acl-long.172. URL https://aclanthology.org/2024.acl-long.172/.DOI
  6. [6]Reza Bayat, Ali Behrouz, Vahab Mirrokni, and Aaron Courville. Proteus: Incremental memory activation for long-context sequence modeling. arXiv preprint arXiv:2608.16844, 2026.
  7. [7]Ali Behrouz, Peilin Zhong, and Vahab Mirrokni. Titans: Learning to memorize at test time. In Advances in Neural Information Processing Systems, volume 38, pages 113506–113543, 2025. URL https://proceedings.neurips.cc/paper_files/paper/2025/hash/a4ca07aa108036f80cbb5b82285fd4b1-Abstract-Conference.html.arxiv.org/abs/2501.00663
  8. [8]Ali Behrouz, Zeman Li, Praneeth Kacham, Majid Daliri, Yuan Deng, Peilin Zhong, Meisam Razaviyayn, and Vahab Mirrokni. ATLAS: Learning to optimally memorize the context at test time. In Forty-third International Conference on Machine Learning, 2026a. URL https://openreview.net/forum?id=HV1R5bMSpa.arxiv.org/abs/2505.23735
  9. [9]Ali Behrouz, Meisam Razaviyayn, Peilin Zhong, and Vahab Mirrokni. It’s all connected: A journey through test-time memorization, attentional bias, retention, and online optimization. In The Fourteenth International Conference on Learning Representations, 2026b. URL https://openreview.net/forum?id=gZyEJ2kMow.arxiv.org/abs/2504.13173
  10. [10]Christian Bischof and Charles Van Loan. The WY representation for products of Householder matrices. SIAM Journal on Scientific and Statistical Computing, 8(1):s2–s13, 1987. URL https://epubs.siam.org/doi/abs/10.1137/0908009.DOI
  11. [11]Marco Bondaschi, Nived Rajaraman, Xiuying Wei, Razvan Pascanu, Caglar Gulcehre, Michael Gastpar, and Ashok Vardhan Makkura. From Markov to Laplace: How Mamba in-context learns Markov chains. In International Conference on Learning Representations, 2026. URL https://proceedings.iclr.cc/paper_files/paper/2026/hash/8fef8a350b54e18758ea546bc98eba28-Abstract-Conference.html.arxiv.org/abs/2502.10178
  12. [12]Krzysztof Choromanski, Valerii Likhosherstov, David Dohan, Xingyou Song, Andrea Gane, Tomas Sarlós, Peter Hawkins, Jared Davis, Afroz Mohiuddin, Lukasz Kaiser, David Belanger, Lucy Colwell, and Adrian Weller. Rethinking attention with performers. In International Conference on Learning Representations, 2021. URL https://openreview.net/forum?id=Ua6zuku0WRH.arxiv.org/abs/2009.14794
  13. [13]Tri Dao and Albert Gu. Transformers are SSMs: Generalized models and efficient algorithms through structured state space duality. In Proceedings of the 41st International Conference on Machine Learning, volume 235 of Proceedings of Machine Learning Research, pages 10041–10071. PMLR, 2024. URL https://proceedings.mlr.press/v235/dao24a.html.arxiv.org/abs/2405.21060
  14. [14]Pradeep Dasigi, Kyle Lo, Iz Beltagy, Arman Cohan, Noah A. Smith, and Matt Gardner. A dataset of information-seeking questions and answers anchored in research papers. In Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 4599–4610, 2021. URL https://aclanthology.org/2021.naacl-main.365/.
  15. [15]Aaron Defazio. ScheduleFree†: Scaling learning-rate-free & schedule-free learning to large language models. arXiv preprint arXiv:2605.19095, 2026. URL https://arxiv.org/abs/2605.19095.
  16. [16]Aaron Defazio, Xingyu (Alice) Yang, Harsh Mehta, Konstantin Mischenko, Ahmed Khaled, and Ashok Cutkosky. The road less scheduled. In Advances in Neural Information Processing Systems, volume 37, 2024. URL https://proceedings.neurips.cc/paper_files/paper/2024/hash/136b9a381638c8984cd308cc02658-Abstract-Conference.html.arxiv.org/abs/2405.15682
  17. [17]Jusen Du, Weigao Sun, Disen Lan, Jiaxi Hu, Tao Zhang, and Yu Cheng. MoM: Linear sequence modeling with mixture-of-memories. In The Fourteenth International Conference on Learning Representations, 2026. URL https://openreview.net/forum?id=3PD0q8Rgue.arxiv.org/abs/2502.13685
  18. [18]Dheeru Dua, Yizhونg Wang, Pradeep Dasigi, Gabriel Stanovsky, Sameer Singh, and Matt Gardner. DROP: A reading comprehension benchmark requiring discrete reasoning over paragraphs. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), pages 2368–2378, 2019. URL https://aclanthology.org/N19-1246/.arxiv.org/abs/1903.00161
  19. [19]Leo Gao, Jonathan Tow, Baber Abbasi, Stella Biderman, Sid Black, Anthony DiPofi, Charles Foster, Laurence Golding, Jeffrey Hsu, Alain Le Noac’h, Haanan Li, Kyle McDonell, Niklas Muennighoff, Chris Ociepa, Jason Phang, Laria Reynolds, Hailey Schoelkopf, Aviya Skowron, Lintang Sutawika, Eric Tang, Anish Thite, Ben Wang, Kevin Wang, and Andy Zou. A framework for few-shot language model evaluation, 12 2023. URL https://zenodo.org/records/10256836.
  20. [20]Riccardo Grazzi, Julien Niklas Siems, Simon Schrodi, Thomas Brox, and Frank Hutter. Is Mamba capable of in-context learning? In Proceedings of the Third International Conference on Automated Machine Learning, volume 256 of Proceedings of Machine Learning Research, pages 1/1–26. PMLR, 2024. URL https://proceedings.mlr.press/v256/grazzi24a.html.arxiv.org/abs/2402.03170
  21. [21]Riccardo Grazzi, Julien Siems, Arber Zela, Jörg K.H. Franke, Frank Hutter, and Massimiliano Pontil. Unlocking state-tracking in linear RNNs through negative eigenvalues. In The Thirteenth International Conference on Learning Representations, 2025. URL https://openreview.net/forum?id=UvTo3tVBk2.arxiv.org/abs/2411.12537
  22. [22]Albert Gu and Tri Dao. Mamba: Linear-time sequence modeling with selective state spaces. In First Conference on Language Modeling, 2024. URL https://openreview.net/forum?id=tEYskw1VY2.arxiv.org/abs/2312.00752
  23. [23]Albert Gu, Karan Goel, and Christopher Ré. Efficiently modeling long sequences with structured state spaces. In International Conference on Learning Representations, 2022. URL https://openreview.net/forum?id=uYLFoiZvlAC.arxiv.org/abs/2111.00396
  24. [24]Qiang Hao, Rui Cai, Yanwei Pang, and Lei Zhang. From one tree to a forest: A unified solution for structured web data extraction. In Proceedings of the 34th International ACM SIGIR Conference on Research and Development in Information Retrieval, 2011. URL https://www.microsoft.com/en-us/research/wp-content/uploads/2016/02/StructuredDataExtraction_SIGIR2011.pdf.DOI
  25. [25]Ali Hatamizadeh, Yejin Choi, and Jan Kautz. Gated DeltaNet-2: Decoupling erase and write in linear attention. arXiv preprint arXiv:2605.22791, 2026. URL https://arxiv.org/abs/2605.22791.
  26. [26]Cheng-Ping Hsieh, Siemeng Sun, Samuel Kriman, Shantanu Acharya, Dima Rekesh, Fei Jia, Yang Zhang, and Boris Ginsburg. RULER: What’s the real context size of your long-context language models? In First Conference on Language Modeling, 2024. URL https://arxiv.org/abs/2404.06564.
  27. [27]Weizhe Hua, Zihang Dai, Hanxiao Liu, and Quoc Le. Transformer quality in linear time. In Proceedings of the 39th International Conference on Machine Learning, volume 162 of Proceedings of Machine Learning Research, pages 9099–9117. PMLR, 2022. URL https://proceedings.mlr.press/v162/hua22a.html.arxiv.org/abs/2202.10447
  28. [28]Luyang Huang, Shuyang Cao, Nikolaus Parulian, Heng Ji, and Lu Wang. Efficient attentions for long document summarization. In Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 1419–1436, 2021. URL https://aclanthology.org/2021.naacl-main.112/.arxiv.org/abs/2104.02112
  29. [29]Yulong Huang, Xiang Liu, Hongxiang Huang, Xiaopeng Lin, Zunchang Liu, Xiaowen Chu, Zeke Xie, and Bojun Cheng. MDN: Parallelizing stepwise momentum for delta linear attention. In International Conference on Machine Learning, 2026. URL https://openreview.net/forum?id=Sh3rKEAx1w.arxiv.org/abs/2605.05838
  30. [30]Pavel Izmailov, Dmitrii Podoprikhin, Timur Garipov, Dmitry Vetrov, and Andrew Gordon Wilson. Averaging weights leads to wider optima and better generalization. In Conference on Uncertainty in Artificial Intelligence, 2018. URL https://arxiv.org/abs/1803.05407.
  31. [31]Samy Jelassi, David Brandfonbrener, Sham M. Kakade, and Eran Malach. Repeat after me: Transformers are better than state space models at copying. In International Conference on Machine Learning, volume 235 of Proceedings of Machine Learning Research, pages 21502–21521. PMLR, 2024. URL https://proceedings.mlr.press/v235/jelassi24a.html.arxiv.org/abs/2402.01032
  32. [32]Jiarui Jiang, Wei Huang, Miao Zhang, Taiji Suzuki, and Liqiang Nie. Trained Mamba emulates on-line gradient descent in in-context linear regression. In Advances in Neural Information Processing Systems, volume 38, 2025. URL https://proceedings.neurips.cc/paper_files/paper/2025/hash/0f9e0309d8a947ca44463a9b7e8b6a3f-Abstract-Conference.html.DOI
  33. [33]Thierry Joffrain, Tze Meng Low, Enrique S Quintana-Ortí, Robert van de Geijn, and Field G. Van Zee. Accumulating Household transformations, revisited. ACM Transactions on Mathematical Software (TOMS), 32(2):169–179, 2006. URL https://www.cs.utexas.edu/~flame/books/ACMTOMS.pdf.DOI
  34. [34]Keller Jordan, Yuchen Jin, Vlado Boza, Jiacheng You, Franz Cesista, Laker Newhouse, and Jeremy Bernstein. Muon: An optimizer for hidden layers in neural networks, 2024. URL https://kellerjordan.github.io/posts/muon/.
  35. [35]Mandar Joshi, Eunsol Choi, Daniel Weld, and Luke Zettlemoyer. TriviaQA: A large scale distantly supervised challenge dataset for reading comprehension. In Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 1601–1611, 2017. URL https://aclanthology.org/P17-1147/.arxiv.org/abs/1705.03551
  36. [36]Angelos Katharopoulos, Apoorv Vyas, Nikolaos Pappas, and François Fleuret. Transformers are RNNs: Fast autoregressive transformers with linear attention. In Proceedings of the 37th International Conference on Machine Learning, volume 119 of Proceedings of Machine Learning Research, pages 5156–5165. PMLR, 2020. URL https://proceedings.mlr.press/v119/katharopoulos20a.html.arxiv.org/abs/2006.16236
  37. [37]Jueun Kim, Baekrok Shin, Jihun Yun, Beomhan Baek, Minhak Song, and Chulhee Yun. AMUSE: Anytime Muon with stable gradient evaluation. arXiv preprint arXiv:2605.22432, 2026. URL https://arxiv.org/abs/2605.22432.
  38. [38]Kimi Team. Kimi Linear: An expressive, efficient attention architecture. arXiv preprint arXiv:2510.26692, 2025. URL https://arxiv.org/abs/2510.26692.
  39. [39]Kimi Team. Kimi K3: Open frontier intelligence. arXiv preprint arXiv:2607.24653, 2026. URL https://arxiv.org/abs/2607.24653.
  40. [40]Tomáš Kočiský, Jonathan Schwarz, Phil Blunsom, Chris Dyer, Karl Moritz Hermann, Gábor Melis, and Edward Grefenstette. The NarrativeQA reading comprehension challenge. Transactions of the Association for Computational Linguistics, 6:317–328, 2018. URL https://aclanthology.org/Q18-1023/.arxiv.org/abs/1712.07040
  41. [41]Tom Kwiatkowski, Jennimaria Palomaki, Olivia Redfield, Michael Collins, Ankur Parikh, Chris Alberti, Danielle Epstein, Illia Polosukhin, Jacob Devlin, Kenton Lee, Kristina Toutanova, Llion Jones, Matthew Kelcey, Ming-Wei Chang, Andrew M. Dai, Jakob Uszkoreit, Quoc Le, and Slav Petrov. Natural questions: A benchmark for question answering research. Transactions of the Association for Computational Linguistics, 7:452–466, 2019. URL https://aclanthology.org/Q19-1026/.DOI
  42. [42]Aakash Sunil Lahoti, Kevin Li, Berlin Chen, Caitlin Wang, Aviv Bick, Zico Kolter, Tri Dao, and Albert Gu. Mamba-3: Improved sequence modeling using state space principles. In International Conference on Learning Representations, 2026. URL https://proceedings.iclr.cc/paper_files/paper/2026/hash/8abd2043b71a074278d5f687947bff9c-Abstract-Conference.html.arxiv.org/abs/2603.15569
  43. [43]Hongkang Li, Songtao Lu, Xiaodong Cui, Pin-Yu Chen, and Meng Wang. How can Mamba learn in context with outliers and generalize provably? In International Conference on Machine Learning, 2026. URL https://arxiv.org/abs/2510.00399.
  44. [44]Yingcong Li, Davoud Ataee Tarzanagh, Ankit Singh Rawat, Maryam Fazel, and Samet Oymak. Gating is weighting: Understanding gated linear attention through in-context learning. In Second Conference on Language Modeling, 2025. URL https://openreview.net/forum?id=9AFIz0YzD7.arxiv.org/abs/2504.04308
  45. [45]Zhichen Liu, Ruihan Sun, Hengjie Yang, Zipeng Wu, Zhaohan Chen, Xiaofan Zhang, and Yang Xu. LiveMem: Maintaining memory state continuity in long-running LLM inference. arXiv preprint arXiv:2608.02515, 2026. URL https://arxiv.org/abs/2608.02515.
  46. [46]Ilya Loshchilov and Frank Hutter. Decoupled weight decay regularization. In International Conference on Learning Representations, 2019. URL https://openreview.net/forum?id=Bkg6RiCqY7.
  47. [47]Eric Martin and Chris Cundy. Parallelizing linear recurrent neural nets over sequence length. In International Conference on Learning Representations, 2018. URL https://openreview.net/forum?id=HyUNwuIC-.arxiv.org/abs/1709.04057
  48. [48]Stephen Merity, Caiming Xiong, James Bradbury, and Richard Socher. Pointer sentinel mixture models. In International Conference on Learning Representations, 2017. URL https://arxiv.org/abs/1609.07843.
  49. [49]William Merrill, Jackson Petty, and Ashish Sabharwal. The illusion of state in state-space models. In International Conference on Machine Learning, volume 235 of Proceedings of Machine Learning Research, pages 35492–35506. PMLR, 2024. URL https://proceedings.mlr.press/v235/merrill124a.html.arxiv.org/abs/2404.08819
  50. [50]Junsoo Oh, Wei Huang, and Taiji Suzuki. Mamba can learn low-dimensional targets in-context via test-time feature learning. arXiv preprint arXiv:2510.12026, 2025. URL https://arxiv.org/abs/2510.12026.
  51. [51]Antonio Orvieto, Samuel L Smith, Albert Gu, Anushan Fernando, Caglar Gulcehre, Razvan Pascanu, and Soham De. Resurrecting recurrent neural networks for long sequences. In International Conference on Machine Learning, volume 202 of Proceedings of Machine Learning Research, pages 26670–26698. PMLR, 2023. URL https://proceedings.mlr.press/v202/orvieto23a.html.arxiv.org/abs/2303.06349
  52. [52]Denis Paperno, Germán Kruszewski, Angeliki Lazaridou, Ngoc Quan Pham, Raffaella Bernardi, Sandro Pezzelle, Marco Baroni, Gemma Boleda, and Raquel Fernández. The LAMBADA dataset: Word prediction requiring a broad discourse context. In Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 1525–1534, 2016. URL https://aclanthology.org/P16-1144/.arxiv.org/abs/1606.06031
  53. [53]Jongho Park, Jaeseung Park, Zheyang Xiong, Nayoung Lee, Jaewoong Cho, Samet Oymak, Kangwook Lee, and Dimitris Papailiopoulos. Can Mamba learn how to learn? A comparative study on in-context learning tasks. In International Conference on Machine Learning, volume 235 of Proceedings of Machine Learning Research, pages 39793–39812. PMLR, 2024. URL https://proceedings.mlr.press/v235/park24j.html.
  54. [54]Sumin Park, Seojin Kim, and Noseong Park. Q-Delta: Beyond key–value associative state evolution. In International Conference on Machine Learning, 2026. URL https://openreview.net/forum?id=06tuJZIvOu.arxiv.org/abs/2606.08804
  55. [55]Guilherme Penedo, Hynek Kydlíček, Loubna Ben Allal, Anton Lozhkov, Margaret Mitchell, Colin Raffel, Leandro Von Werra, and Thomas Wolf. The FineWeb datasets: Decanting the web for the finest text data at scale. In Advances in Neural Information Processing Systems, volume 37, pages 30811–30849, 2024. URL https://proceedings.neurips.cc/paper_files/paper/2024/hash/370df50ccdfd8bde18f9c2d9151bda-Abstract-Datasets_and_Benchmarks_Track.html.arxiv.org/abs/2406.17557
  56. [56]Bo Peng, Eric Alcaide, Quentin Anthony, Alon Albalak, Samuel Arcadinho, Stella Biderman, Huangqi Cao, Xin Cheng, Michael Chung, Leon Derczynski, Xingjian Du, Matteo Grella, Kranthi Gv, Xuzheng He, Haowen Hou, Przemyslaw Kazienko, Jan Kocon, Jiaming Kong, Bartłomiej Koptyra, Hayden Lau, Jiajun Lin, Krishna Sri Ipsit Mantri, Ferdinand Mom, Atsushi Saito, Guangyu Song, Xiangru Tang, Johan Wind, Stanislaw Woźniak, Zhenyuan Zhang, Qinghua Zhou, Jian Zhu, and Rui-Jie Zhu. RWKV: Reinventing RNNs for the transformer era. In Findings of the Association for Computational Linguistics: EMNLP 2023, pages 14048–14077. Association for Computational Linguistics, 2023. doi: 10.18653/v1/2023.findings-emnlp.936. URL https://aclanthology.org/2023.findings-emnlp.936/.
  57. [57]Hao Peng, Nikolaos Pappas, Dani Yogatama, Roy Schwartz, Noah Smith, and Lingpeng Kong. Random feature attention. In International Conference on Learning Representations, 2021. URL https://openreview.net/forum?id=QtTKTdVrFBB.arxiv.org/abs/2103.02143
  58. [58]Qwen Team. Qwen3-Next: Towards ultimate training & inference efficiency. Qwen Research Blog, 2025. URL https://qwen.ai/blog?id=4074cca80393150c248e508aa62983f9cb7d27cd.
  59. [59]Jack W. Rae, Anna Potapenko, Siddhant M. Jayakumar, Chloe Hillier, and Timothy P. Lillicrap. Compressive transformers for long-range sequence modelling. In International Conference on Learning Representations, 2020. URL https://openreview.net/forum?id=SyxIikSYDH.arxiv.org/abs/1911.05507
  60. [60]Pranav Rajpurkar, Robin Jia, and Percy Liang. Know what you don’t know: Unanswerable questions for SQuAD. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers), pages 784–789, 2018. URL https://aclanthology.org/P18-2124/.arxiv.org/abs/1806.03822
  61. [61]Imanol Schlag, Kazuki Irie, and Jürgen Schmidhuber. Linear transformers are secretly fast weight programmers. In Proceedings of the 38th International Conference on Machine Learning, volume 139 of Proceedings of Machine Learning Research, pages 9355–9366. PMLR, 2021. URL https://proceedings.mlr.press/v139/schlag21a.html.arxiv.org/abs/2102.11174
  62. [62]Julien Siems, Timur Carstensen, Arber Zela, Frank Hutter, Massimiliano Pontil, and Riccardo Grazzi. DeltaProduct: Improving state-tracking in linear RNNs via Householder products. In Advances in Neural Information Processing Systems, volume 38, 2025. URL https://proceedings.neurips.cc/paper_files/paper/2025/hash/e1ea2520fbf9cd1600b287dde67e0a3c-Abstract-Conference.html.
  63. [63]Minhak Song, Beomhan Baek, Kwangjun Ahn, and Chulhee Yun. Through the river: Understanding the benefit of schedule-free methods for language model training. In Advances in Neural Information Processing Systems, volume 38, 2025. URL https://proceedings.neurips.cc/paper_files/paper/2025/hash/b94ab4933fea38629a1308fb78ce2cc-Abstract-Conference.html.arxiv.org/abs/2507.09846
  64. [64]Yu Sun, Xinhao Li, Karan Dalal, Jiarui Xu, Arjun Vikram, Genghan Zhang, Yann Dubois, Xinlei Chen, Xiaolong Wang, Sanmi Koyejо, Tatsunori Hashimoto, and Carlos Guestrin. Learning to (learn at test time): RNNs with expressive hidden states. In Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pages 57503–57522. PMLR, 2025. URL https://proceedings.mlr.press/v267/sun25h.html.arxiv.org/abs/2407.04620
  65. [65]Yutao Sun, Li Dong, Shaohan Huang, Shuming Ma, Yuqing Xia, Jilong Xue, Jianyoung Wang, and Furu Wei. Retentive network: A successor to transformer for large language models. arXiv preprint arXiv:2307.08621, 2023. URL https://arxiv.org/abs/2307.08621.
  66. [66]Hugo Touvron, Thibaut Lavril, Gautier Izacard, Xavier Martinet, Marie-Anne Lachaux, Timothée Lacroix, Baptiste Rozière, Naman Goyal, Eric Hambro, Faisal Azhar, et al. LLaMA: Open and efficient foundation language models. arXiv preprint arXiv:2302.13971, 2023. URL https://arxiv.org/abs/2302.13971.
  67. [67]Neehal Tumma, Noel Loo, and Daniela Rus. Preconditioned DeltaNet: Curvature-aware sequence modeling for linear recurrences. In International Conference on Machine Learning, 2026. URL https://openreview.net/forum?id=UC6YiToEkB.arxiv.org/abs/2604.21100
  68. [68]Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Lukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Advances in Neural Information Processing Systems, volume 30, 2017. URL https://proceedings.neurips.cc/paper/2017/hash/3f5ee243547dee91fbd053c1c4a845aa-Abstract.html.arxiv.org/abs/1706.03762
  69. [69]Leandro von Werra. Training CodeParrot from scratch. Hugging Face Blog, 2021. URL https://huggingface.co/blog/codeparrot.
  70. [70]Songlin Yang and Yu Zhang. FLA: A Triton-based library for hardware-efficient implementations of linear attention mechanism, January 2024. URL https://github.com/fla-org/flash-linear-attention.
  71. [71]Songlin Yang, Bailin Wang, Yikang Shen, Rameswar Panda, and Yoon Kim. Gated linear attention transformers with hardware-efficient training. In Proceedings of the 41st International Conference on Machine Learning, volume 235 of Proceedings of Machine Learning Research, pages 56501–56523. PMLR, 2024a. URL https://proceedings.mlr.press/v235/yang24ab.html.arxiv.org/abs/2312.06635
  72. [72]Songlin Yang, Bailin Wang, Yu Zhang, Yikang Shen, and Yoon Kim. Parallelizing linear transformers with the delta rule over sequence length. In Advances in Neural Information Processing Systems, volume 37, pages 154191–155222, 2024b. URL https://proceedings.neurips.cc/paper_files/paper/2024/hash/d13a3eae72366e61dfdc7eea82eeb685-Abstract-Conference.html.arxiv.org/abs/2406.06484
  73. [73]Songlin Yang, Jan Kautz, and Ali Hatamizadeh. Gated delta networks: Improving Mamba2 with delta rule. In International Conference on Learning Representations, 2025. URL https://proceedings.iclr.cc/paper_files/paper/2025/hash/4904fad153f6434a7bcf04465d4be2cc-Abstract-Conference.html.arxiv.org/abs/2412.06464
  74. [74]Michael R. Zhang, James Lucas, Geoffrey Hinton, and Jimmy Ba. Lookahead optimizer: k steps forward, 1 step back. In Advances in Neural Information Processing Systems, volume 32, 2019. URL https://arxiv.org/abs/1907.08610.
  75. [75]Ming Zhong, Da Yin, Tao Yu, Ahmad Zaidi, Mutethia Mutuma, Rahul Jha, Ahmed Hassan Awadallah, Asli Celikyilmaz, Yang Liu, Xipeng Qiu, and Dragomir Radev. QMSum: A new benchmark for query-based multi-domain meeting summarization. In Kristina Toutanova, Anna Rumshisky, Luke Zettlemoyer, Dilek Hakkani-Tur, Iz Beltagy, Steven Bethard, Ryan Cotterell, Tammy Kakh’я, and Yichao Zhou, editors, Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 5905–5921, Online, June 2021. Association for Computational Linguistics. doi: 10.18653/v1/2021.naacl-main.472. URL https://aclanthology.org/2021.naacl-main.472/.DOI

Paper details

vlnc:W_c2rtdej8
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents