Integral DeltaNet: Improved Linear Attention with Adaptive Memory Integration
Organizations: Kim Jaechul Graduate School of AI, KAIST · KRAFTON AI · Department of Mathematics, University of Wisconsin–Madison
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.
Figures & tables
| 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 |
| 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 † |
| S-NIAH-1 | S-NIAH-2 | S-NIAH-3 | MK-NIAH-1 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Model | 1K | 2K | 4K | 8K | 1K | 2K | 4K | 8K | 1K | 2K | 4K | 1K | 2K | 4K |
| Transformer++ | 100.0 | 100.0 | 98.4 | 0.0 | 100.0 | 100.0 | 86.2 | 0.0 | 100.0 | 99.4 | 69.8 | 98.4 | 94.4 | 77.0 |
| Mamba-2 | 100.0 ⋆ | 99.8 † | 69.0 | 21.4 | 100.0 ⋆ | 98.6 | 65.8 | 23.8 | 63.4 | 46.6 | 13.2 | 29.2 | 21.2 | 18.4 |
| DeltaNet | 100.0 ⋆ | 100.0 ⋆ | 100.0 ⋆ | 100.0 ⋆ | 100.0 ⋆ | 97.4 | 80.6 | 47.6 † | 95.2 ⋆ | 65.2 | 21.0 | 52.8 | 33.4 | 30.4 |
| GDN | 100.0 ⋆ | 99.2 | 91.6 | 63.6 | 88.8 | 99.6 ⋆ | 89.8 † | 28.0 | 90.8 | 63.2 | 20.0 | 48.8 | 39.0 | 25.0 |
| KDA | 100.0 ⋆ | 100.0 ⋆ | 99.6 | 78.4 | 100.0 ⋆ | 79.8 | 70.0 | 32.8 | 90.4 | 68.8 | 24.8 | 47.2 | 37.0 | 20.8 |
| Single-Doc QA | Multi-Doc QA | Summarization | Few-shot | Code | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Model | NQA | QQA | MFQ | HQA | 2WM | Mus | GvR | QMS | MNs | TRC | TQA | SSM | LCC | RBP | Avg. |
| Transformer++ | 0.5 | 2.3 | 5.3 | 1.1 | 2.2 | 0.4 | 5.3 | 5.8 | 7.5 | 11.5 | 6.6 | 3.9 | 17.4 | 8.4 | 5.6 |
| Mamba-2 | 2.0 | 4.3 | 12.5 | 4.1 | 8.1 | 3.1 † | 6.6 | 16.6 | 8.7 | 31.0 | 22.8 | 20.5 | 11.2 | 17.8 | 12.1 |
| DeltaNet | 2.2 | 3.9 | 13.6 | 5.3 | 8.1 | 2.4 | 4.9 | 17.5 † | 10.4 | 37.0 | 19.8 | 27.6 † | 15.7 | 18.3 | 13.3 |
| GDN | 2.1 | 5.1 † | 13.7 † | 5.1 | 8.4 | 3.3 ⋆ | 6.8 | 18.3 ⋆ | 12.3 | 26.0 | 20.7 | 23.3 | 17.7 † | 19.4 | 13.0 |
| KDA | 2.0 | 4.3 | 13.0 | 5.1 | 8.4 | 3.1 † | 10.0 † | 16.2 | 9.6 | 29.5 | 20.5 | 27.5 | 21.9 ⋆ | 24.0 ⋆ | 13.9 |
| Memory (GiB) | Latency (ms) | |||||
|---|---|---|---|---|---|---|
| Model | K | K | K | K | K | 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 |
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 | 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 | 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 |
| 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 |
| Language modeling and commonsense reasoning | Real-world retrieval | |||||||||||||||||||
| 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 | ||||||||
| S | S | 25.18 | 28.31 | 34.1 | 67.2 | 41.1 | 51.8 | 57.4 | 27.3 | 33.6 | 39.6 | 53.5 | 45.1 | 14.0 | 29.0 | 9.1 | 47.4 | 14.6 | 18.9 | 22.2 |
| C | S | 25.08 | 25.30 | 37.0 | 67.0 | 41.2 | 50.6 | 59.8 | 28.2 | 32.0 | 38.2 | 59.7 | 46.0 | 16.2 | 30.0 | 11.5 | 47.6 | 14.6 | 18.3 | 23.0 |
| S | C | 25.07 | 26.06 | 36.1 | 66.3 | 41.0 | 51.3 | 58.6 | 28.0 | 34.8 | 39.0 | 57.5 | 45.8 | 16.6 | 29.1 | 13.4 | 48.0 | 14.9 | 20.7 | 23.8 |
| C | C | 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 |
Delta-Rule Linear Attention
Delta-rule linear attention updates a compact recurrent memory to retrieve and revise sequence information with linear-time processing.
See all 42 papers