Circuit-Level Knowledge Distillation for Large Language Models
Yashuo Luo, Tongxu Wang, Siyuan He, Chunyu Wei
NeurIPS page · Open on the map
Category: LLM Post-Training: RL & Distillation › LLM Distillation · Type: new method · Keywords: knowledge distillation, mechanistic interpretability, reasoning circuits, optimal transport, model compression
Areas: LLM Reasoning › Reasoning Optimization › Reasoning Distillation; Interpretability › Mechanistic Interpretability › Transformer Circuit Interpretation
Summary
Meta Circuit Distillation (MCD) transfers reasoning circuits from teacher to student models via an attribution graph and optimal-transport loss, improving distillation across tasks.
Explained to a 5-year-old
When we teach a small robot how to solve puzzles, we usually only show it the answers. This new idea also teaches the robot how it thinks inside, so it can solve puzzles in a smarter way. It draws a picture of how the big robot solves problems and copies that picture for the small robot. This helps the small robot get better at thinking, especially when we make it really tiny. It works for many kinds of puzzles and helps the robot understand math better.
Explained to a 5-year-old, longer
Imagine you have a big robot that can solve many puzzles really well. You want to make a smaller robot that can also solve puzzles, but you only have a little time. Usually, you just show the small robot the answers to the puzzles, like telling it the solutions. But that only teaches it what to answer, not how to think about the puzzle. The new idea is like teaching the robot not just the answers, but also how it thinks inside. First, they look at how the big robot solves problems and draw a map of its thinking. Then they copy that map for the small robot, so it has a similar way of thinking. They use a special way to match the maps, like finding the best path to follow. This helps the small robot understand the puzzle better, even when it is very small. Because the small robot thinks more like the big one, it can solve harder puzzles. It works for many different kinds of puzzles and even helps with math problems. Overall, this method makes it easier to shrink big robots while keeping their smart thinking.
For a technical reader
The work addresses a limitation in current knowledge distillation, where only the output of a teacher model is mimicked, leaving the internal computation of the student unconstrained. By representing each model's computation as an attribution graph derived from mechanistic interpretability, they capture the structured reasoning pathways that drive predictions. They then align teacher and student graphs using an optimal-transport loss that matches pathways, which can be plugged into any standard distillation pipeline. A theoretical bound is provided showing that minimizing this loss limits the discrepancy in MLP-level computations between the two models. Experiments across multiple model families, distillation objectives, and instruction-following benchmarks demonstrate consistent gains, especially under aggressive compression.
Problem
Existing knowledge distillation methods only ensure that a student model matches the teacher's outputs, without guiding how the student computes those outputs, potentially leading to divergent internal mechanisms. This leaves the student's reasoning process unconstrained and may limit transfer of deep reasoning capabilities.
Method
The approach represents each model's computation as a transcoder-based attribution graph and aligns teacher and student circuits using an optimal-transport pathway-matching loss that can be integrated into standard distillation pipelines. This alignment ensures that the student's internal computational pathways resemble the teacher's, improving transfer of reasoning abilities.
Results
The approach yields consistent improvements across model families and distillation objectives, enhancing performance on instruction-following and mathematical reasoning tasks, especially under aggressive compression.
Contributions
It introduces a framework that distills reasoning circuits rather than just outputs, provides a theoretical bound on MLP-level computation discrepancy, and demonstrates improved transfer of complex reasoning under various compression levels.
Research questions this paper is counted under
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction