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.
Figures & tables
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.
Figure 2: Illustrative example and retrieval performance.
Model
Wiki.
LMB.
LMB.
PIQA
Hella.
Wino.
ARC-e
ARC-c
OBQA
SIQA
BoolQ
Avg.
ppl ↓
ppl ↓
acc ↑
acc ↑
acc n ↑
acc ↑
acc ↑
acc n ↑
acc n ↑
acc ↑
acc ↑
acc ↑
340M parameters / 15B tokens
Transformer++
26.37
36.20
33.1
65.8
39.3
51.1
59.0
27.6
33.6
38.1
59.5
45.2
Mamba-2
27.95
36.89
30.1
66.4
39.5
50.8
58.2 †
27.0
33.8
38.9 †
55.3
44.4
DeltaNet
27.52
38.86
30.9
66.1
38.0
50.5
56.2
26.9
31.4
37.7
57.0
43.8
GDN
26.32
31.37
33.4
66.8
40.4
52.6
57.7
27.0
34.2 †
38.4
56.7
45.3
Table 1: Performance on language modeling and zero-shot commonsense reasoning.
340M parameters / 15B tokens
1.3B parameters / 100B tokens
Model
SWDE
SQuAD
FDA
TriviaQA
NQ
DROP
Avg.
SWDE
SQuAD
FDA
TriviaQA
NQ
DROP
Avg.
Transformer++
31.8
34.2
48.2
48.4
17.3
19.4
33.2
48.2
45.3
65.7
62.8
26.7
25.1
45.6
Mamba-2
6.6
24.0
3.7
42.9
10.5
14.9
17.1
20.7
36.5
13.6
59.4
20.1
21.1 †
28.6
DeltaNet
7.0
23.7
7.7
45.7
12.4
16.1
18.8
29.6
36.7
27.4
60.3
21.9
21.0
32.8
GDN
11.2
27.6
7.2
46.3
14.2
17.5
20.7
34.0 †
39.6 †
27.3
62.3
24.1 †
20.7
34.7
KDA
10.2
28.6 †
8.1
47.8 †
14.4 †
17.7 †
21.1
32.7
41.1 ⋆
30.2 †
62.9 ⋆
24.1 †
21.6 ⋆
35.4 †
Table 2: Accuracy ( % , ↑ ) on six real-world retrieval tasks.
Figure 3: Length extrapolation of 1.3B models trained at 4K (perplexity, ↓ ).
Figure 4: Training throughput and activation memory. T: throughput-first; M: memory-first.
Memory (GiB)
Latency (ms)
Model
4 K
16 K
64 K
4 K
16 K
64 K
Mamba-2
2.85
2.85
2.85
2.15
2.15
2.15
DeltaNet
2.87
2.87
2.87
2.61
2.60
2.60
GDN
2.94
2.94
2.94
2.50
2.51
2.50
KDA
2.85
2.85
2.85
3.34
3.34
3.34
Integral KDA
2.99
2.99
2.99
4.63
4.63
4.63
Table 5: Decoding memory and per-token latency across context lengths.
Appendix figures & tables4 assets
Supplementary material from the paper’s appendix.
Appendix
Language modeling and commonsense reasoning
Real-world retrieval
Model
Wiki.
LMB.
LMB.
PIQA
Hella.
Wino.
ARC-e
ARC-c
OBQA
SIQA
BoolQ
Avg.
SWDE
SQuAD
FDA
TriviaQA
NQ
DROP
Avg.
ppl ↓
ppl ↓
acc ↑
acc ↑
acc n ↑
acc ↑
acc ↑
acc n ↑
acc n ↑
acc ↑
acc ↑
acc ↑
acc ↑
KDA
24.89
26.16
36.4
66.9
41.2
53.4
59.4
27.3
33.6
39.0
57.9
46.1
10.2
28.6
8.1
47.8
14.4
17.7
21.1
KDA dk×2
25.87
25.88
35.8
66.8
40.5
54.3
58.5
27.0
32.0
38.7
60.9
46.1
9.3
30.2
7.6
48.4
14.6
16.4
21.1
KDA dv×2
24.95
24.40
37.4
66.7
41.3
53.3
61.7
27.5
33.6
38.7
50.3
45.6
15.1
30.5
7.6
46.8
14.0
19.1
22.2
Two KDA states
25.10
25.40
36.3
65.9
40.8
52.0
57.9
27.1
34.6
39.4
61.7
46.2
13.0
29.7
7.6
48.6
14.9
18.2
22.0
Appendix
Table 6: Effect of the integral state (340M parameters, 15B tokens).
Language modeling and commonsense reasoning
Real-world retrieval
Model
Wiki.
LMB.
LMB.
PIQA
Hella.
Wino.
ARC-e
ARC-c
OBQA
SIQA
BoolQ
Avg.
SWDE
SQuAD
FDA
TriviaQA
NQ
DROP
Avg.
ppl ↓
ppl ↓
acc ↑
acc ↑
acc n ↑
acc ↑
acc ↑
acc n ↑
acc n ↑
acc ↑
acc ↑
acc ↑
acc ↑
KDA
24.89
26.16
36.4
66.9
41.2
53.4
59.4
27.3
33.6
39.0
57.9
46.1
10.2
28.6
8.1
47.8
14.4
17.7
21.1
Constant readout gate
25.26
25.04
36.7
67.1
40.7
50.5
59.0
27.7
33.8
39.0
58.5
45.9
12.7
28.9
9.6
46.9
13.2
19.5
21.8
Integral KDA
24.97
24.99
36.9
68.4
40.7
52.9
58.2
28.0
34.8
38.8
59.5
46.5
18.1
30.6
9.6
48.9
15.0
17.3
23.3
Appendix
Table 7: Effect of input-dependent readout (340M parameters, 15B tokens).
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.
College of Control Science and Engineering, Zhejiang University · Polytechnic Institute, Zhejiang University · Department of Mathematics, National University of Singapore +1