arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2404.12843cs.LGcs.CL
收藏

迈向基于概率推理的逻辑一致性语言模型

Towards Logically Consistent Language Models via Probabilistic Reasoning

University of Trento(特伦托大学);University of Edinburgh(爱丁堡大学)

Diego Calanzone, Stefano Teso, Antonio Vergari

AI总结:

本文提出一种基于概率推理的训练目标,使语言模型在有限事实集上微调后,能更逻辑一致地处理外部知识,并系统外推到未见但语义相似的事实。

摘要:

大型语言模型(LLMs)是自然语言理解和生成任务的有前景的途径。然而,当前的LLMs远非可靠:它们容易生成非事实信息,更关键的是,在被提示推理关于世界的信念时,它们容易自相矛盾。这些问题目前通过大规模微调或将一致性推理委托给外部工具来解决。在这项工作中,我们寻求一个中间立场,并引入一种基于原则性概率推理的训练目标,该目标教导LLM与外部知识(以一组事实和规则的形式)保持一致。在我们的损失函数上对有限的事实集进行微调,使我们的LLM比之前的基线更具逻辑一致性,并允许它们更系统地将知识外推到未见但语义相似的事实知识上。

英文摘要:

Large language models (LLMs) are a promising venue for natural language understanding and generation tasks. However, current LLMs are far from reliable: they are prone to generate non-factual information and, more crucially, to contradict themselves when prompted to reason about beliefs of the world. These problems are currently addressed with large scale fine-tuning or by delegating consistent reasoning to external tools. In this work, we strive for a middle ground and introduce a training objective based on principled probabilistic reasoning that teaches a LLM to be consistent with external knowledge in the form of a set of facts and rules. Fine-tuning with our loss on a limited set of facts enables our LLMs to be more logically consistent than previous baselines and allows them to extrapolate to unseen but semantically similar factual knowledge more systematically.

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

↑