Feature Representation Transferring to Lightweight Models via Perception Coherence
Hai-Vy Nguyen, Fabrice Gamboa, Sixin Zhang, Reda Chhaibi, Serge Gratton, Thierry Giaccone
TL;DR
This work introduces perception coherence, a probabilistic, ranking-based criterion for transferring feature representations from a large teacher to a lightweight student model, enabling cross-space transfers with potentially different feature dimensions. It replaces exact geometry preservation with preservation of relative dissimilarity orderings using a differentiable soft ranking loss, and provides a probabilistic framework linking local/global coherence to convergence guarantees in mini-batch estimations. Theoretically, the paper establishes convergence rates for the mini-batch estimator and derives bounds on local and global rank preservation as the student approximates the teacher. Empirically, it demonstrates competitive or superior performance to KD-based baselines on retrieval and classification benchmarks, and analyzes the impact of batch size and student capacity on coherence and downstream metrics. Overall, perception coherence offers a flexible, topology-informed approach to knowledge transfer that is robust to dimension mismatch and variational data densities, with practical implications for efficient deployment of lightweight models.
Abstract
In this paper, we propose a method for transferring feature representation to lightweight student models from larger teacher models. We mathematically define a new notion called \textit{perception coherence}. Based on this notion, we propose a loss function, which takes into account the dissimilarities between data points in feature space through their ranking. At a high level, by minimizing this loss function, the student model learns to mimic how the teacher model \textit{perceives} inputs. More precisely, our method is motivated by the fact that the representational capacity of the student model is weaker than the teacher model. Hence, we aim to develop a new method allowing for a better relaxation. This means that, the student model does not need to preserve the absolute geometry of the teacher one, while preserving global coherence through dissimilarity ranking. Importantly, while rankings are defined only on finite sets, our notion of \textit{perception coherence} extends them into a probabilistic form. This formulation depends on the input distribution and applies to general dissimilarity metrics. Our theoretical insights provide a probabilistic perspective on the process of feature representation transfer. Our experiments results show that our method outperforms or achieves on-par performance compared to strong baseline methods for representation transferring.
