Adaptive Multi-pass Decoder for Neural Machine Translation

Xinwei Geng, Xiaocheng Feng, Bing Qin, Ting Liu

Introduction

Standard Neural Machine Translation (NMT) models typically operate in a single pass, generating target translations word-by-word from left to right. This approach is analogous to writing a final draft in one go without revision. While some "polishing" mechanisms exist, such as two-pass deliberation networks, they are often rigid. These existing models suffer from two primary flaws: a fixed decoding depth that applies the same number of passes regardless of sentence complexity, and the risk of "over-polishing," where excessive passes can actually degrade translation quality.

To address these issues, researchers have developed an adaptive multi-pass decoder that mimics the human process of drafting and polishing text. By utilizing a reinforcement learning-based policy network, the system automatically determines the optimal number of polishing passes for any given sentence.

Methodology

The proposed framework consists of three core components designed to facilitate iterative refinement:

  1. The Encoder: A standard bidirectional Recurrent Neural Network (RNN) that produces a comprehensive summary of the source sentence.
  2. The Multi-pass Decoder: Unlike standard decoders, this component utilizes a dual-attention mechanism. It attends to both the original source sentence and the hidden states of the previous translation pass, allowing it to refine the existing draft.
  3. The Policy Network: Acting as the system's decision-maker, this network uses the REINFORCE algorithm to treat decoding as a sequential decision task. After each pass, it evaluates the complexity of the source and the degree of change in the translation to decide between two actions: Continue or Stop.
The architecture of the adaptive multi-pass decoder, featuring the encoder, policy network, and iterative decoding passes.

Experimental Results

The model was evaluated on Chinese-English translation tasks using the LDC corpus for training and NIST datasets (MT02–MT06) for testing. The adaptive model was compared against several baselines, including Moses (Statistical MT), RNNSearch (1-pass NMT), and the Deliberation Network (2-pass NMT).

Performance and Efficiency

The adaptive multi-pass decoder achieved a significant performance boost, reaching an average BLEU score of 39.05. This represents a 1.55 BLEU improvement over the standard RNNSearch and a 0.74 BLEU gain over the fixed 2-pass Deliberation Network. Notably, the model achieved these results with only 96M parameters, making it more parameter-efficient than the Deliberation Network (125M).

Comparison of system performance across multiple NIST datasets, showing BLEU scores, parameter counts, and decoding speeds.

Complexity-Aware Decoding

Analysis of the policy network's behavior revealed that it naturally learned to adjust decoding depth based on sentence length. While approximately 46.57% of sentences required only a single pass, longer and more complex sentences (over 40 words) frequently triggered 3 or 4 passes. The average optimal depth was found to be 2.12 passes. By allowing early termination, the model avoids the quality drop-off associated with over-editing and maintains higher inference speeds than fixed high-depth models.

Discussion and Future Work

While the adaptive multi-pass decoder demonstrates clear advantages in translation quality and efficiency, some limitations remain. The current implementation relies on RNN architectures; transitioning this logic to the now-standard Transformer architecture is a primary goal for future research. Additionally, while the adaptive stopping mechanism improves efficiency, multi-pass decoding still introduces higher latency than single-pass models, which may impact real-time applications. Future iterations may also explore incorporating backward decoder passes to improve global understanding during the polishing phase.

Summary updated

BibTeX
@inproceedings{geng2018adaptive,
  author = {Xinwei Geng and Xiaocheng Feng and Bing Qin and Ting Liu},
  title = {{Adaptive Multi-pass Decoder for Neural Machine Translation}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2018},
  doi = {10.18653/v1/d18-1048},
}
Figure