arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2412.02081cs.CL
收藏

逐变量思考:大型语言模型实现即兴概率推理

Let's Think Var-by-Var: Large Language Models Enable Ad Hoc Probabilistic Reasoning

Johns Hopkins University(约翰斯·霍普金斯大学)

Shepard Xia, Brian Lu, Jason Eisner

AI总结:

本文提出利用 LLM 生成相关随机变量与矩约束,并在对数线性族中联合优化分布,从而为无数据的常识估算问题构建即兴概率模型。

摘要:

智能的一个标志是能够利用“常识”来充实未充分说明的情境。我们建议从大型语言模型(LLM)中提取这种常识,并以可输入概率推理的形式呈现。我们的研究聚焦于 guesstimation(估算)问题,例如“新泽西州纽瓦克市的 Airbnb 房源价格是多少?”在无法访问数据的情况下构建合理答案,需要借助并整合关于 Price(价格)和 Location(位置)如何与其他变量(例如 Property Type(房产类型))相关联的零散常识。我们的框架通过综合一个 ad hoc(即兴)概率模型来回答此类问题。首先,我们提示 LLM 提出一组与问题相关的随机变量,随后给出其联合分布的矩约束。然后,我们在对数线性族内优化联合分布 p,以最大化整体约束满足度。实验表明,通过提示可以成功让 LLM 提出合理的变量;尽管所提出的数值约束可能存在噪声,但针对约束满足进行联合优化能够调和这些约束。在基于三个真实表格数据集衍生的概率问题上评估时,我们发现该框架在与数据集分布的总变差距离方面表现与直接提示基线相当,并且对噪声也具有相似的鲁棒性。

英文摘要:

A hallmark of intelligence is the ability to flesh out underspecified situations using "common sense." We propose to extract that common sense from large language models (LLMs), in a form that can feed into probabilistic inference. We focus our investigation on $\textit{guesstimation}$ questions such as "How much are Airbnb listings in Newark, NJ?" Formulating a sensible answer without access to data requires drawing on, and integrating, bits of common knowledge about how $\texttt{Price}$ and $\texttt{Location}$ may relate to other variables, such as $\texttt{Property Type}$. Our framework answers such a question by synthesizing an $\textit{ad hoc}$ probabilistic model. First we prompt an LLM to propose a set of random variables relevant to the question, followed by moment constraints on their joint distribution. We then optimize the joint distribution $p$ within a log-linear family to maximize the overall constraint satisfaction. Our experiments show that LLMs can successfully be prompted to propose reasonable variables, and while the proposed numerical constraints can be noisy, jointly optimizing for their satisfaction reconciles them. When evaluated on probabilistic questions derived from three real-world tabular datasets, we find that our framework performs comparably to a direct prompting baseline in terms of total variation distance from the dataset distribution, and is similarly robust to noise.

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

↑