SIaM: Self-Improving Code-Assisted Mathematical Reasoning of Large Language Models
Preprint
Abstract
There is a growing trend of teaching large language models (LLMs) to solve mathematical problems through coding. Existing studies primarily focus on prompting powerful, closed-source models to generate seed training data followed by in-domain data augmentation, equipping LLMs with considerable capabilities for code-aided mathematical reasoning. However, continually training these models on augmented data derived from a few datasets such as GSM8K may impair their generalization abilities and restrict their effectiveness to a narrow range of question types. Conversely, the potential of improving such LLMs by leveraging large-scale, expert-written, diverse math question-answer pairs remains unexplored. To utilize these resources and tackle unique challenges such as code response assessment, we propose a novel paradigm that uses a code-based critic model to guide steps including question-code data construction, quality control, and complementary evaluation. We also explore different alignment algorithms with self-generated instruction/preference data to foster continuous improvement. Experiments across both in-domain (up to +5.7%) and out-of-domain (+4.4%) benchmarks in English and Chinese demonstrate the effectiveness of the proposed paradigm.Keywords
All Related Versions
This publication has 13 references indexed in Scilit:
- CodeUltraFeedback: An LLM-as-a-Judge Dataset for Aligning Large Language Models to Coding PreferencesACM Transactions on Software Engineering and Methodology, 2026
- ChatGLM-Math: Improving Math Problem-Solving in Large Language Models with a Self-Critique Pipeline2024
- ORPO: Monolithic Preference Optimization without Reference Model2024
- MathGenie: Generating Synthetic Data with Question Back-translation for Enhancing Mathematical Reasoning of LLMs2024
- MathBench: Evaluating the Theory and Application Proficiency of LLMs with a Hierarchical Mathematics Benchmark2024
- Teaching Language Models to Self-Improve by Learning from Language Feedback2024
- Disentangling Length from Quality in Direct Preference Optimization2024
- Neural-Symbolic Solver for Math Word Problems with Auxiliary Tasks2021
- A Diverse Corpus for Evaluating and Developing English Math Word Problem Solvers2020
- Correlation Coefficients: Appropriate Use and InterpretationAnesthesia & Analgesia, 2018