TL;DR
Conventional knowledge distillation (KD) treats the teacher as a black box that only tells the student what to predict. Knowledge Explaining Distillation (KED) introduces structurally interpretable teachers that also explain how they predict by attributing credit across modular feature groups called "superfeatures." By aligning both final predictions and superfeature explanations, KED students achieve substantially higher accuracy across tabular and vision benchmarks.
What Problem Does This Paper Address?
In standard knowledge distillation, a compact student model learns by mimicking the softened class probabilities of a larger teacher model. However, transferring only final class logits (or matching complex intermediate hidden layers) leaves a huge amount of the teacher's reasoning behind.
Why not simply attach existing Explainable AI (XAI) tools like SHAP or LIME to the teacher? The authors point out a fundamental flaw: post-hoc feature attribution methods produce sample-specific, local explanations. Because the same feature value can yield different attributions across different samples, the mapping from inputs to explanations is one-to-many and ill-defined as a learning target. Distillation needs a teacher whose explanatory mechanism is consistent, global, and architecturally hardwired.
Methods
The authors introduce superfeature-explaining teachers and a matching student distillation framework:
-
Superfeatures & Architecture: Input features are partitioned into $M$ disjoint groups (superfeatures). Each superfeature $x_m$ is processed by an independent sub-network (subnet) to output a superfeature-specific probability distribution $p(y|x_m)$. Under a conditional independence formulation, the sub-logits sum to form the total prediction: $$\log p(y|x) \propto \sum_{m=1}^M \log p(y|x_m) - (M-1)\log p(y)$$ The paper proves that these superfeature log-probabilities mathematically correspond to the Shapley values of a cooperative game.
-
Superfeature Construction (Algorithm 1): When domain groupings are unknown, pairwise feature dependencies are estimated by calculating the average Hessian matrix $\bar{H} \approx \sum_{y} \mathbb{E}[\nabla \otimes \nabla \log p(y|x)]$ from a black-box teacher. Strongly coupled features are clustered into superfeatures using the Louvain community detection algorithm.
- KED Loss Formulation: The student minimizes a three-part objective: standard cross-entropy on hard labels, Kullback-Leibler (KL) divergence to match the teacher’s soft label output (at temperature $T$), and average KL divergence to match the teacher’s explanation across all $M$ subnets (at temperature $\tau$).
- Extensions:
- CNNs: To avoid costly Hessian computations on image pixels, convolutional backbones share early layers and split along the channel/filter dimension after a $1\times 1$ conv projector, allowing backpropagation to discover superfeatures automatically.
- Chimeric Sets: In data-scarce settings, novel samples are formed via the Cartesian product of superfeatures from different training examples ($X_1 \times \dots \times X_M$). Because KED subnets process superfeatures independently, the student encounters valid in-distribution sub-components even in out-of-distribution composites, acting as powerful data augmentation without catastrophic forgetting.
[Input x]
/ | \
[Subnet1][Subnet2]...[Subnet M]
\ | /
[+ Log-sum] --> Final Softmax Prediction p(y|x)
|
Explanation: {p(y|x_1), ..., p(y|x_M)}
Datasets
The authors evaluated KED across tabular, image, and hybrid benchmarks:
- Tabular/Network Traffic: Unicauca dataset (delay sensitivity classification).
- Vision Benchmarks: MNIST, Fashion-MNIST, CIFAR-10, CIFAR-100, and Tiny ImageNet.
- Synthetic Benchmark: An amalgamated MNIST+FashionMNIST dataset (100 classes, 1,568 features) created specifically to validate the Hessian-based superfeature clustering against known ground truth.
Key Insights and Ideas
- Architectural Interpretability Beats Post-Hoc Attribution: Rather than trying to distill unstable, sample-specific explanations after the fact, constraining the teacher's architecture guarantees consistent, learnable explanations across all inputs.
- The Granularity Trade-Off ($M$): Moving from $M=1$ (unconstrained black box) toward $M=d$ (fully additive models where every feature is independent) increases interpretability at the expense of modeling complex feature cross-talk. Tuning $M$ (e.g., $M=4$) strikes an optimal sweet spot.
- Modularity Enables Chimeric Augmentation: Conventional black-box models suffer catastrophic forgetting when exposed to unnatural spliced data. Because KED isolates superfeatures into separate subnets, students learn from familiar local components under novel global permutations.
Key Results
KED consistently outperforms standard KD, whether applied to multi-layer perceptrons (MLPs) or standard CNN architectures (ResNet, WideResNet, VGG):
- CIFAR-100 (WRN-28-4 teacher $\to$ VGG8 student):
- Student without distillation: 68.72%
- Student with standard KD: 70.39%
- Student with KED: 73.50% (+3.11% over KD).
- CIFAR-10 (ResNet56x2 $\to$ ResNet8): KED achieves 89.43% compared to 88.53% with KD and 89.16% with explanation-enhanced $e^2$-KD.
- Tiny ImageNet (ResNet56x2 $\to$ ResNet20): KED attains 54.96% (vs. 52.72% for KD). When augmented with Attention Transfer (AT), KED reaches 55.35% (vs. 53.71% for KD+AT).
- Data-Limited Regime: On Unicauca with 2,000 samples, training on the chimeric set pushed KED accuracy from 63.61% to 65.51%, whereas KD degraded from 60.56% down to 59.03%.
Limitations and Future Work
- Independence Constraints: High numbers of superfeatures ($M$) can degrade teacher expressiveness if strongly interacting features end up separated.
- Hyperparameter Sensitivity: The total loss requires balancing multiple components ($\lambda, \mu, \rho$) and dual temperatures ($T, \tau$), which may demand extensive hyperparameter tuning depending on the task.
- Scaling Hessian Clustering: While CNNs bypass the Hessian clustering via channel splitting, scaling Hessian computation to high-dimensional unstructured tabular data remains computationally non-trivial.
Summary updated