Pipeline for Verifying LLM-Generated Mathematical Solutions

📅 2026-02-24
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
Current benchmarks for mathematical reasoning predominantly rely on answer matching, which fails to assess the logical correctness of solution processes. This work proposes a hybrid verification pipeline that integrates automated and interactive validation by leveraging structured prompting to guide large language models in generating verifiable solutions. The framework supports both formal and informal reasoning and interfaces with proof assistants such as Lean 4, enabling even small-scale models (≤8B parameters) to participate effectively in collaborative verification. Through a multi-agent architecture and advanced prompt engineering, the approach substantially reduces false positive rates. Experimental results demonstrate high verification accuracy across multiple datasets, and the codebase along with deployment guidelines has been publicly released.

Technology Category

Application Category

📝 Abstract
With the growing popularity of Large Reasoning Models and their results in solving mathematical problems, it becomes crucial to measure their capabilities. We introduce a pipeline for both automatic and interactive verification as a more accurate alternative to only checking the answer which is currently the most popular approach for benchmarks. The pipeline can also be used as a generator of correct solutions both in formal and informal languages. 3 AI agents, which can be chosen for the benchmark accordingly, are included in the structure. The key idea is the use of prompts to obtain the solution in the specific form which allows for easier verification using proof assistants and possible use of small models ($\le 8B$). Experiments on several datasets suggest low probability of False Positives. The open-source implementation with instructions on setting up a server is available at https://github.com/LogicEnj/lean4_verification_pipeline.
Problem

Research questions and friction points this paper is trying to address.

Large Language Models
Mathematical Reasoning
Solution Verification
Benchmarking
False Positives
Innovation

Methods, ideas, or system contributions that make the work stand out.

verification pipeline
large reasoning models
proof assistants
prompt engineering
formal mathematics
🔎 Similar Papers
No similar papers found.
V
Varvara Sazonova
Moscow State University
D
Dmitri Shmelkin
Huawei Technologies Co., Ltd
Stanislav Kikot
Stanislav Kikot
London Metropolitan University
Artificial IntelligenceKnowledge Representation and ReasoningMathematical Logic
V
Vasily Motolygin