[论文解读] Kalman Linear Attention: Parallel Bayesian Filtering For Efficient Language Modelling and State Tracking
介绍 Kalman Linear Attention(KLA),是一种基于贝叶斯滤波的并行序列混合器,提供不确定性感知的线性时间复杂度非线性更新,用于语言建模。其性能可与现代SSM/GLA方法媲美或超越,同时提供显式的信念状态不确定性。
State-space language models such as Mamba and gated linear attention (GLA) offer efficient alternatives to transformers due to their linear complexity and parallel training, but often lack the expressivity and robust state-tracking needed for complex reasoning. We address these limitations by reframing sequence modelling through a probabilistic lens, using Bayesian filters as a core primitive. While classical filters such as Kalman filters provide principled state estimation and uncertainty tracking, they are typically viewed as inherently sequential. We show that reparameterising the Kalman filter in information form enables its updates to be computed via an associative scan, allowing efficient parallel training. Building on this insight, we introduce the Kalman Linear Attention (KLA) layer, a neural sequence-modelling primitive that performs time-parallel probabilistic inference while maintaining explicit belief-state uncertainty. KLA offers strictly more expressive nonlinear updates and gating than GLA variants while retaining their computational advantages. On language modelling tasks, KLA matches or outperforms modern SSMs and GLAs across representative discrete token-manipulation and state-tracking benchmarks.
研究动机与目标
- 将序列建模重新框定为贝叶斯滤波,以实现原理性的不确定性交易与改进的状态跟踪。
- 开发可作为直接替换的并行信息形式Kalman滤波器,可嵌入为神经序列混合器。
- 展示KLA在保持线性时间扫描的同时提供非线性更新与门控,超越GLA/线性SSM的能力。
- 在语言建模任务及长上下文/状态跟踪基准测试中展示具有竞争力的性能。
提出的方法
- 将对角线线性高斯滤波在信息形式下重新参数化,以显示精度递推形成一个可结合的Möbius映射。
- 引入精度比门控和非线性不确定性驱动的门控,扩展超越线性SSM/GLA更新的能力。
- 将Kalman Linear Attention(KLA)层定义为可直接替代的混合器,具备显式信念状态不确定性和基于查询的读出。
- 将令牌证据建模为线性-高斯状态空间模型中的带噪观测,潜在动力学使用OU为先验。
- 通过Möbius与仿射扫描实现并行推断,达到O(T)工作量与O(log T)深度。
- 使用后验均值logits的交叉熵或对标记输出的边际似然对数负值进行训练。

实验结果
研究问题
- RQ1是否可以通过信息形式表示将Kalman式更新并行化,以保持O(log T)深度?
- RQ2KLA是否在匹配或超过SSM与GLA在语言任务上的性能的同时,提供更具表达力的非线性更新和显式不确定性?
- RQ3与现有线性注意力及SSM变体相比,KLA是否在长上下文检索与状态跟踪任务上有所提升?
- RQ4KLA中哪些架构选择最有助于扩展性、准确性与不确定性传播?
- RQ5KLA是否是现代语言模型混合器的可行替代方案且不损失效率?
主要发现
- KLA可以通过并行前缀扫描计算更新,实现可扩展的O(T)工作量和O(log T)深度。
- KLA提供非线性、不确定性感知的门控,超越确定性SSM/GLA更新,同时保持线性时间扫描结构。
- KLA作为直接替代的序列混合器,在输出的同时提供显式的信念状态不确定性。
- 基于OU的先验并具备精确离散化,支持稳定学习与准确的潜在动力学建模。
- KLA在序列长度扩展时表现出强烈的可扩展性,在合成语言模型任务、长上下文联想 recalls 与状态跟踪基准测试中具有竞争力的性能。
- 分式-线性精度跟踪实现历史相关的门控及对线性SSM/GLA基线的增强状态跟踪能力。

阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。