Selective Knowledge Distillation for Non-Autoregressive Neural Machine Translation

Min Liu, Yu Bao, Chengqi Zhao, Shujian Huang · DOI

Introduction

Neural Machine Translation (NMT) has traditionally been dominated by Autoregressive (AT) models, which generate translations token-by-token. While highly accurate, this sequential nature limits inference speed. Non-Autoregressive Transformers (NATs) were introduced to address this bottleneck by predicting all words in a sequence simultaneously. However, NATs face a significant challenge known as the multi-modality problem: because they assume word predictions are independent, they can become "confused" when a source sentence has multiple valid translations, often leading to incoherent outputs that mix different valid translation paths.

To mitigate this, researchers typically employ Knowledge Distillation (KD). In this setup, an AT "teacher" generates simplified, deterministic translations for the NAT "student" to learn from. While KD reduces the multi-modality of the training data, it introduces two major drawbacks: error propagation (where the student mimics the teacher's mistakes) and a loss of nuance (where the student misses the rich linguistic information present in the original raw data). This paper introduces Selective Knowledge Distillation, a method designed to find the optimal balance between high-quality raw data and low-complexity distilled data.

Methodology

The authors propose a two-pronged approach to bridge the gap between raw and distilled datasets without sacrificing the speed of the NAT architecture.

1. NAT Evaluator for Selection

Rather than relying on an AT teacher to determine the training targets, the authors utilize an NAT-based evaluator. This evaluator is an NAT model trained on distilled data that scores raw translations based on their "NAT-friendliness." If the evaluator can predict a raw translation with high confidence, that sentence is deemed both high-quality and low-complexity. These selected raw sentences then replace their distilled counterparts in the training set, ensuring the model learns from authentic data whenever possible.

2. Hard-to-Easy Curriculum Learning

The training process follows a specific curriculum. It begins with a high proportion of distilled data, which is easier for the model to grasp during the early stages of learning. As training progresses, the proportion of raw data is gradually increased. This "rejuvenation" phase allows the model to recover the linguistic nuances lost during initial distillation while maintaining the stability provided by the teacher's simplified outputs.

Experimental Setup

The proposed method was evaluated on two standard machine translation benchmarks:

  • WMT14 English-German (En-De): Approximately 3.96 million sentence pairs.
  • WMT16 English-Romanian (En-Ro): Approximately 0.6 million sentence pairs.

The researchers tested Selective KD across several prominent NAT architectures, including CMLM, DeepShallow, and GLAT+CTC, to ensure the method's generalizability.

Key Insights and Results

Performance Gains

Selective Knowledge Distillation consistently outperformed standard KD and other competitive baselines like Low Frequency Rejuvenation. On the WMT14 En-De benchmark, the GLAT+CTC model saw an improvement from 26.19 to 26.82 BLEU. Beyond BLEU scores, the models showed significant improvements in COMET scores, suggesting the translations are more aligned with human judgment.

The "5% Rule"

One of the most notable findings was the impact of even minimal distillation. The authors discovered that distilling just 5% of the raw translations—while keeping the remaining 95% as raw data—allowed an NAT to outperform a version trained entirely on raw data by 2.4 BLEU. This highlights that a strategic, small-scale application of distillation is more effective than a blanket approach.

Error Reduction and Efficiency

The selective approach significantly reduced common NAT errors, such as word repetition. For instance, on the En-De task, the repetition ratio dropped from 1.06‰ to 0.82‰. Crucially, because the selection and curriculum adjustments occur during the preprocessing and training phases, there is zero impact on inference speed. The resulting models remain 14x to 15x faster than standard autoregressive Transformers.

Conclusion

Selective Knowledge Distillation demonstrates that NATs are often the best judges of their own training data. By using an NAT evaluator and a hard-to-easy curriculum, the authors successfully recovered authentic information from raw datasets that standard distillation typically discards. While the method introduces a two-stage training process and requires threshold tuning, it represents a significant step toward closing the quality gap between autoregressive and non-autoregressive translation models.

Summary updated

BibTeX
@inproceedings{liu2023selective,
  author = {Min Liu and Yu Bao and Chengqi Zhao and Shujian Huang},
  title = {{Selective Knowledge Distillation for Non-Autoregressive Neural Machine Translation}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.1609/aaai.v37i11.26555},
}
Figure