Kalman Delta Networks: Uncertainty-aware Associative Memory
cs.LG, cs.AI
Submitted: 2026-09-07
Updated: 2026-09-29
Code: https://github.com/ngocbh/kalman-delta-networks
License: http://creativecommons.org/licenses/by/4.0/
The gist: Linear attention is increasingly used in frontier language models for efficient long-context inference and constant-memory decoding.
Terminology
Abstract
Linear attention is increasingly used in frontier language models for efficient long-context inference and constant-memory decoding. Its fixed-size recurrent memory, however, requires an online decision at each token: what to write and how strongly to overwrite existing associations before knowing which information future queries will require. Delta-rule models learn this strength from the current token embedding but do not track confidence in the memory estimate, preventing each write from adapting to accumulated evidence. To represent this uncertainty explicitly, we reformulate recurrent associative memory as a linear--Gaussian state-space model, for which the Kalman filter is the optimal recursive estimator, and introduce a new family of models, Kalman Delta Networks (KDNs). Within KDNs, the transition propagates both the memory state and its uncertainty, allowing the Kalman gain to weight each residual write by accumulated evidence and observation reliability. Under this formulation, Delta-style updates emerge as a special case that substitutes a token-wise isotropic surrogate for predictive covariance and omits covariance tracking. Exact tracking, however, entails a dense, state-dependent Riccati recursion that is poorly suited to GPU-parallel linear-attention scans. To address this issue, we introduce two scan-compatible KDN approximations. Diagonal KDN projects each one-step posterior onto the diagonal Gaussian family through online mean-field variational inference, whereas Isotropic KDN uses an isotropic approximation with a single uncertainty scalar per head. Their uncertainty recurrences are Mobius maps, enabling associative scans with logarithmic parallel depth. Across controlled pretraining at 750M and 1.3B parameters, KDN variants consistently improve perplexity and mean downstream accuracy over state-of-the-art linear-attention models.
Sources
- Just read twice: closing the recall gap for recurrent language models
- Make Each Token Count: Towards Improving Long-Context Performance with KV Cache Eviction
- Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challenge
- Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Duality
- Mamba: Linear-Time Sequence Modeling with Selective State Spaces
- Gated DeltaNet-2: Decoupling Erase and Write in Linear Attention
- Comba: Improving Bilinear RNNs with Closed-loop Control
- Kimi Linear: An Expressive, Efficient Attention Architecture
- Forgetting Transformer: Softmax Attention with a Forget Gate
- DeepSeek-V3.2: Pushing the Frontier of Open Large Language Models
- The FineWeb Datasets: Decanting the Web for the Finest Text Data at Scale
- RWKV-7 "Goose" with Expressive Dynamic State Evolution
- Linear Transformers Are Secretly Fast Weight Programmers
- Kalman Linear Attention: Parallel Bayesian Filtering For Efficient Language Modelling and State Tracking
- Preconditioned DeltaNet: Curvature-aware Sequence Modeling for Linear Recurrences
- Linformer: Self-Attention with Linear Complexity
- Gated Linear Attention Transformers with Hardware-Efficient Training
- Gated Delta Networks: Improving Mamba2 with Delta Rule
- Parallelizing Linear Transformers with the Delta Rule over Sequence Length
- PaTH Attention: Position Encoding via Accumulating Householder Transformations
Related papers
- Polynomial-Augmented Neural Networks (PANNs) with Weak Orthogonality Constraints for Enhanced Function and PDE Approximation
- AIRL-S: Unifying Reinforcement Learning and Search-Based Test-Time Scaling via Adversarial Inverse Reinforcement Learning
- Transformers as Bayesian In-Context Experimenters: Smoothness-Adaptive Efficient ATE Estimation
- Convergence issues in Relational Concept Analysis based on AOC-posets
- Beliefs Beyond Posteriors: The Predictive Cost of ELBO Binding
- Understanding Diffusion Models via Ratio-Based Function Approximation with SignReLU Networks