Training LLMs with LogicReward for Faithful and Rigorous Reasoning
Jundong Xu, Hao Fei, Huichi Zhou, Xin Quan, Qijun Huang, Shengqiong Wu, William Yang Wang, Mong-Li Lee, Wynne Hsu
TL;DR
This work introduces LogicReward, a reward framework that enforces step-level logical correctness for LLM reasoning by leveraging a theorem prover (Isabelle/HOL) and Autoformalization with Soft Unification. It groundings premises and checks logical validity to produce a unified LogicScore that guides supervised fine-tuning and preference training, yielding state-of-the-art results on NLI and logical reasoning benchmarks. The approach demonstrates stronger reasoning faithfulness, better generalization to unseen tasks, and robustness when ground-truth labels are unavailable, highlighting its practical potential for high-stakes domains. The paper also provides extensive analyses of ablations, soft-unification benefits, and refinement strategies, and releases data and code to support reproducibility and further research.
Abstract
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.
