Synchronous Refinement for Neural Machine Translation

Kehai Chen, Masao Utiyama, Eiichiro Sumita, Rui Wang, Min Zhang

Synchronous Refinement for Neural Machine Translation

Introduction

Standard Neural Machine Translation (NMT) models typically employ auto-regressive decoding, where tokens are generated sequentially from left to right. A significant drawback of this "one-pass" approach is the "once-generation" trap: once a word is generated, it becomes a fixed part of the historical context for all subsequent steps. If the model makes an error early in the sequence, this error propagates, often leading to a cascade of further mistakes. While multi-pass decoding or post-editing can mitigate this, they are often computationally expensive and slow. This paper proposes Synchronous Refinement (SynRefinement), a method that allows the decoder to iteratively refine previously generated words in real-time during the decoding process.

Methodology

The core of the SynRefinement approach is to integrate a "fix-it" step directly into the standard decoding cycle without requiring a separate second pass.

Comparison between standard auto-regressive decoding (a) and the proposed synchronous refinement approach (b).
  1. Synchronous Decoding: At each time step $i$, the decoder predicts the current token $y_i$ and simultaneously re-evaluates a window of $N$ previous tokens ($y_{i-N} \dots y_{i-1}$). The current hidden state provides "future context" for these older tokens, enabling the model to identify and correct earlier missteps.
  2. Refinement Probability: The model computes a refinement probability for these previous positions. If a revised token has a higher probability than the original, the model performs a swap.
  3. Local Constraint ($N$): To avoid infinite loops or "over-refinement" where the model introduces new errors by over-analyzing, a hyperparameter $N$ limits the look-back window. Experimental results indicate that $N=5$ is the optimal balance for most tasks.
  4. Refinement Masking: Training utilizes a specialized masking strategy. Unlike the standard triangular mask, the refinement mask permits specific previous positions to attend to a limited amount of future context, training the model to perform corrections based on upcoming information.

Experimental Evaluation

The authors evaluated SynRefinement on three major NMT benchmarks: WMT14 English-to-German (En-De), WMT14 English-to-French (En-Fr), and WMT17 Chinese-to-English (Zh-En). These datasets cover a range of resource levels and linguistic structures.

Results and Analysis

SynRefinement consistently outperformed the baseline Transformer model across all tasks. Specifically, it achieved BLEU score improvements of +0.70 on En-De, +0.70 on Zh-En, and +1.04 on En-Fr. Notably, the method achieved these gains with zero parameter growth, as it reuses existing decoder hidden states and attention mechanisms.

BLEU scores across different window sizes $N$ for Zh-En and En-Fr tasks, showing the performance peak at $N=5$.

As shown in the performance analysis, the choice of the window size $N$ is critical. Beyond the peak at $N=5$, performance tends to degrade, likely due to the "over-refinement" issue where the model becomes overly sensitive to distant future context.

The method proved particularly effective for long sentences (50+ words), where error propagation is typically most severe. Furthermore, SynRefinement demonstrated superior efficiency compared to traditional multi-pass "Deliberation Networks," maintaining faster training and inference speeds by avoiding redundant computations.

Conclusion

Synchronous Refinement addresses the "one-pass" limitation of NMT decoders by enabling real-time correction of previous tokens using future context. By maintaining synchronicity and utilizing a local constraint, the model improves translation quality significantly without increasing parameter count or sacrificing substantial computational efficiency. Future research may explore dynamic windowing or intelligent error detection to further optimize which tokens are selected for refinement.

Summary updated

BibTeX
@inproceedings{chen2022synchronous,
  author = {Kehai Chen and Masao Utiyama and Eiichiro Sumita and Rui Wang and Min Zhang},
  title = {{Synchronous Refinement for Neural Machine Translation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2022},
  doi = {10.18653/v1/2022.findings-acl.235},
}
Figure