提升大模型生成自然语言推理解释的准确性和鲁棒性。
Faithful and Robust LLM-Driven Theorem Proving for NLI Explanations
- 用逻辑表达式引导大模型生成结构化证明草图。
- 在e-SNLI等数据集上改进自动形式化和解释优化效果。
- 适合需要可信推理解释的研究者与开发者。
自然语言解释在自然语言推理(NLI)中至关重要,揭示前提如何逻辑蕴含假设。近期研究发现,大语言模型(LLMs)与定理证明器(TPs)的结合有助于验证和改进NLI解释的有效性。然而,将自然语言转化为机器可验证的形式化表示过程中存在语义信息丢失和不忠实解读的风险,尤其当LLMs难以精确捕捉关键逻辑结构时更为严重。此外,LLMs在正式验证框架内进行严谨且鲁棒的证明构建能力仍有限。为缓解忠实度与鲁棒性问题,本文提出四项策略:(1) 减少自动形式化过程中的语义损失,(2) 高效识别并修正逻辑表示中的语法错误,(3) 显式使用逻辑表达式指导LLMs生成结构化证明草图,(4) 增强LLMs对定理证明器反馈的理解能力以实现迭代优化。在e-SNLI、QASC和WorldTree数据集上,不同LLMs的实证结果表明,所提方法在自动形式化(+18.46%、+34.2%、+39.77%)和解释优化(+29.5%、+51.5%、+41.25%)方面显著优于现有最佳模型。此外,特定干预措施能大幅提升混合架构效率,显著减少成功验证所需的迭代次数。
原文摘要 · Abstract (English)
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.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。