Distilling Model-Inherent Reasoning Circuit for Large Language Models
Abstract
Knowledge Distillation (KD) is widely adopted to compress Large Language Models (LLMs) by aligning the output distributions of teacher model and student model. However, output matching alone does not explicitly characterize the internal computations reflecting the teacher's reasoning capability, and directly aligning the representations of paired Transformer components risks disrupting the student's intrinsic reasoning pattern. To address these limitations, we propose model-inherent Reasoning Circuit Distillation (RCD). RCD characterizes model-inherent reasoning patterns as critical circuits formed by Transformer edges, with a separate circuit identified for each model using Edge Attribution Patching with Integrated Gradients. Subsequently, to transfer the teacher's reasoning capability, RCD aligns the predictive effects of both circuits by matching the logit variations induced by circuit attenuation. Theoretically, we establish guarantees for recovering the ground-truth reasoning circuits and show that the empirical RCD loss controls the population discrepancy in predictive effects between the ground-truth circuits of the teacher model and the student model. Experiments on mathematical reasoning and code generation show that RCD consistently outperforms state-of-the-art KD methods.
Create a lesson
Metadata
- Comments
- 27 pages, 10 figures, 9 tables
Related papers
Human-Centered Evaluation of Large Language Models: Multi-Problem Reasoning, Writing Competence, and Visual Referential Communication
Shared title terminologycs.CLZhengxiang Wang
SparseCheck: Sublinear Verification and Targeted Repair for Long Language-Model Reasoning Traces
Shared title terminologycs.CLHuan Li, Kaige Song, Ming Wang et al.
Privacy-Preserving Classification of German Thoracic CT Reports Under Resource Constraints Using Large Language Models and Fine-Tuned Encoders
Shared title terminologycs.CLFranziska Weber, Tri-Thien Nguyen, Nadine Bayerl et al.
SemCDCL: Conflict-Driven Semantic Backjumping for Efficient Language Model Reasoning
Shared title terminologycs.CLJia Song, Chaoyang Zhang, Wei Liu et al.
From Intervention to Skill: Evolving Small--large Language Model Collaboration
Shared title terminologycs.CLZhenning Shi, Ran Wei, Ning Song et al.
Semantic irreversibility: how language models learn the arrow of time from syntax to reasoning
Shared title terminologycs.CLJunang Li, Weishun Zhong