paper-with-me

Papers

Safe: Enhancing Mathematical Reasoning in Large Language Models via Retrospective Step-aware Formal Verification

2025-06-05 · Chengwu Liu, Ye Yuan, Yichun Yin, Yan Xu, Xin Xu, Zaoyu Chen, Yasheng Wang, Lifeng Shang, Qun Liu, Ming Zhang

Chain-of-Thought (CoT) prompting has become the de facto method to elicit reasoning capabilities from large language models (LLMs). However, to mitigate hallucinations in CoT that are notoriously difficult to detect, current methods such as process reward models (PRMs) or self-consistency operate as opaque boxes and do not provide checkable evidence for their judgments, possibly limiting their effectiveness. To address this issue, we draw inspiration from the idea that "the gold standard for supporting a mathematical claim is to provide a proof". We propose a retrospective, step-aware formal verification framework $Safe$. Rather than assigning arbitrary scores, we strive to articulate mathematical claims in formal mathematical language Lean 4 at each reasoning step and provide formal proofs to identify hallucinations. We evaluate our framework $Safe$ across multiple language models and various mathematical datasets, demonstrating a significant performance improvement while offering interpretable and verifiable evidence. We also propose $FormalStep$ as a benchmark for step correctness theorem proving with $30,809$ formal statements. To the best of our knowledge, our work represents the first endeavor to utilize formal mathematical language Lean 4 for verifying natural language content generated by LLMs, aligning with the reason why formal mathematical languages were created in the first place: to provide a robust foundation for hallucination-prone human-written proofs.

📄 PDF Abstract BibTeX arXiv:2506.04592

Code (1)

liuchengwucn/safe 공식 구현 pytorch

Tasks

Automated Theorem ProvingHallucinationMathematical Reasoning

Similar Papers 제목 키워드 기반

A Survey on Large Language Models for Mathematical Reasoning

2025-06-10 · Peng-Yuan Wang, Tian-Shuo Liu, Chenyang Wang, Yi-Di Wang 외

Mathematical reasoning has long represented one of the most fundamental and challenging frontiers in artificial intelligence research. In recent years, large language models (LLMs) have achieved significant advances in t…

Answer GenerationMathematical ReasoningSurvey

Enhancing RL Safety with Counterfactual LLM Reasoning

2024-09-16 · Dennis Gross, Helge Spieker

Reinforcement learning (RL) policies may exhibit unsafe behavior and are hard to explain. We use counterfactual large language model reasoning to enhance RL policy safety post-training. We show that our approach improves…

counterfactualLanguage ModelingLanguage ModellingLarge Language Model+3

LLM Reasoning Engine: Specialized Training for Enhanced Mathematical Reasoning

2024-12-28 · Shuguang Chen, Guang Lin

Large Language Models (LLMs) have shown remarkable performance in various natural language processing tasks but face challenges in mathematical reasoning, where complex problem-solving requires both linguistic understand…

Mathematical Reasoning

A Survey of Mathematical Reasoning in the Era of Multimodal Large Language Model: Benchmark, Method & Challenges

2024-12-16 · Yibo Yan, Jiamin Su, Jianxiang He, Fangteng Fu 외

Mathematical reasoning, a core aspect of human cognition, is vital across many domains, from educational problem-solving to scientific advancements. As artificial general intelligence (AGI) progresses, integrating large …

Language ModelingLanguage ModellingLarge Language ModelMath+4

Brain-Inspired Two-Stage Approach: Enhancing Mathematical Reasoning by Imitating Human Thought Processes

2024-02-23 · Yezeng Chen, Zui Chen, Yi Zhou

Although large language models demonstrate emergent abilities in solving math word problems, there is a challenging task in complex multi-step mathematical reasoning tasks. To improve model performance on mathematical re…

MathMathematical Reasoning