Manuscript Offprint
arXiv:2611.09042Failure Profiling and Reachable Trajectory Selection for Reasoning Distillation
Abstract
Training smaller language models on reasoning solutions generated by a larger teacher model is the prevailing approach for transferring mathematical reasoning capabilities. However, the student tends to overfit the output distribution of the teacher and generalizes poorly when its own behavior at inference time deviates from the training data. Recent methods attempt to bridge this gap by incorporating error data, yet the corrective trajectories still reflect the reasoning patterns of the teacher, which the student cannot reliably reproduce, leaving the distribution mismatch largely unresolved. We propose a method, Failure Profiling and Reachable Trajectory Selection (FPRT), built on the insight that effective training data should be jointly determined by what the student fails on and what it can realistically learn. Our method first profiles the failure behavior of the student on each problem through repeated sampling, characterizing it in terms of error rate and error consistency to reveal qualitatively distinct failure modes. Each mode demands a fundamentally different training signal. The diagnosed mode then guides candidate generation from the teacher via distinct prompting strategies tailored to each failure type. Among the correct candidates, our method selects the one whose initial reasoning steps after the point of divergence are most reproducible by the student. These first corrective steps constitute the primary bottleneck, while the remaining steps follow an already corrected context and can therefore be continued more readily. This contrasts with standard reranking approaches, which score the trajectory as a whole and thereby dilute the signal at the critical reasoning transition. Experiments on GSM8K, MATH, and three out-of-distribution benchmarks for Llama-3.1-8B and DeepSeek-Math-7B demonstrate that our method achieves the SOTA performance across the five benchmarks on both student backbones. The source code and trained weights are available at https://github.com/visresearch/FPRT.
1 Introduction
Frontier large language models (LLMs), such as GPT-4 [1], DeepSeek-R1 [11], and Qwen2.5 [47], have demonstrated strong mathematical reasoning ability. In contrast, smaller models such as Llama-3.1-8B [9] and DeepSeek-Math-7B [36] still struggle with complex mathematical problems. A growing line of research seeks to bridge this gap by training smaller students on reasoning traces generated by more capable teachers [29, 15, 22, 50]. Despite substantial progress, the resulting student overfits the output distribution of the teacher: trained exclusively on correct demonstrations that mirror the reasoning style of the teacher, the student has no reliable way to recover once its behavior at inference time deviates from that distribution. The cost is especially high in mathematical reasoning, where each step depends on all preceding ones and even a single misstep invalidates the entire subsequent chain.
✉Corresponding author.
40th Conference on Neural Information Processing Systems (NeurIPS 2026).

Figure 1: Due to the capability gap between a strong teacher and a weaker student, teacher-generated reasoning trajectories may be difficult for the student to reproduce and may hinder learning. We guide the teacher to generate correction candidates conditioned on the student's errors and select the candidate with the highest branching point reachability score. This score averages student token log-probabilities within a local window immediately after the first divergence, reducing dilution from later tokens.
Recent work has begun to incorporate error data into training to address this gap. LEMMA [32] pairs erroneous solutions with corrective reflections. Self-Correct [41] explores minimal edit corrections that fix mistakes generated by the model. Approaches based on MCTS systematically explore error nodes in the reasoning tree [44, 4]. These methods mark meaningful progress, yet they share two limitations. First, they do not condition on the behavioral failure mode of the student but instead apply the same correction strategy regardless of whether the model is confidently locked onto a wrong answer or producing a different error each time. Specifically, consistently arriving at the same wrong answer reflects a strong but misguided reasoning pattern, whereas producing diverse errors signals the absence of any stable strategy. For the above failure modes, a single correction strategy cannot efficiently fix student errors. Second, even when the failure mode is correctly identified, the corrective trajectories still come from a teacher and exhibit reasoning patterns that the student cannot reliably reproduce, a problem that prior work on knowledge transfer has shown to worsen as the capacity gap between teacher and student grows [31]. Such corrections risk reducing learning to superficial pattern matching rather than genuine skill acquisition.
To address the above limitations, we introduce a novel failure profiling and reachable trajectory selection framework for reasoning distillation. In the failure profiling stage, our method characterizes student errors in terms of error rate and error consistency from multiple sampled responses on each problem to identify the underlying failure mode. Then, we elicit targeted correction candidates from an advanced teacher using prompts tailored to each diagnosed mode. When the student is locked onto a single wrong answer, the prompt directs the teacher to construct corrections that break the specific misconception, whereas when the student produces diverse errors, the prompt instead requests structured step by step reasoning to supply the missing problem solving framework.
In the reachable trajectory selection stage, we select the most reproducible candidate trajectory produced by the teacher to correct the student's erroneous reasoning steps, thereby improving the student's reasoning ability. Unlike standard reranking approaches [57] that score the trajectory as a whole, our method evaluates compatibility within a local window immediately after the position where the reasoning of the student first diverged, as shown in Figure 1. We find that the above local window scoring can clearly distinguish the student-friendly correction from other candidates, where later tokens conditioned on a corrected context will not dilute the signal at the critical reasoning transition. Once the student successfully executes the transition away from its error, the remaining steps follow an already corrected context and can therefore be continued more readily.
Overall, our contributions can be summarized as follows:
-
We introduce behavioral profiling based on error rate and error consistency to classify model errors into distinct failure modes and enable targeted correction strategies for qualitatively different error patterns.
-
We propose branching point reachability scoring, a trajectory selection mechanism that evaluates the log-probability under the student within a local window immediately following the point of divergence rather than over the full response, thereby guiding the student to focus on the critical reasoning transition where the student makes mistakes.
-
Extensive experiments on Llama-3.1-8B and DeepSeek-Math-7B across the mathematical reasoning benchmarks GSM8K and MATH, together with the out-of-distribution evaluation sets SVAMP, ASDiv, and MAWPS, demonstrate that our method achieves the highest average accuracy across the five benchmarks on both student backbones.
Error Aware Data Construction. A growing body of work recognizes that incorrect solutions themselves contain valuable learning signals. LeMa [3], LEMMA [32], and Tong et al. [38] pair incorrect reasoning with teacher-generated corrections or error-type annotations. TrajFusion [7] interleaves incorrect trajectories with reflection prompts and correct trajectories. Process supervision approaches [25, 40, 34, 10, 43] score intermediate steps or explore error nodes in reasoning trees. Another line [55, 12, 46] collects erroneous trajectories by sampling at elevated temperatures, which tends to produce nonsensical errors unlikely to arise during normal generation [27, 35]. Across these methods, errors are treated uniformly regardless of the failure pattern, and corrective trajectories follow teacher patterns the student cannot reliably reproduce. Our method addresses both through behavioral profiling that classifies errors into distinct failure modes and branching point reachability scoring that favors corrections more likely to be learnable by the student.
Self-Correction in LLMs. One line of work uses external feedback from verifiers or critic models for self-correction [24, 38, 37, 23, 8]. GLoRe [13] trains global and local refinement models guided by stepwise outcome reward models. Another line focuses on self-correction without external feedback [55, 12, 46, 42, 27], although Huang et al. [16] demonstrate that LLMs cannot reliably self-correct their reasoning without external input. On the training side, SCoRe [20] proposes multi-turn online RL for self-correction and shows that SFT on offline correction traces fails due to distribution mismatch. SuperCorrect [48] uses cross-model collaborative DPO to optimize student self-correction with teacher thought templates. Rather than training the model to correct errors at inference time through RL or DPO, our method constructs corrective training data filtered by branching point reachability under the student, thereby mitigating the distribution mismatch identified by SCoRe while requiring only standard SFT.
3 Method
3.1 Problem Formulation
Let and denote the token-level conditional distributions of the teacher and student models, respectively, and let denote a mathematical problem. Standard training on teacher-generated traces

