arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2305.08096cs.CLcs.AI

迈向理解与改进神经机器翻译中的知识蒸馏

Towards Understanding and Improving Knowledge Distillation for Neural Machine Translation

Beijing Jiaotong University(北京交通大学)

Songming Zhang, Yunlong Liang, Shuaibo Wang, Wenjuan Han, Jian Liu, Jinan Xu, Yufeng Chen

AI总结:

本文揭示神经机器翻译中知识蒸馏的知识源于教师top-1预测,提出TIE-KD方法,通过层次排序损失和迭代蒸馏提升学生模型性能,在多个翻译任务上显著优于基线。

摘要:

知识蒸馏(KD)是神经机器翻译中一种有前景的模型压缩技术。然而,知识在KD中隐藏于何处仍不清楚,这可能阻碍KD的发展。在这项工作中,我们首先从经验角度揭开这一谜团,表明知识来源于教师模型的top-1预测,这也帮助我们在词级和序列级KD之间建立潜在联系。进一步,基于这一发现,我们指出了 vanilla 词级KD中的两个固有问题。首先,当前KD的目标将焦点分散到整个分布以学习知识,却缺乏对最关键的top-1信息的特殊处理。其次,由于教师模型的多数top-1预测与真实标记重叠,知识在很大程度上被黄金信息所覆盖,这进一步限制了KD的潜力。为解决这些问题,我们提出了一种名为Top-1信息增强知识蒸馏(TIE-KD)的新方法。具体来说,我们设计了一个层次排序损失来强制从教师那里学习top-1信息。此外,我们开发了一个迭代KD过程,通过在无真实目标的数据上进行蒸馏来注入更多额外知识。在WMT'14英德、WMT'14英法和WMT'16英罗上的实验表明,我们的方法分别将Transformer_base学生模型提升了+1.04、+0.60和+1.11个BLEU分数,并显著优于vanilla词级KD基线。此外,与现有KD技术相比,我们的方法在不同师生容量差距上表现出更高的泛化性。

英文摘要:

Knowledge distillation (KD) is a promising technique for model compression in neural machine translation. However, where the knowledge hides in KD is still not clear, which may hinder the development of KD. In this work, we first unravel this mystery from an empirical perspective and show that the knowledge comes from the top-1 predictions of teachers, which also helps us build a potential connection between word- and sequence-level KD. Further, we point out two inherent issues in vanilla word-level KD based on this finding. Firstly, the current objective of KD spreads its focus to whole distributions to learn the knowledge, yet lacks special treatment on the most crucial top-1 information. Secondly, the knowledge is largely covered by the golden information due to the fact that most top-1 predictions of teachers overlap with ground-truth tokens, which further restricts the potential of KD. To address these issues, we propose a novel method named \textbf{T}op-1 \textbf{I}nformation \textbf{E}nhanced \textbf{K}nowledge \textbf{D}istillation (TIE-KD). Specifically, we design a hierarchical ranking loss to enforce the learning of the top-1 information from the teacher. Additionally, we develop an iterative KD procedure to infuse more additional knowledge by distilling on the data without ground-truth targets. Experiments on WMT'14 English-German, WMT'14 English-French and WMT'16 English-Romanian demonstrate that our method can respectively boost Transformer$_{base}$ students by +1.04, +0.60 and +1.11 BLEU scores and significantly outperform the vanilla word-level KD baseline. Besides, our method shows higher generalizability on different teacher-student capacity gaps than existing KD techniques.

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

↑