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

从提示词到后验分布:大语言模型智能体能否在上下文内执行贝叶斯推理?

From Prompts to Posteriors: Can LLM Agents Perform Bayesian Inference in Context?

University of Oxford(牛津大学)

Linus Filbry, Luckeciano C. Melo, Yarin Gal

AI总结:

本研究评估LLMs的贝叶斯推理能力,发现其通常违反贝叶斯规则,但配备推理与代码执行能力后性能大幅提升,可近似难处理的后验分布,或能加速AI驱动的科学发现。

摘要:

大语言模型(LLMs)正越来越多地应用于科学发现流程中,从文献综合到生成假设再到为实验设计提供信息。这些任务背后的统一原则是,随着证据的积累需要持续更新信念,而贝叶斯推理为此提供了一个自然的框架。然而,现有研究假设LLMs无法在上下文内进行原则性的贝叶斯信念更新,而是依赖于简化和启发式方法。为了挑战这一假设,我们对LLMs的贝叶斯推理能力进行了原则性评估,分析了模型的内部一致性以及其恢复外部确定后验分布的能力。具体而言,我们构建了一个评估框架,涵盖探测概率一致性的定性认识论示例、贝叶斯推理能力的定量基准,以及非贝叶斯更新对下游任务性能影响的分析。在不同场景下,我们发现LLMs在上下文内更新信念时通常违反贝叶斯规则。然而,当配备现代推理能力和代码执行能力时,它们的性能大幅提升,甚至能够近似解析上难以处理的后验分布。我们的评估表明,当前具备适当工具的LLMs已经可用于在科学发现中进行复杂的信念更新,从而快速提升AI驱动科学发现的效率和规模。

英文摘要:

Large language models (LLMs) are increasingly applied across the scientific discovery pipeline, from synthesizing literature to generating hypotheses to informing experimental design. A unifying principle behind these tasks is the need to continuously update beliefs as evidence accumulates, for which Bayesian inference provides a natural framework. However, existing work assumes that LLMs cannot carry out principled Bayesian belief updating in context, instead relying on simplifications and heuristics. To challenge this assumption, we present a principled evaluation of Bayesian reasoning capabilities in LLMs, analyzing both the model's internal consistency as well as its ability to recover an externally determined posterior. Specifically, we build an evaluation framework spanning qualitative epistemological examples to probe probabilistic coherence, quantitative benchmarks of Bayesian inference capabilities, and analyses of the impact of non-Bayesian updates on downstream task performance. Across different scenarios, we find that LLMs generally violate Bayes' rule when updating their beliefs in context. However, when equipped with modern reasoning abilities and code execution capabilities, their performance drastically improves, enabling even the close approximation of analytically intractable posteriors. Our evaluation shows that current LLMs with access to appropriate tools could already be used to make complex belief updates in scientific discovery, enabling rapid acceleration of the efficiency and scale of AI-powered scientific discovery.

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

↑