Filtering Beats Fine Tuning: A Bayesian Kalman View of In Context Learning in LLMs
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 5 of its 19 references that are in the map. First posted on arXiv 2 Jan 2026.
Builds on
5 of 19 references.
References · 5
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
- 2015Optimizing Neural Networks with Kronecker-factored Approximate Curvaturecited by 776
- 2022Transformers learn in-context by gradient descentcited by 714
- 2015Weight Uncertainty in Neural Networkscited by 554
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2025Large Language Models as Discounted Bayesian Filters
- 2026Bayesian Sparse Low-Rank Adaptation for Large Language Model Uncertainty Estimation
- 2026Bayesian Adaptation Gym: A Benchmark for the Bayesian Low-Rank Adaptation of Multi-Modal Language Models
- 2026Bayesian-LoRA: Probabilistic Low-Rank Adaptation of Large Language Models
- 2026Reinforcement Inference: Leveraging Uncertainty for Self-Correcting Language Model Reasoning
- 2024Inference-Aware Fine-Tuning for Best-of-N Sampling in Large Language Models
- 2025A Comparative Analysis of LLM Adaptation: SFT, LoRA, and ICL in Data-Scarce Scenarios
- 2026From Gradients to Riccati Geometry: Kalman World Models for Single-Pass Learning