Learning to Generate Formally Verifiable Step-by-Step Logic Reasoning via Structured Formal Intermediaries
Organizations: Wangxuan Institue of Computer Technology, Peking University. · ByteDance.
Abstract
Large language models (LLMs) have recently demonstrated impressive performance on complex, multi-step reasoning tasks, especially when post-trained with outcome-rewarded reinforcement learning Guo et al. 2025. However, it has been observed that outcome rewards often overlook flawed intermediate steps, leading to unreliable reasoning steps even when final answers are correct. To address this unreliable reasoning, we propose PRoSFI (Process Reward over Structured Formal Intermediates), a novel reward method that enhances reasoning reliability without compromising accuracy. Instead of generating formal proofs directly, which is rarely accomplishable for a modest-sized (7B) model, the model outputs structured intermediate steps aligned with its natural language reasoning. Each step is then verified by a formal prover. Only fully validated reasoning chains receive high rewards. The integration of formal verification guides the model towards generating step-by-step machine-checkable proofs, thereby yielding more credible final answers. PRoSFI offers a simple and effective approach to training trustworthy reasoning models.
Figures & tables
| Metric | Definition |
| Answer Correct Rate | |
| Reward Hit Rate | |
| Soundness |
| Method | Metric (%) | Hard | Extra |
| Outcome-CoT | Answer Correct Rate | 91.31 | 86.96 |
| GPT Soundness | 21.97 | 11.87 | |
| Direct Lean Generation | Answer Correct Rate | 92.29 | 83.15 |
| GPT Soundness | 33.11 | 10.45 | |
| ProSFI | Answer Correct Rate | 92.97 | 91.94 |
| GPT Soundness | 76.07 | 56.10 |
| Method | Metric (%) | 2ppl | 3ppl | 4ppl | 5ppl | 6ppl | 7ppl | 8ppl |
| Outcome-CoT | Answer Correct Rate | 99.63 | 99.81 | 99.81 | 98.13 | 98.69 | 95.13 | 94.25 |
| GPT Soundness | 64.81 | 68.56 | 69.13 | 61.75 | 56.06 | 53.88 | 47.94 | |
| PRoSFI | Answer Correct Rate | 99.75 | 99.31 | 99.75 | 99.63 | 99.25 | 98.56 | 97.38 |
| GPT Soundness | 86.56 | 90.31 | 90.50 | 90.44 | 91.00 | 86.31 | 80.94 |
Appendix figures & tables1 asset
Supplementary material from the paper’s appendix.
Appendix
LLM Reasoning
Large language model reasoning studies how models solve multi-step problems, verify intermediate steps, and use computation or tools reliably.
See all 924 papers