Self-Verification Loops: A New Approach to LLM Mathematical Proofs

    Outcome-based rewards cannot reliably distinguish sound mathematical reasoning from a correct answer reached through flawed steps. This article explains a self-verification approach that combines proof generation, issue-focused verification, and meta-verification to support iterative revision. It also examines how this feedback loop can improve reward modeling, guide inference-time computation, and help control the quality of synthetic training data.

    1. Why Outcome-Based Rewards Are Not Enough

    In mathematical reasoning tasks, a model can receive positive feedback simply for producing the correct answer. But a correct answer does not guarantee a reliable derivation. The model may rely on flawed intermediate steps or arrive at the right conclusion by chance. Outcome-based rewards cannot distinguish these cases from sound reasoning. This is the first limitation of verifiable rewards: insufficient reliability.

    The second limitation concerns the task itself. In theorem proving, the main output is a rigorous argument, often without a numerical answer that can be checked directly. For open problems, there may not even be a known reference solution. Answer matching alone cannot provide effective supervision in these settings.

    A natural alternative is to shift evaluation from the final answer to the proof itself. This involves training an evaluation module to read proofs, identify problems, and assess their quality, then using that feedback to improve the generator’s output.

    2. Three Observations Behind the Approach

    This approach rests on three intuitive observations.

    1. Proof errors can be identified without a reference solution. Humans can detect gaps by checking whether a step’s premises hold or whether a lemma’s conditions are satisfied. This ability does not require knowing the answer in advance, making it a capability that models can potentially learn through training.

    2. Thorough scrutiny increases confidence in a proof. If extensive, detailed examination uncovers no problems, confidence in the proof increases. The important factor is the depth and coverage of the checking process, not the result of a single review.

    3. The effort required to check a proof can serve as a proxy for quality. Clear, complete proofs are generally easier to verify. Proofs that require substantial additional work to understand often contain potential weaknesses. This signal can also help guide improvements in proof generation.

    3. The Verifier: From Scoring to Identifying Problems

    The verifier has two responsibilities. First, it identifies specific problems: an incorrect step, a missing premise, or an inference that skips too much reasoning. Second, it combines these findings into an overall score.

    A verifier that outputs only a score has two clear limitations. The score is not explanatory, so the generator has little guidance on what to revise. It can also become disconnected from the reasoning: a model might learn to assign plausible scores without genuinely understanding the proof. Producing an explicit issue list makes the assessment inspectable and provides direction for subsequent improvement.

    Training the verifier does not require a reference solution for every proof. Training data can consist of existing proof samples paired with human-written or automatically generated issue annotations. The model learns how to recognize problems rather than memorize particular answers.

    The verification process can be represented as follows:

    1. function verify(problem, proof):
    2. issues = empty list
    3. for each step in proof:
    4. if check(problem, step) fails:
    5. add describe_issue(step) to issues
    6. score = aggregate(issues)
    7. return {issues, score}

    This pseudocode illustrates the logical structure only. In a real system, the checking operation is typically performed by a trained language model rather than a fixed set of rules.

    4. Meta-Verification: Filtering Out Invented Problems

    A verifier introduces its own risk: it may invent problems in an attempt to appear thorough. If the generator is forced to alter a correct proof to satisfy false criticism, overall quality can decline.

    Meta-verification addresses this risk by evaluating the verifier’s findings. Each reported issue, together with the relevant proof passage, is passed to another evaluation module to determine whether the criticism is valid. This module also produces a score, and only issues confirmed by this second assessment contribute to the final feedback.

    This design offers two benefits. First, it makes verification more reliable by filtering out false positives. Second, meta-verification judgments can serve as training signals, helping the verifier distinguish genuine defects from superficial concerns more accurately.

    Meta-verification can also make mistakes. It should therefore retain some independence from the verifier—for example, through different prompting strategies or training on different sample distributions.

    5. The Generator: Revising Proofs Through Feedback

    The generator’s task is to write proofs. With self-verification, its workflow becomes:

    1. Generate an initial proof.
    2. Review its own reasoning.
    3. Revise the proof based on feedback.
    4. Submit the revised proof for verification.

    Self-review requires the model to examine its output from a reviewer’s perspective. It does not replace external verification, but it can remove obvious mistakes and allow the verifier to focus on deeper issues.

    Revisions should be guided by the issue list. Each confirmed problem should lead to a specific change, such as stating a lemma’s prerequisites, breaking an unsupported leap into smaller steps, or clarifying notation. Unconfirmed issues should not trigger revisions; otherwise, the generator may repeatedly adjust its proof around false criticisms and become trapped in unproductive iteration.

    During training, feedback from the verifier and meta-verifier can be converted into reward signals. Higher-quality proofs with fewer confirmed defects receive higher rewards.

    6. A Collaborative Loop Between Generation and Verification

    The generator and verifier form a feedback loop in which improvements to either component can support the other.

    As the generator improves, it produces more complex proofs. These create new challenges for the verifier, requiring it to detect increasingly subtle errors. A stronger verifier, in turn, can examine proofs at scale—including proofs that are difficult for humans to check—and automatically produce annotations. Those annotations can then become training data for further verifier improvement.

    Computational resource allocation is central to this process. Verification itself consumes compute, but large-scale verification can replace some manual review and turn previously impractical annotation tasks into usable training data.

    The loop has three main stages:

    1. Use verification feedback to improve proof generation.
    2. Scale verification compute to automatically annotate new, difficult-to-verify proofs.
    3. Use the improved verifier to further refine proof generation.

    7. Implications for AI

    Reward Modeling Moves Beyond Scores

    The focus of reward modeling shifts from assigning scores to modeling the evaluation process. Feedback should indicate not only whether an output is good, but also where its problems lie. This is particularly important for open-ended tasks that lack standard answers.

    Inference-Time Compute Becomes More Targeted

    When a model generates multiple candidate solutions, verification can act as a filter, directing computational resources toward the most promising candidates. Self-verification makes additional inference-time computation more than repeated sampling: it produces intermediate judgments that can be inspected.

    Synthetic Data Gains an Additional Quality Check

    Unchecked automatic annotations can introduce substantial noise into training data. Meta-verification adds a filtering layer, helping make automatically generated annotations more trustworthy.