Abstract
Training on large amounts of rationales (i.e., CoT Fine-tuning) has been found effective for improving mathematical reasoning of large language models (LLMs). However, acquiring human-authored solutions or augmenting rationales from proprietary models is costly and not scalable. In this paper, we study the problem of whether LLMs could self-improve mathematical reasoning capabilities. To this end, we propose Self-Explore, where the LLM is tasked to explore the first wrong step (i.e., the first pit) within the rationale and use such signals as fine-grained rewards for further improvement. On the GSM8K and MATH test set, Self-Explore achieves 11.57% and 2.89% improvement on average across three LLMs compared to supervised fine-tuning (SFT).
Introduction
While Large Language Models (LLMs) have become adept at multi-step reasoning via Chain-of-Thought (CoT) prompting, training them to do so reliably remains a significant bottleneck. Currently, improving reasoning capabilities typically relies on expensive human annotation or distillation from larger "frontier" models like GPT-4. Self-training offers a scalable alternative, but most existing methods utilize "outcome-based" rewards—checking only if the final answer is correct. This "coarse" signal often penalizes an entire reasoning chain for a single minor error, introducing noise and discouraging the model from utilizing the valid reasoning steps that preceded the mistake.
The Self-Explore Framework
To address these limitations, we introduce Self-Explore, a novel self-training framework that turns the LLM into its own "explorer" to identify the exact point of failure in a reasoning chain. The process consists of three main stages:
- Rejection Sampling Fine-Tuning (RFT): The model is first fine-tuned on its own correct generations to establish a strong baseline.
- Step-Level Exploration: For every incorrect rationale generated, the model systematically explores each step. It acts as a "completer," sampling multiple possible continuations from each intermediate step. If the model consistently fails to reach the correct answer from a specific step (after $K$ attempts), that step is identified as the "first pit."
- Fine-grained Preference Learning: Instead of comparing whole solutions, the framework constructs granular preference pairs. The "chosen" sample is a correct completion from the step immediately before the error, while the "rejected" sample is the "first pit" step itself.
By applying Direct Preference Optimization (DPO) to these localized errors, the model learns exactly which logical leaps are dangerous while preserving the valid reasoning structure that preceded them.
Experimental Setup
We evaluated Self-Explore on two gold-standard mathematical reasoning benchmarks: GSM8K (7,473 training and 1,319 test grade-school math problems) and MATH (7,500 training and 5,000 test problems covering advanced algebra, geometry, and calculus). The framework was tested across three 7B-parameter base models: Mistral-7B, Llemma-7B, and DeepSeek-Math-7B-Base.
Results and Discussion
Self-Explore consistently outperformed standard Supervised Fine-Tuning (SFT) and traditional outcome-based DPO across all tested models and benchmarks.
- GSM8K: The method achieved an average improvement of 11.57%. Notably, Mistral-7B's performance increased from a 46.85% baseline to 70.96%.
- MATH: Despite the increased difficulty of the dataset, Self-Explore achieved an average improvement of 2.89%.
Qualitative evaluations indicated that Self-Explore produces solutions with higher logical robustness and efficiency. By focusing on the "first pit," the training signal remains clean, preventing the model from "forgetting" coherent reasoning structures—a common issue in standard preference learning where long strings of text are penalized indiscriminately.
Conclusion
Self-Explore demonstrates that LLMs can effectively self-improve by identifying and learning from their own specific reasoning failures. While the method currently faces challenges regarding output diversity and the need for a diverse initial problem set, it provides a powerful, scalable path toward more reliable mathematical reasoning without the need for external supervision. Future work will investigate the application of fine-grained rewards to larger frontier models.
Summary updated