Understanding and Improving Lexical Choice in Non-Autoregressive Translation

Liang Ding, Longyue Wang, Xuebo Liu, Derek F. Wong, Dacheng Tao, Zhaopeng Tu

The Hidden Cost of Knowledge Distillation

While Knowledge Distillation (KD) is often considered the "secret sauce" for training Non-Autoregressive Translation (NAT) models, it comes with a hidden cost: it propagates lexical errors on rare words from the teacher to the student.

NAT models are prized for their speed because they predict all words in a sentence simultaneously. However, they struggle with "multimodality"—the reality that a single source sentence can be translated in many valid ways. To simplify this learning process, researchers typically rely on KD, where an Autoregressive (AT) teacher model generates "simplified" synthetic translations for the NAT model to learn from.

The authors of this paper identify a major side effect of this standard practice: the teacher model frequently makes mistakes on low-frequency words (e.g., mistranslating a rare place name like "Newmarket" into "Newmargot"). Because the NAT model only sees the distilled data, it learns these errors as absolute truth. Furthermore, KD tends to favor high-frequency words, effectively "washing out" the rich, diverse vocabulary found in the original raw training data.

Bridging NAT Training with Raw Data

To combat this, the authors propose a novel training scheme that exposes the NAT model to the original raw data without losing the structural benefits of distillation.

Proposed training scheme bridging raw data directly to the NAT model

Their methodology introduces several key components:

  1. New Metric (AoLC): They introduce Accuracy of Lexical Choice (AoLC), a metric utilizing word alignments to measure how accurately a model translates specific source words into their corresponding target words.
  2. Bilingual Data-Dependent Priors: They add an extra Kullback-Leibler (KL) divergence term to the loss function. This encourages the NAT model to match a "prior" distribution derived directly from the raw data. They test two types of priors:
  3. Word Alignment Distribution (WAD): Derived from external word alignment tools (like GIZA++) on the raw data.
  4. Self-Distilled Distribution (SDD): Produced by an NAT model pre-trained specifically on the raw data.
  5. Logarithmic Decay: To balance the two signals, they employ a decay function ($\lambda$). Early in training, the model focuses heavily on the raw data priors to learn correct lexical mappings. Over time, this influence fades, allowing the model to focus on the distilled data to master sequence-level structure.

Key Insights: The "Strong Teacher" Paradox

One of the most surprising findings in the paper is the "Strong Teacher" Paradox. Counterintuitively, as the AT teacher model gets stronger (e.g., moving from a "Base" to a "Big" Transformer), the NAT student's performance on low-frequency words actually decreases.

Accuracy of lexical choice on En-De, showing the performance drop on low-frequency words with stronger teachers

The stronger teacher is even more prone to over-simplifying the vocabulary. KD acts as a frequency filter, increasing the "kurtosis" of the word frequency distribution. It makes high-frequency words even more dominant and starves the model of rare word examples. By demonstrating that NAT performance is heavily tied to lexical choice, the authors show that fixing the translation of individual rare words significantly improves the overall sequence quality (BLEU score).

Additionally, the two proposed priors proved complementary: WAD (alignments) helps the model understand content words like nouns and verbs, while SDD (self-distillation) is better at helping the model handle functional and grammatical tokens.

Results and Future Directions

The researchers evaluated their approach on four widely-used translation benchmarks (WMT14 En-De, WMT16 Ro-En, WMT17 Zh-En, and WAT17 Ja-En) across two state-of-the-art NAT architectures (MaskPredict and Levenshtein Transformer).

The proposed method achieved impressive gains:

  • State-of-the-Art Performance: Reached 27.8 BLEU on WMT14 En-De and 33.8 BLEU on WMT16 Ro-En, surpassing previous NAT records.
  • Rare Word Accuracy: On the En-De dataset, the accuracy for low-frequency words (AoLC) improved by 5.9% compared to the standard KD baseline.
  • Zero Latency Cost: Because the changes occur entirely during training via the loss function, the inference speed of the NAT model remains completely unchanged.

Limitations: The method does rely on external word alignment quality. While robust to some noise, very poor alignments in extremely low-resource languages might limit its effectiveness. Furthermore, while this approach fixes lexical choice, NAT models still face challenges with target-side dependencies (ensuring the generated words fit together grammatically). Future work will likely explore how this "raw data exposure" affects the model's ability to generalize to other domains.

Summary updated

BibTeX
@inproceedings{ding2021understanding,
  author = {Liang Ding and Longyue Wang and Xuebo Liu and Derek F. Wong and Dacheng Tao and Zhaopeng Tu},
  title = {{Understanding and Improving Lexical Choice in Non-Autoregressive Translation}},
  booktitle = {International Conference on Learning Representations},
  year = {2021},
}
Figure