arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2402.17110cs.LGcs.CL
收藏

面向知识蒸馏的 Sinkhorn 距离最小化

Sinkhorn Distance Minimization for Knowledge Distillation

University of Science and Technology of China(中国科学技术大学);Tencent YouTu Lab(腾讯优图实验室)

Xiao Cui, Yulei Qin, Yuting Gao, Enwei Zhang, Zihan Xu, Tong Wu, Ke Li, Xing Sun, Wengang Zhou, Houqiang Li

AI总结:

针对 KL、RKL、JS 散度在师生分布低重叠时的模式偏差问题,提出 SinKD,用批次级 Sinkhorn 距离实现更精确的知识蒸馏,并在 GLUE/SuperGLUE 上验证其跨架构优势。

摘要:

知识蒸馏(KD)已被广泛用于压缩大型语言模型(LLM)。现有 KD 方法研究了多种散度度量,包括 Kullback-Leibler(KL)散度、反向 Kullback-Leibler(RKL)散度和 Jensen-Shannon(JS)散度。然而,由于其假设和定义中固有的限制,当教师模型与学生模型之间几乎不存在分布重叠时,这些度量无法提供有效的监督。本文表明,上述 KL、RKL 和 JS 散度分别存在模式平均、模式崩塌和模式低估问题,这会在多种 NLP 任务中损害基于 logits 的 KD。我们提出 Sinkhorn Knowledge Distillation(SinKD),利用 Sinkhorn 距离对教师与学生分布之间的差异进行细致而精确的评估。此外,得益于 Sinkhorn 度量的性质,我们可以摆脱逐样本 KD;该方式限制了对每个教师—学生样本对中散度的感知。取而代之,我们提出一种逐批次重构,以捕捉高维空间中跨样本分布的几何复杂性。在 GLUE 和 SuperGLUE 上从可比性、有效性和可泛化性方面进行的综合评估,凸显了我们相对于最先进方法在 encoder-only、encoder-decoder 和 decoder-only 架构的各类 LLM 上的优势。

英文摘要:

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 Kullback-Leibler (RKL), and Jensen-Shannon (JS) divergences. However, due to limitations inherent in their assumptions and definitions, these measures fail to deliver effective supervision when few distribution overlap exists between the teacher and the student. In this paper, 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 NLP tasks. We propose the Sinkhorn Knowledge Distillation (SinKD) that exploits the Sinkhorn distance to ensure a nuanced and precise assessment of the disparity between teacher and student distributions. Besides, profit by properties of the Sinkhorn metric, we can get rid of sample-wise KD that restricts the perception of divergence in each teacher-student sample pair. Instead, we propose a batch-wise reformulation to capture geometric intricacies of distributions across samples in the high-dimensional space. Comprehensive evaluation on GLUE and SuperGLUE, in terms of comparability, validity, and generalizability, highlights our superiority over state-of-the-art methods on all kinds of LLMs with encoder-only, encoder-decoder, and decoder-only architectures.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