Kalman Linear Attention: Parallel Bayesian Filtering For Efficient Language Modeling and State Tracking

Vaisakh Shaj, Cameron Barker, Aidan Scannell, Andras Szecsenyi, Elliot J. Crowley, Amos Storkey
Proceedings of the 43rd International Conference on Machine Learning, PMLR 306:109765-109800, 2026.

Abstract

State-space language models such as Mamba and gated linear attention (GLA) offer linear-complexity, parallelisable alternatives to transformers, but often lack the expressivity and robust state-tracking needed for complex reasoning. We address this by reframing sequence modeling through a probabilistic lens, with Bayesian filters as the core primitive. Classical Kalman filters provide principled state and uncertainty estimation but are typically viewed as inherently sequential. We show that reparameterising the Kalman filter in information form casts its updates as an associative scan, enabling efficient parallel training. The resulting Kalman Linear Attention (KLA) layer performs time-parallel probabilistic inference while maintaining explicit belief-state uncertainty, offering strictly more expressive nonlinear updates and gating than GLA variants while retaining their computational advantages. On language modeling tasks, KLA matches or outperforms modern SSMs and GLAs on discrete token-manipulation, state-tracking, and zero-shot commonsense-reasoning benchmarks, and is among the first stacked Bayesian-filtering primitives pretrained at the billion-token scale.

Cite this Paper


BibTeX
@InProceedings{pmlr-v306-shaj26a, title = {Kalman Linear Attention: Parallel {B}ayesian Filtering For Efficient Language Modeling and State Tracking}, author = {Shaj, Vaisakh and Barker, Cameron and Scannell, Aidan and Szecsenyi, Andras and Crowley, Elliot J. and Storkey, Amos}, booktitle = {Proceedings of the 43rd International Conference on Machine Learning}, pages = {109765--109800}, year = {2026}, editor = {Zhang, Tong and Dudik, Miroslav and Jaggi, Martin and Agarwal, Alekh and Li, Sharon and Schuurmans, Dale and Zhu, Jerry and Berkenkamp, Felix and Dong, Hanze and Bietti, Alberto}, volume = {306}, series = {Proceedings of Machine Learning Research}, month = {06--11 Jul}, publisher = {PMLR}, pdf = {https://raw.githubusercontent.com/mlresearch/v306/main/assets/shaj26a/shaj26a.pdf}, url = {https://proceedings.mlr.press/v306/shaj26a.html}, abstract = {State-space language models such as Mamba and gated linear attention (GLA) offer linear-complexity, parallelisable alternatives to transformers, but often lack the expressivity and robust state-tracking needed for complex reasoning. We address this by reframing sequence modeling through a probabilistic lens, with Bayesian filters as the core primitive. Classical Kalman filters provide principled state and uncertainty estimation but are typically viewed as inherently sequential. We show that reparameterising the Kalman filter in information form casts its updates as an associative scan, enabling efficient parallel training. The resulting Kalman Linear Attention (KLA) layer performs time-parallel probabilistic inference while maintaining explicit belief-state uncertainty, offering strictly more expressive nonlinear updates and gating than GLA variants while retaining their computational advantages. On language modeling tasks, KLA matches or outperforms modern SSMs and GLAs on discrete token-manipulation, state-tracking, and zero-shot commonsense-reasoning benchmarks, and is among the first stacked Bayesian-filtering primitives pretrained at the billion-token scale.} }
Endnote
%0 Conference Paper %T Kalman Linear Attention: Parallel Bayesian Filtering For Efficient Language Modeling and State Tracking %A Vaisakh Shaj %A Cameron Barker %A Aidan Scannell %A Andras Szecsenyi %A Elliot J. Crowley %A Amos Storkey %B Proceedings of the 43rd International Conference on Machine Learning %C Proceedings of Machine Learning Research %D 2026 %E Tong Zhang %E Miroslav Dudik %E Martin Jaggi %E Alekh Agarwal %E Sharon Li %E Dale Schuurmans %E Jerry Zhu %E Felix Berkenkamp %E Hanze Dong %E Alberto Bietti %F pmlr-v306-shaj26a %I PMLR %P 109765--109800 %U https://proceedings.mlr.press/v306/shaj26a.html %V 306 %X State-space language models such as Mamba and gated linear attention (GLA) offer linear-complexity, parallelisable alternatives to transformers, but often lack the expressivity and robust state-tracking needed for complex reasoning. We address this by reframing sequence modeling through a probabilistic lens, with Bayesian filters as the core primitive. Classical Kalman filters provide principled state and uncertainty estimation but are typically viewed as inherently sequential. We show that reparameterising the Kalman filter in information form casts its updates as an associative scan, enabling efficient parallel training. The resulting Kalman Linear Attention (KLA) layer performs time-parallel probabilistic inference while maintaining explicit belief-state uncertainty, offering strictly more expressive nonlinear updates and gating than GLA variants while retaining their computational advantages. On language modeling tasks, KLA matches or outperforms modern SSMs and GLAs on discrete token-manipulation, state-tracking, and zero-shot commonsense-reasoning benchmarks, and is among the first stacked Bayesian-filtering primitives pretrained at the billion-token scale.
APA
Shaj, V., Barker, C., Scannell, A., Szecsenyi, A., Crowley, E.J. & Storkey, A.. (2026). Kalman Linear Attention: Parallel Bayesian Filtering For Efficient Language Modeling and State Tracking. Proceedings of the 43rd International Conference on Machine Learning, in Proceedings of Machine Learning Research 306:109765-109800 Available from https://proceedings.mlr.press/v306/shaj26a.html.

Related Material