Abstract
Knowledge Distillation (KD) typically focuses on aligning intermediate feature maps or output distributions, often treating neural networks as black boxes. We introduce the LONDON framework, which distills the functional behavior of a teacher network into a student by aligning their Lipschitz constants. By utilizing a Transmitting Matrix to approximate spectral norms, LONDON provides a computationally efficient way to enforce functional smoothness. Our results across ImageNet, CIFAR-100, and PASCAL VOC demonstrate that LONDON not only achieves state-of-the-art performance but frequently enables student networks to outperform their teachers.
Introduction: Beyond Mechanical Mimicking
Traditional Knowledge Distillation (KD) relies on "mechanical mimicking," where a student network is trained to match the raw outputs or feature values of a larger teacher network. While effective, this approach ignores the high-level functional characteristics that define a model's robustness and generalization. The core challenge addressed by the LONDON framework is distilling the underlying functional behavior of a network rather than just its intermediate outputs.
The LONDON Framework
The LONDON (Lipschitz Continuity Guided Knowledge Distillation) framework introduces functional alignment through Lipschitz continuity. The Lipschitz constant ($||f||_{Lip}$) represents the maximum rate at which a function's output can change relative to its input, serving as a measure of the model's "smoothness" and robustness.
Functional Alignment via Transmitting Matrices
Calculating the exact Lipschitz constant for deep networks is an NP-hard problem. LONDON bypasses this by introducing a Transmitting Matrix (TM) that approximates the spectral norm of network blocks, providing a tight upper bound on the Lipschitz constant. To keep the process computationally efficient and differentiable, the power iteration method is used to estimate these spectral norms during training.
Lipschitz Loss
A novel loss function, $L_{Lip}$, is introduced to minimize the discrepancy between the teacher's and student's Lipschitz constants. This loss is weighted to prioritize higher-level layers, as these are closer to the final task-specific features. This functional guidance acts as a powerful regularizer, preventing the student from getting trapped in local minima.
Experimental Results
The framework was evaluated across three major computer vision tasks: image classification, object detection, and semantic segmentation.
Image Classification and the "Student Surpassing Teacher" Phenomenon
On CIFAR-100, LONDON consistently outperformed existing state-of-the-art (SOTA) methods like FitNets, AT, and OFD. A remarkable finding is that in several scenarios, the student network achieved a lower error rate than its teacher. For instance, in a depth-compression setup (WideResNet 28-4 to 16-4), LONDON reached a 20.33% error rate, compared to the teacher's 21.09%.
On ImageNet, distilling a ResNet152 teacher into a ResNet50 student yielded a top-1 error of 21.12%, which actually beat the teacher's original performance of 21.69%. This suggests that the functional guidance helps the student find a more optimal, regularized solution than the teacher originally possessed.
Object Detection and Segmentation
The framework's versatility was further demonstrated on PASCAL VOC. For object detection, a ResNet18-SSD student trained with LONDON achieved 73.82 mAP, significantly higher than the 71.61 mAP baseline. Similar improvements were observed in semantic segmentation tasks using DeepLabV3+.
Conclusion and Limitations
The LONDON framework shifts the paradigm of distillation from simple output mimicking to high-level functional alignment. While the method remains effective even at high compression ratios (up to 17x), it requires careful balancing of the Lipschitz loss weight ($\lambda$). Future work will explore how this functional distillation behaves in non-convolutional architectures like Vision Transformers (ViTs), which may exhibit different Lipschitz properties.
Summary updated