Lune

CVPR2026Top-tier venue

Gated KalmaNet: A Fading Memory Layer through Test-time Ridge Regression

Liangzu Peng, Aditya Chattopadhyay, Luca Zancato, Elvis Nunez, Wei Xia, Stefano Soatto

Abstract

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), 1 along with a model zoo of GKA-based Hybrid models at 8B and 32B scale on HuggingFace, 2 is released under Apache 2.0.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

5 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Vision Mamba: Efficient Visual Representation Learning with Bidirectional State Space Model cites Efficiently Modeling Long Sequences with Structured State Spaces
  • Vision Mamba: Efficient Visual Representation Learning with Bidirectional State Space Model cites Reformer: The Efficient Transformer
  • Beyond Test-Time Memory: State-Space Optimal Control for LLM Reasoning cites Efficiently Modeling Long Sequences with Structured State Spaces
  • Beyond Test-Time Memory: State-Space Optimal Control for LLM Reasoning cites Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Duality
  • Kalman Linear Attention: Parallel Bayesian Filtering For Efficient Language Modeling and State Tracking cites Efficiently Modeling Long Sequences with Structured State Spaces
  • Kalman Linear Attention: Parallel Bayesian Filtering For Efficient Language Modeling and State Tracking cites Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Duality
  • Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Duality cites Efficiently Modeling Long Sequences with Structured State Spaces
  • Test-Time Training with KV Binding Is Secretly Linear Attention cites Efficiently Modeling Long Sequences with Structured State Spaces
  • Test-Time Training with KV Binding Is Secretly Linear Attention cites Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Duality
  • Preconditioned DeltaNet: Curvature-aware Sequence Modeling for Linear Recurrences cites Efficiently Modeling Long Sequences with Structured State Spaces
  • Preconditioned DeltaNet: Curvature-aware Sequence Modeling for Linear Recurrences cites Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Duality
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers5

  1. Test-Time Training with KV Binding Is Secretly Linear AttentionJunchen Liu, Sven Elflein, Or Litany, Zan Gojcic et al.ICML 2026 · 6 citations
  2. Kalman Linear Attention: Parallel Bayesian Filtering For Efficient Language Modeling and State TrackingVaisakh Shaj, Cameron Barker, Aidan Scannell, Andras Szecsenyi et al.ICML 2026 · 5 citations
  3. Preconditioned DeltaNet: Curvature-aware Sequence Modeling for Linear RecurrencesNeehal Tumma, Noel Loo, Daniela RusICML 2026 · 3 citations
  4. Learning When to Attend: Conditional Memory Access for Long-Context LLMsSakshi Choudhary, Aditya Chattopadhyay, Luca Zancato, Elvis Nunez et al.ICML 2026 · 2 citations
  5. Beyond Test-Time Memory: State-Space Optimal Control for LLM ReasoningPeihao Wang, Shan Yang, Xijun Wang, Tesi Xiao et al.ICML 2026

Builds on28

  1. Efficiently Modeling Long Sequences with Structured State SpacesAlbert Gu, Karan Goel, Christopher RéICLR 2022 · 3,482 citations
  2. Reformer: The Efficient TransformerNikita Kitaev, Lukasz Kaiser, Anselm LevskayaICLR 2020 · 2,878 citations
  3. SWE-bench: Can Language Models Resolve Real-world Github Issues?Carlos E. Jimenez, John Yang, Alexander Wettig, Shunyu Yao et al.ICLR 2024 · 2,082 citations
  4. Vision Mamba: Efficient Visual Representation Learning with Bidirectional State Space ModelLianghui Zhu, Bencheng Liao, Qian Zhang, Xinlong Wang et al.ICML 2024 · 1,725 citations
  5. Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space DualityTri Dao, Albert GuICML 2024 · 1,407 citations

Related papers

  1. Gated Delta Networks: Improving Mamba2 with Delta RuleSonglin Yang, Jan Kautz, Ali HatamizadehICLR 2025
  2. Mamba-3: Improved Sequence Modeling using State Space PrinciplesAakash Sunil Lahoti, Kevin Y. Li, Berlin Chen, Caitlin Wang et al.ICLR 2026 · 96 citations
  3. Gated Linear Attention Transformers with Hardware-Efficient TrainingSonglin Yang, Bailin Wang, Yikang Shen, Rameswar Panda et al.ICML 2024 · 390 citations
  4. Parallelizing Linear Transformers with the Delta Rule over Sequence LengthSonglin Yang, Bailin Wang, Yu Zhang, Yikang Shen et al.NeurIPS 2024 · 412 citations
  5. Artificial Hippocampus Networks for Efficient Long-Context ModelingYunhao Fang, Weihao Yu, Shu Zhong, Qinghao Ye et al.ICML 2026 · 9 citations
Dusk over the sea between two cliffs drawn in fine vertical lines