Abstract
Reasoning distillation—fine-tuning smaller "student" models on the step-by-step reasoning paths of large "teacher" models—has become the standard for enhancing the capabilities of small language models. However, the internal mechanics of this process remain poorly understood. This paper introduces a "Provenance Tracing" framework to determine whether distilled models truly adopt a teacher's logic or merely refine their own latent patterns. By categorizing the origin of every sentence in a model's output, we demonstrate that distilled models successfully internalize teacher-originated reasoning patterns, which directly correlate with improved accuracy. Leveraging these insights, we propose a Teacher-Guided Data Selection strategy that outperforms existing heuristics by prioritizing training examples where the teacher and student diverge most.
Introduction
The success of models like DeepSeek-R1 has demonstrated the power of distilling complex reasoning capabilities into smaller, more efficient architectures. While the performance gains from distillation are well-documented, the source of these improvements is often treated as a black box. A critical question remains: does the student model actually learn the teacher’s superior logic, or does the training simply "nudge" the student to use its own pre-existing knowledge more effectively?
If a student model is merely regressing to its original patterns in new contexts, its ability to generalize to novel problems may be limited. To address this, we introduce Reasoning Distillation Provenance Tracing, a framework designed to map the "DNA" of distilled reasoning and quantify the influence of the teacher on the student's output.
Methodology: Provenance Tracing
The core of our approach involves analyzing the predictive probabilities assigned to every sentence (or "action") produced by a distilled model ($M_D$). For any given sentence in a reasoning chain, we compare the likelihood of that sentence being generated by three distinct models under the same context:
- The Teacher ($M_T$): The source of the high-quality reasoning (e.g., DeepSeek-R1-671B).
- The Original Student ($M_S$): The base model before any distillation occurs.
- The Distilled Student ($M_D$): The final model after fine-tuning on teacher data.
Categorizing Reasoning Sentences
By comparing these probabilities, we categorize each sentence into four distinct types:
- Teacher-originated: Sentences with high probability from the teacher but low probability from the original student. These represent the "new" logic inherited from the teacher.
- Student-originated: Sentences with high probability from the original student but low probability from the teacher. These represent the student's native reasoning style.
- Shared: Sentences that both models would likely produce, but which show no significant change in probability after distillation.
- Boosted: Sentences that existed in both models' distributions but saw their probability significantly amplified during the distillation process.
Teacher-Guided Data Selection
Traditional data selection heuristics often prioritize data that aligns closely with the student's existing distribution (e.g., the GRAPE method). However, our provenance analysis suggests a different approach. We propose Teacher-Guided Data Selection, which prioritizes training examples where the teacher and student diverge most—specifically, responses that are rich in "Teacher-originated" sentences. This ensures the student is exposed to the logic it is least likely to generate on its own.
Experimental Setup
We evaluated our framework across several rigorous reasoning benchmarks, including AIME24/25, GPQA-D (graduate-level science), MATH500, and OlympiadBench.
Our training utilized AceReason-1.1-SFT and OpenThought3-1.2M datasets. We employed a variety of teacher models, including DeepSeek-R1-671B, QwQ-32B, and GPT-OSS-120B, to fine-tune student models with 8B parameters or fewer.
Key Insights
1. The Teacher Sets the Trajectory
Our analysis reveals that "Teacher-originated" sentences are most prominent in the early stages of a reasoning path. This suggests that the teacher’s primary contribution is establishing the correct initial "trajectory" or strategic plan for a problem, which the student then follows.
2. Teacher Logic Correlates with Correctness
There is a strong positive correlation between the density of teacher-originated sentences and the final correctness of the answer. When a student successfully adopts the teacher's unique logical steps, it is significantly more likely to arrive at the correct solution.
3. Distillation as an Activator
Distillation does more than just teach new concepts; it acts as an "activator" for latent patterns already present in the student. However, "boosting" the student's internal patterns is not always beneficial. In many cases, distillation can inadvertently reinforce the student's original logical errors if the data selection is not carefully managed.
Results
Our Teacher-Guided Data Selection method consistently outperformed vanilla distillation and state-of-the-art heuristics:
- Performance Gains: The proposed method improved average accuracy by 1.7% to 2.5% across all benchmarks compared to standard distillation.
- Superiority over Heuristics: Our method consistently beat GRAPE, proving that focusing on teacher-student divergence is more effective than focusing on student alignment.
- Generalization: On the GPQA-D science benchmark, we observed a +3.0% improvement. This indicates that tracing provenance helps the model generalize its reasoning capabilities to domains beyond its primary training data (e.g., from math to science).
Limitations and Future Work
While these results are promising, the study focused on student models at the 7B-8B parameter scale. Future research is required to determine if these provenance patterns hold for larger models (70B+). Additionally, we aim to explore "ensemble distillation," where students learn from multiple teachers simultaneously, and move toward more granular, token-level provenance analysis to further decode the mechanics of LLM reasoning.
Summary updated