We present a theory-first framework that interprets inference-time adaptation in large language models (LLMs) as online Bayesian state estimation. Rather than modeling rapid adaptation as implicit optimization or meta-learning, we formulate task- and context-specific learning as the sequential inference of a low-dimensional latent adaptation state governed by a linearized state-space model. Under Gaussian assumptions, adaptation follows a Kalman recursion with closed-form updates for both the posterior mean and covariance.
This perspective elevates epistemic uncertainty to an explicit dynamical variable. We show that inference-time learning is driven by covariance collapse, i.e., rapid contraction of posterior uncertainty induced by informative tokens, which typically precedes convergence of the posterior mean. Using observability conditions on token-level Jacobians, we establish stability of the Bayesian filter, prove exponential covariance contraction rates, and derive mean-square error bounds. Gradient descent, natural-gradient methods, and meta-learning updates arise as singular, noise-free limits of the filtering dynamics, positioning optimization-based adaptation as a degenerate approximation of Bayesian inference.
The resulting theory provides a unified probabilistic account of in-context learning, parameter-efficient adaptation, and test-time learning without parameter updates. It yields explicit guarantees on stability and sample efficiency, offers a principled interpretation of prompt informativeness via information accumulation, and clarifies the role of uncertainty dynamics absent from existing accounts. Minimal illustrative experiments corroborate the qualitative predictions of the theory.
Uncertainty in Data-Driven Kalman Filtering for Partially Known State-Space Models
University of Haifa(海法大学);ETH Zürich(苏黎世联邦理工学院);Ben-Gurion University of the Negev(内盖夫本-古里安大学);Eindhoven University of Technology(埃因霍温理工大学);Phillips Research(飞利浦研究院);Weizmann Institute of Science(魏茨曼科学研究所)
Outlier-robust Kalman Filtering through Generalised Bayes
School of Mathematical Sciences, Queen Mary University(伦敦玛丽大学数学科学学院);Oxford-Man Institute of Quantitative Finance, University of Oxford(牛津大学牛津-曼量化金融研究所);Department of Statistical Science, University College London(伦敦大学学院统计科学系);Department of Mathematics and Statistics, Memorial University of Newfoundland(纽芬兰纪念大学数学与统计系);Mathematical Institute, University of Oxford(牛津大学数学研究所);Institute for Cognitive Science, University of Colorado Boulder(科罗拉多大学博尔德分校认知科学研究所);Google DeepMind(谷歌DeepMind)
KalmanNet: Neural Network Aided Kalman Filtering for Partially Known Dynamics
ETH Zürich(苏黎世联邦理工学院);Ben-Gurion University of the Negev(内盖夫本-古里安大学);Eindhoven University of Technology(埃因霍温理工大学);Phillips Research(飞利浦研究院);Weizmann Institute of Science(魏茨曼科学研究所)
ETH Zürich(苏黎世联邦理工学院);Ben-Gurion University of the Negev(内盖夫本-古里安大学);Eindhoven University of Technology(埃因霍温理工大学);Phillips Research(飞利浦研究院);Weizmann Institute of Science(魏茨曼科学研究学院)
Differentiable Adaptive Kalman Filtering via Optimal Transport
Shanghai Research Institute for Intelligent Autonomous Systems(上海智能自主系统研究所);Tongji University(同济大学);School of Computer Science and Technology(计算机科学与技术学院);Shanghai Jiaotong University(上海交通大学);Shanghai Zhangjiang Institute of Mathematics(上海张江数学研究所);East China Normal University(华东师范大学)