Towards Understanding and Improving Knowledge Distillation for Neural Machine Translation

Songming Zhang, Yunlong Liang, Shuaibo Wang, Wenjuan Han, Jian Liu +2 more
5/14/2023
cs.CLcs.AI

No official code found. Best implementation: songmzhang/NMT-KD (5 stars, last commit 2025-07-19).

Abstract

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.

View on arXivView PDF

Code Implementations(1)

songmzhang/NMT-KDCommunity100%

Repo for ACL2023 paper "Towards Understanding and Improving Knowledge Distillation for Neural Machine Translation".

52C, C++May 12, 20231 years ago

Similar Papers

Cite this paper

@article{zhang2023towards,
  title  = {Towards Understanding and Improving Knowledge Distillation for Neural Machine Translation},
  author = {Songming Zhang and Yunlong Liang and Shuaibo Wang and Wenjuan Han and Jian Liu and Jinan Xu and Yufeng Chen},
  year   = {2023},
  eprint = {2305.08096},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.08096v2}
}

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/2305.08096.svg)](https://codeofpaper.com/paper/2305.08096)

Discussion