MathAgent: 基于约束图的对抗进化用于数学推理数据合成
MathAgent: Adversarial Evolution of Constraint Graphs for Mathematical Reasoning Data Synthesis
AI总结:
本文提出MathAgent框架,通过约束图的对抗进化生成高质量数学推理数据,提升模型在八个数学基准上的泛化能力。
摘要:
合成高质量数学推理数据而无需人类先验知识仍是一个重大挑战。当前方法通常依赖种子数据变异或简单提示工程,常导致模式崩溃和逻辑复杂性有限。本文提出一种分层合成框架,将数据合成视为约束图上的无监督优化问题,随后进行语义实例化,而非直接文本生成任务。我们引入立法者-执行者范式:立法者对抗性地进化结构生成蓝图,编码问题的约束;执行者将这些规范实例化为多样的自然语言场景。这种骨架设计与语言实现的解耦使模型能够优先构建复杂且多样的逻辑结构,从而指导高质量的数据合成。在Qwen、Llama、Mistral和Gemma系列共10个模型上进行的实验表明,我们的方法在八个数学基准上取得了显著成果:在1K合成样本上微调的模型在八个数学基准上优于LIMO、s1K等同等规模的常用数据集,展现出更优的分布外泛化能力。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。