MathAgent: Adversarial Evolution of Constraint Graphs for Mathematical Reasoning Data Synthesis
About
Synthesizing high-quality mathematical reasoning data without human priors remains a significant challenge. Current approaches typically rely on seed data mutation or simple prompt engineering, often suffering from mode collapse and limited logical complexity. This paper proposes a hierarchical synthesis framework that formulates data synthesis as an unsupervised optimization problem over a constraint graph followed by semantic instantiation, rather than treating it as a direct text generation task. We introduce a Legislator-Executor paradigm: The Legislator adversarially evolves structured generation blueprints encoding the constraints of the problem, while the Executor instantiates these specifications into diverse natural language scenarios. This decoupling of skeleton design from linguistic realization enables a prioritized focus on constructing complex and diverse logical structures, thereby guiding high-quality data synthesis. Experiments conducted on a total of 10 models across the Qwen, Llama, Mistral, and Gemma series demonstrate that our method achieves notable results: models fine-tuned on 1K synthesized samples outperform widely-used datasets of comparable scale (LIMO, s1K) across eight mathematical benchmarks, exhibiting superior out-of-distribution generalization.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Reasoning | BBH | Accuracy68.4 | 672 | |
| Mathematical Reasoning | Minerva Math | Accuracy39.7 | 186 | |
| Mathematical Reasoning | Olympiad Bench | Accuracy56.3 | 123 | |
| Math Reasoning | GaoKao En 2023 | Accuracy79 | 91 | |
| Mathematical Reasoning | AIME 2024 | Mean Score (k=8)38.8 | 59 | |
| Mathematical Reasoning | AIME 25 | Avg@830 | 40 | |
| Mathematical Reasoning | AMC 23 | Avg@880.6 | 40 | |
| Multitask Language Understanding | MMLU | Accuracy74.1 | 34 | |
| Question Answering | TruthfulQA | MC1 Score38.9 | 6 |