arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2512.18489cs.AI
收藏

大语言模型作为折扣贝叶斯滤波器

Large Language Models as Discounted Bayesian Filters

Sun Yat-sen University(中山大学)

Jensen Zhang, Jing Yang, Keze Wang

AI总结:

本研究提出了一种贝叶斯过滤框架,揭示大语言模型在动态环境中的信念更新机制,并提出提示策略以优化其先验校准。

摘要:

大语言模型(LLMs)通过上下文学习展现出强大的少样本泛化能力,但其在动态和随机环境中的推理仍显模糊。先前研究主要集中在静态任务上,忽视了当信念必须持续更新时所需的在线适应,这是LLM作为世界模型或智能体的关键能力。我们引入了一个贝叶斯过滤框架来评估LLM中的在线推断。我们的概率探测套件涵盖多变量离散分布,如骰子投掷,以及连续分布,如高斯过程,其中真实参数随时间变化。我们发现,尽管LLM的信念更新类似于贝叶斯后验,但更准确地由具有模型特定折扣因子小于一的指数遗忘滤波器描述。这揭示了系统性的对旧证据的折扣,这种折扣在不同模型架构中差异显著。虽然固有先验往往校准不当,但更新机制本身仍保持结构化和原则性。我们进一步在模拟智能体任务中验证这些发现,并提出有效的提示策略,以最小的计算成本重新校准先验。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