Synthesis by Design: Controlled Data Generation via Structural Guidance

Lei Xu, Sirui Chen, Yuxuan Huang, Chaochao Lu
6/9/2025
cs.CLcs.AI

Official code: OpenCausaLab/StructuralGeneration (2 stars, last commit 2025-06-10).

Abstract

Mathematical reasoning remains challenging for LLMs due to complex logic and the need for precise computation. Existing methods enhance LLM reasoning by synthesizing datasets through problem rephrasing, but face issues with generation quality and problem complexity. To address this, we propose to extract structural information with generated problem-solving code from mathematical reasoning and guide data generation with structured solutions. Applied to MATH and GSM8K, our approach produces 39K problems with labeled intermediate steps and a 6.1K-problem benchmark of higher difficulty. Results on our benchmark show that model performance declines as reasoning length increases. Additionally, we conducted fine-tuning experiments using the proposed training data on a range of LLMs, and the results validate the effectiveness of our dataset. We hope the proposed method and dataset will contribute to future research in enhancing LLM reasoning capabilities. Our code and data are available at https://github.com/OpenCausaLab/StructuralGeneration.

View on arXivView PDF

Code Implementations(1)

20Shell, PythonJun 10, 20251 years ago

Cite this paper

@article{xu2025synthesis,
  title  = {Synthesis by Design: Controlled Data Generation via Structural Guidance},
  author = {Lei Xu and Sirui Chen and Yuxuan Huang and Chaochao Lu},
  year   = {2025},
  eprint = {2506.07664},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.07664v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2506.07664.svg)](https://codeofpaper.com/paper/2506.07664)

Discussion