Full text not available for this paper
Summary (Overview)
- Proposes Integral DeltaNet, a novel linear attention architecture that maintains two complementary recurrent states: a fast-updating delta state for current key-value associations and a slow integral state preserving a weighted history of delta states.
- Addresses the trade-off between memory collision mitigation and information retention — while delta-rule updates and gating reduce interference, they can discard information relevant to future predictions; the integral state recovers this lost information.
- Derives a chunkwise parallel formulation enabling hardware-efficient training, compatible with FlashLinearAttention kernels.
- Demonstrates consistent improvements over strong recurrent baselines (Mamba-2, DeltaNet, GDN, KDA, GDN-2) across language modeling, commonsense reasoning, real-world retrieval, long-context understanding, and length extrapolation at 340M and 1.3B parameter scales.
- Provides theoretical justification (Propositions 1–2) showing that single-state models have inherent retrieval limitations that the two-state design overcomes.
Introduction and Theoretical Foundation
Background
Modern LLMs rely on the Transformer architecture, whose softmax attention scales quadratically with context length and requires a growing key-value cache during inference. Linear attention (Katharopoulos et al., 2020) replaces softmax with a kernelized dot product, enabling linear-time computation with a fixed-size recurrent state:
The recurrent form maintains a prefix state:
Memory Collision Problem
Compressing all past associations into a fixed-size state causes memory collision. With unit-normalized keys, retrieving the value associated with yields:
The interference term is nonzero when keys are not orthogonal. DeltaNet mitigates this via delta-rule updates:
Mamba-2 uses data-dependent decay:
Gated DeltaNet combines both:
Theoretical Trade-off (Proposition 1)
The paper proves a fundamental limitation of single-state models through an illustrative example with keys satisfying :
Since , any single-state linear readout favoring "Yes" for both later keys also makes the first key read as "Yes" — even optimal gates cannot achieve zero error.
Methodology
Two-State Architecture
Integral DeltaNet maintains:
- Delta state : updated via expressive channel-wise rules (KDA or GDN-2)
- Integral state : accumulates a weighted history of delta states
The integral state update:
where and specifies the integration rate per key channel.
Adaptive readout combines both states:
where is a channel-wise readout gate.
Gate Parametrization
Gates are computed from the normalized hidden state with low-rank projections:
Initialization ensures and are small, placing nearly all readout weight on the delta state initially.
Theoretical Guarantee (Proposition 2)
Integral DeltaNet achieves zero retrieval risk on the illustrative example:
One construction uses , , and for .
Chunkwise Parallel Training
The chunkwise formulation partitions the sequence into chunks of size . Within-chunk retention weights:
The integral state within a chunk combines retention-weighted prefix operators with the retained incoming state:
Chunk outputs separate into contributions from incoming states and within-chunk writes:
Empirical Validation / Results
Training Setup
- Models: 340M/1.3B parameters trained from scratch on 15B/100B FineWeb-Edu tokens
- Optimizer: AdamW (, , ), cosine LR decay from to
- Context: 4K sequences with Llama-2 tokenization
Language Modeling and Reasoning (Table 1)
Key results at 1.3B scale:
- Integral KDA achieves the best overall average accuracy (56.1%) among all models, surpassing Transformer++ (54.7%) and KDA (54.6%)
- Integral KDA improves WikiText-2 perplexity from 15.33 (KDA) to 15.00
- Both Integral variants outperform their baselines on average across 9 commonsense reasoning tasks
Real-World Retrieval (Table 2)
- Integral KDA achieves the best average retrieval accuracy at both scales (23.3% at 340M, 37.3% at 1.3B)
- Substantial gains on SWDE: 18.1 vs 10.2 (KDA) at 340M; 40.4 vs 32.7 at 1.3B
- Integral GDN-2 also improves over GDN-2 at both scales
Needle-in-a-Haystack (Table 3)
- Integral KDA shows substantial gains on MK-NIAH-1: 54.0 vs 47.2 (1K), 50.4 vs 37.0 (2K), 35.6 vs 20.8 (4K)
- Integral GDN-2 achieves dramatic improvements on MK-NIAH-1: 76.4 vs 45.2 (1K), 67.2 vs 32.8 (2K), 39.8 vs 23.8 (4K)
- Integral KDA reaches 100% on S-NIAH-2 at 1K/2K where KDA scores 100%/79.8%
LongBench (Table 4)
- Integral KDA achieves the best average score (15.0) among all models
- Particularly strong on TRC (52.5 vs 29.5 for KDA) and TQA (27.3 vs 20.5)
Length Extrapolation (Figure 3)
Both Integral variants outperform their baselines on all six datasets at every length beyond 4K training context. Integral KDA leads on GovReport, QMSum, Qasper, and CodeParrot; Integral GDN-2 leads on NarrativeQA and PG19.
Efficiency Results
Training (Figure 4):
- Throughput-first Integral KDA: 81.7 Kt/s vs KDA's 73.9 Kt/s
- Memory-first variants substantially reduce activation memory (47.3 GiB for Integral GDN-2-M vs 165.5 GiB for GDN-2)
Decoding (Table 5):
- Memory stays constant (~2.99 GiB) across context lengths for both Integral variants
- Per-token latency remains constant (4.63 ms for Integral KDA, 4.79 ms for Integral GDN-2) vs Transformer++ growing from 5.18 to 42.59 ms
Theoretical and Practical Implications
Theoretical Significance
- Formalizes the memory-retention trade-off: Proposition 1 proves that single-state models face an inherent limitation — reducing memory collisions through decay/overwriting necessarily causes forgetting of earlier associations
- Demonstrates the necessity of multi-state designs: Proposition 2 shows that maintaining two complementary states overcomes this limitation, providing theoretical justification for the architecture
Practical Implications
- Long-context understanding: The integral state enables models to retain information that would otherwise be lost, improving performance on tasks requiring retrieval of distant information
- Hardware efficiency: The chunkwise formulation maintains competitive training throughput while the memory-first variant significantly reduces activation memory
- Constant decoding cost: Unlike Transformers, Integral DeltaNet maintains constant memory and latency regardless of context length, making it suitable for deployment at scale
Conclusion
Integral DeltaNet addresses the fundamental trade-off between mitigating memory collisions and preserving useful information in linear attention models. By pairing a fast delta state with a slow integral state and using adaptive readout, the model can access information across multiple timescales. The chunkwise parallel formulation enables hardware-efficient training.
Key findings:
- Consistent gains over strong recurrent baselines across language modeling, reasoning, retrieval, and long-context tasks
- Theoretical proof that two-state designs can achieve zero retrieval error where single-state models cannot
- Practical efficiency: constant decoding memory/latency with competitive training throughput
Future directions:
- Using the integral state to guide delta-state updates, similar to how schedule-free optimization methods use averaged iterates
- Exploring more expressive integration mechanisms beyond exponential moving averages
Related papers
- When Every Rollout Fails: Splicing Learner-Conditioned Options into Long-Horizon Agent RL
SPLICE recovers learning signal from all-fail RL groups by splicing local proposal-model options into failed trajectories, beating GRPO by up to 9.8 points with 17.5% less computation.
- The Teacher Is Already Inside: Self-Distilling Looped Language Models Beyond Their Last Loop
ELPSD enables a looped language model to self-distill without rewards by training its last loop against an extrapolated contrastive teacher from its own frozen weights, beating GRPO on math benchmarks.
- Third Eye: Beyond Immediate Gains in Recursive Self-Improvement
Third Eye shows a model's immediate performance after self-update can look neutral while a further native update causes significant utility decline, varying by backbone.