CoinMath: Harnessing the Power of Coding Instruction for Math LLMs
Not on the map. Why?
Abstract (arXiv)
Large Language Models (LLMs) have shown strong performance in solving mathematical problems, with code-based solutions proving particularly effective. However, the best practice to leverage coding instruction data to enhance mathematical reasoning remains underexplored. This study investigates three key questions: (1) How do different coding styles of mathematical code-based rationales impact LLMs' learning performance? (2) Can general-domain coding instructions improve performance? (3) How does integrating textual rationales with code-based ones during training enhance mathematical reasoning abilities? Our findings reveal that code-based rationales with concise comments, descriptive naming, and hardcoded solutions are beneficial, while improvements from general-domain coding instructions and textual rationales are relatively minor. Based on these insights, we propose CoinMath, a learning strategy designed to enhance mathematical reasoning by diversifying the coding styles of code-based rationales. CoinMath generates a variety of code-based rationales incorporating concise comments, descriptive naming conventions, and hardcoded solutions. Experimental results demonstrate that CoinMath significantly outperforms its baseline model, MAmmoTH, one of the SOTA math LLMs.
Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Builds on 22 of its 33 references that are in the map. First posted on arXiv 16 Dec 2024.
Builds on
22 of 33 references.
References · 22
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
- 2021Training Verifiers to Solve Math Word Problemscited by 10,109
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 9,379
- 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,371
- 2023Code Llama: Open Foundation Models for Codecited by 2,139
- 2024Gemma 2: Improving Open Language Models at a Practical Sizecited by 1,998
- 2022Solving Quantitative Reasoning Problems with Language Modelscited by 1,392
- 2024Qwen2.5-Math Technical Report: Toward Mathematical Expert Model via Self-Improvementcited by 1,090
- 2022Program of Thoughts Prompting: Disentangling Computation from Reasoning for Numerical Reasoning Taskscited by 1,076
- 2021Show Your Work: Scratchpads for Intermediate Computation with Language Modelscited by 886
- 2021Are NLP Models really able to Solve Simple Math Word Problems?cited by 878
10 more
- 2023WizardMath: Empowering Mathematical Reasoning for Large Language Models via Reinforced Evol-Instructcited by 625
- 2023MAmmoTH: Building Math Generalist Models through Hybrid Instruction Tuningcited by 487
- 2023How Far Can Camels Go? Exploring the State of Instruction Tuning on Open Resourcescited by 408
- 2023Llemma: An Open Language Model For Mathematicscited by 388
- 2024CodeGemma: Open Code Models Based on Gemmacited by 150
- 2024OpenMathInstruct-1: A 1.8 Million Math Instruction Tuning Datasetcited by 143
- 2024MathBench: Evaluating the Theory and Application Proficiency of LLMs with a Hierarchical Mathematics Benchmarkcited by 105
- 2023At Which Training Stage Does Code Data Help LLMs Reasoning?cited by 82
- 2024Unveiling the Impact of Coding Data Instruction Fine-Tuning on Large Language Models Reasoningcited by 31
- 2024InfinityMATH: A Scalable Instruction Tuning Dataset in Programmatic Mathematical Reasoningcited by 15
Built on by
Citing papers per year: 2025: 1; 2026: 1.
2 papers.
Similar, not cited
Close in wording, no citation either way
- 2025Thinking Machines: Mathematical Reasoning in the Age of LLMs
- 2023MathCoder: Seamless Code Integration in LLMs for Enhanced Mathematical Reasoning
- 2026What Really Improves Mathematical Reasoning: Structured Reasoning Signals Beyond Pure Code
- 2024From Next-Token to Mathematics: The Learning Dynamics of Mathematical Reasoning in Language Models
- 2023Novice Learner and Expert Tutor: Evaluating Math Reasoning Abilities of Large Language Models with Misconceptions
- 2025Evaluating Intermediate Reasoning of Code-Assisted Large Language Models for Mathematics
- 2025Evaluation of LLMs for mathematical problem solving
- 2024CHAMP: A Competition-level Dataset for Fine-Grained Analyses of LLMs' Mathematical Reasoning Capabilities