Figure 2: Overview of our pipeline. Stage 1 profiles the student via repeated sampling and classifies each problem as stubborn, inconsistent, or sporadic from error rate and consistency . Stage 2 prompts the teacher with a mode-specific template to generate candidates, each decomposed into reflection , preserved prefix , and corrective continuation . The three mode-specific branches in Stage 2 illustrate alternative prompting strategies. For each problem, all candidates are generated using only the prompt corresponding to its diagnosed mode. The sampled-answer example in Stage 1 corresponds to the inconsistent mode. Stage 3 filters by correctness and selects the candidate maximizing branching point reachability over the first sentences of .
optimizes the parameters of the student by minimizing
where is a dataset of correct reasoning traces generated by the teacher, each trace is a sequence of tokens, and denotes all tokens preceding position . However, reasoning traces exhibit strong path dependence: the student's ability to reproduce a step depends on the preceding context and on whether the student can reliably generate that context. When the reasoning style of the teacher differs from that of the student, per-step deviations accumulate over long chains, causing the student to encounter states at inference time that were never seen during training. This motivates a shift in the data construction objective: rather than seeking trajectories that are merely correct, we seek trajectories that are simultaneously correct and reachable by the student. Here, correct means that the trace leads to the right answer, while reachable means that the trace lies within the high-probability region of the distribution of the student, so that each step is a plausible continuation that the student could generate on its own. Let denote the set of all correct reasoning traces for a given problem. The ideal selection objective is:
Our method approximates this objective through a generate-then-select pipeline illustrated in Figure 2, where the teacher proposes candidates and the distribution of the student itself serves as the selection criterion.
3.2 Stage 1: Behavioral Error Profiling
Not all errors are alike: different failure modes demand qualitatively different corrections. Given a dataset of problems with ground-truth answers , we draw reasoning traces from for each problem and compute two diagnostic statistics.
Error rate. The fraction of the samples that produce an incorrect final answer:
where answer() extracts the final answer from the -th sampled trace.
Table 1: Error mode classification based on and the corresponding correction strategy.
| Mode | Correction Strategy | ||
|---|---|---|---|
| Stubborn | Multi-angle attack on the locked error path | ||
| Inconsistent | Complete structured solution framework | ||
| Sporadic | - | Minimal surgical fix at the error point |
Error consistency. Among the incorrect samples, the fraction accounted for by the most frequent wrong answer :
where the maximization ranges over all incorrect answers that appear in the samples. A high indicates that the errors of the student concentrate on a single wrong answer, while a low indicates scattered, diverse failures.
Problems with yield no error trajectory to diagnose and are excluded from the corrective pipeline, so the remainder of this section restricts attention to problems with . We do not add a separate pool of problems for which all sampled responses are correct. On this filtered set, partition errors into three distinct modes. Table 1 summarizes the classification criteria and the corresponding correction strategy. This two-dimensional characterization moves beyond existing error taxonomies that classify errors by semantic type, such as calculation error or formula confusion. Our profiling instead captures the behavioral pattern of errors from the perspective of the student, which directly informs how corrections should be structured.
For each profiled problem, we additionally retain a single representative error trajectory , which serves as the concrete instance of failure to be corrected by the teacher. For stubborn errors, we select from the incorrect traces whose final answer matches the most frequent wrong answer. For inconsistent and sporadic errors, we randomly select an incorrect trace. After profiling, we obtain the error-annotated dataset:
where denotes the error mode diagnosed using the criteria in Table 1.
3.3 Stage 2: Adaptive Correction Generation
Given the diagnosed error mode , the teacher generates correction candidates using a mode-specific prompt , the problem , and the representative error trajectory . For inconsistent errors, student_reasoning Attempts is a singleton list containing . The templates are provided in Appendix D. Each prompt requests different trajectories in one structured call, using mode-specific diversification instructions.
The key design principles differ across modes. For stubborn errors, the prompt requests trajectories that attack the locked-in reasoning path from different angles, such as a direct fix, an alternative method, and a conceptual reframe. It explicitly asks the teacher to analyze the trap, conceptual pivot, fix, and recurrence-prevention check, and to distill this analysis into a concise first-person reflection. For inconsistent errors, the diverse incorrect answers suggest a lack of a stable problem-solving strategy, so the prompt requests structured solutions that supply different problem-solving frameworks, such as algebraic equations, step-by-step arithmetic, and work-backwards reasoning. For sporadic errors, the prompt instructs maximal preservation of the correct prefix of the student with minimal modification at the identified error point, and the trajectories vary only in their local correction style.
Each candidate consists of three parts: a reflection , a preserved prefix , and a corrective continuation . The reflection is a concise first-person diagnosis that names where the reasoning of the student first went wrong. The preserved prefix is the verbatim portion of up to but excluding the divergent step, and is empty when no correct prefix can be retained. With the singleton input used in our experiments, the prefix is the longest correct prefix of , and the divergence point is its first erroneous step. The corrective continuation extends to a correct final answer in a style natural to the student, or starts from scratch when is empty. Both the localization that yields and the diversification across the candidates are performed jointly by the teacher in a single structured call. Formally, the candidate set is:
3.4 Stage 3: Branching Point Reachability Scoring
Among the candidates, we select the one that the student model is most likely to reproduce.
Branching point reachability scoring. We first discard candidates whose final answer does not match the ground truth , and let denote the resulting filtered set. For each remaining candidate , we extract a local window covering the first sentences of the corrective continuation . BPR scores only , since is a short reflection used as a training scaffold and is the output of the student. Let denote the number of tokens in this window, and let denote the -th token of , with representing all preceding tokens within the continuation. The branching point reachability (BPR) score is the average log-probability of the window tokens under the student model, conditioned on the problem and the preserved prefix :
This score restricts the log-probability computation to the local window immediately following the point where the reasoning of the student diverged. The rationale is that tokens later in the corrective continuation benefit from an already corrected context and receive systematically higher log-probabilities regardless of which candidate generated them. By focusing on the initial corrective steps, BPR isolates the signal that most directly reflects whether the student can execute the critical reasoning transition. The selected trajectory is:
In practice, we set sentences and extract sentence boundaries using newline delimiters, which are common in step by step mathematical reasoning, with a fallback to punctuation-based splitting. The BPR score is computed via a single forward pass through with no gradient computation.
Connection to the ideal objective. The ideal selection criterion in Eq. 2 maximizes , or equivalently the chain-rule decomposition . BPR is a deliberately biased proxy that departs from this objective in two complementary ways. The restriction to a local window rather than the full continuation is justified above by the dilution argument and confirmed empirically in Figure 7 of Appendix G. The other divergence is that BPR averages rather than sums: dividing by removes the length penalty that would otherwise systematically favor shorter candidates regardless of their per-token compatibility with the student. BPR is therefore not a calibrated estimator of , but instead concentrates the scoring signal on the segment that empirically governs whether the student can execute the critical reasoning transition, which is the property that ultimately matters for selection.
3.5 Training
Within each construction pass, the three stages select at most one training trajectory per retained question. The final SFT corpus uses two input-target formats. For 90% of the examples, the input is and the target is . For the remaining 10%, the input is alone and the target is the complete corrected solution , without the reflection or erroneous trace. These auxiliary examples come from the same problem pool. Algorithm 1 in Appendix A summarizes the construction stages.
Table 2: Accuracy (%) on in-distribution and out-of-distribution benchmarks. Best results are in bold and second-best are underlined. The 88.90K Ours rows report mean ± sample standard deviation across three SFT seeds. Avg statistics are computed across per-seed five-benchmark averages.
| Student Model | Method | # Samples | In-Distribution | Out-of-Distribution | Avg. | ||||
|---|---|---|---|---|---|---|---|---|---|
| GSM8K | MATH | SVAMP | ASDiv | MAWPS | |||||
| Llama-3.1-8B | SFT | 394.99K | 80.3 | 39.7 | 77.5 | 82.4 | 89.2 | 73.8 | |
| RFT [51] | 86.52K | 76.4 | 40.6 | 78.6 | 78.8 | 83.2 | 71.5 | ||
| ISC [12] | 86.78K | 72.5 | 43.5 | 80.4 | 81.7 | 82.7 | 72.2 | ||
| S³C-Math [46] | 927K | 83.1 | 42.8 | 82.4 | - | - | - | ||
| GPTAug | 88.62K | 73.3 | 41.6 | 81.0 | 81.8 | 86.3 | 72.8 | ||
| RefAug [56] | 29.94K | 77.3 | 42.3 | 81.7 | 82.4 | 88.7 | 74.5 | ||
| LEMMA [32] | 88.90K | 80.4 | 48.8 | 83.7 | 84.5 | 88.9 | 77.3 | ||
| FPRT (Ours) | 62.74K | 85.5 | 44.3 | 86.4 | 84.9 | 93.9 | 79.0 | ||
| FPRT (Ours) | 88.90K | 86.2±0.4 | 46.2±0.5 | 86.8±0.2 | 86.1±0.3 | 93.3±0.4 | 79.7±0.4 | ||
| DeepSeek-Math-7B | SFT | 394.99K | 79.4 | 42.0 | 79.4 | 87.8 | 90.2 | 75.8 | |
| RFT | 86.52K | 77.5 | 43.9 | 77.4 | 86.9 | 89.6 | 75.1 | ||
| ISC | 86.78K | 72.2 | 39.5 | 75.6 | 84.4 | 89.8 | 72.3 | ||
| S³C-Math | 927K | 82.8 | 42.6 | 83.1 | - | - | - | ||
| GPTAug | 88.62K | 78.6 | 46.0 | 74.2 | 88.9 | 89.9 | 75.5 | ||
| RefAug | 29.94K | 77.0 | 39.8 | 73.7 | 83.8 | 85.3 | 71.9 | ||
| LEMMA | 88.90K | 81.3 | 50.7 | 81.7 | 89.4 | 91.1 | 78.8 | ||
| FPRT (Ours) | 65.76K | 83.6 | 47.1 | 83.9 | 90.1 | 95.3 | 80.0 | ||
| FPRT (Ours) | 88.90K | 84.0±0.2 | 48.9±0.3 | 85.4±0.2 | 89.8±0.4 | 94.7±0.3 | 80.6±0.3 | ||
4 Experiments
4.1 Experimental Setup
We use DeepSeek-V3.2 [6] as teacher and Llama-3.1-8B-Instruct [9] and DeepSeek-Math-7B-Instruct [36] as students. Each construction pass profiles all 394.99K MetaMathQA instances [50] with student samples and generates teacher candidates only for instances with , as detailed in Appendix A. The complete first pass yields 62.74K and 65.76K examples for Llama and DeepSeek. A fresh full second pass is run. Part of its output is merged, prioritizing previously unseen questions until reaching 88.90K. SFT, RFT, S³C-Math, and Ours use MetaMathQA; GPTAug, RefAug, ISC, and LEMMA construct supervision from GSM8K and MATH source problems using their respective recipes. MetaMathQA is also derived from GSM8K and MATH. Sample counts and filtering follow each method's construction, as detailed in Appendix C. Training settings and evaluation benchmarks are detailed in Appendix B.
4.2 Main Results
Consistent Average Lead across Two Student Backbones. Table 2 reports accuracy on the two student models. Our method attains the highest average on both backbones, 79.7% on Llama-3.1-8B and 80.6% on DeepSeek-Math-7B, exceeding the strongest comparison method, LEMMA, by 2.4% and 1.8%, respectively. This lead persists at the smaller 62.74K and 65.76K configurations, where the averages reach 79.0% and 80.0% and still surpass every comparison method with a reported five-benchmark average. The ranking is therefore stable across the two corpus sizes rather than tied to a single training budget. The improvement also holds across a general purpose and a math specialized backbone, indicating that the gain is not tied to any single pretraining distribution. The average-accuracy margins over RFT and ISC range from 5.5% to 8.3%.
Larger Margin under Distribution Shift. The improvement is concentrated on the three out-of-distribution benchmarks, where the averages of 88.7% on Llama-3.1-8B and 90.0% on DeepSeek-Math-7B exceed LEMMA by 3.0% and 2.6%, respectively. On DeepSeek-Math-7B, the in-distribution average rises only modestly from 66.0% for LEMMA to 66.5% for our method, indicating that most of the 1.8% overall lead originates from out-of-distribution gains. MAWPS in particular shows leads over LEMMA of 4.4% and 3.6% on the two student models. This pattern is consistent
Table 3: Accuracy (%) of supervision controls on the same first-pass problem sets, with one correct training trajectory per problem. Random-one-correct and BPR adopt the same correct candidate pools. Direct teacher-trace SFT generates solutions from the question alone. Best accuracy within each student is bold.
| Student Model | Method | GSM8K | MATH | SVAMP | ASDiv | MAWPS | Avg. |
|---|---|---|---|---|---|---|---|
| Llama-3.1-8B | Direct teacher-trace SFT | 84.0 | 42.7 | 82.0 | 82.1 | 88.5 | 75.9 |
| Random-one-correct | 81.6 | 42.1 | 84.7 | 81.2 | 93.2 | 76.6 | |
| BPR selection (Ours) | 85.5 | 44.3 | 86.4 | 84.9 | 93.9 | 79.0 | |
| DeepSeek-Math-7B | Direct teacher-trace SFT | 82.6 | 46.5 | 81.5 | 89.2 | 90.7 | 78.1 |
| Random-one-correct | 83.0 | 46.8 | 82.6 | 89.6 | 92.8 | 79.0 | |
| BPR selection (Ours) | 83.6 | 47.1 | 83.9 | 90.1 | 95.3 | 80.0 |
with the hypothesis that anchoring corrections at the first divergence yields trajectories that transfer beyond MetaMathQA style templates.
Trade Off on MATH. On MATH, our method trails LEMMA by 2.6% on Llama-3.1-8B and 1.8% on DeepSeek-Math-7B, while ranking second on both backbones. One possible explanation is that LEMMA's error-type grounded mistake augmentation provides supervision better suited to MATH. Correctness filtering may also limit the available teacher candidates on difficult problems. These hypotheses require further analysis of error-type coverage and candidate retention rates; the current results do not isolate candidate construction from candidate selection as the source of the gap.
Favorable Sample Efficiency. We evaluate our method on two different training corpus sizes with the same pipeline. The 62.74K and 65.76K configurations use the complete first-pass corpora and are subsets of the corresponding 88.90K corpora assembled from two passes. They are used for the ablation and window size studies in Section 4.3. At these smaller subsets, roughly 70% of the LEMMA corpus and about one sixth and one fifteenth of the SFT and S³C-Math corpora, our method already exceeds every comparison method with a reported five-benchmark average, surpassing LEMMA by 1.7% and 1.2%. Scaling to 88.90K, comparable to the 88.90K of LEMMA, lifts the margin to 2.4% and 1.8%, so the lead does not collapse once both methods operate at the same data budget.
4.3 Ablation Studies
Supervision controls. Table 3 compares two controls on the same first-pass problem sets, with teacher, student, example count, checker, and SFT settings matched to Ours. Direct teacher-trace SFT uses one verified-correct DeepSeek-V3.2 solution per question, generated from the question alone and resampled if incorrect. Our pipeline outperforms this control by 3.1% on Llama and 1.9% on DeepSeek, evaluating the full supervision-construction pipeline.
Random-one-correct follows the same profiling, candidate pools, and correctness filtering as Ours, but uniformly selects one correct candidate per retained problem without scoring. It achieves 76.6% and 79.0%, compared with BPR's 79.0% and 80.0% on Llama and DeepSeek, respectively.
Profiling Drives the Bulk of the Gain, with BPR Refining on Top. To isolate the contributions of behavioral profiling and branching point reachability scoring, we train three reduced variants of our pipeline against the full method, each removing one or both components while holding the rest of the training procedure fixed. These ablations use the Llama-3.1-8B first-pass configuration. The first replaces behavioral profiling with a uniform minimal-correction prompt template applied to all errors, preserving the longest correct prefix and changing only the erroneous reasoning, the second replaces BPR with global log-probability scoring over the full correction, and the third combines both ablations. Results across the five benchmarks are summarized in Table 4. Replacing profiling with a uniform prompt causes the largest single drop, from 79.0% to 72.9% on average, with the largest benchmark-specific drop on GSM8K (8.0%). Replacing BPR with global log-probability scoring reduces the average from 79.0% to 77.3%, a smaller decline in average accuracy that matches the dilution argument in Section 3.4 and Figure 7. MAWPS exhibits a slight reversal of 0.3% in favor of
Table 4: Accuracy (%) of component ablations across five benchmarks: GSM8K, MATH, SVAMP, ASDiv, and MAWPS. “Uniform prompting” replaces behavioral profiling with a single prompt template for all errors. “Global scoring” replaces BPR with global log-probability scoring over the full correction.
| Variant | GSM8K | MATH | SVAMP | ASDiv | MAWPS | Avg. |
|---|---|---|---|---|---|---|
| Full method | 85.5 | 44.3 | 86.4 | 84.9 | 93.9 | 79.0 |
| w/o profiling (uniform prompting) | 77.5 | 38.3 | 80.4 | 78.7 | 89.4 | 72.9 |
| w/o BPR (global scoring) | 82.3 | 42.5 | 85.6 | 81.9 | 94.2 | 77.3 |
| w/o both (uniform + global) | 75.3 | 37.6 | 79.8 | 79.6 | 89.8 | 72.4 |
global scoring, 94.2% against 93.9%. Removing both components yields 72.4%, only 0.5% below the variant that keeps BPR alone. BPR adds 1.7% when profiling supplies a tailored candidate pool, suggesting that its benefit depends on candidate construction. These results suggest complementary contributions from the two components: profiling determines the shape of the corrective trajectory, while BPR ranks the candidates within that pool by reachability under the student. The exact uniform prompt is in Appendix D.4.
Boundary localization. An audit of 50 traces from the 65.76K DeepSeek configuration finds 88% accurate first-error boundaries. Perturbing BPR boundaries on 12% of questions with preserved prefixes changes average accuracy from 80.0% to 79.7% in a single run. Appendix H.2 gives the audit and perturbation protocol.
Robust to Window Size with a Moderate Optimum. To probe the sensitivity of BPR to its only hyperparameter, we sweep the window size across sentences while keeping the rest of the pipeline fixed, where the full setting recovers global scoring over the entire correction. The resulting average accuracy curve is plotted in Figure 3. Average accuracy peaks at 79.0% when , and we adopt this value as the default in all other experiments. The curve is markedly asymmetric around the optimum. For , accuracy is 77.1% and 76.7%, indicating that very short windows do not contain enough tokens to discriminate reachable from unreachable trajectories. For , accuracy decays monotonically, falling to 78.6% at , 78.2% at , and 77.3% at the global setting. This 1.7% drop matches the gap between BPR and global scoring reported in the component ablation. The decay to the right of the optimum is consistent with the dilution argument in Section 3.4 and Figure 7, since enlarging the window past the divergence transition admits tokens whose high probability, inherited from an already corrected context, obscures the discriminative signal at the branching point. The shape of the curve, with both very short and global windows lying below , identifies a moderate window as the regime where BPR captures the intended signal. This regime is broad enough to smooth local noise yet narrow enough to isolate the critical transition. A complementary token-level analysis of where the discriminative signal concentrates is provided in Figure 7 of Appendix G.
Data Scaling. To examine how the size of our constructed corpus translates into student accuracy, we scale the training set from 16.5K to 88.90K examples for both Llama-3.1-8B and DeepSeek-Math-7B and retrain each student under the same recipe. Intermediate sizes uniformly subsample the 88.90K corpus. Each configuration uses one SFT run with the same fixed seed; the 88.90K Ours rows in Table 2 instead report three-seed means. The resulting accuracy curves are plotted in Figure 4. Both student models improve monotonically with more data, yet their slopes differ in a manner that reflects their starting competence. Llama-3.1-8B climbs from 71.8% to 79.7%, a total gain of 7.9%. The gains at the final two plotted sizes are 0.3% and 0.4%, respectively. DeepSeek-Math-7B starts at 77.9% and reaches 80.6%, a smaller gain of 2.7%. The final two increments are 0.5% and 0.1%, respectively. The contrast suggests that the general purpose backbone benefits substantially from targeted corrective trajectories, which supply mathematical patterns under-represented in its pretraining. The math specialized backbone, by contrast, already encodes much of the relevant signal and extracts only incremental value from additional supervision. The flattening at the upper end of both curves indicates that the marginal utility of scaling our corpus diminishes once the dominant failure modes in the training distribution have been absorbed. Within the evaluated range, both curves show smaller marginal gains at the larger training sizes.

