Gated KalmaNet: A Fading Memory Layer Through Test-Time Ridge Regression
Not on the map. Why?
Abstract (arXiv)
Linear State-Space Models (SSMs) offer an efficient alternative to softmax Attention with constant memory and linear compute, but their lossy, fading summary of the past hurts recall-oriented tasks. We propose Gated KalmaNet (GKA, pronounced "gee-ka"), a layer that accounts for the full past while retaining SSM-style efficiency. We ground our approach in the Kalman Filter (KF), and show that several existing SSM layers (DeltaNet, Gated DeltaNet, Kimi Delta Attention) are approximations to the KF recurrence under an identity error covariance assumption, which ignores how past keys and values should optimally influence state updates. In contrast, GKA maintains the full error covariance and computes the exact Kalman gain. Under a steady-state assumption that enables parallelization, this reduces to an online ridge regression with constant memory and linear compute. The standard KF equations are numerically unstable in low-precision settings (e.g., bfloat16) and hard to parallelize on GPUs. We address this with (1) adaptive regularization via input-dependent gating to control the ridge regression's condition number, and (2) Chebyshev Iteration, which we show is more stable than conventional iterative solvers in low precision. We further develop hardware-aware chunk-wise kernels for efficient training. Empirically, GKA outperforms existing SSM layers (e.g., Mamba2, Gated DeltaNet) on short-context tasks and achieves more than 10% relative improvement on long-context RAG and LongQA up to 128k tokens. We further show GKA outperforms Mamba when extended to ImageNet classification. Our code, including Triton kernels for training and inference (vLLM), along with a model zoo of GKA-based Hybrid models at 8B and 32B scale on HuggingFace, is released under Apache 2.0.
Key facts. Cited by 11 papers in the map (data through 14 Oct 2026). Builds on 54 of its 69 references that are in the map. First posted on arXiv 26 Nov 2025.
Builds on
54 of 69 references.
References · 54
- 2017Attention Is All You Needcited by 60,361
- 2025Qwen3 Technical Reportcited by 8,820
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,944
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,718
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,373
- 2021Efficiently Modeling Long Sequences with Structured State Spacescited by 2,465
- 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,850
- 2020Reformer: The Efficient Transformercited by 1,668
- 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,346
- 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Dualitycited by 1,336
- 2024Vision Mamba: Efficient Visual Representation Learning with Bidirectional State Space Modelcited by 1,056
- 2023Retentive Network: A Successor to Transformer for Large Language Modelscited by 613
38 more
- 2021Combining Recurrent, Convolutional, and Continuous-time Models with Linear State-Space Layerscited by 608
- 2020KILT: a Benchmark for Knowledge Intensive Language Taskscited by 573
- 2024Gated Delta Networks: Improving Mamba2 with Delta Rulecited by 532
- 2023Gated Linear Attention Transformers with Hardware-Efficient Trainingcited by 514
- 2021Linear Transformers Are Secretly Fast Weight Programmerscited by 502
- 2023Resurrecting Recurrent Neural Networks for Long Sequencescited by 408
- 2025Native Sparse Attention: Hardware-Aligned and Natively Trainable Sparse Attentioncited by 407
- 2024Jamba: A Hybrid Transformer-Mamba Language Modelcited by 401
- 2024DataComp-LM: In search of the next generation of training sets for language modelscited by 398
- 2024Parallelizing Linear Transformers with the Delta Rule over Sequence Lengthcited by 396
- 2025MiniMax-M1: Scaling Test-Time Compute Efficiently with Lightning Attentioncited by 263
- 2024ScienceAgentBench: Toward Rigorous Assessment of Language Agents for Data-Driven Scientific Discoverycited by 235
- 2024MambaVision: A Hybrid Mamba-Transformer Vision Backbonecited by 224
- 2024Repeat After Me: Transformers are Better than State Space Models at Copyingcited by 216
- 2023Landmark Attention: Random-Access Infinite Context Length for Transformerscited by 213
- 2023Zoology: Measuring and Improving Recall in Efficient Language Modelscited by 204
- 2024Leave No Context Behind: Efficient Infinite Context Transformers with Infini-attentioncited by 200
- 2025Kimi Linear: An Expressive, Efficient Attention Architecturecited by 196
- 2024An Empirical Study of Mamba-based Language Modelscited by 186
- 2018Continual Learning of Context-dependent Processing in Neural Networkscited by 179
- 2023RanPAC: Random Projections and Pre-trained Models for Continual Learningcited by 164
- 2024Eagle and Finch: RWKV with Matrix-Valued States and Dynamic Recurrencecited by 159
- 2024How to Train Long-Context Language Models (Effectively)cited by 146
- 2025RWKV-7 "Goose" with Expressive Dynamic State Evolutioncited by 141
- 2024HELMET: How to Evaluate Long-Context Language Models Effectively and Thoroughlycited by 125
- 2019An Attentive Survey of Attention Modelscited by 124
- 2024Zamba: A Compact 7B SSM Hybrid Modelcited by 124
- 2024Hymba: A Hybrid-head Architecture for Small Language Modelscited by 99
- 2025DeltaProduct: Improving State-Tracking in Linear RNNs via Householder Productscited by 75
- 2025Test-time regression: a unifying framework for designing sequence models with associative memorycited by 74
- 2024What is Wrong with Perplexity for Long-context Language Modeling?cited by 69
- 2022Next-ViT: Next Generation Vision Transformer for Efficient Deployment in Realistic Industrial Scenarioscited by 65
- 2024Longhorn: State Space Models are Amortized Online Learnerscited by 59
- 2025MesaNet: Sequence Modeling by Locally Optimal Test-Time Trainingcited by 47
- 2024Marconi: Prefix Caching for the Era of Hybrid LLMscited by 31
- 2025CURIE: Evaluating LLMs On Multitask Scientific Long Context Understanding and Reasoningcited by 28
- 2024B'MOJO: Hybrid State Space Realizations of Foundation Models with Eidetic and Fading Memorycited by 26
- 2025Hybrid Architectures for Language Models: Systematic Analysis and Design Insightscited by 14
50 most cited of 54 All 54 (JSON)
Built on by
Citing papers per year: 2026: 11.
11 papers.
- 2026Test-Time Training with KV Binding Is Secretly Linear Attentioncited by 13
- 2026Kalman Linear Attention: Parallel Bayesian Filtering For Efficient Language Modelling and State Trackingcited by 8
- 2026Preconditioned DeltaNet: Curvature-aware Sequence Modeling for Linear Recurrencescited by 7
- 2026Priming: Hybrid State Space Models From Pre-trained Transformerscited by 5
- 2026Memory for Large Language Modelscited by 4
- 2026Learning When to Attend: Conditional Memory Access for Long-Context LLMscited by 3
- 2026Beyond Test-Time Memory: State-Space Optimal Control for LLM Reasoningcited by 1
- 2026How Wrong Can a Good Predictor Be? Diverging Updates with Vanishing Predictive KLcited by 0
- 2026Switching Linear Attentioncited by 0
- 2026Voltic: Distinguishing Volatility from Stochasticity in Recurrent Memorycited by 0
- 2026V-CoLA: Vision Token Compression with Linear Attentioncited by 0
- 2026V-CoLA: Vision Token Compression with Linear Attention8 Oct 2026
- 2026Voltic: Distinguishing Volatility from Stochasticity in Recurrent Memory5 Oct 2026
- 2026Switching Linear Attention30 Sep 2026
- 2026How Wrong Can a Good Predictor Be? Diverging Updates with Vanishing Predictive KL10 Sep 2026
- 2026Memory for Large Language Models28 Jul 2026
- 2026Priming: Hybrid State Space Models From Pre-trained Transformers8 May 2026
- 2026Preconditioned DeltaNet: Curvature-aware Sequence Modeling for Linear Recurrences22 Apr 2026
- 2026Learning When to Attend: Conditional Memory Access for Long-Context LLMs18 Mar 2026
- 2026Beyond Test-Time Memory: State-Space Optimal Control for LLM Reasoning10 Mar 2026
- 2026Test-Time Training with KV Binding Is Secretly Linear Attention24 Feb 2026
- 2026Kalman Linear Attention: Parallel Bayesian Filtering For Efficient Language Modelling and State Tracking11 Feb 2026
Similar, not cited
Close in wording, no citation either way
- 2026Kalman Delta Networks: Uncertainty-aware Associative Memory
- 2026TCP-SSM: Efficient Vision State Space Models with Token-Conditioned Poles
- 2026DAMP: Decay-Aware Mixed-Precision Recurrent-State Quantization
- 2025GatedFWA: Linear Flash Windowed Attention with Gated Associative Memory
- 2024Short-Long Convolutions Help Hardware-Efficient Linear Attention to Focus on Long Sequences
- 2026OSDN: Improving Delta Rule with Provable Online Preconditioning in Linear Attention
- 2024Mathematical Formalism for Memory Compression in Selective State Space Models
- 2026STEPQuant: When and Where Errors Matter in Delta-Rule Recurrent State Quantization