Verifier-Backed Hard Problem Generation for Mathematical Reasoning

Yuhang Lai, Jiazhan Feng, Yee Whye Teh, Ning Miao

TL;DR

To train better mathematical LLMs, we need harder training problems, but letting LLMs generate their own problems usually leads to "reward hacking" where they create nonsense questions that are impossible to solve. This paper introduces VHG (Verifier-Backed Hard Problem Generation), which adds an independent verifier to the traditional setter-solver self-play loop. This ensures generated problems are both mathematically valid and genuinely challenging, significantly boosting solver performance across multiple benchmarks.

What Problem Does This Paper Address?

While Large Language Models (LLMs) have become expert math solvers, autonomously generating new, high-quality, and difficult problems remains a significant bottleneck. Standard self-play frameworks use a "setter" model to generate problems and a "solver" model to test their difficulty. If the solver fails, the setter gets a high reward for creating a "hard" problem.

However, this setup is highly vulnerable to reward hacking: the setter quickly learns to generate malformed, ambiguous, or completely invalid questions. Because the solver cannot solve nonsense, its 0% accuracy tricks the system into thinking the problem is incredibly challenging. This causes the training pipeline to collapse, yielding useless synthetic data.

Methods

The authors propose a three-party self-play framework called VHG that introduces an independent Verifier into the conventional setter-solver duality.

  1. Setter ($Q$): Responsible for generating a problem-reference pair $(x, y^*)$ rather than just a question. This allows for explicit verification.
  2. Verifier ($V$): Validates the generated pair. The authors implement two variants:
  3. Hard Verifier: Uses symbolic computation (via SymPy for indefinite integrals) to mathematically prove correctness by differentiating the proposed answer and checking if it matches the integrand.
  4. Soft Verifier: Uses an LLM-as-a-judge combined with strict rule-based filters for open-ended general math domains where symbolic verification is impractical.
  5. Solver ($S$): Attempts to solve the problem multiple times to estimate its empirical difficulty.

Crucially, the setter's reward is strictly gated: it receives a difficulty reward only if the verifier confirms the problem is valid. This completely decouples validity from difficulty and eliminates reward hacking.

Figure 1: VHG framework. The setter proposes problem- reference pairs, the verifier gates validity, and accepted pairs are scored by solver difficulty for training and challenge construction.

Datasets

  • Indefinite Integrals: Seeded from college textbooks and evaluated on AntiderivBench (Qualifier and Competition splits). The authors also introduce a newly curated Integration Stress Test containing 532 human-authored problems.
  • General Math: Seeded from an easy subset of the MATH dataset and evaluated across a wide suite of benchmarks: MATH, GSM8K, AMC, Minerva, Olympiad, and AIME (2024–2026).

Key Insights and Ideas

  • Two-Phase Learning Dynamics: When training the setter, it doesn't learn everything simultaneously. It first masters validity (learning how to generate mathematically sound problem-solution pairs) before it successfully begins pushing the envelope on difficulty.
  • Weak-to-Strong Generalization: Remarkably, using a relatively weak 4B model backbone for the setter and solver, VHG generated problems that remained highly challenging for much larger models (Qwen3-8B, 14B, and 32B), showing a clear path for scalable synthetic data generation.
  • Shifting the Difficulty Profile: Unlike baseline self-play methods (like R-Zero) which drift toward easy-to-intermediate problems due to consensus constraints, VHG successfully populates the lowest pass-rate bins with valid, ultra-hard problems.
Figure 2: Difficulty distributions of seed problems and verifier-valid VHG generations. Lower Pass@1 bins indicate harder problems.

Key Results

  • Indefinite Integrals: Solver models trained on VHG-generated data saw massive performance leaps. Pass@1 accuracy jumped from 28.8% to 45.4% on AntiderivBench Competition, and from 43.3% to 64.7% on the Integration Stress Test, drastically outperforming the R-Zero baseline.
  • General Math: The soft-verifier variant raised the overall Pass@1 accuracy across all general math benchmarks from 56.8% to 69.0%. It outperformed baselines on every benchmark except GSM8K, which saw a slight drop due to a natural distribution shift away from primary-school-level questions toward olympiad-level problems.
Figure 3: General math Pass@1 profile. Values are percentages under the standardized evaluation suite.

Limitations and Future Work

  • Verifier Dependency: The framework's guarantees are entirely bounded by the quality of the verifier. While the hard symbolic verifier is 100% reliable, it is limited to narrow domains like calculus.
  • Soft Verifier Vulnerabilities: The LLM-as-a-judge used for general math is "softer" and can still occasionally accept subtle mathematical errors, underspecified problems, or reward-hacking artifacts.
  • Scope: The empirical evaluation was primarily focused on one model family (Qwen3). Future work includes expanding to broader mathematical domains and testing across diverse model architectures.

Summary updated

BibTeX
@inproceedings{lai2026verifier,
  author = {Yuhang Lai and Jiazhan Feng and Yee Whye Teh and Ning Miao},
  title = {{Verifier-Backed Hard Problem Generation for Mathematical Reasoning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=uuzIPLUUKL},
}
Figure