Figure 3: The effect of BPR window size on average accuracy.

Figure 4: Data scaling: average accuracy across five benchmarks.
Seeds, teachers, and inference behavior. Table 2 reports three-seed results for each fixed 88.90K corpus (the original SFT seed and two additional seeds), with all other settings fixed. In a matched single-run comparison using the same fixed SFT seed, changing only the teacher to DeepSeek-V4-Flash gives 81.0% on DeepSeek, versus 80.6% with DeepSeek-V3.2. Full results and protocols are in Appendices H.3 and H.4.
5 Conclusion
We present a reasoning-distillation pipeline that combines behavioral failure profiling, mode-specific correction generation, and branching point reachability scoring. Profiling tailors supervision to how the student fails, while localized scoring selects correct candidates whose initial corrective steps are more reproducible by the student. Across GSM8K, MATH, and three out-of-distribution benchmarks, the method achieves the highest average accuracy on both Llama-3.1-8B and DeepSeek-Math-7B. Ablations support the contributions of profiling and localized scoring. The results highlight the value of jointly considering student failure patterns and corrective-trajectory reachability when constructing distillation data.
6 Limitations
Dependence on a strong teacher model. Our pipeline relies on a capable teacher , instantiated as DeepSeek-V3.2 in the main experiments, both to generate correction candidates and to localize the divergent step in the error trajectory of the student. The quality and diversity of the constructed training data are therefore upper-bounded by the competence of the teacher on the target problem distribution. When the teacher itself fails on a problem, no usable candidate enters and the problem is dropped from the final training set.
Sensitivity to the sampling budget . Behavioral profiling estimates from student samples per problem. With small , both statistics are coarse-grained: takes values in and takes a similarly small discrete set. This grants robustness to threshold choice, as shown in Appendix F, but also limits the resolution of the diagnosed mode. Larger would yield finer profiling at proportionally higher sampling cost, but we did not explore this trade-off systematically.
Acknowledgments
This work was supported by National Natural Science Foundation of China (No.62302523) and Natural Science Foundation of Hunan Province (No.2026JJ50231). This work was carried out in part using computing resources at the HPC Center of Central South University.
References
[1] Josh Achiam, Steven Adler, Sandhini Agarwal, et al. GPT-4 technical report. arXiv preprint arXiv:2303.08774, 2023.
[2] Rishabh Agarwal, Nino Vieillard, Yongchao Zhou, Piotr Stanczyk, Sabela Ramos, Matthieu Geist, and Olivier Bachem. On-policy distillation of language models: Learning from self-generated mistakes. In International Conference on Learning Representations (ICLR), 2024.
[3] Shengnan An, Zexiong Ma, Zeqi Lin, Nanning Zheng, Jian-Guang Lou, and Weizhu Chen. Learning from mistakes makes LLM better reasoner. arXiv preprint arXiv:2310.20689, 2023.
[4] Guoxin Chen, Minpeng Liao, Chengxi Li, and Kai Fan. AlphaMath almost zero: Process supervision without process. In Advances in Neural Information Processing Systems (NeurIPS), 2024.
[5] Karl Cobbe, Vineet Kosaraju, Mohammad Bavarian, Mark Chen, Heewoo Jun, Lukasz Kaiser, Matthias Plappert, Jerry Tworek, Jacob Hilton, Reichiro Nakano, Christopher Hesse, and John Schulman. Training verifiers to solve math word problems. arXiv preprint arXiv:2110.14168, 2021.
[6] DeepSeek-AI, Aixin Liu, Aoxue Mei, Bangcai Lin, Bing Xue, Bingxuan Wang, Bingzheng Xu, Bochao Wu, Bowei Zhang, Chaofan Lin, Chen Dong, Chengda Lu, Chenggang Zhao, Chengqi Deng, Chenhao Xu, Chong Ruan, Damai Dai, Daya Guo, Dejian Yang, Deli Chen, Erhang Li, Fangqi Zhou, Fangyun Lin, Fucong Dai, Guangbo Hao, Guanting Chen, Guowei Li, H. Zhang, Hanwei Xu, Hao Li, Haofen Liang, Haoran Wei, Haowei Zhang, Haowen Luo, Haozhe Ji, Honghui Ding, Hongxuan Tang, Huanqi Cao, Huazuo Gao, Hui Qu, Hui Zeng, Jialiang Huang, Jiashi Li, Jiaxin Xu, Jiewen Hu, Jingchang Chen, Jingting Xiang, Jingyang Yuan, Jingyuan Cheng, Jinhua Zhu, Jun Ran, Junguang Jiang, Junjie Qiu, Junlong Li, Junxiao Song, Kai Dong, Kaige Gao, Kang Guan, Kexin Huang, Kexing Zhou, Kezhao Huang, Kuai Yu, Lean Wang, Lecong Zhang, Lei Wang, Liang Zhao, Liangsheng Yin, Lihua Guo, Lingxiao Luo, Linwang Ma, Litong Wang, Liyue Zhang, M. S. Di, M. Y Xu, Mingchuan Zhang, Minghua Zhang, Minghui Tang, Mingxu Zhou, Panpan Huang, Peixin Cong, Peiyi Wang, Qiancheng Wang, Qihao Zhu, Qingyang Li, Qinyu Chen, Qiushi Du, Ruiling Xu, Ruiqi Ge, Ruisong Zhang, Ruizhe Pan, Runji Wang, Runqiu Yin, Runxin Xu, Ruomeng Shen, Ruoyu Zhang, S. H. Liu, Shanghao Lu, Shangyan Zhou, Shanhuang Chen, Shaofei Cai, Shaoyuan Chen, Shengding Hu, Shengyu Liu, Shiqiang Hu, Shirong Ma, Shiyu Wang, Shuiping Yu, Shunfeng Zhou, Shuting Pan, Songyang Zhou, Tao Ni, Tao Yun, Tian Pei, Tian Ye, Tianyuan Yue, Wangding Zeng, Wen Liu, Wenfeng Liang, Wenjie Pang, Wenjing Luo, Wenjun Gao, Wentao Zhang, Xi Gao, Xiangwen Wang, Xiao Bi, Xiaodong Liu, Xiaohan Wang, Xiaokang Chen, Xiaokang Zhang, Xiaotao Nie, Xin Cheng, Xin Liu, Xin Xie, Xingchao Liu, Xingkai Yu, Xingyou Li, Xinyu Yang, Xinyuan Li, Xu Chen, Xuecheng Su, Xuehai Pan, Xuheng Lin, Xuwei Fu, Y. Q. Wang, Yang Zhang, Yanhong Xu, Yanru Ma, Yao Li, Yao Li, Yao Zhao, Yaofeng Sun, Yaohui Wang, Yi Qian, Yi Yu, Yichao Zhang, Yifan Ding, Yifan Shi, Yiliang Xiong, Ying He, Ying Zhou, Yinmin Zhong, Yishi Piao, Yisong Wang, Yixiao Chen, Yixuan Tan, Yixuan Wei, Yiyang Ma, Yiyuan Liu, Yonglun Yang, Yongqiang Guo, Yongtong Wu, Yu Wu, Yuan Cheng, Yuan Ou, Yuanfan Xu, Yuduan Wang, Yue Gong, Yuhan Wu, Yuheng Zou, Yukun Li, Yunfan Xiong, Yuxiang Luo, Yuxiang You, Yuxuan Liu, Yuyang Zhou, Z. F. Wu, Z. Z. Ren, Zehua Zhao, Zehui Ren, Zhangli Sha, Zhe Fu, Zhean Xu, Zhenda Xie, Zhengyan Zhang, Zhewen Hao, Zhibin Gou, Zhicheng Ma, Zhigang Yan, Zhihong Shao, Zhixian Huang, Zhiyu Wu, Zhuoshu Li, Zhuping Zhang, Zian Xu, Zihao Wang, Zihui Gu, Zijia Zhu, Zilin Li, Zipeng Zhang, Ziwei Xie, Ziyi Gao, Zizheng Pan, Zongqing Yao, Bei Feng, Hui Li, J. L. Cai, Jiaqi Ni, Lei Xu, Meng Li, Ning Tian, R. J. Chen, R. L. Jin, S. S. Li, Shuang Zhou, Tianyu Sun, X. Q. Li, Xiangyue Jin, Xiaojin Shen, Xiaosha Chen, Xinnan Song, Xinyi Zhou, Y. X. Zhu, Yanping Huang, Yaohui Li, Yi Zheng, Yuchen Zhu, Yunxian Ma, Zhen Huang, Zhipeng Xu, Zhongyu Zhang, Dongjie Ji, Jian Liang, Jianzhong Guo, Jin Chen, Leyi Xia, Miaojun Wang, Mingming Li, Peng Zhang, Ruyi Chen, Shangmian Sun, Shaoqing Wu, Shengfeng Ye, T. Wang, W. L. Xiao, Wei An, Xianzu Wang, Xiaowen Sun, Xiaoxiang Wang, Ying Tang, Yukun Zha, Zekai Zhang, Zhe Ju, Zhen Zhang, and Zihua Qu. Deepseek-v3.2: Pushing the frontier of open large language models, 2025.
[7] Jie Deng, Hanshuang Tong, Jun Li, Shining Liang, Ning Wu, Hongzhi Li, and Yutao Xie. Beyond rejection sampling: Trajectory fusion for scaling mathematical reasoning. arXiv preprint arXiv:2602.04391, 2026.
[8] Yilun Du, Shuang Li, Antonio Torralba, Joshua B. Tenenbaum, and Igor Mordatch. Improving factuality and reasoning in language models through multiagent debate. In Proceedings of the 41st International Conference on Machine Learning (ICML), volume 235 of Proceedings of Machine Learning Research, pages 11733–11763. PMLR, 2024.
[9] Abhimanyu Dubey, Abhinav Jauhri, Abhinav Pandey, et al. The Llama 3 herd of models. arXiv preprint arXiv:2407.21783, 2024.
[10] Xinyu Guan, Li Lyna Zhang, Yifei Liu, Ning Shang, Youran Sun, Yi Zhu, Fan Yang, and Mao Yang. rstar-math: Small llms can master math reasoning with self-evolved deep thinking. arXiv preprint arXiv:2501.04519, 2025.
[11] Daya Guo, Dejian Yang, He Zhang, et al. DeepSeek-R1: Incentivizing reasoning capability in LLMs via reinforcement learning. arXiv preprint arXiv:2501.12948, 2025.
[12] Haixia Han, Jiaqing Liang, Jie Shi, Qianyu He, and Yanghua Xiao. Small language model can self-correct. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 38, pages 18162–18170, 2024.
[13] Alexander Havrilla, Sharath Chandra Raparthy, Christoforos Nalmpantis, Jane Dwivedi-Yu, Maksym Zhuravinskyi, Eric Hambro, and Roberta Raileanu. GLoRe: When, where, and how to improve LLM reasoning via global and local refinements. In Proceedings of the 41st International Conference on Machine Learning (ICML), volume 235 of Proceedings of Machine Learning Research, pages 17719–17733. PMLR, 2024.
[14] Dan Hendrycks, Collin Burns, Saurav Kadavath, Akul Arora, Steven Basart, Eric Tang, Dawn Song, and Jacob Steinhardt. Measuring mathematical problem solving with the MATH dataset. In Advances in Neural Information Processing Systems (NeurIPS), 2021.
[15] Namgyu Ho, Laura Schmid, and Se-Young Yun. Large language models are reasoning teachers. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 14852–14882, 2023.
[16] Jiaxin Huang, Shixiang Gu, Le Hou, Yuexin Wu, Xuezhi Wang, Hongkun Yu, and Jiawei Han. Large language models can self-improve. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pages 1051–1068, 2023.
[17] Kushal Jain, Piyushi Goyal, and Kumar Shridhar. UNDO: Understanding distillation as optimization. arXiv preprint arXiv:2504.02521, 2025.
[18] Hoang Anh Just, Myeongseob Ko, and Ruoxi Jia. The signal is in the steps: Local scoring for reasoning data selection. arXiv preprint arXiv:2510.03988, 2025.
[19] Rik Koncel-Kedziorski, Subhro Roy, Aida Amini, Nate Kushman, and Hannaneh Hajishirzi. Mawps: A math word problem repository. In Proceedings of the 2016 conference of the north american chapter of the association for computational linguistics: human language technologies, pages 1152–1157, 2016.
[20] Aviral Kumar, Vincent Zhuang, Rishabh Agarwal, Yi Su, John D. Co-Reyes, Avi Singh, Kate Baumli, Shariq Iqbal, Colton Bishop, Rebecca Roelofs, Lei Zhang, Kay McKinney, Disha Shrivastava, Cosmin Paduraru, George Tucker, Doina Precup, Feryal Behbahani, and Aleksandra Faust. Training language models to self-correct via reinforcement learning. In International Conference on Learning Representations (ICLR), 2025.
[21] Nicholas Lee, Thanakul Wattanawong, Sehoon Kim, Kartikeya Mangalam, Sheng Shen, Gopala Anumanchipalli, Michael Mahoney, Kurt Keutzer, and Amir Gholami. Llm2l1m: Boosting llms with novel iterative data enhancement. In Findings of the Association for Computational Linguistics ACL 2024, pages 6498–6526, 2024.
[22] Chen Li, Weiqi Wang, Jingcheng Hu, Yixuan Wei, Nanning Zheng, Han Hu, Zheng Zhang, and Houwen Peng. Common 7b language models already possess strong math capabilities. arXiv preprint arXiv:2403.04706, 2024.
[23] Chengpeng Li, Guanting Dong, Mingfeng Xue, Ru Peng, Xiang Wang, and Dayiheng Liu. DotaMath: Decomposition of thought with code assistance and self-correction for mathematical reasoning. arXiv preprint arXiv:2407.04078, 2024.
[24] Ming Li, Lichang Chen, Jiuhai Chen, Shwai He, and Tianyi Zhou. Reflection-tuning: Recycling data for better instruction-tuning. In NeurIPS 2023 Workshop on Instruction Tuning and Instruction Following, 2023.
[25] Hunter Lightman, Vineet Kosaraju, Yura Burda, Harri Edwards, Bowen Baker, Teddy Lee, Jan Leike, John Schulman, Ilya Sutskever, and Karl Cobbe. Let's verify step by step. In The Twelfth International Conference on Learning Representations (ICLR), 2024.
[26] Zimu Lu, Aojun Zhou, Houxing Ren, Ke Wang, Weikang Shi, Junting Pan, Mingjie Zhan, and Hongsheng Li. MathGenie: Generating synthetic data with question back-translation for enhancing mathematical reasoning of LLMs. In Lun-Wei Ku, Andre Martins, and Vivek Srikumar, editors, Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 2732–2747, Bangkok, Thailand, August 2024. Association for Computational Linguistics.
[27] Zimu Lu, Aojun Zhou, Ke Wang, Houxing Ren, Weikang Shi, Junting Pan, Mingjie Zhan, and Hongsheng Li. Step-controlled DPO: Leveraging stepwise error for enhanced mathematical reasoning. arXiv preprint arXiv:2407.00782, 2024.
[28] Haipeng Luo, Qingfeng Sun, Can Xu, Pu Zhao, Jianguang Lou, Chongyang Tao, Xiubo Geng, Qingwei Lin, Shifeng Chen, Yansong Tang, and Dongmei Zhang. WizardMath: Empowering mathematical reasoning for large language models via reinforced evol-instruct. arXiv preprint arXiv:2308.09583, 2023.
[29] Lucie Charlotte Magister, Jonathan Mallinson, Jakub Adamek, Eric Malmi, and Aliaksei Severyn. Teaching small language models to reason. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers), pages 1773–1781, 2023.
[30] Shen-yun Miao, Chao-Chun Liang, and Keh-Yih Su. A diverse corpus for evaluating and developing English math word problem solvers. In Dan Jurafsky, Joyce Chai, Natalie Schluter, and Joel Tetreault, editors, Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 975–984, Online, July 2020. Association for Computational Linguistics.
[31] Seyed Iman Mirzadeh, Mehrdad Farajtabar, Ang Li, Nir Levine, Akihiro Matsukawa, and Hassan Ghasemzadeh. Improved knowledge distillation via teacher assistant. In AAAI Conference on Artificial Intelligence, 2020.
[32] Zhuoshi Pan, Yu Li, Honglin Lin, Qizhi Pei, Zinan Tang, Wei Wu, Chenlin Ming, H. Vicky Zhao, Conghui He, and Lijun Wu. LEMMA: Learning from errors for MatheMatical advancement in LLMs. In Wanxiang Che, Joyce Nabende, Ekaterina Shutova, and Mohammad Taher Pilehvar, editors, Findings of the Association for Computational Linguistics: ACL 2025, pages 11615–11639, Vienna, Austria, July 2025. Association for Computational Linguistics.
[33] Arkil Patel, Satwik Bhattamishra, and Navin Goyal. Are nlp models really able to solve simple math word problems? In Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 2080–2094, 2021.
[34] Zhenting Qi, Mingyuan Ma, Jiahang Xu, Li Lyna Zhang, Fan Yang, and Mao Yang. Mutual reasoning makes smaller LLMs stronger problem-solvers. In International Conference on Learning Representations (ICLR), 2025.
[35] Matthew Renze. The effect of sampling temperature on problem solving in large language models. In Yaser Al-Onaizan, Mohit Bansal, and Yun-Nung Chen, editors, Findings of the Association for Computational Linguistics: EMNLP 2024, pages 7346–7356, Miami, Florida, USA, November 2024. Association for Computational Linguistics.
[36] Zhihong Shao, Peiyi Wang, Qihao Zhu, et al. DeepSeekMath: Pushing the limits of mathematical reasoning in open language models. arXiv preprint arXiv:2402.03300, 2024.
[37] Noah Shinn, Federico Cassano, Ashwin Gopinath, Karthik Narasimhan, and Shunyu Yao. Reflexion: Language agents with verbal reinforcement learning. In Advances in Neural Information Processing Systems (NeurIPS), volume 36, 2023.
[38] Yongqi Tong et al. Can LLMs learn from previous mistakes? investigating LLMs' errors to boost for reasoning. arXiv preprint arXiv:2403.20046, 2024.
[39] Yuxuan Tong, Xiwen Zhang, Rui Wang, Ruidong Wu, and Junxian He. DART-Math: Difficulty-aware rejection tuning for mathematical problem-solving. In Advances in Neural Information Processing Systems (NeurIPS), 2024.
[40] Peiyi Wang, Lei Li, Zhihong Shao, Runxin Xu, Damai Dai, Yifei Li, Deli Chen, Yu Wu, and Zhifang Sui. Math-Shepherd: Verify and reinforce LLMs step-by-step without human annotations. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 9426–9439, 2024.
[41] Sean Welleck, Ximing Lu, Peter West, Faeze Brahman, Tianxiao Shen, Daniel Khashabi, and Yejin Choi. Generating sequences by learning to self-correct. In International Conference on Learning Representations (ICLR), 2023.
[42] Zhenyu Wu, Qingkai Zeng, Zhihan Zhang, Zhaoxuan Tan, Chao Shen, and Meng Jiang. Large language models can self-correct with key condition verification. In Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, pages 12846–12867, 2024.
[43] Zhiheng Xi, Dingwen Yang, Jixuan Huang, Jiafu Tang, Guanyu Li, Yiwen Ding, Wei He, Boyang Hong, Shihan Do, Wenyu Zhan, et al. Enhancing llm reasoning via critique models with test-time and training-time supervision. arXiv preprint arXiv:2411.16579, 2024.
[44] Yuxi Xie et al. Monte carlo tree search boosts reasoning via iterative preference learning. arXiv preprint arXiv:2405.00451, 2024.
[45] Wenda Xu, Rujun Han, Zifeng Wang, Long T. Le, Dhruv Madeka, Lei Li, William Yang Wang, Rishabh Agarwal, Chen-Yu Lee, and Tomas Pfister. Speculative knowledge distillation: Bridging the teacher-student gap through interleaved sampling. In International Conference on Learning Representations (ICLR), 2025.
[46] Yuchen Yan, Jin Jiang, Yang Liu, Yixin Cao, Xin Xu, Mengdi Zhang, Xunliang Cai, and Jian Shao. S³c-Math: Spontaneous step-level self-correction makes large language models better mathematical reasoners. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 39, pages 25588–25596, 2025.
[47] An Yang, Beichen Zhang, Binyuan Hui, et al. Qwen2.5-Math technical report: Toward mathematical expert model via self-improvement. arXiv preprint arXiv:2409.12122, 2024.
[48] Ling Yang, Zhaochen Yu, Tianjun Zhang, Minkai Xu, Joseph E Gonzalez, Bin Cui, and Shuicheng Yan. SuperCorrect: Advancing small LLM reasoning with thought template distillation and self-correction. In International Conference on Learning Representations (ICLR), 2025.
[49] Yuming Yang, Mingyoung Lai, Wanxu Zhao, Xiaoran Fan, Zhiheng Xi, Mingqi Wu, Chiyue Huang, Jun Zhao, Haijun Lv, Jian Tong, Yunhua Zhou, Yicheng Zou, Qipeng Guo, Tao Gui, Qi Zhang, and Xuanjing Huang. Which reasoning trajectories teach students to reason better? a simple metric of informative alignment. In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 42123–42150. Association for Computational Linguistics, 2026.
[50] Longhui Yu, Weisen Jiang, Han Shi, Jincheng Yu, Zhengying Liu, Yu Zhang, James T Kwok, Zhenguo Li, Adrian Weller, and Weiyang Liu. MetaMath: Bootstrap your own mathematical questions for large language models. In International Conference on Learning Representations (ICLR), 2024.
[51] Zheng Yuan, Hongyi Yuan, Chengpeng Li, Guanting Dong, Keming Lu, Chuanqi Tan, Chang Zhou, and Jingren Zhou. Scaling relationship on learning mathematical reasoning with large language models. arXiv preprint arXiv:2308.01825, 2023.
[52] Xiang Yue, Xingwei Qu, Ge Zhang, Yao Fu, Wenhao Huang, Huan Sun, Yu Su, and Wenhu Chen. MAmmoTH: Building math generalist models through hybrid instruction tuning. In International Conference on Learning Representations (ICLR), 2024.
[53] Xiang Yue, Tuney Zheng, Ge Zhang, and Wenhu Chen. MAmmoTH2: Scaling instructions from the web. In Advances in Neural Information Processing Systems (NeurIPS), 2024.
[54] Dylan Zhang, Qirun Dai, and Hao Peng. The best instruction-tuning data are those that fit, 2025.
[55] Yunxiang Zhang, Muhammad Khalifa, Lajanugen Logeswaran, Jaekyeom Kim, Moontae Lee, Honglak Lee, and Lu Wang. Small language models need strong verifiers to self-correct reasoning. In Lun-Wei Ku, Andre Martins, and Vivek Srikumar, editors, Findings of the Association for Computational Linguistics: ACL 2024, pages 15637–15653, Bangkok, Thailand, August 2024. Association for Computational Linguistics.
[56] Zhihan Zhang, Tao Ge, Zhenwen Liang, Wenhao Yu, Dian Yu, Mengzhao Jia, Dong Yu, and Meng Jiang. Learn beyond the answer: Training language models with reflection for mathematical reasoning. In Yaser Al-Onaizan, Mohit Bansal, and Yun-Nung Chen, editors, Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, pages 14720–14738, Miami, Florida, USA, November 2024. Association for Computational Linguistics.
[57] Zijian Zhang, Kaiyuan Zheng, Zhaorun Chen, Joel Jang, Yi Li, Siwei Han, Chaoqi Wang, Mingyu Ding, Dieter Fox, and Huaxiu Yao. GRAPE: Generalizing robot policy via preference alignment, 2024.
[58] Yaowei Zheng, Richong Zhang, Junhao Zhang, et al. LLaMA-Factory: Unified efficient fine-tuning of 100+ language models. arXiv preprint arXiv:2403.13372, 2024.
A Full Pipeline Algorithm
Algorithm 1 shows one construction pass followed by SFT. For the two-pass setting, both passes use the same original student checkpoint, and SFT is performed after the final corpus is assembled.
Algorithm 1 Full Pipeline
Require: Dataset , teacher , student , hyperparameters
Ensure: Fine-tuned student
1:
2: for each do
3: Sample traces
4: Compute
5: if then
6: continue
7: end if
8: Compute
9: Classify error mode by Table 1
10: Select representative error trace
11: Generate candidate trajectories in one teacher call:
12:
13: if then
14: continue
15: end if
16: for each do
17: first sentences of
18: BPR()
19: end for
20: BPR(), with components
21: Append to
22: end for
23: Construct : 90% use ; 10% use
24: Fine-tune on with loss on target tokens only
25: return
B Training and Evaluation Details
Training formats. For 90% of the final examples, the input is and the target is . For the remaining 10%, the input is alone and the target is the complete corrected solution , without reflection. These auxiliary examples come from the same pool, not a separate pool. The input is loss-masked in both formats.
Training settings. We use full-parameter SFT in LLaMA-Factory [58] for 2–3 epochs with a learning rate between and , a cosine schedule with 3% warmup, an effective batch size of 128, and a maximum sequence length of 2048. Each SFT run uses one NVIDIA H200 or eight NVIDIA GeForce RTX 3090 GPUs.
Evaluation. We evaluate on GSM8K [5] and MATH [14] for in-distribution, and SVAMP [33], ASDiv [30], and MAWPS [19] for out-of-distribution, using greedy decoding with exact-match accuracy after answer extraction.
C Comparison Method Details
We compare against SFT, RFT [51], ISC [12], S³C-Math [46], GPTAug, RefAug [56], and LEMMA [32]. All baselines draw from the same training data source for fair comparison: the GSM8K and MATH training problems. They do not necessarily use identical surface questions or constructed instances.
Methods applied to MetaMathQA. SFT uses the complete 394.99K MetaMathQA corpus of correct solutions. RFT rejection-samples the student and retains correct self-generated traces, with at most one per distinct question. S³C-Math injects intermediate mistakes via step-level sampling and constructs reflective corrections, adding approximately 532K instances to MetaMathQA for approximately 927K samples in total. Our method profiles the student on MetaMathQA and constructs corrections as in Appendix A.
Methods constructing supervision from source problems. GPTAug generates direct teacher solutions, ISC constructs self-correction sequences, RefAug enriches solutions with reflection phases, and LEMMA performs error-type grounded mistake augmentation. These methods follow their respective construction recipes based on the GSM8K and MATH source problems rather than using our MetaMathQA variants. The original RefAug configuration contains 29.94K samples; LEMMA retains 88.90K trajectories after correctness filtering. The other sample counts follow the methods' original construction settings.
Controls on the same first-pass problems. The direct teacher-trace control uses exactly the problems in our 62.74K Llama and 65.76K DeepSeek first-pass sets. DeepSeek-V3.2 generates a solution conditioned only on the question; its final answer is checked with the same checker as our pipeline, and incorrect generations are resampled until a correct trace is obtained. Each problem contributes one verified-correct trajectory. Teacher, student, and SFT settings match our method. This compares complete supervision-construction pipelines rather than isolating BPR.
D Prompt Templates for Adaptive Correction Generation
This appendix provides the full prompt templates used by the teacher model for each diagnosed error mode in Stage 2 of our pipeline, described in Section 3.3. All three templates share the same JSON output schema, a list of corrective trajectories with four fields: error_step for a first-person diagnosis, preserved_prefix for the verbatim correct portion of the reasoning of the student that may be empty, correction for the continuation in the style of the student ending with “The answer is: [value]”, and final_answer for the final numerical or symbolic answer. The templates differ in their input slots and in the strategies used to diversify the candidates, as detailed below. The slot {trajectory_examples} contains a fixed block of six examples demonstrating the reflection , preserved prefix , and corrective continuation . The same block is used across all three templates.
The slot {task_data} fills the per-problem inputs into : the problem, correct answer, profiling statistics, answer-level summary, and one representative incorrect trace. Stubborn and sporadic prompts use student_reasoning; the inconsistent prompt uses a singleton student_reasoning_attempts list.
D.1 Prompt for Stubborn Errors
For stubborn errors, the majority of the sampled attempts of the student produce the same wrong answer, indicating a deep-rooted conceptual flaw rather than a random slip. The prompt therefore instructs the teacher to attack the locked error path from multiple angles, while still preserving any correct portion of the reasoning of the student that precedes the divergence.
Prompt Template for Stubborn Errors
You are an expert Math Corrector. You specialize in diagnosing SYSTEMATIC MISCONCEPTIONS.
The incorrect outcomes concentrate on one wrong answer. Attack the locked-in reasoning path from different angles: direct correction, an alternative method, conceptual reframing, work backwards, or substitution-based verification. Diagnose the trap, the conceptual pivot, the fix, and a check that prevents recurrence. Distill that analysis into a concise first-person error_step.
Correction-angle examples: trajectory 1 applies a direct fix to the specific algebraic/logical error; trajectory 2 solves the problem via an alternative method entirely; trajectory 3 reframes the underlying concept before solving; further trajectories explore additional creative variations such as work-backwards or substitution-based verification.
Generate exactly {n_candidates} DIFFERENT corrective trajectories in ONE JSON array. Each object must contain these string fields:
-
error_step: a concise first-person diagnosis naming where and why the first error occurred. For example, "I assumed that..." or "I forgot to multiply by...".
-
preserved_prefix: the student's LONGEST correct prefix, copied VERBATIM from the beginning up to but excluding the first erroneous step; empty if none.
-
correction: continue from preserved_prefix to a complete correct solution. Match the student's vocabulary, formatting, and tone. End with exactly "The answer is: [value]".
-
final_answer: only the final numerical or symbolic answer.
Localize the first error and diversify the {n_candidates} continuations jointly in this single call. Never invent an error in correct reasoning. Avoid apologies, meta-commentary such as "Let me reconsider" or "I made an error", and explanations outside the array.
Reference output-format examples: {trajectory_examples}
Task data: {task_data}
D.2 Prompt for Inconsistent Errors
For inconsistent errors, the prompt emphasizes structured reasoning to provide a stable problem-solving framework. The slot student_reasoning_attempts supports one or multiple trajectories. With multiple trajectories, the teacher identifies their shared correct prefix and where their reasoning diverges; with one, it preserves that trajectory's longest correct prefix and identifies its first erroneous step. In our experiments, the slot is a singleton list containing only . The answer-level summary covers all K samples, without supplying their full reasoning chains.
Prompt Template for Inconsistent Errors
You are an expert Math Corrector. You specialize in STABILIZING chaotic reasoning patterns.
The sampled outcomes are unstable. Supply a structured framework: state the givens and goal, define variables and equations, calculate step by step, and verify the result. Vary frameworks: equations, verifiable arithmetic, working backwards, dimensional analysis, or unit tracking. The answer summary describes all sampled outcomes; student_reasoning_attempts may contain one or more trajectories to be analyzed. With multiple trajectories, preserve any shared correct prefix and identify where their reasoning diverges; with one, preserve that trajectory's longest correct prefix and diagnose its first erroneous step. If no correct prefix exists, leave preserved_prefix empty. Do not infer a shared prefix from unprovided trajectories.
Framework examples: trajectory 1 sets up and solves algebraic equations; trajectory 2 breaks the problem into small verifiable arithmetic sub-calculations; trajectory 3 works backwards from the answer structure; further trajectories use dimensional analysis, unit tracking, or diagram-based reasoning.
Generate exactly {n_candidates} DIFFERENT corrective trajectories in ONE JSON array. Each object must contain these string fields:
-
error_step: a concise first-person diagnosis naming where and why the first error occurred. With multiple trajectories, describe the common pattern of confusion; with one, describe its concrete first error.
-
preserved_prefix: with one trajectory, its LONGEST correct prefix, copied VERBATIM from the beginning up to but excluding the first erroneous step; with multiple trajectories, any shared correct prefix; empty if none.
-
correction: continue from preserved_prefix to a complete correct solution. Match the student's vocabulary, formatting, and tone. End with exactly "The answer is: [value]".
-
final_answer: only the final numerical or symbolic answer.
The correction is intentionally more structured than the student's attempts because the student needs scaffolding, but still matches the student's vocabulary and tone. Localize the first error and diversify the {n_candidates} continuations jointly in this single call. Never invent an error in correct reasoning. Avoid apologies, meta-commentary such as "Let me reconsider", and explanations outside the array.
Reference output-format examples: {trajectory_examples}
Task data: {task_data}
D.3 Prompt for Sporadic Errors
For sporadic errors, the student answers most attempts correctly and only occasionally fails. The student already possesses the relevant skills, so the prompt instructs the teacher to preserve the longest possible correct prefix and apply the smallest possible edit at the divergence point.
Prompt Template for Sporadic Errors
You are an expert Math Corrector. You specialize in MINIMAL, PRECISE corrections.
The student usually answers correctly. Preserve as much of the reasoning as possible and change only the localized error. Vary the local repair: a direct fix, brief inline verification, a slightly different computation avoiding the same error, or further minimal variations. Do not restructure correct steps. The localized slip may be an arithmetic mistake, sign error, misapplied formula, or off-by-one in an otherwise reasonable solution. The overall problem-solving approach and structure are sound; only the erroneous step needs to be repaired.
Local-repair examples: trajectory 1 directly replaces the wrong step with the correct computation; trajectory 2 corrects with a brief inline verification; trajectory 3 takes a slightly different computational path that avoids the specific error; further trajectories explore additional minimal variations.
Generate exactly {n_candidates} DIFFERENT corrective trajectories in ONE JSON array. Each object must contain these string fields:
-
error_step: a concise first-person diagnosis naming where and why the first error occurred. Describe the specific localized slip, for example "I made an arithmetic error when adding...".
-
preserved_prefix: the student's LONGEST correct prefix, copied VERBATIM from the beginning up to but excluding the first erroneous step; empty if none.
-
correction: continue from preserved_prefix to a complete correct solution. Match the student's vocabulary, formatting, and tone. End with exactly "The answer is: [value]".
-
final_answer: only the final numerical or symbolic answer.
The correction should feel like a seamless continuation of the student's own work. Keep the correction short.
Localize the first error and diversify the {n_candidates} continuations jointly in this single call. Never invent an error in correct reasoning. Avoid apologies, meta-commentary such as "I made a mistake here" or "Let me reconsider", and explanations outside the array.
Reference output-format examples: {trajectory_examples}
Task data: {task_data}
D.4 Uniform Minimal-Correction Prompt
The ablation without profiling uses the same minimal-correction policy for every error, instead of the three mode-specific prompts. The uniform prompt receives only the problem, representative incorrect trace, and correct answer, without profiling metadata.
Uniform Minimal-Correction Prompt
[System] You are an expert Math Corrector specializing in minimal, precise corrections.
Context. The student attempted this problem and made a mistake in an otherwise reasonable solution. Preserve as much of the student's original reasoning as possible and fix only what is broken.
Your Task. Generate exactly {n_candidates} DIFFERENT corrective trajectories. Each trajectory must:
-
Preserve the maximum correct prefix: copy the student's reasoning VERBATIM up to the point of error, the longest correct prefix possible.
-
Pinpoint the exact error: identify the specific calculation, substitution, or logical misstep in a first-person error_step, rather than stating only "I was wrong".
-
Apply a minimal correction: fix ONLY what is wrong; do not restructure or rewrite correct steps.
-
Vary the correction style across the {n_candidates} trajectories.
Style Requirements.
- Preserve the student's writing style, formatting, and tone.
- No meta-commentary such as "I made a mistake here" or "Let me reconsider".
- Every trajectory MUST end with exactly: "The answer is: [value]". Output Format. A JSON array of {n_candidates} objects with fields {error_step, preserved_prefix, correction, final_answer}. Reference Examples. {trajectory_examples} Task Data. {problem} / {student_reasoning} / {correct_answer}
E Error Mode Distribution
Figure 5 shows the distribution of diagnosed error modes among 63,062 problems before teacher-candidate correctness filtering in the Llama-3.1-8B first construction pass. Of these problems, 62,740 are retained after filtering to form the first-pass training corpus used in the ablation and window-size studies.

