Large Language Models as Discounted Bayesian Filters
Not on the map. Why?
Abstract (arXiv)
Large Language Models (LLMs) demonstrate strong few-shot generalization through in-context learning, yet their reasoning in dynamic and stochastic environments remains opaque. Prior studies mainly focus on static tasks and overlook the online adaptation required when beliefs must be continuously updated, which is a key capability for LLMs acting as world models or agents. We introduce a Bayesian filtering framework to evaluate online inference in LLMs. Our probabilistic probe suite spans both multivariate discrete distributions, such as dice rolls, and continuous distributions, such as Gaussian processes, where ground-truth parameters shift over time. We find that while LLM belief updates resemble Bayesian posteriors, they are more accurately characterized by an exponential forgetting filter with a model-specific discount factor smaller than one. This reveals systematic discounting of older evidence that varies significantly across model architectures. Although inherent priors are often miscalibrated, the updating mechanism itself remains structured and principled. We further validate these findings in a simulated agent task and propose prompting strategies that effectively recalibrate priors with minimal computational cost.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 15 of its 22 references that are in the map. First posted on arXiv 20 Dec 2025.
Builds on
15 of 22 references.
References · 15
- 2017Attention Is All You Needcited by 59,932
- 2024The Llama 3 Herd of Modelscited by 14,192
- 2016Overcoming catastrophic forgetting in neural networkscited by 4,718
- 2023Mistral 7Bcited by 3,065
- 2024Gemma 2: Improving Open Language Models at a Practical Sizecited by 1,928
- 2022In-context Learning and Induction Headscited by 930
- 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 915
- 2022Data Distributional Properties Drive Emergent In-Context Learning in Transformerscited by 303
- 2024Mitigating Catastrophic Forgetting in Large Language Models with Self-Synthesized Rehearsalcited by 114
- 2025CF-VLM:CounterFactual Vision-Language Fine-tuningcited by 57
- 2025GAM-Agent: Game-Theoretic and Uncertainty-Aware Collaboration for Complex Visual Reasoningcited by 56
- 2025KABB: Knowledge-Aware Bayesian Bandits for Dynamic Expert Coordination in Multi-Agent Systemscited by 36
3 more
Built on by
Citing papers per year: 2026: 1.
1 paper.
Similar, not cited
Close in wording, no citation either way
- 2026Filtering Beats Fine Tuning: A Bayesian Kalman View of In Context Learning in LLMs
- 2025Bayesian Teaching Enables Probabilistic Reasoning in Large Language Models
- 2026Reinforcement Inference: Leveraging Uncertainty for Self-Correcting Language Model Reasoning
- 2025Reasoning Under Uncertainty: Exploring Probabilistic Reasoning Capabilities of LLMs
- 2026Towards a Belief-Based World Model for LLM Agents
- 2024Dual Traits in Probabilistic Reasoning of Large Language Models
- 2025Don't Pass@k: A Bayesian Framework for Large Language Model Evaluation
- 2026Dynamic Model Routing and Cascading for Efficient LLM Inference: A Survey