Do We Need Frontier Models to Verify Mathematical Proofs?

Aaditya Naik, Guruprerana Shabadi, Rajeev Alur, Mayur Naik

TL;DR

Smaller open-source LLMs can verify complex mathematical proofs nearly as accurately as frontier models, but they suffer from significant inconsistency across repeated judgments. By employing a diverse ensemble of specialized prompts—such as "Logic Chain Verifiers" and "Proof Repair" agents—researchers boosted the performance of models like Qwen3.5-35B to match frontier-level verifiers at a fraction of the inference cost.

What Problem Does This Paper Address?

As Large Language Models (LLMs) begin to tackle gold-medal-level math problems, the bottleneck shifts from generation to verification. We need to know if a natural language proof is actually sound. While verification is traditionally considered "easier" than generation, natural language proofs are riddled with ambiguities, implicit leaps, and nested logic that make automated checking difficult.

Currently, "frontier" models (like GPT-5.2 or Gemini 3.1 Pro) are the gold standard for this task. However, these models are expensive and closed-source. This paper investigates a fundamental question: Do we actually need massive frontier models for verification, or can smaller, open-source models do the job if prompted correctly?

Methods

The authors systematically evaluated four open-source models (Qwen3.5 and GPT-OSS variants) and two frontier models. They focused on two metrics: Balanced Accuracy (correctness of judgment) and Self-Consistency (agreement across repeated runs).

The core innovation is a Prompt Ensemble approach. Rather than relying on a single "General Grading" prompt, the authors used an LLM-guided search (via Claude Code) to synthesize a suite of 12 prompt calls involving 8 distinct strategies:

  • Logic Chain Verifier: Checks if each conclusion follows from its premises.
  • Proof Repair: Asks the model to fix the proof; if a non-trivial fix is required, the proof is flagged as incorrect.
  • Extreme Skeptic: A high-strictness prompt that assumes the proof is wrong unless every edge case is handled.
  • Theorem Usage Analysis: Specifically verifies if lemmas and theorems are applied correctly.

The final verdict is determined by threshold voting: a proof is accepted only if at least 8 out of the 12 prompt calls judge it as correct.

Figure 1: (Left) Mean balanced accuracy and self-consistency rates of frontier and open- source LLM judges across all datasets. For each baseline model, we report results for the prompt with the highest mean balanced accuracy among IMOBench, GIMO, and Proof- Bench7pt; self-consistency is computed from three repeated judgements using that same fixed prompt. Low and high-reasoning settings are denoted with ‘•’ and ‘♦’, respectively, while ‘⋆’ denotes performance after prompt ensembling. Smaller open-source models are only ∼10% behind frontier models in balanced accuracy, but are substantially less self-consistent. Prompt ensembling closes much of this gap, allowing models such as Qwen3.5-35B to approach frontier-level verifier performance. (Right) Overview of our prompt-ensemble method. A proof is evaluated under a collection of prompts with com- plementary roles, including general grading prompts and prompts specialized to different aspects of proof correctness. Their judgments are aggregated by threshold voting to produce a final verdict.

Datasets

The study utilized three major benchmarks of natural language mathematical proofs, all featuring Olympiad-level problems and human-expert annotations:

  1. IMO-GradingBench: Proofs graded on a 0–7 scale.
  2. ProofArena: Binary-labeled proofs.
  3. ProofBench: Another 0–7 scale dataset.
  4. TrainProofs: A specialized subset of 200 examples used specifically for prompt optimization and search.

Key Insights and Ideas

  • The Consistency Gap: The primary difference between frontier and open-source models isn't just raw intelligence, but reliability. Smaller models were only ~10% behind in accuracy but up to 25% more inconsistent.
  • Elicitation vs. Capability: Smaller models often possess the mathematical knowledge to spot an error but fail to "attend" to it with general prompts. They might even "hallucinate" a fix for a gap in the proof and then declare the original proof correct.
  • Turning Weakness into Strength: The "Proof Repair" prompt is a clever hack. It exploits the model's tendency to fill in gaps by explicitly asking it to do so, then using the necessity of that repair as evidence that the original proof was flawed.
  • Prompt Sensitivity: All models, including frontier ones, showed massive performance swings based on the prompt style. For instance, the "GIMO" prompt (step-by-step evaluation) often biased models toward rejecting correct proofs by over-focusing on local inconsistencies.
Two failure modes of smaller models: reproducing flawed logic verbatim and fabricating arguments to fix gaps. Targeted prompts like "Logic Chain Verifier" successfully mitigate these.

Key Results

  • Performance Boost: The ensemble method improved smaller models by up to 9.1% in balanced accuracy and 15.9% in self-consistency.
  • Closing the Gap: With ensembling, Qwen3.5-35B performed on par with Gemini 3.1 Pro and GPT-5.2 (low reasoning) across multiple datasets.
  • Cost Efficiency: The GPT-OSS-120B ensemble achieved ~84.8% accuracy at a cost of $5.51 per 1,000 examples. In comparison, GPT-5.2 with high reasoning costs $84.35 for similar accuracy—a 15x difference.
  • Transferability: Prompts optimized on one model (GPT-OSS-120B) transferred effectively to others (Qwen3.5), suggesting these failure modes are general to the task of proof verification rather than model-specific.
Figure 1: (Left) Mean balanced accuracy and self-consistency rates of frontier and open- source LLM judges across all datasets. For each baseline model, we report results for the prompt with the highest mean balanced accuracy among IMOBench, GIMO, and Proof- Bench7pt; self-consistency is computed from three repeated judgements using that same fixed prompt. Low and high-reasoning settings are denoted with ‘•’ and ‘♦’, respectively, while ‘⋆’ denotes performance after prompt ensembling. Smaller open-source models are only ∼10% behind frontier models in balanced accuracy, but are substantially less self-consistent. Prompt ensembling closes much of this gap, allowing models such as Qwen3.5-35B to approach frontier-level verifier performance. (Right) Overview of our prompt-ensemble method. A proof is evaluated under a collection of prompts with com- plementary roles, including general grading prompts and prompts specialized to different aspects of proof correctness. Their judgments are aggregated by threshold voting to produce a final verdict.

Limitations and Future Work

  • Scope of Mathematics: The findings are limited to Olympiad-level competition math. It remains unclear if these techniques scale to research-level mathematics where "missing knowledge" is a bigger factor than "reasoning gaps."
  • Binary Simplification: The authors converted 0–7 human grades into binary "Correct/Incorrect" labels, which might discard useful nuance regarding partially correct proofs.
  • Contamination: As with all LLM benchmarks, the authors acknowledge they cannot fully rule out that these specific competition problems were present in the models' training data.
  • Future Directions: The authors suggest applying this methodology to other high-stakes verification domains, such as legal reasoning or financial auditing.

Summary updated

BibTeX
@inproceedings{naik2026do,
  author = {Aaditya Naik and Guruprerana Shabadi and Rajeev Alur and Mayur Naik},
  title = {{Do We Need Frontier Models to Verify Mathematical Proofs?}},
  booktitle = {COLM},
  year = {2026},
  url = {https://openreview.net/forum?id=GSduvWeVhY},
}
Figure