paper-with-me

홈 › Papers

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

2024-04-03 · Taiqiang Wu, Chaofan Tao, Jiahao Wang, Runming Yang, Zhe Zhao, Ngai Wong

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 thus preferable over the mean-seeking forward Kullback-Leibler (FKL) divergence, this study empirically and theoretically demonstrates that neither mode-seeking nor mean-seeking properties manifest in KD for LLMs. Instead, RKL and FKL are found to share the same optimization objective and both converge after a sufficient number of epochs. However, due to practical constraints, LLMs are seldom trained for such an extensive number of epochs. Meanwhile, we further find that RKL focuses on the tail part of the distributions, while FKL focuses on the head part at the beginning epochs. Consequently, we propose a simple yet effective Adaptive Kullback-Leiber (AKL) divergence method, which adaptively allocates weights to combine FKL and RKL. Metric-based and GPT-4-based evaluations demonstrate that the proposed AKL outperforms the baselines across various tasks and improves the diversity and quality of generated responses. Codes are available at \href{https://github.com/wutaiqiang/LLM_KD_AKL}{github}.

📄 PDF Abstract BibTeX arXiv:2404.02657

Code (1)

wutaiqiang/llm_kd_akl 공식 구현

Tasks

DiversityKnowledge Distillation

Methods 이 논문이 사용한 방법론

Knowledge Distillation A very simple way to improve the performance of almost any machine learning algorithm is to train many different models on the same data and then to average their predictions.…

Similar Papers 제목 키워드 기반

Decoupled Kullback-Leibler Divergence Loss

2023-05-23 · Jiequan Cui, Zhuotao Tian, Zhisheng Zhong, Xiaojuan Qi 외

In this paper, we delve deeper into the Kullback-Leibler (KL) Divergence loss and mathematically prove that it is equivalent to the Decoupled Kullback-Leibler (DKL) Divergence loss that consists of 1) a weighted Mean Squ…

Adversarial DefenseAdversarial RobustnessKnowledge Distillation

CAKD: A Correlation-Aware Knowledge Distillation Framework Based on Decoupling Kullback-Leibler Divergence

2024-10-17 · Zao Zhang, Huaming Chen, Pei Ning, Nan Yang 외

In knowledge distillation, a primary focus has been on transforming and balancing multiple distillation components. In this work, we emphasize the importance of thoroughly examining each distillation component, as we obs…

Binary ClassificationKnowledge DistillationTransfer Learning

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

2021-05-19 · Taehyeon Kim, Jaehoon Oh, Nakyil Kim, Sangwook Cho 외

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 …

Image ClassificationKnowledge DistillationLearning with noisy labels

Balance Divergence for Knowledge Distillation

2025-01-14 · Yafei Qi, Chen Wang, Zhaoning Zhang, Yaping Liu 외

Knowledge distillation has been widely adopted in computer vision task processing, since it can effectively enhance the performance of lightweight student networks by leveraging the knowledge transferred from cumbersome …

image-classificationImage ClassificationKnowledge DistillationSemantic Segmentation

Wasserstein Distance Rivals Kullback-Leibler Divergence for Knowledge Distillation

2024-12-11 · Jiaming Lv, Haoyuan Yang, Peihua Li

Since pioneering work of Hinton et al., knowledge distillation based on Kullback-Leibler Divergence (KL-Div) has been predominant, and recently its variants have achieved compelling performance. However, KL-Div only comp…

image-classificationImage ClassificationKnowledge Distillationobject-detection+1