Figure 5: Distribution of diagnosed error modes among 63,062 problems before teacher-candidate correctness filtering in the Llama-3.1-8B first construction pass.
F Profiling Threshold Sensitivity
We evaluate threshold sensitivity on the same 63,062 problems from the Llama-3.1-8B first construction pass shown in Figure 5, before teacher-candidate correctness filtering. The problem set and the five sampled student responses per problem are held fixed across threshold settings.
Our behavioral profiling classifies each problem based on two thresholds: the error rate threshold and the consistency threshold . With samples per problem, takes values in and takes a similarly discrete set of values determined by the number of incorrect samples. This discretization means that the classification is invariant to any threshold perturbation that stays within the same discrete interval, so several threshold pairs reproduce the default classification exactly.
Figure 6 reports the agreement with the default thresholds , measured as the fraction of problems whose diagnosed mode matches the default. The neighboring setting reproduces the default classification exactly (100%), and all cells in with remain at 95.1%–97.9% agreement. Agreement degrades smoothly as the thresholds move further from the default: lowering to 0.4 drops agreement to 67.6%–77.8%, because problems with are reclassified from sporadic to stubborn or inconsistent, while raising to 0.7–0.8 yields 80.0%–85.5%. These represent substantial shifts in the classification criteria rather than fine perturbations. In practice, the discrete structure of and under small provides a natural robustness to threshold selection: the method does not require fine-grained tuning to achieve stable classifications.

