通过卡尔曼滤波、克里格法和过程噪声的精确跟踪变压器
Precision Tracked Transformer via Kalman Filtering, Kriging and Process Noise
AI总结:
本文提出了一种基于贝叶斯滤波的变压器(BFT),通过引入精度权重的克里格法、自适应卡尔曼更新和动态模型,解决了传统变压器在处理不确定性方面的不足,提升了序列推荐和大语言模型在噪声环境下的鲁棒性。
摘要:
Transformer是现代AI的基础构建块,但其缺乏对不确定性的原则性处理,这在实际应用中普遍存在:序列推荐中的冷启动标记具有稀疏的历史,语言模型中的异质信号质量,以及由无约束softmax引起的注意力 sinks。每个token都被统一的置信度处理。我们证明这种统一性是我们的贝叶斯滤波变压器(BFT)的退化情况:注意力变为精度加权克里格法,残差连接变为具有自适应增益的卡尔曼更新,FFN变为通过雅可比矩阵加过程噪声规则传播精度的动力学模型。观测精度来自一个无参数的受限最大似然(REML)估计器,具有共轭贝叶斯先验。BFT将任何Transformer层替换为几乎无开销。在序列推荐中,BFT应用于三种主要架构,在六个基准上获得显著提升,其中在冷启动用户和稀有物品上改进最大。在具有噪声数据的监督微调中,BFT在两个领域提高了鲁棒性:噪声监督(问答中的token-标签腐败)和噪声上下文(具有真实RAG干扰项的检索增强问答)。单个原则性修改——恢复精度——在经典序列建模和现代LLM领域中释放了大量空间。
英文摘要:
The Transformer is the foundational building block of modern AI, yet offers no principled handling of \emph{uncertainty}, which is prevalent in real applications: cold-start tokens with sparse histories in sequential recommendation, heterogeneous signal quality in language models, and attention sinks induced by unconstrained softmax. Every token is treated with uniform confidence. We show this uniformity is a degenerate case of our \emph{Bayesian Filtering Transformer} (BFT): attention becomes precision-weighted kriging, the residual connection becomes a Kalman update with adaptive gain, and the FFN becomes a dynamics model propagating precision via a Jacobian--plus--process-noise rule. Observation precision comes from a parameter-free Restricted Maximum Likelihood (REML) estimator with a conjugate Bayesian prior. BFT replaces any Transformer layer with negligible overhead. On sequential recommendation, BFT applied to three major architectures yields significant gains on six benchmarks, with the largest improvements on cold-start users and rare items where uncertainty is highest. On supervised fine-tuning of large language models with noisy data, BFT improves robustness in two regimes: noisy supervision (token-label corruption in question answering) and noisy context (retrieval-augmented QA with real RAG distractors). A single principled modification -- restoring precision -- unlocks substantial headroom across both classical sequence-modeling and modern LLM regimes.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。