LogicReward: 通过逐步逻辑监督激励大语言模型推理
LogicReward: Incentivizing LLM Reasoning via Step-Wise Logical Supervision
AI总结:
LogicReward通过逐步逻辑监督提升大语言模型的推理能力,有效增强推理可信度和泛化能力,实验显示其在自然语言推理和逻辑推理任务中优于GPT-4o和o4-mini。
摘要:
尽管LLM展现出强大的推理能力,现有的训练方法大多依赖于基于结果的反馈,这可能导致生成正确答案但推理过程存在缺陷。先前的工作对中间步骤进行了监督,但仍缺乏逻辑正确性的保证,这在高风险场景中至关重要,其中逻辑一致性尤为关键。为此,我们提出了LogicReward,一种新的奖励系统,通过定理证明器强制执行步骤级的逻辑正确性来引导模型训练。我们进一步引入了带有软统一分化的自动形式化,以减少自然语言的歧义并提高形式化质量,从而更有效地利用定理证明器。一个在LogicReward构建的数据上训练的8B模型,在自然语言推理和逻辑推理任务中,通过简单的训练流程,在自然语言推理和逻辑推理任务中超过了GPT-4o和o4-mini,分别高出11.6%和2%。进一步分析显示,LogicReward增强了推理的可信度,提高了对未见过的任务如数学和常识推理的泛化能力,并且即使在没有地面真实标签的情况下也能提供可靠的奖励信号。我们将发布所有数据和代码在https://llm-symbol.github.io/LogicReward。
英文摘要:
Although LLMs exhibit strong reasoning capabilities, existing training methods largely depend on outcome-based feedback, which can produce correct answers with flawed reasoning. Prior work introduces supervision on intermediate steps but still lacks guarantees of logical soundness, which is crucial in high-stakes scenarios where logical consistency is paramount. To address this, we propose LogicReward, a novel reward system that guides model training by enforcing step-level logical correctness with a theorem prover. We further introduce Autoformalization with Soft Unification, which reduces natural language ambiguity and improves formalization quality, enabling more effective use of the theorem prover. An 8B model trained on data constructed with LogicReward surpasses GPT-4o and o4-mini by 11.6\% and 2\% on natural language inference and logical reasoning tasks with simple training procedures. Further analysis shows that LogicReward enhances reasoning faithfulness, improves generalizability to unseen tasks such as math and commonsense reasoning, and provides a reliable reward signal even without ground-truth labels. We will release all data and code at https://llm-symbol.github.io/LogicReward.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。