Figure 6: Agreement (%) with the default thresholds () = (0.6, 0.8) on the same 63,062-problem set as Figure 5. Each cell shows the fraction of problems whose error mode matches the classification under the default setting, with the default cell at 100%. Cells adjacent to the default exhibit high agreement due to the discrete nature of and under sampling.
G Token-Level Log-Probability Curve
To verify the motivation behind branching point reachability scoring, we plot the per-token log-probability of the student against position relative to the branching point, averaged over 200 training examples. Figure 7 shows the preserved prefix sitting near the global average of , dropping sharply to about at the branching point, and recovering within roughly 25 tokens. Global scoring averages over the long high-probability tail and washes out the few low-probability tokens that distinguish reachable from unreachable continuations, whereas restricting evaluation to the shaded BPR window concentrates the signal on the positions where candidates diverge, matching the 1.7% gain over global scoring in both ablation studies.

Figure 7: Average per-token log-probability of the Llama-3.1-8B student against token position relative to the branching point, over 200 examples. Both the preserved prefix and the recovered tail of the corrective continuation sit near the global average of , while only a narrow trough around the branching point falls to about . The shaded red region marks the BPR scoring window covering the first eight sentences.
H Additional Experimental Results
This section provides the complete supplementary comparisons and analyses summarized in Section 4.
H.1 Shared-Source Coverage Control
We map Ours and LEMMA to their original GSM8K and MATH problems and restrict both methods to the same 12,217 shared source problems, retaining one training example per source problem for each method. This controls source-problem coverage and example count while retaining each method's supervision format. Table 5 reports the DeepSeek-Math-7B results. Ours achieves 77.1% versus LEMMA's 75.7%, with higher OOD results while LEMMA remains stronger on MATH. This is a coverage control, rather than a causal test of BPR alone.
Table 5: Accuracy (%) on DeepSeek-Math-7B after restricting each method to the same 12,217 source problems, with one training example per source problem. This controls source coverage and sample count while retaining each method's supervision format.
| Method | GSM8K | MATH | SVAMP | ASDiv | MAWPS | Avg. |
|---|---|---|---|---|---|---|
| Ours | 80.3 | 45.2 | 81.4 | 87.3 | 91.2 | 77.1 |
| LEMMA | 77.5 | 47.7 | 78.1 | 86.4 | 88.6 | 75.7 |
H.2 First-Divergence Localization
Boundary localization. A manual audit of 50 randomly sampled traces from the 65.76K DeepSeek configuration finds that 44 boundaries are accurate, four are too early, and two are too late. Keeping teacher candidate pools fixed, we perturb BPR boundaries on 12% of questions with a preserved prefix: 8% move one reasoning step earlier and 4% one step later. We recompute scores under the shifted prefixes and windows, reselect trajectories, and retrain. Table 6 reports this single run, in which average accuracy changes from 80.0% to 79.7%. This checks the sensitivity of BPR scoring and candidate reselection to boundary localization.
Table 6: Accuracy (%) after boundary perturbation for the 65.76K DeepSeek-Math-7B configuration. Teacher candidate pools are fixed; BPR is recomputed under shifted boundaries before trajectory reselection and retraining. This is a single-run selection-sensitivity experiment.
| Setting | GSM8K | MATH | SVAMP | ASDiv | MAWPS | Avg. |
|---|---|---|---|---|---|---|
| Original | 83.6 | 47.1 | 83.9 | 90.1 | 95.3 | 80.0 |
| Perturbed | 83.8 | 46.6 | 83.6 | 89.4 | 94.9 | 79.7 |
H.3 Teacher Variation
Table 7 compares teachers in single SFT runs using the same fixed seed. Replacing DeepSeek-V3.2 with DeepSeek-V4-Flash gives 81.0% average accuracy, versus 80.6%, with all other settings held fixed.
Table 7: Accuracy (%) with different teachers for DeepSeek-Math-7B using 88.90K constructed examples. Both rows report single SFT runs using the same fixed seed. All settings other than the teacher are held fixed.
| Teacher | GSM8K | MATH | SVAMP | ASDiv | MAWPS | Avg. |
|---|---|---|---|---|---|---|
| DeepSeek-V3.2 | 84.1 | 48.6 | 85.3 | 90.1 | 95.0 | 80.6 |
| DeepSeek-V4-Flash | 84.7 | 49.1 | 85.7 | 90.8 | 94.9 | 81.0 |
H.4 Inference Behavior
Table 8 reports an audit of 300 test outputs per benchmark for each 88.90K student, totaling 1,500 outputs per student. An LLM judge labels explicit revision of an earlier step as REFLECTION and other solutions as DIRECT. DIRECT outputs account for 90.5% and 95.3% of Llama and DeepSeek outputs, with accuracies of 81.9% and 82.1%; REFLECTION accuracies are 33.1% and 35.7%. The share-weighted accuracies are 77.3% and 79.9%. This provides indirect evidence that corrective training is compatible with question-only inference without routinely triggering explicit revision.
Table 8: Test-output audit for the 88.90K students: 300 outputs per benchmark, totaling 1,500 per student. REFLECTION denotes explicit revision within a test-time solution; DIRECT denotes no such revision. Shares and accuracies are percentages.
| Student | DIRECT | REFLECTION | ||
|---|---|---|---|---|
| Share | Accuracy | Share | Accuracy | |
| Llama-3.1-8B | 90.5 | 81.9 | 9.5 | 33.1 |
| DeepSeek-Math-7B | 95.3 | 82.1 | 4.7 | 35.7 |
I Case Examples of Token-Level Log-Probability
Beyond the average curve in Figure 7, we present three individual training examples in Figures 8, 9, and 10 that illustrate the same pattern at the level of single problems. Each figure displays the problem statement, the preserved prefix, the BPR window covering the first eight sentences after the branching point, and a portion of the later continuation, alongside the corresponding per-token log-probability curve under the Llama-3.1-8B student.
In all three cases, the preserved prefix and the later continuation sit close to the global average, while the BPR window concentrates a sequence of sharp dips that pull its mean roughly 1.2 to 1.7 nats below the tail average. This gap is consistent with the averaged behavior in Figure 7 and illustrates the concentration of low-probability tokens near the branching point. The first example introduces an equation-based framework that identifies given quantities, defines variables, and sets up earnings equations for a marble pricing word problem, the second rewrites both sides to a common base before equating exponents on an exponential equation, and the third lays out grouped variables for hourly wage, working days, and total hours on a monthly income word problem. These examples illustrate the probability cost of the initial corrective steps. The performance benefit of using is evaluated in the component ablation and window-size studies in Section 4.3.
Case Example 1: Marble Pricing Word Problem
Problem. Alvin is selling his marble set. He has 100 marbles. 20% are white, 30% are black, and the rest are different colors. He sells the white ones for a nickel each, the black ones for a dime each, and the colors for $x each. How much does he earn? If we know the answer to the above question is 14, what is the value of unknown variable x?
Preserved prefix. Alvin has 100 marbles. 20% are white: white marbles 30% are black: black marbles The rest are different colors: different colored marbles
BPR window. Let's solve this using a clear equation-based framework, sticking to dollars to avoid unit confusion. Step 1: Identify what's given and what's asked. Given: Total marbles = 100. Percentages and prices for white and black marbles. Total earnings = $14. Need to find x (price per colored marble in dollars).
Later continuation. Step 2: Define variables. Let x = price in dollars for one colored marble. Step 3: Set up equations for earnings from each type. Earnings from white marbles = 20 marbles * 1 Earnings from black marbles = 30 marbles * 3 Earnings from colored marbles = 50 marbles * x dollars = 50x dollars Step 4: Write the total earnings equation. Total earnings = 3 + 50x = 4 + 50x = 4: 10 Divide by 50: x = 0.20 Step 6: Verify. Check: White: 300.10=3, Colored: $500.20=10. Sum = 1+3+10=14. Correct. The answer is: 0.20

