Learning Math Reasoning from Self-Sampled Correct and Partially-Correct Solutions
On the map: LLM reasoning → Mathematical reasoning
Abstract (arXiv)
Pretrained language models have shown superior performance on many natural language processing tasks, yet they still struggle at multi-step formal reasoning tasks like grade school math problems. One key challenge of finetuning them to solve such math reasoning problems is that many existing datasets only contain one reference solution for each problem, despite the fact that there are often alternative solutions resembling different reasoning paths to the final answer. This way, the finetuned models are biased towards the limited reference solutions, which limits their generalization to unseen examples. To mitigate this issue, we propose to let the model perform sampling during training and learn from both self-sampled fully-correct solutions, which yield the correct answer upon execution, and partially-correct solutions, whose intermediate state matches an intermediate state of a known correct solution. We show that our use of self-sampled correct and partially-correct solutions can benefit learning and help guide the sampling process, leading to more efficient exploration of the solution space. Additionally, we explore various training objectives to support learning from multiple solutions per example and find they greatly affect the performance. Experiments on two math reasoning datasets show the effectiveness of our method compared to learning from a single reference solution with MLE, where we improve PASS@100 from 35.5% to 44.5% for GSM8K, and 27.6% to 36.2% PASS@80 for MathQA. Such improvements are also consistent across different model sizes. Our code is available at https://github.com/microsoft/TraceCodegen.
Key facts. Cited by 38 papers in the map (data through 14 Oct 2026). Placed in Mathematical reasoning, one of 17 directions in LLM reasoning. Builds on 24 of its 29 references that are in the map. First posted on arXiv 28 May 2022.
Builds on
24 of 29 references.
References · 24
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2021Training Verifiers to Solve Math Word Problemscited by 10,109
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,326
- 2021Program Synthesis with Large Language Modelscited by 3,637
- 2022Competition-Level Code Generation with AlphaCodecited by 1,462
- 2021Show Your Work: Scratchpads for Intermediate Computation with Language Modelscited by 886
- 2018Improving Text-to-SQL Evaluation Methodologycited by 135
- 2020Semantic Evaluation for Text-to-SQL with Distilled Test Suitescited by 126
- 2016Neural Symbolic Machines: Learning Semantic Parsers on Freebase with Weak Supervisioncited by 103
12 more
- 2019Write, Execute, Assess: Program Synthesis with a REPLcited by 93
- 2018Leveraging Grammar and Reinforcement Learning for Neural Program Synthesiscited by 84
- 2019A Discrete Hard EM Approach for Weakly Supervised Question Answeringcited by 78
- 2018Memory Augmented Policy Optimization for Program Synthesis and Semantic Parsingcited by 57
- 2018Robust Text-to-SQL Generation with Execution-Guided Decodingcited by 52
- 2017From Language to Programs: Bridging Reinforcement Learning and Maximum Marginal Likelihoodcited by 41
- 2019Learning to Generalize from Sparse and Underspecified Rewardscited by 39
- 2021Latent Execution for Neural Program Synthesiscited by 35
- 2021Programming Puzzlescited by 25
- 2020Representing Partial Programs with Blended Abstract Semanticscited by 14
- 2019Merging Weak and Active Supervision for Semantic Parsingcited by 11
- 2018Program Synthesis Through Reinforcement Learning Guided Tree Searchcited by 7
Built on by
Citing papers per year: 2023: 12; 2024: 17; 2025: 8; 2026: 1.
38 papers.
Sort:
By area:
- 2023WizardMath: Empowering Mathematical Reasoning for Large Language Models via Reinforced Evol-Instructcited by 625
- 2023Scaling Relationship on Learning Mathematical Reasoning with Large Language Modelscited by 427
- 2023Beyond Human Data: Scaling Self-Training for Problem-Solving with Language Modelscited by 349
- 2024V-STaR: Training Verifiers for Self-Taught Reasonerscited by 217
- 2023Large Language Model Cascades with Mixture of Thoughts Representations for Cost-efficient Reasoningcited by 143
- 2024Debug like a Human: A Large Language Model Debugger via Verifying Runtime Execution Step-by-stepcited by 127
- 2024Chain of Preference Optimization: Improving Chain-of-Thought Reasoning in LLMscited by 96
- 2023TinyGSM: achieving >80% on GSM8k with small language modelscited by 70
- 2024NExT: Teaching Large Language Models to Reason about Code Executioncited by 63
- 2024Multi-step Problem Solving Through a Verifier: An Empirical Analysis on Model-induced Process Supervisioncited by 52
- 2023MuggleMath: Assessing the Impact of Query and Response Augmentation on Math Reasoningcited by 45
- 2024Interpreting and Improving Large Language Models in Arithmetic Calculationcited by 45
26 more
- 2025NFT: Bridging Supervised Learning and Reinforcement Learning in Math Reasoningcited by 38
- 2025Supervised Fine Tuning on Curated Data is Reinforcement Learning (and can be improved)cited by 38
- 2023GRACE: Discriminator-Guided Chain-of-Thought Reasoningcited by 35
- 2024Weak-to-Strong Reasoningcited by 33
- 2024Coevolving with the Other You: Fine-Tuning LLM with Sequential Cooperative Multi-Agent Reinforcement Learningcited by 33
- 2024Self-Explore: Enhancing Mathematical Reasoning in Language Models with Fine-grained Rewardscited by 31
- 2024Evaluating LLMs' Mathematical Reasoning in Financial Document Question Answeringcited by 25
- 2024StepTool: Enhancing Multi-Step Tool Usage in LLMs via Step-Grained Reinforcement Learningcited by 25
- 2025To Code or not to Code? Adaptive Tool Integration for Math Language Models via Expectation-Maximizationcited by 25
- 2024CodeIt: Self-Improving Language Models with Prioritized Hindsight Replaycited by 23
- 2023L2CEval: Evaluating Language-to-Code Generation Capabilities of Large Language Modelscited by 22
- 2025STaR-SQL: Self-Taught Reasoner for Text-to-SQLcited by 17
- 2024Advancing Process Verification for Large Language Models via Tree-Based Preference Learningcited by 16
- 2024Interactive Evolution: A Neural-Symbolic Self-Training Framework For Large Language Modelscited by 14
- 2025RetroInfer: A Vector Storage Engine for Scalable Long-Context LLM Inferencecited by 13
- 2025GPO: Learning from Critical Steps to Improve LLM Reasoningcited by 10
- 2023Has It All Been Solved? Open NLP Research Questions Not Solved by Large Language Modelscited by 7
- 2023Resprompt: Residual Connection Prompting Advances Multi-Step Reasoning in Large Language Modelscited by 7
- 2024An Empirical Study of Data Ability Boundary in LLMs' Math Reasoningcited by 7
- 2024Keep Guessing? When Considering Inference Scaling, Mind the Baselinescited by 3
- 2023Exploration with Principles for Diverse AI Supervisioncited by 2
- 2024AICoderEval: Improving AI Domain Code Generation of Large Language Modelscited by 2
- 2025ReviewScore: Misinformed Peer Review Detection with Large Language Modelscited by 2
- 2025In-Token Rationality Optimization: Towards Accurate and Concise LLM Reasoning via Self-Feedbackcited by 2
- 2023SEGO: Sequential Subgoal Optimization for Mathematical Problem-Solvingcited by 1
- 2026Fork-Think with Confidencecited by 1
- 2026Fork-Think with Confidence30 Jun 2026
- 2025In-Token Rationality Optimization: Towards Accurate and Concise LLM Reasoning via Self-Feedback13 Nov 2025
- 2025ReviewScore: Misinformed Peer Review Detection with Large Language Models25 Sep 2025
- 2025GPO: Learning from Critical Steps to Improve LLM Reasoning19 Sep 2025
- 2025Supervised Fine Tuning on Curated Data is Reinforcement Learning (and can be improved)17 Jul 2025
- 2025NFT: Bridging Supervised Learning and Reinforcement Learning in Math Reasoning23 May 2025
- 2025RetroInfer: A Vector Storage Engine for Scalable Long-Context LLM Inference5 May 2025
- 2025STaR-SQL: Self-Taught Reasoner for Text-to-SQL19 Feb 2025
- 2025To Code or not to Code? Adaptive Tool Integration for Math Language Models via Expectation-Maximization2 Feb 2025
- 2024Keep Guessing? When Considering Inference Scaling, Mind the Baselines20 Oct 2024
- 2024StepTool: Enhancing Multi-Step Tool Usage in LLMs via Step-Grained Reinforcement Learning10 Oct 2024
- 2024Coevolving with the Other You: Fine-Tuning LLM with Sequential Cooperative Multi-Agent Reinforcement Learning8 Oct 2024
26 more
- 2024Interpreting and Improving Large Language Models in Arithmetic Calculation3 Sep 2024
- 2024Weak-to-Strong Reasoning18 Jul 2024
- 2024Advancing Process Verification for Large Language Models via Tree-Based Preference Learning29 Jun 2024
- 2024Interactive Evolution: A Neural-Symbolic Self-Training Framework For Large Language Models17 Jun 2024
- 2024Chain of Preference Optimization: Improving Chain-of-Thought Reasoning in LLMs13 Jun 2024
- 2024AICoderEval: Improving AI Domain Code Generation of Large Language Models7 Jun 2024
- 2024NExT: Teaching Large Language Models to Reason about Code Execution23 Apr 2024
- 2024Self-Explore: Enhancing Mathematical Reasoning in Language Models with Fine-grained Rewards16 Apr 2024
- 2024Debug like a Human: A Large Language Model Debugger via Verifying Runtime Execution Step-by-step25 Feb 2024
- 2024An Empirical Study of Data Ability Boundary in LLMs' Math Reasoning23 Feb 2024
- 2024Evaluating LLMs' Mathematical Reasoning in Financial Document Question Answering17 Feb 2024
- 2024V-STaR: Training Verifiers for Self-Taught Reasoners9 Feb 2024
- 2024CodeIt: Self-Improving Language Models with Prioritized Hindsight Replay7 Feb 2024
- 2024Multi-step Problem Solving Through a Verifier: An Empirical Analysis on Model-induced Process Supervision5 Feb 2024
- 2023TinyGSM: achieving >80% on GSM8k with small language models14 Dec 2023
- 2023Beyond Human Data: Scaling Self-Training for Problem-Solving with Language Models11 Dec 2023
- 2023SEGO: Sequential Subgoal Optimization for Mathematical Problem-Solving19 Oct 2023
- 2023Exploration with Principles for Diverse AI Supervision13 Oct 2023
- 2023MuggleMath: Assessing the Impact of Query and Response Augmentation on Math Reasoning9 Oct 2023
- 2023Resprompt: Residual Connection Prompting Advances Multi-Step Reasoning in Large Language Models7 Oct 2023
- 2023Large Language Model Cascades with Mixture of Thoughts Representations for Cost-efficient Reasoning4 Oct 2023
- 2023L2CEval: Evaluating Language-to-Code Generation Capabilities of Large Language Models29 Sep 2023
- 2023WizardMath: Empowering Mathematical Reasoning for Large Language Models via Reinforced Evol-Instruct18 Aug 2023
- 2023Scaling Relationship on Learning Mathematical Reasoning with Large Language Models3 Aug 2023
- 2023GRACE: Discriminator-Guided Chain-of-Thought Reasoning24 May 2023
- 2023Has It All Been Solved? Open NLP Research Questions Not Solved by Large Language Models21 May 2023
- 2023WizardMath: Empowering Mathematical Reasoning for Large Language Models via Reinforced Evol-Instructcited by 625
- 2023Scaling Relationship on Learning Mathematical Reasoning with Large Language Modelscited by 427
- 2024V-STaR: Training Verifiers for Self-Taught Reasonerscited by 217
- 2023Large Language Model Cascades with Mixture of Thoughts Representations for Cost-efficient Reasoningcited by 143
- 2024Chain of Preference Optimization: Improving Chain-of-Thought Reasoning in LLMscited by 96
- 2023TinyGSM: achieving >80% on GSM8k with small language modelscited by 70
- 2024NExT: Teaching Large Language Models to Reason about Code Executioncited by 63
- 2024Multi-step Problem Solving Through a Verifier: An Empirical Analysis on Model-induced Process Supervisioncited by 52
- 2023MuggleMath: Assessing the Impact of Query and Response Augmentation on Math Reasoningcited by 45
- 2025NFT: Bridging Supervised Learning and Reinforcement Learning in Math Reasoningcited by 38
- 2023GRACE: Discriminator-Guided Chain-of-Thought Reasoningcited by 35
- 2024Weak-to-Strong Reasoningcited by 33
12 most cited of 23 All 23 (JSON)
- 2026Fork-Think with Confidence30 Jun 2026
- 2025In-Token Rationality Optimization: Towards Accurate and Concise LLM Reasoning via Self-Feedback13 Nov 2025
- 2025GPO: Learning from Critical Steps to Improve LLM Reasoning19 Sep 2025
- 2025NFT: Bridging Supervised Learning and Reinforcement Learning in Math Reasoning23 May 2025
- 2025STaR-SQL: Self-Taught Reasoner for Text-to-SQL19 Feb 2025
- 2025To Code or not to Code? Adaptive Tool Integration for Math Language Models via Expectation-Maximization2 Feb 2025
- 2024Weak-to-Strong Reasoning18 Jul 2024
- 2024Advancing Process Verification for Large Language Models via Tree-Based Preference Learning29 Jun 2024
- 2024Chain of Preference Optimization: Improving Chain-of-Thought Reasoning in LLMs13 Jun 2024
- 2024NExT: Teaching Large Language Models to Reason about Code Execution23 Apr 2024
- 2024Self-Explore: Enhancing Mathematical Reasoning in Language Models with Fine-grained Rewards16 Apr 2024
- 2024An Empirical Study of Data Ability Boundary in LLMs' Math Reasoning23 Feb 2024
12 newest of 23 All 23 (JSON)
- 2024Debug like a Human: A Large Language Model Debugger via Verifying Runtime Execution Step-by-stepcited by 127
- 2024Interpreting and Improving Large Language Models in Arithmetic Calculationcited by 45
- 2023L2CEval: Evaluating Language-to-Code Generation Capabilities of Large Language Modelscited by 22
- 2023Has It All Been Solved? Open NLP Research Questions Not Solved by Large Language Modelscited by 7
- 2024Keep Guessing? When Considering Inference Scaling, Mind the Baselinescited by 3
- 2023Exploration with Principles for Diverse AI Supervisioncited by 2
- 2024AICoderEval: Improving AI Domain Code Generation of Large Language Modelscited by 2
- 2025ReviewScore: Misinformed Peer Review Detection with Large Language Modelscited by 2
- 2023SEGO: Sequential Subgoal Optimization for Mathematical Problem-Solvingcited by 1
- 2025ReviewScore: Misinformed Peer Review Detection with Large Language Models25 Sep 2025
- 2024Keep Guessing? When Considering Inference Scaling, Mind the Baselines20 Oct 2024
- 2024Interpreting and Improving Large Language Models in Arithmetic Calculation3 Sep 2024
- 2024AICoderEval: Improving AI Domain Code Generation of Large Language Models7 Jun 2024
- 2024Debug like a Human: A Large Language Model Debugger via Verifying Runtime Execution Step-by-step25 Feb 2024
- 2023SEGO: Sequential Subgoal Optimization for Mathematical Problem-Solving19 Oct 2023
- 2023Exploration with Principles for Diverse AI Supervision13 Oct 2023
- 2023L2CEval: Evaluating Language-to-Code Generation Capabilities of Large Language Models29 Sep 2023
- 2023Has It All Been Solved? Open NLP Research Questions Not Solved by Large Language Models21 May 2023
Similar, not cited
Close in wording, no citation either way
- 2024Physics of Language Models: Part 2.2, How to Learn From Mistakes on Grade-School Math Problems
- 2025A Survey on Large Language Models for Mathematical Reasoning
- 2024Benchmarking Large Language Models for Math Reasoning Tasks
- 2024Self-training Language Models for Arithmetic Reasoning
- 2024OpenMathInstruct-2: Accelerating AI for Math with Massive Open-Source Instruction Data
- 2026Mathematical Reasoning in Large Language Models: Benchmarks, Architectures, Evaluation, and Open Challenges
- 2023Novice Learner and Expert Tutor: Evaluating Math Reasoning Abilities of Large Language Models with Misconceptions
- 2025HS-STaR: Hierarchical Sampling for Self-Taught Reasoners via Difficulty Estimation and Budget Reallocation