Abstract
Knowledge distillation (KD) is a widely used technique for transferring knowledge from a large teacher model to a smaller student model. Traditional KD methods typically focus on matching soft targets or internal feature activations. In this paper, we propose a novel approach that explicitly transfers the geometry of the teacher's decision boundary to the student. We introduce Boundary Supporting Samples (BSS), generated via a modified adversarial attack, to probe and transfer boundary information. Our method achieves state-of-the-art performance on several benchmarks and demonstrates exceptional robustness in scenarios with limited training data.
Introduction
The generalization capability of a classifier is fundamentally tied to the shape and location of its decision boundary. While standard knowledge distillation transfers classification logic, it often fails to capture the precise "where" of the decision surface. Drawing inspiration from Support Vector Machines, which rely on samples near the boundary for classification, we propose to focus distillation efforts on these critical regions. By explicitly aligning the student's decision boundary with that of the teacher, we can produce students that generalize better to unseen data.
Methodology
The core innovation of this work is the generation and utilization of Boundary Supporting Samples (BSS).
Generating BSS
Unlike standard adversarial attacks designed to deceive a model, our modified attack serves as a surgical probe. Starting from a base training sample, we iteratively perturb the input toward the decision boundary of a target class. The process terminates precisely when the sample crosses the teacher's decision boundary, creating a BSS that represents the limit of the teacher's class definition.
Distillation Objective
The student is trained using a multi-task loss function: $$L = L_{cls} + \alpha L_{KD} + \beta L_{BS}$$ where $L_{cls}$ is the standard cross-entropy loss, $L_{KD}$ is the Hinton-style distillation loss, and $L_{BS}$ is the proposed Boundary Supporting Loss. $L_{BS}$ encourages the student to match the teacher's output specifically on the generated BSS. To maintain efficiency, BSS are generated only for a subset of informative samples where the teacher and student currently disagree or exhibit high confidence.
Boundary Alignment Metrics
We introduce two new metrics, Magnitude Similarity (MagSim) and Angle Similarity (AngSim), to quantitatively assess the alignment of the student's decision boundary with the teacher's in terms of distance and direction, respectively.
Experimental Results
We evaluated our method on CIFAR-10, ImageNet $32 \times 32$, and TinyImageNet using various ResNet architectures.
Performance and Generalization
On CIFAR-10, our method consistently outperformed standard KD and other state-of-the-art techniques like FitNet and Attention Transfer. For instance, a ResNet14 student trained with our method achieved 90.34% accuracy, a significant improvement over the 89.75% achieved by standard KD.
Robustness to Data Scarcity
A key finding is the method's effectiveness when training data is limited. By synthesizing informative samples near the decision boundary, the student learns a more robust decision surface than is possible with the original training set alone. As shown in the figure below, the performance gap between our method and competitors widens as the percentage of available training data decreases.
Discussion and Conclusion
By focusing on the decision boundary, our method provides a more geometrically grounded approach to knowledge distillation. While the iterative generation of BSS introduces some computational overhead, the gains in accuracy and data efficiency are substantial. Future research will explore more efficient boundary-finding algorithms and the application of this technique to high-resolution computer vision tasks.
Summary updated