SinKD: Sinkhorn Distance Minimization for Knowledge Distillation
Knowledge distillation (KD) has been widely adopted to compress large language models (LLMs). Existing KD methods investigate various divergence measures including the Kullback-Leibler (KL), reverse KL (RKL), and Jensen-Shannon (JS) divergences. However, due to limitations inherent in their assumptions and definitions, these measures fail to deliver effective supervision when a distribution overlap exists between the teacher and the student. In this article, we show that the aforementioned KL, RKL, and JS divergences, respectively, suffer from issues of mode-averaging, mode-collapsing, and mode-underestimation, which deteriorates logits-based KD for diverse natural language processing (NLP) tasks. We propose the Sinkhorn KD (SinKD) that exploits the Sinkhorn distance to ensure a nuanced and precise assessment of the disparity between distributions of teacher and student models. Besides, thanks to the properties of the Sinkhorn metric, we get rid of sample-wise KD that restricts the perception of divergences inside each teacher-student sample pair. Instead, we propose a batch-wise reformulation to capture the geometric intricacies of distributions across samples in the high-dimensional space. A comprehensive evaluation of GLUE and SuperGLUE, in terms of comparability, validity, and generalizability, highlights our superiority over state-of-the-art (SOTA) methods on all kinds of LLMs with encoder-only, encoder-decoder, and decoder-only architectures. Codes and models are available at https://github.com/2018cx/SinKD.
Authors
- Xing Sun (ORCID: https://orcid.org/0000-0001-8132-9083)
- Zihan Xu
- Wengang Zhou (ORCID: https://orcid.org/0000-0003-1690-9836)
- Yulei Qin (ORCID: https://orcid.org/0000-0002-0996-3984)
- Houqiang Li (ORCID: https://orcid.org/0000-0003-2188-3028)
- Xiao Cui (ORCID: https://orcid.org/0000-0002-0596-4525)
- Yuting Gao (ORCID: https://orcid.org/0000-0002-4329-4091)
- Enwei Zhang
- Tong Wu (ORCID: https://orcid.org/0000-0002-2888-275X)
- Ke Li (ORCID: https://orcid.org/0000-0002-3229-271X)
Institutions
- University of Science and Technology of China (CN)
- Tencent (China) (CN)
Publication Details
- Journal
- IEEE Transactions on Neural Networks and Learning Systems
- Published
- 2024-12-04
- DOI
- https://doi.org/10.1109/tnnls.2024.3501335
- Citations
- 10
- Primary Topic
- Semantic Web and Ontologies
- Type
- article
- Field-Weighted Citation Impact
- 3.47