Rephrasing the Reference for Non-autoregressive Machine Translation

Chenze Shao, Jinchao Zhang, Jie Zhou, Yang Feng

Introduction

Non-autoregressive translation (NAT) models aim to accelerate machine translation by generating all target tokens simultaneously. While this significantly reduces inference latency compared to traditional autoregressive (AT) models, it introduces the multi-modality problem. Because a single source sentence can correspond to multiple valid translations (modes), NAT models often become confused during training.

Figure 1: The multi-modality problem occurs when a NAT model's valid output is heavily penalized because it does not align perfectly with a static reference. The rephraser module rewrites the reference to match the model's output while preserving meaning.

As illustrated in Figure 1, if a reference is "I ate pizza this morning" and the model outputs "this morning I ate...", standard cross-entropy loss penalizes the model at every position due to the word order mismatch. This uncertainty leads to "token repetition" (e.g., "this morning morning I ate ate"), as the model attempts to hedge its predictions across multiple valid modes.

Proposed Method: The Rephraser Module

To mitigate the issues caused by static references, this paper introduces a rephraser module. This module is a shallow (2-layer) Transformer decoder used exclusively during the training phase. Instead of training the NAT model against a fixed target, the rephraser takes the original reference and cross-attends to the NAT model's current output to generate a dynamically rephrased reference.

Figure 2: The system architecture consists of a standard Encoder-Decoder NAT framework augmented by a Rephraser module trained via reinforcement learning.

Reinforcement Learning for Rephrasing

Since no ground-truth dataset exists for "optimally rephrased" sentences, the module is trained using the REINFORCE algorithm. The reward function $\mathcal{R}$ balances two objectives:

  1. NAT Loss Reduction ($\mathcal{R}_{loss}$): The rephrased target must align with the NAT model's current predictions to provide a "fairer" training signal.
  2. Semantic Similarity ($\mathcal{R}_{sim}$): The rephrased target must maintain the original meaning of the reference, typically measured via BLEU score.

To ensure stability, the authors employ a pre-training strategy and a linear annealing schedule that gradually shifts the reward weight from the original reference toward the rephraser's output.

Experimental Results

The approach was evaluated on standard benchmarks, including WMT14 English↔German and WMT16 English↔Romanian. The models were trained using sequence-level knowledge distillation (KD), a common technique in NAT research.

Key Findings

  • Significant Quality Improvements: The rephraser consistently improved performance across different NAT architectures. It added an average of +3.6 BLEU to Vanilla NAT and +6.2 BLEU to Conditional Masked Language Models (CMLM).
  • Competitive Performance and Speed: The CTC + rephraser variant achieved a BLEU score of 27.32 on WMT14 En-De, nearly matching the autoregressive Transformer baseline (27.54) while operating 14.7x faster at inference time.
  • Reduction in Artifacts: By providing better-aligned targets, the NAT model's prediction confidence increased. In Vanilla NAT, token repetition dropped from 10.2% to 2.6%.
  • KD-Free Potential: On raw data (without knowledge distillation), the rephraser improved CMLM by over 10 BLEU points, suggesting it can help bridge the gap for training NAT models without expensive teacher models.

Conclusion and Future Work

The rephraser module successfully addresses the multi-modality problem by adapting training targets to the model's natural generation path. While it introduces a 1.3x overhead during training, it requires no additional computation during inference. Future research may focus on further reducing the reliance on knowledge distillation and optimizing the reinforcement learning hyperparameters to simplify the training pipeline.

Summary updated

BibTeX
@inproceedings{shao2023rephrasing,
  author = {Chenze Shao and Jinchao Zhang and Jie Zhou and Yang Feng},
  title = {{Rephrasing the Reference for Non-autoregressive Machine Translation}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.1609/aaai.v37i11.26587},
}
Figure