RV-Syn: Rational and Verifiable Mathematical Reasoning Data Synthesis based on Structured Function Library
Jiapeng Wang, Jinhao Jiang, Zhiqiang Zhang, Jun Zhou, Wayne Xin Zhao
TL;DR
RV-Syn addresses the need for high-quality mathematical reasoning data by building a graph-based library of mathematical operations and synthesizing problems from executable computational graphs. It ensures verifiability through executable graphs and back-translation, yielding ground-truth answers. Empirical results show RV-Syn outperforms existing synthesis methods and even some human-crafted datasets while using less data, highlighting improved data efficiency and reasoning coverage, including multi-hop and modular structures. The framework offers a scalable path for advancing reasoning data generation and has potential applicability beyond mathematics to other reasoning domains.
Abstract
The advancement of reasoning capabilities in Large Language Models (LLMs) requires substantial amounts of high-quality reasoning data, particularly in mathematics. Existing data synthesis methods, such as data augmentation from annotated training sets or direct question generation based on relevant knowledge points and documents, have expanded datasets but face challenges in mastering the inner logic of the problem during generation and ensuring the verifiability of the solutions. To address these issues, we propose RV-Syn, a novel Rational and Verifiable mathematical Synthesis approach. RV-Syn constructs a structured mathematical operation function library based on initial seed problems and generates computational graphs as solutions by combining Python-formatted functions from this library. These graphs are then back-translated into complex problems. Based on the constructed computation graph, we achieve solution-guided logic-aware problem generation. Furthermore, the executability of the computational graph ensures the verifiability of the solving process. Experimental results show that RV-Syn surpasses existing synthesis methods, including those involving human-generated problems, achieving greater efficient data scaling. This approach provides a scalable framework for generating high-quality reasoning datasets.
