NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Adversarial local distribution regularization for knowledge distillation

Thanh Nguyen-Duc, Trung Le, He Zhao, Jianfei Cai, Dinh Phung

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:

  1. Gradient Ascent: Pushing particles toward the decision boundary where the teacher's loss is maximized.
  2. Repulsive Force: A kernel-based mechanism that prevents particles from clustering together, ensuring they explore different facets of the local boundary.
Sum Square Error as a function of the number of particles for ResNet-32x4 and WRN-40-2 architectures. TALD maintains lower error and better stability compared to the BSS baseline.

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%.

Comparison of various distillation methods with and without TALD across four different teacher-student pairs. The red bars (with TALD) consistently outperform the blue bars (existing methods).

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

BibTeX
@inproceedings{nguyenduc2023adversarial,
  author = {Thanh Nguyen-Duc and Trung Le and He Zhao and Jianfei Cai and Dinh Phung},
  title = {{Adversarial local distribution regularization for knowledge distillation}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2023},
  doi = {10.1109/wacv56688.2023.00466},
}
Figure