Abstract
Knowledge Distillation (KD) typically focuses on matching model outputs on clean data, often neglecting the critical nuances of decision boundaries. This paper proposes Teacher Adversarial Local Distribution (TALD), a regularization framework that encourages student models to mimic the teacher's behavior in the vicinity of these boundaries. By employing Stein Variational Gradient Descent (SVGD) to generate a diverse set of adversarial "particles," TALD provides a comprehensive map of the teacher's expertise. Our evaluation across multiple benchmarks shows that TALD consistently enhances the performance of various state-of-the-art KD methods.
The Challenge of Decision Boundaries
Standard KD methods primarily align student and teacher predictions on training samples. However, these samples are usually distant from the decision boundaries where the model's classification logic is most tested. While adversarial training can probe these regions, traditional attacks often produce a single point that fails to capture the full complexity of the local decision surface. Multiple restarts of such attacks frequently lead to "mode collapse," where different starting points converge to the same adversarial example, limiting the diversity of the training signal.
Proposed Method: TALD
To address these limitations, TALD regularizes the student by matching the teacher's loss distribution over a local neighborhood of the input. Instead of a single point, TALD considers a distribution of adversarial examples.
Practically, this distribution is approximated using a set of particles evolved via Stein Variational Gradient Descent (SVGD). SVGD balances two competing objectives:
- Gradient Ascent: Pushing particles toward the decision boundary where the teacher's loss is maximized.
- Repulsive Force: A kernel-based mechanism that prevents particles from clustering together, ensuring they explore different facets of the local boundary.
The student is trained to minimize the discrepancy between its own cross-entropy loss and the teacher's loss across these diverse adversarial particles. This ensures the student learns the teacher's "uncertainty profile" near the boundaries.
Experimental Results
The authors evaluated TALD on CIFAR-100 and ImageNet using a wide array of teacher-student configurations.
Consistent Performance Gains
TALD acts as a "plug-and-play" regularizer. When added to existing KD frameworks like FitNet, CRD, or VID, it consistently yields accuracy improvements. On CIFAR-100, for instance, adding TALD to standard KD for a ResNet-32x4 to ResNet-8x4 transfer increased accuracy from 73.33% to 74.53%.
Geometrical Alignment
Beyond accuracy, the paper uses metrics like Magnitude and Angle Similarity to show that TALD-trained students possess decision boundaries that are geometrically more aligned with their teachers than those trained via standard methods. This confirms that the student is indeed inheriting the teacher's structural knowledge of the feature space.
Conclusion
TALD provides a robust way to distill knowledge from the complex decision boundaries of teacher models. By using SVGD to maintain a diverse set of adversarial probes, it avoids the pitfalls of single-point adversarial distillation. While it introduces some computational overhead due to the iterative nature of SVGD, the consistent performance boosts across architectures make it a valuable addition to the KD toolkit.
Summary updated