Figure 8: Per-token log-probability for an individual training example on a marble pricing word problem. The preserved prefix and later continuation track the global average, while the BPR window absorbs sharp dips that lower its mean to -2.15 against a tail average of -0.45, yielding a gap of 1.70 nats.
Case Example 2: Exponential Equation
Problem. Solve for , if .
Preserved prefix. To solve for , we first need to express both sides of the equation with the same base. We can rewrite as and as .
BPR window. Let's follow a clear, equation-based framework. Step 1 – Identify the goal: Solve for in . Step 2 – Choose a common base. The easiest is base 2 because and . Step 3 – Rewrite each side using base 2.
Later continuation. Left side: . Right side: . Step 4 – Set the exponents equal since the bases are the same and the equation is an equality. Step 5 – Solve the linear equation systematically. Add to both sides: . Add 18 to both sides: . Divide both sides by 13: . Step 6 – Quick check: Plug back into the original equation. Left: . Right: . It matches. The answer is: 1

Figure 9: Per-token log-probability for an exponential equation. The BPR window contains the framework setup tokens that rewrite both sides to a common base before equating exponents, lowering the BPR mean to against a tail average of , with a gap of 1.41 nats.
Case Example 3: Monthly Income Word Problem
Problem. If John works for 12 hours every other day and receives a 30% raise from his previous $20 per hour job, what is his monthly income for a 30-day month?
Preserved prefix. First, let's calculate John's new hourly wage: 26 per hour.
BPR window. Step 1: Understand the quantities given. Previous wage: $20 per hour. Raise: 30%. Hours per workday: 12 hours. Work schedule: every other day. Month length: 30 days. We are asked: monthly income. Step 2: Set up variables and equations.
Later continuation. Let new_wage = old_wage * (1 + raise_percent/100) = 20 * 1.30 = 26 per hour * 180 hours = $4680, which is a plausible monthly income. The answer is: 4680

Figure 10: Per-token log-probability for a monthly income word problem. The BPR window summarizes the given quantities and introduces the variable-setting stage, with a mean of -1.74 against a tail average of -0.57, yielding a gap of 1.17 nats.