Self-Verification Reasoning Methods for Mathematical LLMs: A Technical Analysis

    This article explains why final-answer rewards are insufficient for training mathematical large language models and how self-verification mechanisms address this gap. It covers the limitations of outcome-based reinforcement learning, the architecture of proof generator–verifier systems, layered verification pipelines, verifier training strategies, verification compute scaling, test-time compute techniques, and key engineering considerations for building reliable, auditable mathematical reasoning systems.

    1. From Correct Answers to Reliable Reasoning

    The capability of large language models on mathematical tasks is typically measured by two types of metrics: whether the final answer is correct, and whether the derivation process is complete, rigorous, and verifiable. Early mathematical reasoning systems focused on the former—having the model generate an answer to a problem and designing reward signals based on whether that answer matched the standard result. This approach is simple to implement and provides clear feedback, making it well suited for computational problems with unique numerical results, multiple-choice questions, and certain competition problems.

    However, final-answer rewards have a fundamental problem: a correct answer does not prove that the reasoning process is correct. A model may arrive at the correct conclusion through lucky guessing, hidden errors that cancel each other out, or even incomplete argumentation. For theorem proving, formal reasoning, complex geometric proofs, and open-ended research problems, simply comparing final results is far from sufficient. These tasks require the model to demonstrate:

    • Which known conditions were used;
    • The basis for each step of the derivation;
    • Whether intermediate conclusions follow strictly from the premises;
    • Whether any boundary conditions were omitted;
    • Whether the final conclusion covers everything the problem requires.

    Therefore, the development of mathematical LLMs needs to shift from “outcome optimization” to “process trustworthiness optimization,” with the core goal of building self-verification mechanisms capable of checking reasoning quality.

    2. Limitations of Final-Answer Rewards

    Reinforcement learning based on final answers can generally be abstracted into the following process:

    1. The model reads the problem and generates a solution;
    2. The final answer is extracted from the solution;
    3. The final answer is matched against the standard answer;
    4. A positive reward is given for a match, otherwise a negative reward;
    5. Model parameters are updated over large numbers of samples.

    The advantage of this method is a clear training objective and low verification cost. But it has several obvious deficiencies.

    2.1 Inability to Detect Local Errors in the Process

    If the model makes an error at an earlier step but later steps return to the correct result through other means, final-answer rewards will still treat the entire trajectory as a success. This causes the model to learn the behavioral pattern that “as long as the result is correct, the process doesn’t need to be rigorous.”

    2.2 Difficulty Handling Problems Without Standard Answers

    Many research-oriented mathematical problems have no unique answer, or the standard answer is not given in advance. For such problems, the system cannot directly provide rewards through string matching or numerical comparison.

    2.3 Unsuitability for Proof-Based Tasks

    The goal of theorem proving is not to output a number, but to construct a complete proof chain composed of definitions, lemmas, and logical rules. Proofs can be written in many different ways with substantial surface-level textual differences, so simple answer matching cannot accurately judge quality.

    2.4 Susceptibility to Reward Hacking

    When a model discovers that the scoring rule only focuses on the final result, it may tend to generate arguments that appear complete but actually lack justification, or mask reasoning gaps through repeated conclusions, vague statements, and formal-sounding language. Such behavior may be effective on short-term metrics but reduces the system’s reliability on real tasks.

    3. The Core Idea of Self-Verification

    The core of self-verification is to make the model responsible not only for generating answers but also for actively checking them. A complete system typically contains two cooperating roles:

    • Proof generator: generates candidate proofs based on the problem, known conditions, and intermediate conclusions;
    • Proof verifier: checks the logical relationships, mathematical facts, and structural completeness of the proof.

    The verifier should not merely judge whether “the whole thing looks reasonable,” but should locate specific problems as precisely as possible, such as:

    • Whether a step incorrectly applies a definition;
    • Whether a derivation lacks necessary conditions;
    • Whether a sufficient condition was mistaken for a necessary-and-sufficient condition;
    • Whether case analysis was omitted;
    • Whether variable ranges changed;
    • Whether local validity was incorrectly extended to global validity;
    • Whether key arguments were skipped in proof by contradiction, induction, or limit operations.

    The verifier’s output can be an overall score, or step-by-step error annotations with natural language explanations. Ideally, it provides both a “conclusion” and its “basis,” enabling the generator to make targeted corrections based on the feedback.

    4. Closed-Loop Training of Generator and Verifier

    Training a proof generator in isolation tends to create a bias: the model prioritizes fluent expression and complete conclusions while neglecting the checkability of its derivations. Introducing a verifier into the training loop enables a generate–verify–revise closed loop.

    A typical workflow is as follows:

    Step 1: Generate Candidate Proofs

    The model generates an initial proof from the input problem. Errors are allowed at this stage, because erroneous samples are themselves an important data source for training verification capability.

    Step 2: Perform Layered Verification

    The verifier examines the candidate proof at multiple levels:

    1. Format layer: whether the proof contains the necessary definitions, assumptions, conclusions, and derivation steps;
    2. Local logic layer: whether valid implication exists between adjacent steps;
    3. Mathematical fact layer: whether cited theorems, identities, and properties are correct;
    4. Global consistency layer: whether variables, conditions, and conclusions are consistent throughout;
    5. Goal coverage layer: whether the proof actually answers the original question, rather than proving only a related proposition.

    Step 3: Generate Revision Feedback

    The verifier should not only output “correct” or “incorrect,” but should also explain, where possible, the error location, error type, and possible direction of correction. For example:

    Step 4 applies a non-negativity condition to a variable for which it has not been established; the variable’s range must first be shown, or an equivalent transformation that does not depend on this condition should be used instead.

    Such feedback is far more useful as a learning signal for the generator than a single score.

    Step 4: Regenerate the Proof

    The generator revises the original proof based on the verification results. The revision process can repeat over multiple rounds until the proof passes verification or a preset compute budget is reached.

    The key to this closed loop is not making the model produce a perfect answer in one shot, but giving it the ability to continuously discover and fix problems.

    5. How to Train a High-Quality Verifier

    The verifier is the foundation of the entire system. If the verifier itself is inaccurate, the generator may be misled by incorrect feedback, producing proofs that are “verifier-approved but actually wrong.” Verifier training therefore requires particular attention to accuracy and faithfulness.

    5.1 Construct Diverse Proof Samples

    Training data cannot consist only of correct proofs; it should also include negative samples with different error characteristics, such as:

    • Arithmetic calculation errors;
    • Incorrect use of definitions;
    • Omitted conditions;
    • Wrong reasoning direction;
    • Overgeneralized conclusions;
    • Circular reasoning;
    • Unsupported citations;
    • Proofs covering only part of the cases.

    The closer the error samples are to real model outputs, the better the verifier can learn the problem patterns that occur in practice.

    5.2 Use Step-Level Annotation

    Annotating only whether an entire proof is correct is usually insufficient for training precise verification capability. A more effective approach is to record, for each key step:

    • Whether the step is valid;
    • Which premises it depends on;
    • Which theorem or definition it uses;
    • Which category the error belongs to;
    • Whether the error affects the final conclusion.

    Step-level annotation allows the verifier to evolve from “judging results” to “explaining reasons.”

    5.3 Prevent Surface-Level Bias

    A verifier may rely on text length, formatting conventions, or fixed phrasing to make judgments, rather than genuinely checking mathematical logic. For example, a longer proof is not necessarily more reliable, and more terminology does not imply a correct derivation.

    To reduce such surface bias, training data should include samples with different expression styles but equivalent logic, as well as contrastive pairs of concise-but-correct and elaborate-but-wrong proofs.

    5.4 Emphasize Verification Faithfulness

    The verifier’s judgments must align as closely as possible with the actual reasoning process. A scorer that appears accurate but cannot point out where an error occurs is of little help in improving the generator. In engineering practice, faithfulness can be evaluated through manual spot checks, formal verification, and cross-validation with independent solvers.

    6. Scaling Verification Compute and Sustained Data Growth

    As the proof generator’s capability improves, an older verifier may gradually fail to distinguish high-quality proofs from subtle errors. At this point, a “generation–verification gap” emerges: the generator can produce more complex proofs, but the verifier remains at a lower level.

    An important approach to solving this problem is scaling verification compute. Specifically, the same proof can be checked multiple times from different perspectives:

    • Have multiple verification processes judge independently;
    • Split long proofs into local subgoals;
    • Perform backward derivation on key steps;
    • Check whether the conclusion can re-derive the premises;
    • Require the verifier to generate counterexamples or identify the weakest link;
    • Conduct secondary reviews of judgments where verifiers disagree.

    For proofs that are difficult to judge directly, they can be temporarily marked as “hard verification samples,” then given high-quality labels through stronger analysis, manual review, or formal tools. These samples are subsequently used to continue training the verifier, forming a self-sustaining data growth loop:

    A stronger generator produces more complex proofs → the verifier discovers hard cases → hard cases receive precise labels → verifier capability improves → the generator receives more reliable feedback.

    This is an active learning mechanism oriented toward difficult samples, and it is more valuable than simply adding more ordinary training data.

    7. Test-Time Compute: Trading More Inference for Higher Reliability

    Mathematical reasoning tasks usually allow more computational resources to be invested before producing an answer. Unlike generating an answer only once, test-time compute lets the system generate multiple candidate proofs in parallel, then filter and merge them through the verifier.

    Common strategies include:

    Multi-Path Generation

    Generate multiple independent proofs for the same problem. If several proofs agree on key conclusions, the system can raise its confidence; if the proofs diverge, they enter a focused review process.

    Staged Verification

    First run lower-cost format and local-logic checks, then perform complex global verification only on proofs that pass the initial screening. This reduces overall computational overhead.

    Proof Repair

    When the verifier finds a problem, the proof does not need to be regenerated from scratch; instead, the model is asked to rewrite only the erroneous step and its downstream dependencies. For long proofs, this local repair is usually much more efficient.

    Budget Awareness

    The system should dynamically allocate compute based on problem difficulty. Simple problems do not require extensive verification, while complex problems can be granted more candidate generation and multiple review rounds. The ultimate goal is not to increase compute indefinitely, but to balance accuracy, latency, and resource consumption.

    8. Key Engineering Considerations

    Building a self-verifying mathematical reasoning system also requires attention to the following engineering issues.

    8.1 Use Structured Proof Representations

    Pure natural-language proofs are easy to read but difficult to check automatically. Proofs can be decomposed into steps, premises, conclusions, and dependency relationships, forming a directed-graph-like structure. This makes it easier to locate errors and to cache intermediate conclusions that have already been verified.

    8.2 Record Complete Reasoning Trajectories

    During training and evaluation, candidate proofs, verification feedback, revised versions, and final results should all be retained. Complete trajectories help analyze whether the model “genuinely fixed the error” or merely rewrote the text to bypass verification.

    8.3 Distinguish Uncertainty from Error

    When the verifier cannot make a determination, it should not simply output “wrong.” Separating “correct,” “incorrect,” and “uncertain” helps schedule more intensive verification downstream and prevents incorrect penalties from being applied to the generator.

    8.4 Build a Layered Evaluation System

    Evaluation should not look only at final-answer accuracy; it should also include:

    • Single-step reasoning accuracy;
    • Error localization accuracy;
    • Repair success rate;
    • Complete proof pass rate;
    • Long-chain reasoning stability;
    • Consistency across different phrasings;
    • Generalization to unseen problem types.

    9. Future Directions

    Self-verifiable mathematical reasoning is still an evolving field. Directions worth watching include:

    1. Finer-grained process rewards: evolving from whole-proof scoring to scoring of key steps and dependency relationships;
    2. Combining natural language with formal verification: balancing expressive flexibility with logical certainty;
    3. Verifier ensembling: using multiple verification modules with different capabilities and preferences simultaneously;
    4. Exploration of open problems: building trustworthy feedback through counterexamples, constraints, and consistency when no standard answer exists;
    5. More efficient compute scheduling: automatically deciding when to continue generating and when to verify more deeply, based on uncertainty;
    6. Reliability and interpretability together: not only producing conclusions, but explaining why a proof was accepted or rejected.

    Overall, improving the capability of mathematical LLMs cannot rely solely on larger training datasets or higher answer hit rates. What truly determines the ceiling of such systems is whether the model can understand its own reasoning process, identify its weak points, and make effective corrections under feedback. A technical roadmap centered on verifiers, built on the generate–verify closed loop, and supplemented by test-time compute provides an important direction for building more rigorous, auditable, and scalable mathematical AI systems.