Asynchronous Bidirectional Decoding for Neural Machine Translation

Xiangwen Zhang, Jinsong Su, Yue Qin, Yang Liu, Rongrong Ji, Hongji Wang

Abstract

Standard Neural Machine Translation (NMT) models typically generate text in a unidirectional, left-to-right (L2R) fashion, which neglects the potential context provided by the sentence's suffix. This paper presents an asynchronous bidirectional decoding framework. By first employing a backward decoder to generate hidden states from right-to-left, a subsequent forward decoder can leverage both source-side and target-side future contexts. Experimental results on Chinese-English and English-German tasks demonstrate significant improvements in translation quality over standard L2R baselines.

Introduction

In standard NMT architectures, decoders use Recurrent Neural Networks (RNNs) to generate translations sequentially from left to right. While this naturally captures the prefix of a sentence, it completely ignores the reverse target-side context—the suffix. If the model makes a poor word choice early in the sentence, the error propagates, often degrading the quality of the entire translation.

Intuitively, knowing how a sentence ends provides powerful clues for how it should begin. Previous attempts to solve this usually involved training two separate models (one L2R, one R2L) and re-ranking their final outputs. However, this post-processing approach prevents the L2R model from utilizing the R2L context during the step-by-step generation process. This paper bridges that gap by integrating bidirectional decoding directly into an end-to-end NMT framework.

Proposed Methodology

The proposed architecture consists of three main components: a standard bidirectional encoder, a backward decoder, and a forward decoder.

  1. The Backward Decoder: This RNN decodes the target sentence from right to left. Its primary function is to produce a sequence of hidden states ($\overleftarrow{s}$) using an attention mechanism over the source sentence.
  2. The Forward Decoder: This RNN generates the final translation from left to right. At every time step, it utilizes two simultaneous attention mechanisms: one over the source sentence's hidden states and a novel attention model over the backward decoder's hidden states ($\overleftarrow{s}$).
  3. Asynchronous Inference: During testing, the model operates in two phases. First, the backward decoder uses a fast greedy search to generate reverse hidden states. Then, the forward decoder uses beam search, attending to those pre-computed reverse states to generate the final output.

By passing hidden states rather than discrete predicted words from the backward to the forward decoder, the model softens the impact of prediction errors made during the backward pass.

Experimental Evaluation

The authors evaluated the model on two standard benchmarks: NIST Chinese-English (1.25M pairs) and WMT 2015 English-German (4.46M pairs).

Key Results

  • Chinese-English: The proposed model achieved an average BLEU score of 39.89, outperforming the standard RNNSearch baseline by 3.14 BLEU points and beating state-of-the-art bidirectional re-ranking models (like ATNMT) by 1.86 points.
  • English-German: The model achieved a BLEU score of 26.26, outperforming the baseline by 1.38 BLEU points.
  • Performance by Sentence Length: As shown in the figure below, the proposed model maintains a performance advantage across all sentence lengths, demonstrating the robustness of bidirectional context.
BLEU scores of different models across varying sentence lengths. The proposed model consistently outperforms baselines, particularly on longer sentences.

Discussion and Insights

The performance gains were particularly significant for Chinese-English. Because Chinese and English have vastly different grammatical structures, access to the "future" of the sentence is disproportionately beneficial. Furthermore, feeding continuous hidden states into the forward decoder helps alleviate error propagation; even if the backward decoder's word prediction is slightly off, the hidden state likely contains useful semantic concepts.

Limitations and Future Work

The primary trade-off is computational overhead. Running two decoders sequentially and computing dual attention mechanisms makes the model slower to train and deploy. Future work may explore entangling the two attention mechanisms or applying this asynchronous approach to other sequence-to-sequence tasks like image captioning.

Summary updated

BibTeX
@inproceedings{zhang2018asynchronous,
  author = {Xiangwen Zhang and Jinsong Su and Yue Qin and Yang Liu and Rongrong Ji and Hongji Wang},
  title = {{Asynchronous Bidirectional Decoding for Neural Machine Translation}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2018},
  doi = {10.1609/aaai.v32i1.11984},
}
Figure