arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2505.24264cs.CLcs.AI
收藏

面向NLI解释的忠实且鲁棒的LLM驱动定理证明

Faithful and Robust LLM-Driven Theorem Proving for NLI Explanations

University of Manchester(曼彻斯特大学);Idiap Research Institute(IDIAP研究所);University of Sheffield(谢菲尔德大学)

Xin Quan, Marco Valentino, Louise A. Dennis, André Freitas

AI总结:

本文研究LLM与定理证明器交互中的忠实性与鲁棒性问题,提出四种策略缓解自动形式化语义丢失、纠正语法错误、指导生成证明草图及解释反馈迭代优化,在多个数据集上显著提升自动形式化与解释优化效果并大幅减少验证迭代次数。

摘要:

自然语言解释在自然语言推理(NLI)中发挥着基础作用,通过揭示前提如何逻辑地推导出假设。最近的研究表明,大型语言模型(LLMs)与定理证明器(TPs)的交互有助于验证和提升NLI解释的有效性。然而,TPs需要将自然语言翻译为机器可验证的形式化表示,这一过程引入了语义信息丢失和解释不忠实的风险,而LLMs在以足够精度捕捉关键逻辑结构方面的挑战又加剧了这一问题。此外,LLMs在形式化验证框架内进行严谨且鲁棒的证明构建能力仍然有限。为了缓解与忠实性和鲁棒性相关的问题,本文研究了以下策略:(1)减轻自动形式化过程中的语义丢失,(2)高效识别和纠正逻辑表示中的语法错误,(3)显式利用逻辑表达式指导LLMs生成结构化证明草图,以及(4)提升LLMs解释TP反馈以进行迭代优化的能力。我们在e-SNLI、QASC和WorldTree上使用不同LLMs的实证结果表明,所提策略在自动形式化(+18.46%、+34.2%、+39.77%)和解释优化(+29.5%、+51.5%、+41.25%)方面均较最先进模型取得显著提升。此外,我们表明对混合LLM-TP架构的特定干预可大幅提高效率,显著减少成功验证所需的迭代次数。

英文摘要:

Natural language explanations play a fundamental role in Natural Language Inference (NLI) by revealing how premises logically entail hypotheses. Recent work has shown that the interaction of large language models (LLMs) with theorem provers (TPs) can help verify and improve the validity of NLI explanations. However, TPs require translating natural language into machine-verifiable formal representations, a process that introduces the risk of semantic information loss and unfaithful interpretation, an issue compounded by LLMs' challenges in capturing critical logical structures with sufficient precision. Moreover, LLMs are still limited in their capacity for rigorous and robust proof construction within formal verification frameworks. To mitigate issues related to faithfulness and robustness, this paper investigates strategies to (1) alleviate semantic loss during autoformalisation, (2) efficiently identify and correct syntactic errors in logical representations, (3) explicitly use logical expressions to guide LLMs in generating structured proof sketches, and (4) increase LLMs' capacity of interpreting TP's feedback for iterative refinement. Our empirical results on e-SNLI, QASC and WorldTree using different LLMs demonstrate that the proposed strategies yield significant improvements in autoformalisation (+18.46%, +34.2%, +39.77%) and explanation refinement (+29.5%, +51.5%, +41.25%) over the state-of-the-art model. Moreover, we show that specific interventions on the hybrid LLM-TP architecture can substantially improve efficiency, drastically reducing the number of iterations required for successful verification.

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

↑