TL;DR
DeepTheorem introduces an end-to-end framework that brings reinforcement learning to informal (natural language and LaTeX) mathematical theorem proving. By constructing logically entailed and contradictory variants of 121K Olympiad-level theorems, the authors create verifiable binary reward signals that enable RL-Zero training, helping a 7B parameter model outperform many 70B+ baselines on benchmark competitions like FIMO, Putnam, and HMMT.
What Problem Does This Paper Address?
Most automated theorem proving (ATP) systems rely on formal verification languages like Lean, Coq, or Isabelle. While mathematically rigorous, formal systems diverge sharply from the vast corpus of natural language and LaTeX text on which large language models (LLMs) are pre-trained.
At the same time, informal theorem proving in natural language has suffered from two major bottlenecks:
- Scarcity of large-scale, high-difficulty training corpora: Most existing datasets are small-scale or tailored primarily to error analysis rather than model training.
- Lack of verifiable reward signals: RL-Zero (training models with reinforcement learning directly from base weights) requires verifiable outcomes (like a unit test or numerical answer). Natural language mathematical proofs are open-ended and historically required subjective human or model grading, making automated RL difficult.
Methods
DeepTheorem tackles these challenges through three interconnected components:
- Systematic Dataset Construction & Decontamination: The authors mined raw web discussions and used GPT-4o and OpenAI's
o3-minito extract, clean, validate, and format 121K single-statement theorems with detailed LaTeX proofs at International Mathematical Olympiad (IMO) difficulty (levels 5–10). Rigorous embedding-based and LLM-assisted deduplication removed ~199K overlapping problems from standard benchmarks. - Verifiable Rewards via Theorem Variants: To create an objective reward signal for RL without formal compilers, the authors generated logically entailed and contradictory variants of each theorem (e.g., transforming a true inequality into an impossible one). This yielded 242K verifiable statements whose ground-truth outcome is strictly binary:
provedordisproved. - RL-Zero via GRPO: Using Group Relative Policy Optimization (GRPO), models are prompted to output step-by-step reasoning within
<think>tags and conclude with\boxed{proved}or\boxed{disproved}. A binary reward (1/0) is awarded based on correctness, supplemented with sanity checks on formatting and repetition to prevent reward hacking. - Dual Evaluation Framework:
- Outcome Evaluation: A model only passes a test problem if it consistently assigns the correct truth value to the original theorem and all its entailing and contradictory variants.
- Process Evaluation: An LLM-as-a-judge protocol evaluating reasoning step validity (40%), completeness (30%), correctness (20%), and clarity (10%), validated against human expert evaluations.
Datasets
- DeepTheorem (Training): 121K IMO-level theorems across diverse fields (algebra, calculus, geometry, combinatorics, number theory), expanded into 242K verifiable variants.
- Evaluation Benchmarks: Sourced and adapted from three competitions into variant sets:
- FIMO: 172 theorems (average 2.7 variants per theorem)
- HMMT: 205 theorems (average 3.5 variants per theorem)
- Putnam: 281 theorems (average 2.9 variants per theorem)
- Baseline Comparison Dataset: OpenR1-Math-Proof, created by applying the same curation pipeline to OpenR1-Math, yielding 66K theorems and 130K variants.
Key Insights and Ideas
- Turning Proofs into Verifiable Search: Generating contradictory theorem variants transforms informal proof verification into a robust classification proxy. Requiring consistent evaluation across both positive and negative variants sharply drops random guessing accuracy (down to 11–17%).
- RL-Zero Suppresses Hallucinations and False Generalizations: Qualitative error analyses revealed that Supervised Fine-Tuning (SFT) models frequently hallucinate non-existent mathematical relations or generalize hastily from special cases. RL training progressively eliminates these logical leaps.
- RL Training Dynamics: During early RL steps, generation length plummets as the model discovers the formatting rules and minimal response patterns. Later in training, sequence length gradually increases as the model discovers that detailed reasoning chains are necessary to solve harder proofs.
- Difficulty-Dependent Regimes: Ablations showed SFT was relatively more effective on easier problems (levels 5–7), whereas RL drove the largest gains on hard problems (levels 7–9).
Key Results
- Strong Parameter Efficiency: DeepTheorem-RL-7B achieved an average 47.22% outcome score and 34.04% process score, outperforming much larger open-source reasoning models such as Qwen2.5-Inst-72B (37.24% / 29.38%), Llama3.3-Inst-70B (29.30% / 18.92%), and QwQ-32B (18.11% / 14.57%).
- RL Consistently Outperforms SFT: Across 1.5B, 3B, and 7B backbones, models trained with RL-Zero outperformed their SFT counterparts in both outcome correctness and step-by-step reasoning quality (e.g., 7B DeepTheorem RL reached 47.22% outcome vs. 32.87% for SFT).
- Judge Reliability: Process evaluation scores from GPT-4o strongly correlated with
o3-mini($r = 0.955$), process reward models ($r = 0.996$), and graduate student human annotators.
Limitations and Future Work
- Proxy-Based Rewards: While multi-variant consistency significantly reduces false positives, binary outcome labels provide a coarse proxy that rewards the final verdict rather than directly penalizing intermediate flawed steps during RL rollouts.
- Challenging Frontier Math: Performance on collegiate competitions like HMMT remains relatively low (28.81% outcome for the 7B model), indicating ample room for improvement on complex mathematical domains.
- Future Directions: Incorporating process reward models (PRMs) directly into the RL loop and scaling DeepTheorem training to larger open foundation models.
Summary updated