Multi-Granularity Optimization for Non-Autoregressive Translation

Yafu Li, Leyang Cui, Yongjing Yin, Yue Zhang

Introduction

Non-Autoregressive Translation (NAT) models have emerged as a promising solution for high-speed machine translation, offering $O(1)$ latency by generating entire sentences in parallel. However, this speed often comes at the cost of translation quality. NAT models frequently struggle with a "naive independence assumption," where words are generated without sufficient context of their neighbors, leading to errors like awkward repetitions and poor global structure. This paper introduces Multi-Granularity Optimization (MgMO), a novel training framework designed to bridge the quality gap between NAT and slower autoregressive (AT) models by providing feedback on translation segments of varying lengths.

The Challenge of Non-Autoregressive Translation

Traditional translation models generate text one word at a time, using previous tokens to inform the next. While accurate, this sequential process is slow. NAT models bypass this by predicting all tokens simultaneously. The primary hurdle for NAT is the standard cross-entropy (XE) loss used during training. XE requires a strict, position-by-position match between the model's output and the reference translation. If a model generates a correct phrase but shifts its position slightly, it is heavily penalized. This rigidity makes it difficult for NAT models to handle the inherent multi-modality of language—where multiple valid translations exist for a single source sentence.

Multi-Granularity Optimization (MgMO)

To address these limitations, the authors propose MgMO, which moves beyond token-level supervision to capture dependencies across different granularities, from local n-grams to global sentence structures.

This figure illustrates how MgMO captures dependencies across different granularities, such as local n-grams ("a book") and long-range subject-verb agreements ("Each...has").

The MgMO Training Process

The MgMO approach involves a three-step optimization process during training:

  1. Sequence Decomposition: The model samples multiple hypotheses for a given training sentence. It then applies a random masking strategy to both the hypothesis and the reference at identical positions, creating "exposed segments" of varying lengths (granularities).
  2. Metric-based Optimization (MO): Instead of relying on strict XE, the model is rewarded based on a similarity metric (such as GLEU). This provides the flexibility needed to reward correct meaning and n-gram patterns even if they don't perfectly align with the reference's word order.
  3. Integrated Feedback: The model calculates a "segment co-occurrence probability" to weight the feedback, ensuring it focuses on the most confident and informative generated spans.

Training is conducted in two stages: the model is first initialized using standard Masked Language Model (CMLM) loss and then fine-tuned using the MgMO objective.

Experimental Results

The researchers evaluated MgMO on standard benchmarks, including WMT14 English-German and WMT16 English-Romanian. Following standard NAT protocols, they utilized knowledge distillation from a high-quality AT Transformer to simplify the learning mapping.

Key Findings

  • Significant Quality Gains: MgMO outperformed baseline CMLM models by an average of 4.1 BLEU points, achieving state-of-the-art results for fully non-autoregressive models on the WMT16 En-Ro task.
  • Robustness to Sentence Length: One of the most striking results is MgMO's performance on long sequences. While standard NAT models typically see a sharp decline in quality as sentence length increases, MgMO maintains high accuracy even for sentences exceeding 60 tokens.
Performance comparison between CMLM and MgMO across different sequence lengths, showing MgMO's robustness on long sentences.
  • Reduced Token Repetition: Qualitative analysis confirmed that by capturing broader context, MgMO significantly reduces the token repetition errors that frequently plague vanilla NAT models.

Conclusion and Future Work

Multi-Granularity Optimization provides a powerful framework for improving NAT without sacrificing its inherent speed advantages. By allowing for flexible, span-based feedback, MgMO overcomes the rigid constraints of traditional cross-entropy training. While the method introduces some memory overhead during training due to hypothesis sampling, its impact on translation quality—particularly for long and complex sentences—is substantial. Future research may explore extending this multi-granularity approach to other generative tasks such as text summarization and dialogue systems.

Summary updated

BibTeX
@inproceedings{li2022multi,
  author = {Yafu Li and Leyang Cui and Yongjing Yin and Yue Zhang},
  title = {{Multi-Granularity Optimization for Non-Autoregressive Translation}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2022},
  doi = {10.18653/v1/2022.emnlp-main.339},
}
Figure