arXiv:2410.11900cs.AIcs.CL2024-10EMNLP被引 9

用逻辑编程让大模型推理更可信,7个基准测试领先

FLARE: Faithful Logic-Aided Reasoning and Exploration

  • 用逻辑代码软形式化问题,通过多跳搜索探索解空间
  • 在9个推理任务中7个达到当前最佳,且推理过程可验证
  • 能定位出决定答案的关键推理步骤,适合需要可解释性的场景

基于大语言模型的问答与推理方法通常依赖提示技术(如思维链),但生成结果常与中间推理不一致。而神经符号方法虽可信度高,却需代码生成模型且难以处理模糊任务。本文提出FLARE,一种新的可解释推理框架:利用大模型规划解决方案,将查询软形式化为逻辑事实与谓词,通过逻辑编程代码执行,并在定义的空间内进行全量多跳搜索。该方法无需外部求解器即可计算推理过程的忠实性并分析每一步搜索路径。实验显示,FLARE在9个多样化推理基准中取得7项最优表现,且模型忠实性与整体性能正相关,还能精准识别出导致正确答案的关键推理因素。

原文摘要 · Abstract (English)

Modern Question Answering (QA) and Reasoning approaches based on Large Language Models (LLMs) commonly use prompting techniques, such as Chain-of-Thought (CoT), assuming the resulting generation will have a more granular exploration and reasoning over the question space and scope. However, such methods struggle with generating outputs that are faithful to the intermediate chain of reasoning produced by the model. On the other end of the spectrum, neuro-symbolic methods such as Faithful CoT (F-CoT) propose to combine LLMs with external symbolic solvers. While such approaches boast a high degree of faithfulness, they usually require a model trained for code generation and struggle with tasks that are ambiguous or hard to formalise strictly. We introduce $\textbf{F}$aithful $\textbf{L}$ogic-$\textbf{A}$ided $\textbf{R}$easoning and $\textbf{E}$xploration ($\textbf{FLARE}$), a novel interpretable approach for traversing the problem space using task decompositions. We use the LLM to plan a solution, soft-formalise the query into facts and predicates using a logic programming code and simulate that code execution using an exhaustive multi-hop search over the defined space. Our method allows us to compute the faithfulness of the reasoning process w.r.t. the generated code and analyse the steps of the multi-hop search without relying on external solvers. Our methods achieve SOTA results on $\mathbf{7}$ out of $\mathbf{9}$ diverse reasoning benchmarks. We also show that model faithfulness positively correlates with overall performance and further demonstrate that $\textbf{FLARE}$ allows pinpointing the decisive factors sufficient for and leading to the correct answer with optimal reasoning during the multi-hop search.

逻辑推理可解释性大模型多跳搜索

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。