Enhancing Knowledge Distillation of Large Language Models through Efficient Multi-Modal Distribution Alignment

Tianyu Peng, Jiajun Zhang
9/19/2024
cs.CL

No official code found. Best implementation: Pty72/RLKD (4 stars, MIT, last commit 2024-12-10).

Abstract

Knowledge distillation (KD) is an effective model compression method that can transfer the internal capabilities of large language models (LLMs) to smaller ones. However, the multi-modal probability distribution predicted by teacher LLMs causes difficulties for student models to learn. In this paper, we first demonstrate the importance of multi-modal distribution alignment with experiments and then highlight the inefficiency of existing KD approaches in learning multi-modal distributions. To address this problem, we propose Ranking Loss based Knowledge Distillation (RLKD), which encourages the consistency of the ranking of peak predictions between the teacher and student models. By incorporating word-level ranking loss, we ensure excellent compatibility with existing distillation objectives while fully leveraging the fine-grained information between different categories in peaks of two predicted distribution. Experimental results demonstrate that our method enables the student model to better learn the multi-modal distributions of the teacher model, leading to a significant performance improvement in various downstream tasks.

View on arXivView PDF

Code Implementations(1)

Pty72/RLKDCommunity100%
MIT
41Shell, PythonSep 13, 20241 years agoMIT

Similar Papers

Cite this paper

@article{peng2024enhancing,
  title  = {Enhancing Knowledge Distillation of Large Language Models through Efficient Multi-Modal Distribution Alignment},
  author = {Tianyu Peng and Jiajun Zhang},
  year   = {2024},
  eprint = {2409.12545},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2409.12545v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2409.12545.svg)](https://codeofpaper.com/paper/2409.12545)

Discussion