Introduction
Knowledge Distillation (KD) typically involves training a compact "student" network to replicate the outputs or intermediate feature maps of a larger "teacher" network. While effective, traditional KD methods often suffer from two primary limitations: the "Black Box Problem," where the internal logic transferred remains opaque, and the "Architecture Gap," where structural differences between teacher and student (e.g., ResNet vs. MobileNet) make direct feature mimicry inefficient.
Tree-like Decision Distillation (TDD) addresses these challenges by distilling the teacher's internal "coarse-to-fine" logic. Instead of copying raw values, the student learns to replicate the hierarchical decision-making process—distinguishing broad categories in early layers before refining these into specific classes in deeper layers.
Methodology
The TDD framework employs a structured three-step pipeline to extract and transfer hierarchical logic from the teacher to the student.
- Layer-wise Discriminant Analysis: Linear Discriminant Analysis (LDA) projects high-dimensional features from the teacher's intermediate layers into a lower-dimensional space. This step quantifies the discriminative power of each layer.
- Intermediate Decision Making: Hierarchical clustering is used to construct a "dendrogram" for each layer, representing category similarities. These trees are simplified to identify the specific "coarse" decisions (e.g., animals vs. vehicles) that a particular layer is capable of making.
- Decision Distillation: Simple "micro-classification modules" (Global Average Pooling followed by a Fully Connected layer) are attached to the student’s intermediate layers. The student is trained to match the teacher’s hierarchical decisions using a Kullback-Leibler (KL) divergence loss.
Hierarchical Decision Logic
A key insight of TDD is the empirical observation that deep networks naturally develop a hierarchy of features. Early layers capture broad visual cues suitable for coarse discrimination, while later layers specialize in fine-grained details.
By focusing on the classification task at each layer rather than specific feature values, TDD becomes robust to architectural differences. This approach also enhances interpretability, as the student's intermediate layers correspond to human-understandable super-classes.
Experimental Results
The researchers evaluated TDD on standard benchmarks including CIFAR-10, CIFAR-100, and tiny-ImageNet.
- Performance Gains: TDD consistently outperformed baseline KD and other state-of-the-art methods like FitNets and Attention Transfer. For instance, on CIFAR-100, a ResNet20 student distilled from a ResNet56 teacher achieved 71.53% accuracy, surpassing the 70.66% achieved by vanilla KD.
- Heterogeneous Distillation: TDD showed significant strength when the teacher and student architectures differed. Distilling a ResNet50 teacher into a MobileNetV2 student on CIFAR-100 resulted in 68.37% accuracy.
- Synergy: When combined with Contrastive Representation Distillation (CRD), TDD set new performance benchmarks across multiple architectures.
Conclusion
TDD represents a shift from mimicking data to mimicking logic. By teaching students the "how" of hierarchical decision-making, it bridges the architecture gap and provides a more interpretable distillation process. Future work may involve automating the mapping between teacher and student layers and optimizing the computational overhead associated with the pre-processing steps.
Summary updated