Stepwise-Querying: Distilling Reasoning without Access to Teacher Chain-of-Thought

arXiv cs.CL Papers

Summary

The paper proposes Stepwise-Querying, a method that elicits step-specific explanations from black-box teachers without accessing their internal chain-of-thought traces, assembling them into training data for supervised fine-tuning of smaller student models. It achieves the top score in 14 of 16 comparisons across two teachers, two students, and four math/code benchmarks, and introduces the SEIG diagnostic for measuring stepwise explanation information gain.

arXiv:2610.41769v1 Announce Type: new Abstract: Reasoning distillation is widely used to transfer the reasoning capabilities of large language models to smaller students through teacher-generated supervision. In the black-box setting, however, teachers may expose only final answers and brief solutions, leaving intermediate calculations and validity conditions unavailable and thus limiting the reasoning supervision available for distillation. We propose Stepwise Querying, which elicits step-specific explanations without requiring access to the teacher's internal chain-of-thought (CoT) traces. Independent queries to the same teacher request intermediate derivations, validity checks, and corrections for individual steps, the assembled solutions are then used for standard supervised fine-tuning. Across two teachers, two students, and four mathematics and code benchmarks, our method achieves the highest score in 14 of 16 comparisons with three baselines. We further introduce Stepwise Explanation Information Gain (SEIG), a diagnostic based on the log-ratio of a frozen student's probabilities of correct step completion under stepwise and global explanations. Analyses on GSM8K show that incorrect-answer trajectories can remain useful when they preserve valid intermediate reasoning, while further decomposition yields limited additional gains.
Original Article
View Cached Full Text

Cached at: 11/02/26, 09:31 AM

# Stepwise-Querying: Distilling Reasoning without Access to Teacher Chain-of-Thought
Source: [https://arxiv.org/html/2610.41769](https://arxiv.org/html/2610.41769)
Wenhua WangTian WangAffiliation:Institute of AI and Future Network, Beijing Normal University

###### Abstract

Reasoning distillation is widely used to transfer the reasoning capabilities of large language models to smaller students through teacher\-generated supervision\. In the black\-box setting, however, teachers may expose only final answers and brief solutions, leaving intermediate calculations and validity conditions unavailable and thus limiting the reasoning supervision available for distillation\. We proposeStepwise\-Querying, which elicits step\-specific explanations without requiring access to the teacher’s internal chain\-of\-thought \(CoT\) traces\. Independent queries to the same teacher request intermediate derivations, validity checks, and corrections for individual steps, the assembled solutions are then used for standard supervised fine\-tuning\. Across two teachers, two students, and four mathematics and code benchmarks, our method achieves the highest score in 14 of 16 comparisons with three baselines\. We further introduce Stepwise Explanation Information Gain \(SEIG\), a diagnostic based on the log\-ratio of a frozen student’s probabilities of correct step completion under stepwise and global explanations\. Analyses on GSM8K show that incorrect\-answer trajectories can remain useful when they preserve valid intermediate reasoning, while further decomposition yields limited additional gains\.

## 1Introduction

Reasoning distillation transfers capabilities to smaller language models through teacher\-generated reasoning supervision[Magister et al\. \(2023\)](https://arxiv.org/html/2610.41769#bib.bib1)\. In a black\-box settings, however, teachers may expose only final answers and brief solutions, leaving intermediate calculations and validity conditions unavailable[Zhang et al\. \(2026\)](https://arxiv.org/html/2610.41769#bib.bib2), which limits the reasoning supervision available for distillation\. MathFimer expands mathematical solutions with a trained fill\-in\-the\-middle model[Yan et al\. \(2026\)](https://arxiv.org/html/2610.41769#bib.bib3), while Trace Inversion synthesizes detailed traces from observable questions, answers, and optional summaries[Zhang et al\. \(2026\)](https://arxiv.org/html/2610.41769#bib.bib2)\. These approaches motivate studying how further queries to the same teacher can turn brief solutions into useful training data\.

The quality of such data depends on both query organization and prompting\. Research on reverse chain\-of\-thought generation identifies post\-hoc rationalization[Peng et al\. \(2026\)](https://arxiv.org/html/2610.41769#bib.bib4), and answer\-conditioned distillation experiments distinguish instructions to rationalize toward an answer from answer visibility alone[Lee et al\. \(2026\)](https://arxiv.org/html/2610.41769#bib.bib5)\. A simple example illustrates the problem: for\(x−1\)2=2\\sqrt\{\(x\-1\)^\{2\}\}=2, an initial answerx=3x=3is valid but incomplete\. A request to explain this answer may produce a correct substitution without discoveringx=−1x=\-1\. A prompt requesting independent derivation, enumeration of all cases, and correction of the candidate instead targets the complete solution\. This example motivates a comparison; it does not establish that either prompt reliably produces a particular outcome\.

Figure 1:Comparison of supervision construction\. \(a\) Global CoT: a single teacher call produces one explanation for all steps\. \(b\) Stepwise\-Querying \(ours\): independent calls, each targeting one step under a shared initial context, are assembled, checked for validity, consistency, and completeness, and used for standard SFT\.Considering the above observation, we proposeStepwise\-Querying, which targets independent derivation and correction with prompts\. Firstly, the teacher provides a candidate answer and brief solution steps\. Then, subsequent calls target individual steps, requesting intermediate calculations, mathematical justifications, and necessary conditions, and each call uses an independent context containing the original problem and initial solution\. The prompts treat the initial candidate answer and steps as provisional, potentially incorrect or incomplete\. They ask the teacher to derive the target step from the problem before comparing it with the candidate, and they allow the teacher to identify missing cases and propose corrections\. The expanded solutions are then checked for consistency and completeness before being used for standard supervised fine\-tuning, where the student receives only the original problem as input\. Our study asks whether combining multiple targeted queries with these prompts improves supervision quality and student reasoning under controlled costs \(Figure[1](https://arxiv.org/html/2610.41769#S1.F1)\)\.

Our methodological contributions are:

- •A stepwise querying protocol for black\-box reasoning distillation\.We turn brief teacher solutions into detailed training data without access to internal CoT traces: each step receives an independent query whose prompt asks the teacher to derive the step from the problem, verify its validity and completeness, and correct the provisional candidate answer—rather than to rationalize toward it\. The protocol applies to any multi\-step task, from mathematics to code generation\.
- •Stepwise Explanation Information Gain \(SEIG\), a diagnostic for local supervisory value\.SEIG measures the log\-ratio of a frozen student’s probability of correct step completion under stepwise versus global CoT explanations, using only public explanation text and independent verification labels, with no teacher logits or hidden traces required\.
- •A controlled evaluation with actionable findings\.Across two teachers, two students, and four benchmarks, our method achieves the best score in 14 of 16 comparisons with three published baselines and outperforms global CoT and answer\-explanation supervision in all 16 settings\. SEIG analyses further show that incorrect\-answer trajectories remain useful when they preserve valid intermediate reasoning, and that recursive decomposition beyond the step level yields diminishing returns\.

## 2Related Work

Reasoning distillation and step expansion\. Magister et al\. transfer reasoning capabilities to smaller models by training on teacher\-generated chains of thought[Magister et al\. \(2023\)](https://arxiv.org/html/2610.41769#bib.bib1)\. MathFimer[Yan et al\. \(2026\)](https://arxiv.org/html/2610.41769#bib.bib3)expands mathematical solutions by training a fill\-in\-the\-middle model to insert intermediate steps\. Zhang et al\. synthesize reasoning traces from problems, answers, and optional summaries using a trained trace inversion model[Zhang et al\. \(2026\)](https://arxiv.org/html/2610.41769#bib.bib2)\. These studies motivate constructing detailed reasoning supervision from available outputs\. Our proposed method focuses on the querying protocol: it uses multiple teacher calls to expand individual steps and combines the resulting derivations into student training examples\.

Decomposed querying and iterative refinement\. Least\-to\-Most Prompting[Zhou et al\. \(2022\)](https://arxiv.org/html/2610.41769#bib.bib6)decomposes a problem into subproblems and solves them sequentially using previous answers\. Self\-Refine[Madaan et al\. \(2023\)](https://arxiv.org/html/2610.41769#bib.bib7)iteratively generates feedback and revises an output with the same language model\. Our protocol instead assigns a specific mathematical step to each follow\-up call, while retaining the same original problem and initial solution context\. Newly expanded steps are not passed to subsequent calls\. This distinguishes independent step expansion for distillation data construction from sequential subproblem solving and feedback\-driven revision\.

Answer\-conditioned generation and rationalization\. STaR[Zelikman et al\. \(2022\)](https://arxiv.org/html/2610.41769#bib.bib8)regenerates unsuccessful rationales with the correct answer as a hint and trains on successful generations\. Peng et al\. study post\-hoc rationalization and introduce answer\-invariant structural skeletons to guide generation[Peng et al\. \(2026\)](https://arxiv.org/html/2610.41769#bib.bib4)\. Lee et al\. show that answer\-conditioned rationales can impair distillation despite final\-answer correctness filtering, identifying instructions to rationalize toward an answer as a major source of harm[Lee et al\. \(2026\)](https://arxiv.org/html/2610.41769#bib.bib5)\. Motivated by these findings, our prompts treat initial outputs as provisional and request derivation from the problem, validity checks, complete case coverage, and correction\. Whether these instructions improve reasoning supervision and student performance remains an empirical question\.

## 3Method

### 3\.1Problem Formulation and Overview

We study reasoning distillation for problems that admit multi\-step solutions, using a black\-box teacherTTand a student modelSθS\_\{\\theta\}, whereθ\\thetadenotes the student’s trainable parameters\. The formulation applies to tasks such as mathematical reasoning, logical inference, commonsense reasoning, and multi\-hop question answering\. Access to the teacher is limited to its public text\-generation interface\. Given a problemqq, the teacher generates a candidate answera^\\hat\{a\}and an ordered list of brief reasoning stepsB=\(b1,…,bn\)B=\(b\_\{1\},\\ldots,b\_\{n\}\)\. Each step represents a coherent reasoning operation\. The initial generation is expressed as

\(a^,B\)=T⁡\(q,πbrief\),\(\\hat\{a\},B\)=T\(q;\\pi\_\{\\mathrm\{brief\}\}\),\(1\)whereπbrief\\pi\_\{\\mathrm\{brief\}\}requests a concise solution\.

Our framework consists of four stages:brief solution generation, stepwise querying, assembly and checking, and student supervised fine\-tuning\. For each stepbib\_\{i\}, a separate teacher call generates an expanded derivation:

ei=T\(q,a^,B,i;πexpand\),i=1,…,n,e\_\{i\}=T\(q,\\hat\{a\},B,i;\\pi\_\{\\mathrm\{expand\}\}\),\\qquad i=1,\\ldots,n,\(2\)whereπexpand\\pi\_\{\\mathrm\{expand\}\}requests intermediate inferences, supporting justifications, and relevant conditions\. The candidate answer and initial steps serve as provisional references\. Each query uses the same initial context, without receiving expansions generated by other calls\.

The expansions are assembled in order into a detailed solutionEEand screened using task\-appropriate criteria for step validity, consistency, and completeness\. Retained training examples take the form\(q,y\)\(q,y\), wherey=\[E;afinal\]y=\[E;a\_\{\\mathrm\{final\}\}\]concatenates the expanded reasoning and final answer\. Here,afinala\_\{\\mathrm\{final\}\}denotes the answer determined during assembly and checking, which may differ from the initial candidate answera^\\hat\{a\}\. The student learns to generateyyfrom the original problemqqalone\. This framework constructs detailed reasoning supervision from the teacher’s publicly available outputs\.

### 3\.2Stepwise Querying

#### 3\.2\.1Initial Answer and Brief Step Generation

Usingπbrief\\pi\_\{\\mathrm\{brief\}\}, we first query the teacherTTwith the original problemqqto obtain a candidate answera^\\hat\{a\}and numbered reasoning stepsB=\(b1,…,bn\)B=\(b\_\{1\},\\ldots,b\_\{n\}\)\. The prompt requests a complete answer while keeping the reasoning concise\. Each step should correspond to a substantive reasoning operation, such as drawing an inference, integrating relevant information, or considering alternative cases\. Detailed derivations and justifications are reserved for subsequent stepwise queries\.

We retain candidate answers even when they are incorrect or incomplete\. Initial processing checks only whether the response contains an identifiable candidate answer and a non\-empty, parseable sequence of reasoning steps; answer correctness is not an inclusion criterion\. Both the candidate answer and the initial steps are treated as provisional information that may contain errors or omissions\. Subsequent queries are allowed to question these outputs and propose corrections\.

Each structurally usable initial output is stored and reused unchanged as the common reference for all follow\-up queries\. Generation variants compared in our experiments also share the same initial output, allowing differences in querying protocols and prompts to be examined from a common starting point\.

#### 3\.2\.2Prompt Design for Derivation and Correction

We designπexpand\\pi\_\{\\mathrm\{expand\}\}to treat the initial answer and brief steps as provisional references\. The prompt asks the teacher to derive the target step from the problem and relevant premises, then compare the resulting conclusion with the initial solution\. The candidate answer should be used for checking the result rather than as a premise that establishes its validity\. As illustrated in Figure[2](https://arxiv.org/html/2610.41769#S3.F2), explaining the initial answer can overlook a missing solution, while independent derivation and completeness checks recover both roots\.

The prompt also requests task\-specific validity and completeness checks\. For mathematical tasks, these include domain constraints, sign restrictions, conditions for equivalent transformations, and the applicability of theorems\. For logical or evidence\-based tasks, they include premise consistency and support from the available information\. Steps involving case analysis or answer aggregation must cover all cases or components required by the problem\.

When an error or omission is detected, the teacher is instructed to identify the affected claim, explain the issue, and propose a correction\. Proposed corrections are recorded in the response for subsequent assembly and checking\. The prompt additionally requires consistent notation and terminology, a focus on the target step, and minimal repetition of other steps\.

Figure 2:Illustrative comparison of prompting strategies\. Explaining the initial answer verifiesx=3x=3but omitsx=−1x=\-1, while independent derivation and completeness checks recover both roots\.
#### 3\.2\.3Student Model Training

For each problemqq, we organize the expanded responsese1,…,ene\_\{1\},\\ldots,e\_\{n\}according to their original step indices\. Explicit correction proposals are incorporated into the affected claims after checking their validity and consistency with the remaining steps\. The final answerafinala\_\{\\mathrm\{final\}\}is taken from an accepted answer correction when available; otherwise, the initial candidatea^\\hat\{a\}is retained if it passes the final checks\. Samples with unresolved contradictions or conflicting answer corrections are excluded from the training set\. This screening is performed after expansion, allowing incorrect initial answers to contribute training examples through correction\.

We normalize the retained responses by removing query metadata, duplicate headings, and redundant final\-answer statements\. Lete~i\\tilde\{e\}\_\{i\}denote the normalized response for stepii\. The detailed solution is constructed asE=Join⁡\(e~1,…,e~n\)E=\\mathrm\{Join\}\(\\tilde\{e\}\_\{1\},\\ldots,\\tilde\{e\}\_\{n\}\), whereJoin\\mathrm\{Join\}concatenates the steps in order with consistent formatting\. We append the final answer once at the end:

y=\[E;afinal\]\.y=\[E;a\_\{\\mathrm\{final\}\}\]\.\(3\)Each training example contains the original problemqqas input andyyas the supervised output\. The initial answer, brief steps, and follow\-up dialogue serve as generation context and are not separately included in the student’s input\.

Given the resulting dataset𝒟\\mathcal\{D\}, we trainSθS\_\{\\theta\}using the standard supervised fine\-tuning objective:

ℒSFT\(θ\)=−1\|𝒟\|∑\(q,y\)∈𝒟∑t=1\|y\|logpθ\(yt∣q,y<t\),\\mathcal\{L\}\_\{\\mathrm\{SFT\}\}\(\\theta\)=\-\\frac\{1\}\{\|\\mathcal\{D\}\|\}\\sum\_\{\(q,y\)\\in\\mathcal\{D\}\}\\sum\_\{t=1\}^\{\|y\|\}\\log p\_\{\\theta\}\(y\_\{t\}\\mid q,y\_\{<t\}\),\(4\)whereyty\_\{t\}is thett\-th output token\. The loss is applied only to output tokens; input and padding tokens are masked\.

Sequence lengths are measured using the student’s tokenizer and, when applicable, its chat template\. Only examples whose complete input\-output sequences fit the training context limit are used for fine\-tuning\. Overlength examples remain in the generated data archive but are excluded from the training set, preserving complete reasoning and the final answer\.

### 3\.3Stepwise Explanation Information Gain

While Section[3\.2](https://arxiv.org/html/2610.41769#S3.SS2)specify how to construct detailed supervision from a black\-box teacher and train the student, they do not characterize how helpful different teacher explanations are at the level of individual reasoning steps\. We therefore introduce Stepwise Explanation Information Gain \(SEIG\), a diagnostic that measures the local supervisory value of stepwise explanations relative to globally generated chain\-of\-thought \(CoT\) explanations\. SEIG is not a training objective and does not alter the data\-construction or supervised fine\-tuning procedures above\. Instead, it provides an evaluation protocol that compares two explanations of the same step under a frozen student and shared local conditions\. This section defines the shared step setup, the step\-level SEIG, and its empirical estimation and aggregation\. All comparisons use only the teacher’s public explanation text, student completions, and independent verification labels, without requiring teacher logits or hidden CoT traces\.

#### 3\.3\.1Shared steps and explanation generation\.

Both methods explain the same ordered step list:

B=\(b1,b2,…,bn\)\.B=\(b\_\{1\},b\_\{2\},\\ldots,b\_\{n\}\)\.\(5\)For each samplek=1,…,Kk=1,\\ldots,K, the explanation sequences are

EkCoT\\displaystyle E\_\{k\}^\{\\mathrm\{CoT\}\}=\(e1,kCoT,…,en,kCoT\),\\displaystyle=\(e\_\{1,k\}^\{\\mathrm\{CoT\}\},\\ldots,e\_\{n,k\}^\{\\mathrm\{CoT\}\}\),\(6\)EkStep\\displaystyle E\_\{k\}^\{\\mathrm\{Step\}\}=\(e1,kStep,…,en,kStep\)\.\\displaystyle=\(e\_\{1,k\}^\{\\mathrm\{Step\}\},\\ldots,e\_\{n,k\}^\{\\mathrm\{Step\}\}\)\.Bothei,kCoTe\_\{i,k\}^\{\\mathrm\{CoT\}\}andei,kStepe\_\{i,k\}^\{\\mathrm\{Step\}\}explain the same stepbib\_\{i\}\. CoT generates each complete sequence in one teacher call, whereas Step generates its component explanations through independent step\-specific calls\. Each method therefore providesKKteacher\-generated explanations per shared step, compared using the common step indexii\.

#### 3\.3\.2Common local conditions and SEIG\.

Both conditions use the same local contextcic\_\{i\}, correct targetzi∗z\_\{i\}^\{\\ast\}, and frozen studentRϕR\_\{\\phi\}\. The local context contains the problem, shared verified preceding conclusions, and the current step task:

ci=\[q;r<i;hi\]\.c\_\{i\}=\[q;r\_\{<i\};h\_\{i\}\]\.\(7\)Applying the same target\-masking rule producese~i,kCoT\\tilde\{e\}\_\{i,k\}^\{\\mathrm\{CoT\}\}ande~i,kStep\\tilde\{e\}\_\{i,k\}^\{\\mathrm\{Step\}\}\. Each explanation is evaluated with one student completion using the common contextcic\_\{i\}\.

Let𝒢im\\mathcal\{G\}\_\{i\}^\{m\}denote the distribution of masked teacher explanations for stepbib\_\{i\}induced by methodm∈\{CoT,Step\}m\\in\\\{\\mathrm\{CoT\},\\mathrm\{Step\}\\\}under the shared initial context\. Under the fixed student decoding protocol, the success probability is

Pim=𝔼e~∼𝒢im​\[PRϕ​\(zi∗∣ci,e~\)\]\.P\_\{i\}^\{m\}=\\mathbb\{E\}\_\{\\tilde\{e\}\\sim\\mathcal\{G\}\_\{i\}^\{m\}\}\\left\[P\_\{R\_\{\\phi\}\}\(z\_\{i\}^\{\\ast\}\\mid c\_\{i\},\\tilde\{e\}\)\\right\]\.\(8\)The inner probability refers to successful completion under the shared acceptance criterion, allowing equivalent correct expressions or implementations\. Thus,PimP\_\{i\}^\{m\}averages the student’s success probability over the teacher\-explanation distribution for that method\. The step\-level SEIG is

SEIGi=log2⁡PiStepPiCoT\.\\operatorname\{SEIG\}\_\{i\}=\\log\_\{2\}\\frac\{P\_\{i\}^\{\\mathrm\{Step\}\}\}\{P\_\{i\}^\{\\mathrm\{CoT\}\}\}\.\(9\)A positive value indicates that Step explanations are more helpful for correct step completion than the corresponding CoT explanations\. For empirical measurement, each of theKKteacher trajectories is evaluated with one student completion, and the two probabilities are estimated using the same success\-counting and smoothing procedure\.

#### 3\.3\.3Aggregation\.

For problemqqwithnqn\_\{q\}shared steps, we first average across steps and then across theNNproblems in the analysis set𝒬\\mathcal\{Q\}:

SEIG⁡\(q\)\\displaystyle\\operatorname\{SEIG\}\(q\)=1nq​∑i=1nqSEIGi,\\displaystyle=\\frac\{1\}\{n\_\{q\}\}\\sum\_\{i=1\}^\{n\_\{q\}\}\\operatorname\{SEIG\}\_\{i\},\(10\)SEIG¯\\displaystyle\\overline\{\\operatorname\{SEIG\}\}=1N​∑q∈𝒬SEIG⁡\(q\)\.\\displaystyle=\\frac\{1\}\{N\}\\sum\_\{q\\in\\mathcal\{Q\}\}\\operatorname\{SEIG\}\(q\)\.This assigns equal weight to each problem\. The same aggregation is applied to empirical SEIG estimates\.

#### 3\.3\.4Probability Estimation over Sampled Teacher Trajectories\.

For each shared stepbib\_\{i\}, both CoT and Step sampleKKteacher\-generated reasoning trajectories\. Letei,kme\_\{i,k\}^\{m\}denote the explanation of stepbib\_\{i\}from thekk\-th trajectory under methodm∈\{CoT,Step\}m\\in\\\{\\mathrm\{CoT\},\\mathrm\{Step\}\\\}\. For CoT, this explanation is taken from the corresponding step within a globally generated trajectory; for Step, it is generated by a query targeting that step\. We apply the same masking rule to remove direct statements of the target conclusion and answer leakage, obtaininge~i,km\\tilde\{e\}\_\{i,k\}^\{m\}\.

Each explanation is evaluated using the same frozen studentRϕR\_\{\\phi\}and shared local contextcic\_\{i\}, which contains the problem, verified preceding conclusions, and the current step task\. The student inputs are

xi,kCoT\\displaystyle x\_\{i,k\}^\{\\mathrm\{CoT\}\}=\[ci;e~i,kCoT\],\\displaystyle=\[c\_\{i\};\\tilde\{e\}\_\{i,k\}^\{\\mathrm\{CoT\}\}\],\(11\)xi,kStep\\displaystyle x\_\{i,k\}^\{\\mathrm\{Step\}\}=\[ci;e~i,kStep\],\\displaystyle=\[c\_\{i\};\\tilde\{e\}\_\{i,k\}^\{\\mathrm\{Step\}\}\],wherek=1,…,Kk=1,\\ldots,K\. The two conditions share the same step task and correct targetzi∗z\_\{i\}^\{\\ast\}, which is not supplied to the student\. We generate exactly one student completion for each sampled teacher trajectory:

zi,km∼Rϕ\(⋅∣xi,km\),k=1,…,K\.z\_\{i,k\}^\{m\}\\sim R\_\{\\phi\}\(\\cdot\\mid x\_\{i,k\}^\{m\}\),\\qquad k=1,\\ldots,K\.\(12\)Thus,KKcounts teacher trajectories; theKKstudent completions result from evaluating those trajectories individually\. The student checkpoint, output instructions, temperature, top\-pp, and maximum generation length are identical across the two conditions\.

An independent verifierViV\_\{i\}evaluates each completion against the same predefined requirements associated withzi∗z\_\{i\}^\{\\ast\}:

Vi​\(z\)=\{1,ifzsatisfies the requirements of stepbi,0,otherwise\.V\_\{i\}\(z\)=\\begin\{cases\}1,&\\text\{if $z$ satisfies the requirements of step $b\_\{i\}$\},\\\\ 0,&\\text\{otherwise\}\.\\end\{cases\}\(13\)Equivalent correct expressions or implementations are accepted\. Outputs with unresolved correctness are reviewed before binary labels are assigned\. The number of successful trajectory–completion pairs is

kim=∑k=1KVi​\(zi,km\)\.k\_\{i\}^\{m\}=\\sum\_\{k=1\}^\{K\}V\_\{i\}\(z\_\{i,k\}^\{m\}\)\.\(14\)
Here,PimP\_\{i\}^\{m\}denotes the probability of correct step completion under the teacher\-explanation distribution induced by methodmmand the fixed student decoding protocol\. Its empirical estimate iskim/Kk\_\{i\}^\{m\}/K\. To avoid undefined or infinite logarithmic ratios when no successful completions are observed, we use

P^im=kim\+0\.5K\+1\.\\widehat\{P\}\_\{i\}^\{m\}=\\frac\{k\_\{i\}^\{m\}\+0\.5\}\{K\+1\}\.\(15\)The empirical step\-level SEIG is then

SEIG^i=log2⁡P^iStepP^iCoT\.\\widehat\{\\operatorname\{SEIG\}\}\_\{i\}=\\log\_\{2\}\\frac\{\\widehat\{P\}\_\{i\}^\{\\mathrm\{Step\}\}\}\{\\widehat\{P\}\_\{i\}^\{\\mathrm\{CoT\}\}\}\.\(16\)A positive value indicates that stepwise explanations yield a higher probability of correct step completion than the corresponding CoT explanations under the shared evaluation conditions and equal numbers of sampled teacher trajectories\. The protocol uses teacher explanation text, student completions, and independent verification labels, without requiring teacher logits\.

## 4Experiments

### 4\.1Experimental Setup

#### 4\.1\.1Teacher Models

##### DeepSeek\-V4\-Pro\.

DeepSeek\-V4\-Pro is a mixture\-of\-experts model in the DeepSeek\-V4 family, designed for reasoning, coding, and efficient long\-context processing\([DeepSeek\-AI et al\., 2026](https://arxiv.org/html/2610.41769#bib.bib10)\)\. We use it to generate initial brief solutions and subsequent solution expansions\.

##### GLM\-5\.2\.

GLM\-5\.2 is a model designed for long\-horizon tasks, with support for a one\-million\-token context and coding\-oriented capabilities\([GLM\-5\-Team et al\., 2026](https://arxiv.org/html/2610.41769#bib.bib11)\)\. Following the citation recommendation in its official model card, we cite the GLM\-5 technical report for the model family\([GLM\-5\-Team et al\., 2026](https://arxiv.org/html/2610.41769#bib.bib11)\)and the GLM\-5\.2 model card for version\-specific information\.

Both teachers are accessed as black\-box text generators: the distillation protocol uses their public solution text without requiring model weights, logits, or access to hidden reasoning\. Each teacher is evaluated separately under the same generation protocols\. Teacher endpoint versions, query dates, reasoning settings, and sampling configurations are recorded for reproducibility\.

#### 4\.1\.2Student Models

##### Qwen2\.5\-7B\-Instruct\.

Qwen2\.5\-7B\-Instruct is the instruction\-tuned 7B\-scale member of the Qwen2\.5 family, which supports general language understanding, mathematical reasoning, and coding\([Qwen et al\., 2025](https://arxiv.org/html/2610.41769#bib.bib9)\)\. We use its released instruction\-tuned checkpoint as one student initialization\.

##### Llama\-3\.1\-8B\-Instruct\.

Llama\-3\.1\-8B\-Instruct is Meta’s instruction\-tuned 8B model, belonging to the multilingual Llama 3 family described in[Grattafiori et al\. \(2024\)](https://arxiv.org/html/2610.41769#bib.bib16)\. It provides a second student family for examining whether the effects of stepwise querying transfer across model families\.

Each student is fine\-tuned with standard supervised learning, using only the original problem as input and the synthesized detailed solution and final supervision answer as the target\. Within each student family, all data\-generation conditions share the same initial checkpoint and training recipe\.

#### 4\.1\.3Evaluation Datasets

We evaluate mathematical reasoning on GSM8K and MATH\-500, and code generation on HumanEval and LiveCodeBench\.

##### GSM8K\.

GSM8K contains linguistically diverse grade\-school mathematics word problems requiring multiple arithmetic reasoning steps[Cobbe et al\. \(2021\)](https://arxiv.org/html/2610.41769#bib.bib17)\. We use its official test split to evaluate students’ ability to solve mathematical word problems\.

##### MATH\-500\.

MATH\-500 is a 500\-problem evaluation subset of the competition\-level MATH benchmark[Hendrycks et al\. \(2021\)](https://arxiv.org/html/2610.41769#bib.bib18)\. It follows the held\-out subset used in[Lightman et al\. \(2024\)](https://arxiv.org/html/2610.41769#bib.bib20)and evaluates mathematical problem solving beyond elementary arithmetic\.

##### HumanEval\.

HumanEval contains 164 hand\-written Python programming tasks that require completing a function from its signature and docstring\([Chen et al\., 2021](https://arxiv.org/html/2610.41769#bib.bib19)\)\. We evaluate the functional correctness of generated programs using the benchmark’s original execution tests\.

##### LiveCodeBench\.

LiveCodeBench continuously collects new programming contest problems from LeetCode, AtCoder, and Codeforces and provides problem release dates for time\-based evaluation\([Jain et al\., 2025](https://arxiv.org/html/2610.41769#bib.bib13)\)\. We use its code\-generation scenario and report the benchmark release and problem release\-date window used in our evaluation\.

These datasets serve as evaluation benchmarks\. Their evaluation problems, reference solutions, and near\-duplicate variants are excluded from the distillation training data\. We report final\-answer accuracy for mathematics and pass@1 on the augmented test suites for code generation\.

#### 4\.1\.4Baselines

We compare our method with the following state\-of\-the\-art approaches\.

##### Trace Inversion\.

Trace Inversion trains an inversion model to reconstruct detailed reasoning from questions, answers, and optional reasoning summaries\([Zhang et al\., 2026](https://arxiv.org/html/2610.41769#bib.bib2)\)\. The reconstructed reasoning is subsequently used to fine\-tune a student model, providing a comparison for acquiring distillation supervision from black\-box teacher outputs\.

##### Answer\-Conditioned CoT\.

Answer\-Conditioned CoT examines how answer conditioning affects reasoning distillation\([Lee et al\., 2026](https://arxiv.org/html/2610.41769#bib.bib5)\)\. It compares question\-only generation \(Blind CoT\) with generation conditioned on a gold answer or a reference implementation \(Leaked CoT\)\. Both conditions apply the same correctness filter and use matched training problems and an identical SFT recipe\.

##### GLOW\.

GLOW \(Gain\-based Loss Weighting\) uses a mixture of reasoning trajectories with correct and incorrect final answers and adjusts sample loss weights according to their loss reductions across epochs\([Xueyun et al\., 2026](https://arxiv.org/html/2610.41769#bib.bib12)\)\. It provides a comparison for the student\-training strategy\.

Trace Inversion and Answer\-Conditioned CoT concern the construction of reasoning supervision, while GLOW modifies the weighting of the student\-training loss\.

### 4\.2Results and Analysis

#### 4\.2\.1Experimental Results

Table[1](https://arxiv.org/html/2610.41769#S4.T1)compares our method with Trace Inversion, Answer\-Conditioned CoT, and GLOW\. Ours achieves the highest reported score in 14 of the 16 student–teacher–benchmark combinations\. With GLM\-5\.2, Ours ranks first on all four benchmarks for both students\. With DeepSeek\-V4\-Pro, two exceptions occur: GLOW scores higher on LiveCodeBench for Qwen2\.5\-7B\-Instruct \(40\.5 versus 40\.1\), and Trace Inversion scores higher on GSM8K for Llama\-3\.1\-8B\-Instruct \(90\.4 versus 90\.1\)\.

Table 1:Comparison with the three published baselines across two students, two teachers, and four benchmarks\. Mathematics scores are accuracy \(%\), and code\-generation scores are pass@1 \(%\)\. Higher is better\. The best score within each student–teacher–benchmark combination is shown in bold\.Table[2](https://arxiv.org/html/2610.41769#S4.T2)compares Ours with the undistilled checkpoints and the two teacher\-supervision settings\. Ours obtains a higher reported score than these settings in all 16 student–teacher–benchmark combinations\. Relative to the undistilled checkpoints, the absolute gains range from 3\.7 to 16\.3 percentage points\.

Table 2:Comparison of supervision settings\. Metrics and units follow Table[1](https://arxiv.org/html/2610.41769#S4.T1)\. Undistilled denotes the original student checkpoint and is reported once per student because it is independent of the teacher\. Best scores in each teacher\-specific comparison, including the undistilled reference, are shown in bold\.During our experiments, we observed that teacher\-generated reasoning trajectories can contain errors\. In our evaluated settings, students fine\-tuned on unfiltered distillation data outperformed those trained only on trajectories with correct final answers\. This observation is consistent with prior evidence that final\-answer correctness alone does not fully determine the usefulness of reasoning supervision\.[Xueyun et al\. \(2026\)](https://arxiv.org/html/2610.41769#bib.bib12)show that incorporating trajectories labeled as incorrect can improve out\-of\-domain generalization over positive\-only supervised fine\-tuning, as such trajectories may still contain valid intermediate reasoning\.[Li et al\. \(2025\)](https://arxiv.org/html/2610.41769#bib.bib14)find that demonstrations with incorrect answers remain effective for learning long\-chain\-of\-thought reasoning, whereas shuffling or deleting steps causes greater performance degradation\. Similarly,[Lippmann and Yang \(2025\)](https://arxiv.org/html/2610.41769#bib.bib15)report improvements over base models when synthetic reasoning traces preserve stylistic patterns but lead to incorrect final answers, although their correct\-answer counterparts perform better\. Together, these findings suggest that traces with incorrect final answers can still provide useful intermediate supervision and preserve reasoning structure\. To examine this local supervisory value, we introduceStepwise Explanation Information Gain \(SEIG\), which measures the log\-ratio of a frozen student’s estimated probabilities of generating a correct step conclusion under a stepwise explanation and the corresponding explanation from a globally generated CoT\. Both conditions use the same problem, verified premises, and step task, with direct leakage of the target conclusion removed\. A positive SEIG indicates that the stepwise explanation is more helpful for correct step completion, which may hold even when the full trajectory ends with an incorrect answer\. SEIG therefore provides a diagnostic for useful local supervision within imperfect trajectories; its relationship to downstream fine\-tuning gains requires separate empirical validation\.

#### 4\.2\.2Diagnostic Analysis with SEIG

##### Value of Incorrect\-Answer Trajectories\.

To assess the rationale behind SEIG, we fine\-tune four student models using the training\-data configurations defined in Figure[3](https://arxiv.org/html/2610.41769#S4.F3)and evaluate them on GSM8K\.*Step \+ Valid\-Negative*achieves the highest accuracy across all four students, outperforming*Step\+None\-Negative*by 0\.6–1\.5 percentage points\.*Step \+ Corrupted\-Negative*, however, reduces accuracy relative to*Step\+None\-Negative*for every student\. These results suggest that trajectories with incorrect final answers can still provide useful supervision when they preserve substantial valid intermediate reasoning, supporting SEIG’s focus on local supervisory value beyond final\-answer correctness\.

Figure 3:GSM8K accuracy \(%\) after SFT under four training\-data configurations\. COT\+None\-negative and Step\+None\-Negative use conventional CoT and our stepwise trajectories, respectively, retaining only those with correct final answers\. Step \+ Valid\-Negative and Step \+ Corrupted\-Negative mix correct\-answer stepwise trajectories with incorrect\-answer trajectories containing many and few valid intermediate steps, respectively\.
##### SEIG across Teachers, Students, and Tasks\.

WithK=16K=16teacher\-generated reasoning trajectories per step for each of CoT and Step, Figure[4](https://arxiv.org/html/2610.41769#S4.F4)shows positive mean SEIG in 25 of the 32 evaluated teacher–student–dataset combinations\. Although five combinations exhibit negative means, their absolute magnitudes are modest, ranging from 0\.01 to 0\.06, whereas positive gains reach 0\.31 bits\. Gains are particularly consistent on MATH\-500, where all eight combinations yield positive values ranging from 0\.10 to 0\.22 bits\. Overall, this predominantly positive pattern supports the advantage of our stepwise method for local step completion across the evaluated teachers, students, and tasks, despite modest negative values in a limited number of settings\.

Figure 4:Mean SEIG \(bits\) of stepwise explanations relative to global CoT explanations\. Panels \(a\) and \(b\) correspond to DeepSeek\-V4\-Pro and GLM\-5\.2, respectively; rows represent student checkpoints and columns represent datasets\. For each shared step, CoT and Step each sampleK=16K=16teacher\-generated reasoning trajectories, whose local utility is evaluated using the same frozen student checkpoint and common local conditions\. Positive values \(blue\) favor stepwise explanations, whereas negative values \(red\) favor global CoT explanations\.
##### Sensitivity to the Teacher Sampling Budget\.

Figure[5](https://arxiv.org/html/2610.41769#S4.F5)examines mean SEIG across teacher sampling budgetsK∈\{16,20,24,28,32\}K\\in\\\{16,20,24,28,32\\\}\. Positive mean SEIG is observed in 25 of the 32 teacher–student–dataset combinations atK=16K=16and in all 32 combinations forK≥24K\\geq 24\. AsKKincreases, initially negative estimates become positive, while some large initial estimates decrease and other curves exhibit modest fluctuations\. These variations show that increasing the teacher sampling budget does not uniformly increase SEIG\.

Figure 5:Mean SEIG \(bits\) across teacher sampling budgetsK∈\{16,20,24,28,32\}K\\in\\\{16,20,24,28,32\\\}\. Rows correspond to DeepSeek\-V4\-Pro and GLM\-5\.2, columns represent datasets, and curves represent student checkpoints\. For each step, both CoT and Step sampleKKteacher\-generated reasoning trajectories, whose local utility is evaluated using the same frozen student checkpoint and common local conditions\. SEIG compares the two methods under the same teacher sampling budget\.
##### Diminishing Returns from Recursive Decomposition\.

Having established the utility of Step, we investigate whether an additional round of decomposition into Sub\-step explanations provides further information gain\. On GSM8K, Figure[6](https://arxiv.org/html/2610.41769#S4.F6)shows that Sub\-step closely tracks Step relative to the same CoT baseline across both teachers, all four students, and the tested teacher sampling budgets\. Figure[7](https://arxiv.org/html/2610.41769#S4.F7)further shows that the incremental SEIG remains small, with occasional slightly negative values and no consistent increase withKK\. These observations suggest diminishing returns from recursive decomposition, with most of the gains already captured at the Step level in these settings\.

One possible explanation is that further refinement is constrained by the evaluated teachers’ ability to generate additional useful intermediate reasoning: finer decomposition may introduce redundant detail, yielding little additional information for the student\.

Figure 6:Mean SEIG \(bits\) of Step and Sub\-step relative to the same CoT baseline on GSM8K\. Sub\-step applies one additional round of decomposition to Step explanations\. Rows correspond to teachers and columns to student checkpoints\. For each evaluated parent step, each configuration samplesK∈\{16,20,24,28,32\}K\\in\\\{16,20,24,28,32\\\}teacher\-generated reasoning trajectories; comparisons use the same frozen student checkpoint and common local evaluation conditions\.Figure 7:Incremental SEIG \(bits\) from further decomposition on GSM8K, computed as the mean SEIG of Sub\-step versus CoT minus that of Step versus CoT under the same evaluation conditions and teacher sampling budgetKK\. Panels correspond to teachers and curves to student checkpoints\. The dotted horizontal line marks zero incremental gain; positive and negative values indicate that Sub\-step yields higher and lower mean SEIG than Step, respectively\.

## 5Conclusion

We presented Stepwise\-Querying, a distillation framework that constructs detailed reasoning supervision from a black\-box teacher without access to its internal chain\-of\-thought traces\. Starting from a brief candidate solution, our protocol issues independent, step\-specific queries whose prompts ask the teacher to derive each step from the problem, check validity and completeness, and propose corrections, treating the initial answer as provisional rather than as a premise\. The assembled solutions are then used for standard supervised fine\-tuning\. Across two teachers, two students, and four mathematics and code benchmarks, our method achieves the highest score in 14 of 16 comparisons against three published baselines and consistently outperforms global CoT and answer\-explanation supervision under identical training recipes\. We further introduced Stepwise Explanation Information Gain \(SEIG\), a diagnostic that measures, under a frozen student and shared local conditions, the log\-ratio of correct step\-completion probabilities between stepwise and global CoT explanations, requiring only public explanation text and independent verification labels\. SEIG analyses yield two findings: trajectories with incorrect final answers remain useful when they preserve valid intermediate reasoning, and recursive decomposition beyond the step level yields diminishing returns\. Together, these results suggest that the locality and validity of intermediate supervision—rather than final\-answer correctness alone—is a key driver of distillation quality\. Future work includes validating the relationship between SEIG and downstream fine\-tuning gains, extending the protocol to logical inference and multi\-hop question answering, and reducing the number of teacher calls required per problem, for example by adaptively selecting which steps to expand\.

## References

- Chenet al\.\(2021\)M\. Chen, J\. Tworek, H\. Jun, Q\. Yuan, H\. P\. D\. O\. Pinto, J\. Kaplan, H\. Edwards, Y\. Burda, N\. Joseph, G\. Brockman,et al\.Evaluating large language models trained on code\.arXiv preprint arXiv:2107\.03374\.Cited by:[§4\.1\.3](https://arxiv.org/html/2610.41769#S4.SS1.SSS3.Px3.p1.1)\.
- Cobbeet al\.\(2021\)K\. Cobbe, V\. Kosaraju, M\. Bavarian, M\. Chen, H\. Jun, L\. Kaiser, M\. Plappert, J\. Tworek, J\. Hilton, R\. Nakano,et al\.Training verifiers to solve math word problems\.arXiv preprint arXiv:2110\.14168\.Cited by:[§4\.1\.3](https://arxiv.org/html/2610.41769#S4.SS1.SSS3.Px1.p1.1)\.
- DeepSeek\-AIet al\.\(2026\)A\. X\. DeepSeek\-AI, B\. Lin, B\. Xue, B\. Wang,et al\.Deepseek\-v4: towards highly efficient million\-token context intelligence\.https://huggingface\. co/deepseek\-ai/DeepSeek\-V4\-Pro/blob/main/DeepSeek\_V4\. pdf\.Cited by:[§4\.1\.1](https://arxiv.org/html/2610.41769#S4.SS1.SSS1.Px1.p1.1)\.
- GLM\-5\-Teamet al\.\(2026\)GLM\-5\-Team, :, A\. Zeng, X\. Lv, Z\. Hou, Z\. Du, Q\. Zheng, B\. Chen, D\. Yin, C\. Ge, C\. Huang, C\. Xie, C\. Zhu, C\. Yin, C\. Wang, G\. Pan, H\. Zeng, H\. Zhang, H\. Wang, H\. Chen, J\. Zhang, J\. Jiao, J\. Guo, J\. Wang, J\. Du, J\. Wu, K\. Wang, L\. Li, L\. Fan, L\. Zhong, M\. Liu, M\. Zhao, P\. Du, Q\. Dong, R\. Lu, Shuang\-Li, S\. Cao, S\. Liu, T\. Jiang, X\. Chen, X\. Zhang, X\. Huang, X\. Dong, Y\. Xu, Y\. Wei, Y\. An, Y\. Niu, Y\. Zhu, Y\. Wen, Y\. Cen, Y\. Bai, Z\. Qiao, Z\. Wang, Z\. Wang, Z\. Zhu, Z\. Liu, Z\. Li, B\. Wang, B\. Wen, C\. Huang, C\. Cai, C\. Yu, C\. Li, C\. Hu, C\. Zhang, D\. Zhang, D\. Lin, D\. Yang, D\. Wang, D\. Ai, E\. Zhu, F\. Yi, F\. Chen, G\. Wen, H\. Sun, H\. Zhao, H\. Hu, H\. Zhang, H\. Liu, H\. Zhang, H\. Peng, H\. Tai, H\. Zhang, H\. Liu, H\. Wang, H\. Yan, H\. Ge, H\. Liu, H\. Chu, J\. Zhao, J\. Wang, J\. Zhao, J\. Ren, J\. Wang, J\. Zhang, J\. Gui, J\. Zhao, J\. Li, J\. An, J\. Li, J\. Yuan, J\. Du, J\. Liu, J\. Zhi, J\. Duan, K\. Zhou, K\. Wei, K\. Wang, K\. Luo, L\. Zhang, L\. Sha, L\. Xu, L\. Wu, L\. Ding, L\. Chen, M\. Li, N\. Lin, P\. Ta, Q\. Zou, R\. Song, R\. Yang, S\. Tu, S\. Yang, S\. Wu, S\. Zhang, S\. Li, S\. Li, S\. Fan, W\. Qin, W\. Tian, W\. Zhang, W\. Yu, W\. Liang, X\. Kuang, X\. Cheng, X\. Li, X\. Yan, X\. Hu, X\. Ling, X\. Fan, X\. Xia, X\. Zhang, X\. Zhang, X\. Pan, X\. Zou, X\. Zhang, Y\. Liu, Y\. Wu, Y\. Li, Y\. Wang, Y\. Zhu, Y\. Tan, Y\. Zhou, Y\. Pan, Y\. Zhang, Y\. Su, Y\. Geng, Y\. Yan, Y\. Tan, Y\. Bi, Y\. Shen, Y\. Yang, Y\. Li, Y\. Liu, Y\. Wang, Y\. Li, Y\. Wu, Y\. Zhang, Y\. Duan, Y\. Zhang, Z\. Liu, Z\. Jiang, Z\. Yan, Z\. Zhang, Z\. Wei, Z\. Chen, Z\. Feng, Z\. Yao, Z\. Chai, Z\. Wang, Z\. Zhang, B\. Xu, M\. Huang, H\. Wang, J\. Li, Y\. Dong, and J\. TangGLM\-5: from vibe coding to agentic engineering\.External Links:2602\.15763,[Link](https://arxiv.org/abs/2602.15763)Cited by:[§4\.1\.1](https://arxiv.org/html/2610.41769#S4.SS1.SSS1.Px2.p1.1)\.
- Grattafioriet al\.\(2024\)A\. Grattafiori, A\. Dubey, A\. Jauhri, A\. Pandey, A\. Kadian, A\. Al\-Dahle, A\. Letman, A\. Mathur, A\. Schelten, A\. Vaughan,et al\.The llama 3 herd of models\.arXiv preprint arXiv:2407\.21783\.Cited by:[§4\.1\.2](https://arxiv.org/html/2610.41769#S4.SS1.SSS2.Px2.p1.1)\.
- Hendryckset al\.\(2021\)D\. Hendrycks, C\. Burns, S\. Kadavath, A\. Arora, S\. Basart, E\. Tang, D\. Song, and J\. SteinhardtMeasuring mathematical problem solving with the math dataset\.arXiv preprint arXiv:2103\.03874\.Cited by:[§4\.1\.3](https://arxiv.org/html/2610.41769#S4.SS1.SSS3.Px2.p1.1)\.
- Jainet al\.\(2025\)N\. Jain, K\. Han, A\. Gu, W\. Li, F\. Yan, T\. Zhang, S\. Wang, A\. Solar\-Lezama, K\. Sen, and I\. StoicaLiveCodeBench: holistic and contamination free evaluation of large language models for code\.InInternational Conference on Learning Representations,External Links:[Link](https://proceedings.iclr.cc/paper_files/paper/2025/hash/94074dd5a072d28ff75a76dabed43767-Abstract-Conference.html)Cited by:[§4\.1\.3](https://arxiv.org/html/2610.41769#S4.SS1.SSS3.Px4.p1.1)\.
- Leeet al\.\(2026\)J\. Lee, S\. Lee, S\. Son, D\. J\. Lee, S\. Han, S\. Eo, and H\. LimAnswer\-conditioned chains of thought degrade verifiable\-reasoning distillation in large language models\.Note:arXiv preprint arXiv:2607\.14552Version 1, submitted 16 July 2026External Links:2607\.14552,[Document](https://dx.doi.org/10.48550/arXiv.2607.14552),[Link](https://arxiv.org/abs/2607.14552v1)Cited by:[§1](https://arxiv.org/html/2610.41769#S1.p2.1),[§2](https://arxiv.org/html/2610.41769#S2.p3.1),[§4\.1\.4](https://arxiv.org/html/2610.41769#S4.SS1.SSS4.Px2.p1.1)\.
- Liet al\.\(2025\)D\. Li, S\. Cao, T\. Griggs, S\. Liu, X\. Mo, E\. Tang, S\. Hegde, K\. Hakhamaneshi, S\. G\. Patil, M\. Zaharia, J\. E\. Gonzalez, and I\. StoicaLLMs can easily learn to reason from demonstrations: structure, not content, is what matters\!\.External Links:2502\.07374,[Document](https://dx.doi.org/10.48550/arXiv.2502.07374),[Link](https://arxiv.org/abs/2502.07374)Cited by:[§4\.2\.1](https://arxiv.org/html/2610.41769#S4.SS2.SSS1.p3.1)\.
- Lightmanet al\.\(2024\)H\. Lightman, V\. Kosaraju, Y\. Burda, H\. Edwards, B\. Baker, T\. Lee, J\. Leike, J\. Schulman, I\. Sutskever, and K\. CobbeLet’s verify step by step\.InInternational Conference on Learning Representations,Vol\.2024,pp\. 39578–39601\.Cited by:[§4\.1\.3](https://arxiv.org/html/2610.41769#S4.SS1.SSS3.Px2.p1.1)\.
- Lippmann and Yang \(2025\)P\. Lippmann and J\. YangStyle over substance: distilled language models reason via stylistic replication\.InSecond Conference on Language Modeling,External Links:[Link](https://openreview.net/forum?id=5wAfbEs34A),2504\.01738Cited by:[§4\.2\.1](https://arxiv.org/html/2610.41769#S4.SS2.SSS1.p3.1)\.
- Madaanet al\.\(2023\)A\. Madaan, N\. Tandon, P\. Gupta, S\. Hallinan, L\. Gao, S\. Wiegreffe, U\. Alon, N\. Dziri, S\. Prabhumoye, Y\. Yang, S\. Gupta, B\. P\. Majumder, K\. Hermann, S\. Welleck, A\. Yazdanbakhsh, and P\. ClarkSelf\-Refine: iterative refinement with self\-feedback\.InAdvances in Neural Information Processing Systems,Vol\.36\.External Links:[Link](https://proceedings.neurips.cc/paper_files/paper/2023/hash/91edff07232fb1b55a505a9e9f6c0ff3-Abstract-Conference.html)Cited by:[§2](https://arxiv.org/html/2610.41769#S2.p2.1)\.
- Magisteret al\.\(2023\)L\. C\. Magister, J\. Mallinson, J\. Adamek, E\. Malmi, and A\. SeverynTeaching small language models to reason\.InProceedings of the 61st Annual Meeting of the Association for Computational Linguistics \(Volume 2: Short Papers\),pp\. 1773–1781\.External Links:[Document](https://dx.doi.org/10.18653/v1/2023.acl-short.151),[Link](https://aclanthology.org/2023.acl-short.151/)Cited by:[§1](https://arxiv.org/html/2610.41769#S1.p1.1),[§2](https://arxiv.org/html/2610.41769#S2.p1.1)\.
- Penget al\.\(2026\)G\. Peng, Z\. Chen, W\. Luo, Y\. Wen, W\. Li, R\. Feng, R\. Le, C\. Yang, Z\. An, Y\. Song, T\. Zhang, and H\. WangMeasuring and mitigating post\-hoc rationalization in reverse chain\-of\-thought generation\.InProceedings of the 43rd International Conference on Machine Learning,Proceedings of Machine Learning Research, Vol\.306,pp\. 97912–97939\.External Links:[Link](https://proceedings.mlr.press/v306/peng26b.html)Cited by:[§1](https://arxiv.org/html/2610.41769#S1.p2.1),[§2](https://arxiv.org/html/2610.41769#S2.p3.1)\.
- Qwenet al\.\(2025\)Qwen, :, A\. Yang, B\. Yang, B\. Zhang, B\. Hui, B\. Zheng, B\. Yu, C\. Li, D\. Liu, F\. Huang, H\. Wei, H\. Lin, J\. Yang, J\. Tu, J\. Zhang, J\. Yang, J\. Yang, J\. Zhou, J\. Lin, K\. Dang, K\. Lu, K\. Bao, K\. Yang, L\. Yu, M\. Li, M\. Xue, P\. Zhang, Q\. Zhu, R\. Men, R\. Lin, T\. Li, T\. Tang, T\. Xia, X\. Ren, X\. Ren, Y\. Fan, Y\. Su, Y\. Zhang, Y\. Wan, Y\. Liu, Z\. Cui, Z\. Zhang, and Z\. QiuQwen2\.5 technical report\.External Links:2412\.15115,[Link](https://arxiv.org/abs/2412.15115)Cited by:[§4\.1\.2](https://arxiv.org/html/2610.41769#S4.SS1.SSS2.Px1.p1.1)\.
- Xueyunet al\.\(2026\)T\. Xueyun, M\. Ma, B\. Xu, N\. Lyu, W\. Li, H\. Dong, Z\. Chu, Y\. Wang, and H\. ShenLearning from mistakes: negative reasoning samples enhance out\-of\-domain generalization\.InProceedings of the 64th Annual Meeting of the Association for Computational Linguistics \(Volume 1: Long Papers\),pp\. 29689–29711\.External Links:[Document](https://dx.doi.org/10.18653/v1/2026.acl-long.1370),[Link](https://aclanthology.org/2026.acl-long.1370/)Cited by:[§4\.1\.4](https://arxiv.org/html/2610.41769#S4.SS1.SSS4.Px3.p1.1),[§4\.2\.1](https://arxiv.org/html/2610.41769#S4.SS2.SSS1.p3.1)\.
- Yanet al\.\(2026\)Y\. Yan, Y\. Shen, Y\. Liu, J\. Jiang, X\. Xu, M\. Zhang, J\. Shao, and Y\. ZhuangMathfimer: enhancing mathematical reasoning by expanding reasoning steps through fill\-in\-the\-middle task\.InInternational Conference on Learning Representations,Vol\.2026,pp\. 109724–109746\.Cited by:[§1](https://arxiv.org/html/2610.41769#S1.p1.1),[§2](https://arxiv.org/html/2610.41769#S2.p1.1)\.
- Zelikmanet al\.\(2022\)E\. Zelikman, Y\. Wu, J\. Mu, and N\. GoodmanStar: bootstrapping reasoning with reasoning\.Advances in Neural Information Processing Systems35,pp\. 15476–15488\.Cited by:[§2](https://arxiv.org/html/2610.41769#S2.p3.1)\.
- Zhanget al\.\(2026\)T\. Zhang, J\. X\. Morris, and V\. ShmatikovHow to steal reasoning without reasoning traces\.Note:arXiv preprint arXiv:2603\.07267Version 2, revised 12 May 2026External Links:2603\.07267,[Document](https://dx.doi.org/10.48550/arXiv.2603.07267),[Link](https://arxiv.org/abs/2603.07267v2)Cited by:[§1](https://arxiv.org/html/2610.41769#S1.p1.1),[§2](https://arxiv.org/html/2610.41769#S2.p1.1),[§4\.1\.4](https://arxiv.org/html/2610.41769#S4.SS1.SSS4.Px1.p1.1)\.
- Zhouet al\.\(2022\)D\. Zhou, N\. Schärli, L\. Hou, J\. Wei, N\. Scales, X\. Wang, D\. Schuurmans, C\. Cui, O\. Bousquet, Q\. Le,et al\.Least\-to\-most prompting enables complex reasoning in large language models, 2023\.URL https://arxiv\. org/abs/2205\.10625\.Cited by:[§2](https://arxiv.org/html/2610.41769#S2.p2.1)\.

## Appendix AAppendix

We select one example each from MATH\-500 and LiveCodeBench to illustrate our method in Figures[8](https://arxiv.org/html/2610.41769#A1.F8)and[9](https://arxiv.org/html/2610.41769#A1.F9), respectively\. For clarity, only the key steps are shown\. These examples suggest that our method provides more informative explanations at critical steps without relying on the model’s internal chain\-of\-thought traces\.

Figure 8:The figure compares the model’s chain of thought with the stepwise explanations generated by our method for a mathematical problem\.Figure 9:The figure compares the model’s chain of thought with the stepwise explanations generated by our method for a code problem\.

Similar Articles

Improving Reasoning Capabilities in Small Models through Mixture-of-Layers Distillation with Stepwise Attention on Key Information

arXiv cs.CL

This paper proposes a novel Chain-of-Thought distillation framework that transfers teacher models' stepwise attention on key information to student models through a Mixture-of-Layers module for dynamic layer alignment. The method achieves consistent performance improvements on mathematical and commonsense reasoning benchmarks by explicitly guiding student models to progressively focus on critical information during reasoning.

Knowledge Distillation from Large Reasoning Models to Compact Student Models: A Case Study on the John O Bryan Mathematics Competition

arXiv cs.LG

This paper investigates knowledge distillation from the DeepSeek-R1 reasoning model to a compact Qwen2.5-7B student model using a Chain-of-Thought corpus built from John O'Bryan Mathematics Competition problems. The fine-tuned student achieves a 4.76 percentage-point improvement on the competition dataset and generalizes to MATH-500, while also analyzing the impact of response length on reasoning quality.

Diagnosing Multi-step Reasoning Failures in Black-box LLMs via Stepwise Confidence Attribution

arXiv cs.CL

Introduces Stepwise Confidence Attribution (SCA), a framework for assigning step-level confidence to reasoning traces from black-box LLMs without internal access, using the Information Bottleneck principle to distinguish legitimate variability from errors. Experiments show SCA reliably identifies low-confidence steps and improves self-correction success rates by up to 13.5% over answer-level feedback.