paper-with-me

홈 › Papers

Comparing Kullback-Leibler Divergence and Mean Squared Error Loss in Knowledge Distillation

2021-05-19 · Taehyeon Kim, Jaehoon Oh, Nakyil Kim, Sangwook Cho, Se-Young Yun

Knowledge distillation (KD), transferring knowledge from a cumbersome teacher model to a lightweight student model, has been investigated to design efficient neural architectures. Generally, the objective function of KD is the Kullback-Leibler (KL) divergence loss between the softened probability distributions of the teacher model and the student model with the temperature scaling hyperparameter tau. Despite its widespread use, few studies have discussed the influence of such softening on generalization. Here, we theoretically show that the KL divergence loss focuses on the logit matching when tau increases and the label matching when tau goes to 0 and empirically show that the logit matching is positively correlated to performance improvement in general. From this observation, we consider an intuitive KD loss function, the mean squared error (MSE) between the logit vectors, so that the student model can directly learn the logit of the teacher model. The MSE loss outperforms the KL divergence loss, explained by the difference in the penultimate layer representations between the two losses. Furthermore, we show that sequential distillation can improve performance and that KD, particularly when using the KL divergence loss with small tau, mitigates the label noise. The code to reproduce the experiments is publicly available online at https://github.com/jhoon-oh/kd_data/.

📄 PDF Abstract BibTeX arXiv:2105.08919

Code (1)

jhoon-oh/kd_data 공식 구현 pytorch

Tasks

Image ClassificationKnowledge DistillationLearning with noisy labels

Similar Papers 제목 키워드 기반

Nearly Minimax Discrete Distribution Estimation in Kullback-Leibler Divergence with High Probability

2025-07-23 · Dirk van der Hoeven, Julia Olkhovskaia, Tim van Erven arxiv

We consider the fundamental problem of estimating a discrete distribution on a domain of size $K$ with high probability in Kullback-Leibler divergence. We provide upper and lower bounds on the minimax estimation rate, wh…

Rethinking Kullback-Leibler Divergence in Knowledge Distillation for Large Language Models

2024-04-03 · Taiqiang Wu, Chaofan Tao, Jiahao Wang, Runming Yang 외

Kullback-Leiber divergence has been widely used in Knowledge Distillation (KD) to compress Large Language Models (LLMs). Contrary to prior assertions that reverse Kullback-Leibler (RKL) divergence is mode-seeking and thu…

DiversityKnowledge Distillation

Statistical and Geometrical properties of regularized Kernel Kullback-Leibler divergence

2024-08-29 · Clémentine Chazal, Anna Korba, Francis Bach

In this paper, we study the statistical and geometrical properties of the Kullback-Leibler divergence with kernel covariance operators (KKL) introduced by Bach [2022]. Unlike the classical Kullback-Leibler (KL) divergenc…

On a generalization of the Jensen-Shannon divergence and the JS-symmetrization of distances relying on abstract means

2019-04-08 · Frank Nielsen

The Jensen-Shannon divergence is a renown bounded symmetrization of the unbounded Kullback-Leibler divergence which measures the total Kullback-Leibler divergence to the average mixture distribution. However the Jensen-S…

ClusteringForm

Rényi Divergence and Kullback-Leibler Divergence

2012-06-12 · Tim van Erven, Peter Harremoës

R\'enyi divergence is related to R\'enyi entropy much like Kullback-Leibler divergence is related to Shannon's entropy, and comes up in many settings. It was introduced by R\'enyi as a measure of information that satisfi…