Selective Knowledge Distillation for Neural Machine Translation

Fusheng Wang, Jianhao Yan, Fandong Meng, Jie Zhou

Abstract

Knowledge Distillation (KD) is a cornerstone of efficient Neural Machine Translation (NMT), yet standard approaches assume all training data contributes equally to the student's learning. This research demonstrates that distilling "easy" samples can introduce noise and degrade performance due to gradient conflicts. By proposing a selective distillation strategy focused on "difficult" words—identified via Word Cross-Entropy (Word CE)—the authors achieve gains of up to +1.28 BLEU on WMT'14 En-De. The method is both computationally efficient and scalable to deep architectures.

Introduction

In Neural Machine Translation, Knowledge Distillation typically involves a smaller "student" model mimicking the full probability distribution of a larger "teacher" model across the entire training set. However, this assumes that every word in every sentence is equally informative. This paper challenges this assumption, investigating whether being selective about which knowledge to distill can lead to better performance and higher efficiency.

Methodology: Identifying the Right Samples

The authors explored various criteria to partition the training data into "easy" ($S_{Low}$) and "hard" ($S_{High}$) subsets. These included data-centric properties like sentence length and word frequency, as well as model-centric metrics like Word Cross-Entropy (Word CE).

Table 1: Comparison of different data selection criteria for selective distillation. Word Cross-Entropy (Word CE) provides the most significant performance gain.

As shown in Table 1, Word CE—a measure of the student's "surprise" at a given word—emerged as the most effective metric for identifying samples that drive improvement. Based on this, two strategies were developed:

  1. Batch-level Selection (BLS): Distilling the top $r\%$ most difficult words within each mini-batch.
  2. Global-level Selection (GLS): Using a First-In-First-Out (FIFO) queue to track difficulty across the entire dataset, providing a more stable threshold for selection.

The "Less is More" Paradox

A key finding of the study is that distilling the entire dataset is often suboptimal. Distilling only the "hard" words ($S_{High}$) consistently outperformed distilling the "easy" words ($S_{Low}$), and in many cases, outperformed distilling the full dataset ("Distil All").

Figure 1: BLEU scores for distilling the "hard" ($S_{High}$) vs. "easy" ($S_{Low}$) word partitions across different word rates.

This phenomenon is explained by gradient conflict. For easy words, the gradient from the distillation loss often contradicts the gradient from the ground-truth labels, effectively adding noise. For hard words, these signals are aligned, allowing the student to benefit from the teacher's "dark knowledge" exactly where it is most needed.

Key Results and Efficiency

The proposed Global-level Selection (GLS) achieved significant improvements across major benchmarks:

  • WMT’14 En-De: Reached 28.57 BLEU, a +1.28 gain over the Transformer baseline.
  • WMT’19 Zh-En: Achieved 26.62 BLEU, a +0.89 improvement.

Beyond performance, the method is highly efficient. By focusing distillation on a subset of words (with 50% identified as the optimal rate), the computational overhead of calculating distillation losses is halved without sacrificing—and often improving—translation quality.

Conclusion

Selective Knowledge Distillation proves that in NMT training, the quality and relevance of the distilled signal matter more than the quantity. Future work may explore dynamic distillation rates that adapt as the student model evolves, potentially further refining the balance between efficiency and performance.

Summary updated

BibTeX
@inproceedings{wang2021selective,
  author = {Fusheng Wang and Jianhao Yan and Fandong Meng and Jie Zhou},
  title = {{Selective Knowledge Distillation for Neural Machine Translation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2021},
  doi = {10.18653/v1/2021.acl-long.504},
}
Figure