Improving Non-autoregressive Machine Translation with Error Exposure and Consistency Regularization

Xinran Chen, Sufeng Duan, Gongshen Liu

Introduction

Non-autoregressive machine translation (NAT) models aim to accelerate inference by generating target sequences in parallel. While significantly faster than traditional autoregressive (AT) models, NAT systems often suffer from a performance gap due to their inability to capture complex dependencies between target tokens. The Conditional Masked Language Model (CMLM) addresses this via iterative refinement, but it remains plagued by exposure bias: a discrepancy between the ground-truth context seen during training and the erroneous predictions encountered during inference. This mismatch often leads to "hallucinations" and repetitive word generation.

Methodology: The EECR Framework

To bridge this gap, this paper introduces EECR (Error Exposure and Consistency Regularization). The framework consists of two primary components designed to make the model robust to its own mistakes by mimicking inference conditions during the training phase.

1. Error Exposure

Unlike standard training that relies solely on gold-standard context, EECR intentionally exposes the model to its own prediction errors. During training, the model performs a multi-step refinement to generate a "mixed sequence." A portion of the ground-truth tokens is substituted with these predicted tokens, forcing the decoder to learn recovery strategies from imperfect contexts.

2. Consistency Regularization

To stabilize the learning process, the authors enforce consistency across different "views" of the input. By applying Symmetric KL Divergence between the probability distributions of masked tokens in "clean" (ground-truth) and "noisy" (mixed) contexts, the model learns to maintain invariant predictions regardless of minor contextual errors.

Overview of the EECR architecture, illustrating the multi-iteration refinement, token substitution, and prediction consistency mechanisms.

Experimental Setup

The effectiveness of EECR was evaluated on five widely recognized translation benchmarks, including WMT14 English↔German (EN↔DE), WMT16 English↔Romanian (EN↔RO), and IWSLT14 German→English (DE→EN). The models were tested on both raw data and knowledge-distilled data pre-processed by a high-quality AT teacher model.

Key Insights: Distributional Stability

A critical finding is that EECR improves the model's internal representation stability. By comparing the cosine similarity of hidden states between clean and noisy contexts, the authors observed that EECR significantly shifts the distribution toward higher similarity compared to the baseline CMLM. This empirical evidence suggests that the model develops features that are inherently more robust to the "noise" of its own predictions, effectively solving the repetition bug common in NAT systems.

Histogram of cosine similarity between hidden states for EECR and the baseline CMLM, demonstrating improved representation robustness in EECR.

Results and Discussion

EECR achieves state-of-the-art results for iterative NAT models. On the WMT14 EN→DE task, the model reached 28.04 BLEU, surpassing the autoregressive Transformer teacher (27.30 BLEU) while maintaining a 3.77x speedup. Furthermore, EECR effectively mitigates word repetition, nearly halving repetition rates in early refinement iterations.

Limitations

The primary trade-off for this performance gain is increased training time. Generating the mixed sequences requires multiple decoder passes during each training step, extending the training duration for WMT14 EN→DE from 17 to 48 hours. Future research may focus on more efficient error-generation strategies to alleviate this computational overhead.

Summary updated

BibTeX
@inproceedings{chen2024improving,
  author = {Xinran Chen and Sufeng Duan and Gongshen Liu},
  title = {{Improving Non-autoregressive Machine Translation with Error Exposure and Consistency Regularization}},
  booktitle = {NLPCC},
  year = {2024},
  doi = {10.1007/978-981-97-9437-9\_19},
}
Figure