RCD: Making Large Models Smaller and Stronger with Reasoning Circuit Distillation

RCD enables more effective LLM knowledge distillation than output matching by identifying and transferring model-intrinsic reasoning circuits.
This paper proposes Model-Intrinsic Reasoning Circuit Distillation (RCD) to address the problem that traditional knowledge distillation only aligns output distributions and ignores the teacher's internal reasoning computation. RCD uses edge attribution patching combined with integrated gradients to identify, for the teacher and student models separately, the sets of edges critical to their reasoning behavior, forming their respective reasoning circuits. In the transfer stage, it does not directly align internal circuit activations, but instead aligns the logit changes caused by circuit attenuation, so that the student circuit's predictive effect is consistent with the teacher's, thereby preserving the student's own implementation. Theoretical analysis shows that the RCD loss can control the population difference in predictive effects between the teacher's and student's true circuits. On mathematical reasoning and code generation tasks, RCD consistently outperforms state-of-the-art KD methods, providing a new direction for enabling small models to carry strong reasoning ability.
Knowledge distillation (KD) is a common approach for compressing large language models (LLMs), but traditional methods only align output distributions and ignore the teacher model's internal reasoning computation process. Directly aligning the representations of paired Transformer components may also disrupt the student model's own reasoning patterns. A new paper proposes Model-Intrinsic Reasoning Circuit Distillation (RCD), attempting to transfer reasoning ability at the circuit level.

Limitations of Output Matching and the Circuit-Level Idea
Existing KD methods train the student model by minimizing the difference between teacher and student output distributions. The paper points out that this output matching does not explicitly characterize the internal computation that reflects the teacher's reasoning ability. In other words, the student may learn to "answer like the teacher" without learning to "think like the teacher."
Another line of work aligns the intermediate representations of paired Transformer components, but the paper warns that this carries risks: forcing a student's layer representation to be close to the teacher's corresponding layer may interfere with the student's own already-formed reasoning patterns and instead harm performance.
RCD's entry point is to characterize the model's reasoning patterns as key circuits formed by Transformer edges. Circuits are identified separately for each model, rather than forcibly pairing layer-to-layer representations.
Edge Attribution Patching is an attribution method used for Transformer circuit discovery. It treats the model as a computation graph composed of "edges" between components such as attention heads and MLPs, and estimates the importance of each edge by injecting perturbations into edges and measuring their impact on the target output. Compared with node-by-node ablation, edge-level attribution can characterize information flow paths at a finer granularity and is more computationally efficient. It is often used to locate subnetworks responsible for specific tasks (such as reasoning and factual recall).
Integrated Gradients is an attribution method that satisfies axioms such as sensitivity and implementation invariance. It integrates gradients along a straight-line path from a baseline input and attributes the output difference to each input feature. Compared with ordinary gradients, it alleviates the gradient saturation problem and can more stably reflect feature contributions. In circuit identification, integrated gradients can provide more reliable contribution estimates for edge attribution, especially for highly nonlinear Transformer models.
How RCD Identifies and Transfers Reasoning Circuits
RCD uses Edge Attribution Patching combined with Integrated Gradients to identify, for each model, the set of edges critical to its reasoning behavior, forming that model's intrinsic reasoning circuit.
In the transfer stage, RCD does not directly align the activations inside the circuits. Instead, it aligns the predictive effects of the two circuits: by attenuating the circuit and measuring logit changes, the student circuit is made to produce predictive effects consistent with the teacher circuit. In this way, the student retains its own internal implementation and is only required to have the same "role played by the circuit" as the teacher.
The paper theoretically provides guarantees for recovering the true reasoning circuit and proves that the empirical RCD loss can control the population difference in predictive effects between the teacher's and student's true circuits.
Logit change refers to the difference in the model's output layer (logit vector) before and after an intervention. In knowledge distillation, teacher and student logit changes are often used as a measure of predictive effect: if a circuit is attenuated (e.g., zeroed or scaled), the magnitude of the logit change reflects that circuit's contribution to the final prediction. RCD compares the logit changes of teacher and student circuits after attenuation and requires the two to be consistent in predictive effect, rather than directly matching internal activations. This approach preserves the student model's freedom of internal implementation and constrains only the functional role of the circuit, thereby reducing the interference that representation alignment may introduce.
Experimental Results and Significance
On mathematical reasoning and code generation tasks, RCD consistently outperforms state-of-the-art KD methods. Both tasks rely heavily on multi-step reasoning, which is exactly the setting where circuit-level transfer should be most effective.
The value of RCD lies in changing the anchor of distillation: from "whether the output looks similar" to "whether the role of the reasoning circuit looks similar." This avoids both the neglect of internal computation in output matching and the potential interference caused by representation alignment. For deployment scenarios that aim to carry strong reasoning ability in small models, this idea provides a new compression direction.
However, circuit identification itself requires additional attribution computation, and the paper abstract does not disclose details of its cost; the generalization ability of RCD on more task types also remains to be verified in future work.
One-line Summary
RCD achieves more effective LLM knowledge distillation than output matching by identifying and transferring model-intrinsic reasoning circuits.
Paragraph Summary
This paper proposes Model-Intrinsic Reasoning Circuit Distillation (RCD), aiming to solve the problem that traditional knowledge distillation only aligns output distributions and ignores the teacher's internal reasoning computation. RCD uses edge attribution patching combined with integrated gradients to identify, for the teacher and student models separately, the sets of edges critical to their reasoning behavior, forming their respective reasoning circuits. In the transfer stage, it does not directly align the internal activations of the circuits, but instead aligns the logit changes caused by circuit attenuation, so that the student circuit's predictive effect is consistent with the teacher's, thereby preserving the student's own implementation. Theoretical analysis shows that the RCD loss can control the population difference in predictive effects between the teacher's and student's true circuits. On mathematical reasoning and code generation tasks, RCD consistently outperforms state-of-the-art KD methods, providing a new direction for enabling small models to carry strong reasoning ability.
Related articles

PreLat: Efficient Cross-Model-Family Communication Using Prefill States
PreLat proposes a cross-model-family communication interface that builds latent messages from the sender's prefill states, enabling efficient information transfer without decoding text, with over 8× lower latency and minimal cost for new models.

Don't Rush to Code with AI: A Practical Method for Using Doubao Work to Find Paid Projects
Vibe Coding series episode one: don't rush to code with AI. Use Doubao Work to analyze tech news and find demand, then use "free permission learning images" to hand finished products to e-commerce merchants for free, validating willingness to pay through real feedback—let customers, not AI, judge the market.

CrossDLM: Cross-Generation-Process Distillation to Inject Autoregressive Knowledge into Diffusion Language Models
The CrossDLM framework uses sequence-level scoring and bidirectional reconstruction supervision to solve the mismatch between autoregressive models and diffusion language models, outperforming causal prefix distillation in experiments.