Abstract
Knowledge Distillation (KD) typically aims to compress large teacher models into efficient student models. However, traditional feature-based KD often fails due to the capacity gap between teacher and student, where forcing a student to replicate the teacher's exact feature geometry is overly restrictive. This paper proposes Perception Coherence, a framework that shifts the focus from absolute geometric alignment to the preservation of relative dissimilarity rankings. By training students to maintain the same "perception" of data relationships as the teacher, we achieve superior representation transfer. Our method demonstrates significant improvements in image retrieval and classification tasks, particularly in heterogeneous architecture settings.
Introduction
The deployment of deep neural networks on edge devices necessitates model compression techniques like Knowledge Distillation. A prominent approach is feature representation transfer, where a student model mimics the intermediate feature space of a teacher. Despite its potential, a fundamental mismatch exists: student models possess significantly lower representational capacity.
Previous methods often impose rigid constraints, requiring students to match exact pairwise distances or absolute geometric coordinates of the teacher's space. Such strict requirements can hinder the student's ability to learn a coherent representation. We propose that the topological structure—the relative relationships between data points—is more critical than absolute geometry.
Methods: Perception Coherence
The core principle of Perception Coherence is that if a teacher perceives Image A to be more similar to Image B than to Image C, the student should maintain this relative ordering. This approach allows the student model the flexibility to organize its own feature space while preserving the semantic relationships learned by the teacher.
Soft Ranking and Loss Function
Directly optimizing for discrete rankings is challenging because sorting operations are non-differentiable. To overcome this, we introduce a differentiable soft ranking approximation. This is achieved using a sigmoid function with a temperature scaling parameter to estimate the rank of distances within a set.
During training, for each reference point in a mini-batch, we compute distances to all other points. These distances are soft-ranked for both models, and the loss function minimizes the squared difference between the teacher's and student's rankings. Notably, this method is class-unaware, requiring no labels, which makes it versatile for various feature-based tasks.
Theoretical Foundations
We formalize perception coherence probabilistically, proving that maintaining local perception coherence (ranking preservation around specific points) provides a mathematical bound on global structural coherence. Furthermore, we demonstrate that mini-batch estimators converge to global coherence at a rate of $O(1/\sqrt{B})$, justifying the use of standard batch sizes (e.g., 64) for effective training.
Results and Evaluation
We evaluated our method across diverse datasets, including toy manifolds (2D/3D Gaussians), CIFAR-10, CUB-200, and CIFAR-100.
Image Retrieval
On the CUB-200 dataset, our method significantly outperformed existing KD techniques in content-based image retrieval. The student model achieved a 28.42 mAP, compared to 18.55 for standard KD and 18.57 for Probabilistic Knowledge Transfer. This highlights the superior quality of the learned feature representations.
Image Classification
In heterogeneous transfer scenarios (e.g., ResNet-32x4 teacher to ShuffleNetV1 student) on CIFAR-100, Perception Coherence reached 78.59% accuracy, surpassing both standard KD (74.07%) and Contrastive Representation Distillation (75.11%).
Ablation Studies
Empirical results confirmed our theoretical findings regarding batch size. Performance remained stable with batch sizes as small as 32, confirming that random sampling across epochs effectively captures the global data structure.
Conclusion
Perception Coherence offers a robust alternative to traditional geometric KD by focusing on relative rankings. This relaxation of constraints allows lightweight models to better accommodate their limited capacity while still capturing the essential semantic structure of the teacher's feature space. Future work will explore the limits of ranking preservation relative to model capacity and the application of this method to multi-modal transfer learning.
Summary updated