Selective Knowledge Distillation for Neural Machine Translation

Fusheng Wang, Jianhao Yan, Fandong Meng, Jie Zhou

Abstract

Standard Knowledge Distillation (KD) in Neural Machine Translation (NMT) typically involves a student model mimicking a teacher's full output distribution across all training samples. However, this "one-size-fits-all" approach often includes noisy or overly simple samples that can hinder student performance. This paper introduces a selective distillation framework that prioritizes "difficult" words—those with high student cross-entropy. By distilling only the most informative tokens, the proposed Global-level Selection (GLS) method achieves improvements of up to +1.28 BLEU on WMT’14 En-De benchmarks while utilizing only half of the distillation data.

Introduction

Knowledge Distillation is a cornerstone technique for training compact, efficient NMT models by leveraging the "dark knowledge" of larger teacher models. Traditionally, the student model is trained to match the teacher's predictions for every word in the dataset. The authors of this study challenge this convention, hypothesizing that not all samples are equally beneficial. Some may be too simple for the student to gain new insights, while others might contain teacher-induced noise or errors. The core challenge addressed is identifying which specific tokens are most suitable for distillation to maximize performance and efficiency.

Methodology

The researchers investigated various selection criteria, including sentence length, word frequency, and model confidence. Their analysis revealed that Word Cross-Entropy (Word CE)—a direct measure of the student's difficulty with a specific token—is the most effective metric for identifying valuable distillation targets.

To implement this, two strategies were proposed:

  1. Batch-level Selection (BLS): Distillation loss is applied only to the top $r\%$ of "hardest" words within each training batch based on Word CE.
  2. Global-level Selection (GLS): To overcome the bias of small batch sizes, GLS employs a First-In-First-Out (FIFO) queue to maintain a global distribution of Word CE values. This allows for more stable and representative selection of difficult tokens across the entire training process.

Key Insights: The "Less is More" Paradox

A primary finding of this work is that distilling on only the most difficult 50% of tokens often yields superior results compared to distilling on the entire dataset. This suggests that "easy" samples can act as noise, potentially introducing gradient conflicts where teacher guidance contradicts ground-truth labels.

Performance comparison of distilling high difficulty (S_High) vs. low difficulty (S_Low) words across different word rates.

Furthermore, the study found that "hard" samples for the student often correspond to higher entropy in the teacher's predictions. These high-entropy samples are rich in "dark knowledge"—information about the relationships between non-target words—which is precisely what makes KD effective.

Experimental Results

The methods were evaluated on large-scale tasks: WMT’14 English-German (4.5M pairs) and WMT’19 Chinese-English (20.4M pairs).

Comparison of BLEU scores for various distillation methods on WMT'14 En-De, showing the superiority of Global-level Selection.

As shown in the results table, Global-level Selection (GLS) achieved a peak performance of 28.57 BLEU on WMT’14 En-De, a significant improvement of +1.28 over the baseline Transformer and +0.43 over standard Word-KD. Similar gains were observed on the larger WMT’19 Zh-En task (+0.89 BLEU), demonstrating the scalability of the approach. The use of the FIFO queue in GLS was instrumental in providing the stability needed to consistently outperform batch-level selection.

Conclusion and Future Work

Selective knowledge distillation proves that quality often trumps quantity in teacher guidance. By focusing on tokens that the student model finds challenging, researchers can achieve better translation performance with less data. While the current method requires some hyperparameter tuning (e.g., the distillation rate $r\%$), it opens new avenues for curriculum learning in NMT. Future work could explore dynamic distillation rates or applying these selective principles to other NLP domains beyond translation.

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