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

大语言模型在事实核查中的逻辑一致性

Logical Consistency of Large Language Models in Fact-checking

Max Planck Institute for Software Systems(马克斯·普朗克软件系统研究所);Aalborg University(奥尔堡大学)

Bishwamittra Ghosh, Sarah Hasan, Naheed Anjum Arafat, Arijit Khan

AI总结:

本研究针对大语言模型在复杂逻辑查询下的事实核查任务中缺乏逻辑一致性的问题,提出了三个逻辑事实核查基准数据集、一致性度量方法,并通过监督微调提升模型的逻辑一致性。

摘要:

近年来,大语言模型(LLMs)在执行各种自然语言任务(如语言翻译、问答、摘要生成、事实核查等)方面取得了显著成功。尽管LLMs具有生成类人文本的惊人能力,但其以响应不一致而闻名——对输入查询进行保持意义的改变会导致不一致的响应,并导致LLMs的弱点,如幻觉。因此,现有研究侧重于基于简单改写的LLMs一致性评估,而忽略了需要LLM更好理解逻辑推理的复杂查询。因此,我们的工作解决了在具有原始逻辑运算符(如否定、合取和析取)的复杂逻辑查询下LLMs的逻辑不一致问题。作为测试平台,我们考虑了在涉及知识图谱(KGs)命题逻辑查询的事实核查任务中的检索增强LLMs。我们的贡献有三个方面。基准:我们引入了三个基于KG的逻辑事实核查数据集,以促进社区开发逻辑一致的LLMs。评估:我们提出了LLMs在命题逻辑查询上的一致性度量,并证明现有LLMs缺乏逻辑一致性,尤其是在复杂查询上。改进:我们采用监督微调来提高LLMs在具有KG上下文的复杂事实核查任务上的逻辑一致性。我们已经公开了我们的源代码和基准。

英文摘要:

In recent years, large language models (LLMs) have demonstrated significant success in performing varied natural language tasks such as language translation, question-answering, summarizing, fact-checking, etc. Despite LLMs' impressive ability to generate human-like texts, LLMs are infamous for their inconsistent responses - a meaning-preserving change in the input query results in an inconsistent response and attributes to vulnerabilities of LLMs such as hallucination. Consequently, existing research focuses on simple paraphrasing-based consistency assessment of LLMs, and ignores complex queries that necessitate an even better understanding of logical reasoning by an LLM. Our work therefore addresses the logical inconsistency of LLMs under complex logical queries with primitive logical operators, e.g., negation, conjunction, and disjunction. As a test bed, we consider retrieval-augmented LLMs on a fact-checking task involving propositional logic queries from knowledge graphs (KGs). Our contributions are threefold. Benchmark: We introduce three logical fact-checking datasets over KGs for community development towards logically consistent LLMs. Assessment: We propose consistency measures of LLMs on propositional logic queries and demonstrate that existing LLMs lack logical consistency, especially on complex queries. Improvement: We employ supervised fine-tuning to improve the logical consistency of LLMs on the complex fact-checking task with KG contexts. We have made our source code and benchmarks available.

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

↑