Synchronous Bidirectional Neural Machine Translation

Long Zhou, Jiajun Zhang, Chengqing Zong

Abstract

Standard Neural Machine Translation (NMT) models typically generate sequences in a unidirectional, left-to-right (L2R) fashion, which lacks access to future context during decoding. This paper introduces Synchronous Bidirectional NMT (SB-NMT), a framework that generates translations in both L2R and right-to-left (R2L) directions simultaneously. By employing a novel Synchronous Bidirectional Attention (SBAtt) mechanism, the model allows both decoders to interact and share context in real-time. Experimental results on NIST Chinese-English and WMT benchmarks demonstrate that SB-NMT achieves state-of-the-art performance, significantly improving translation quality and reducing under-translation while maintaining high computational efficiency.

Introduction

Most Neural Machine Translation (NMT) models are unidirectional, generating words sequentially from left to right (L2R). This approach creates an inherent information imbalance: while the model has access to the generated history, it lacks concrete information about the "future" context (the suffix of the sentence). This often leads to unbalanced outputs where translation quality degrades toward the end of the sentence.

While previous attempts to address this have used "two-pass" methods—generating L2R and R2L sequences separately and re-ranking them—these are computationally expensive and prevent the two directions from mutually informing each other during generation. Synchronous Bidirectional NMT (SB-NMT) solves this by integrating bidirectional decoding into a single, interactive Transformer-based model.

Methodology

The SB-NMT framework introduces several key innovations to enable simultaneous bidirectional generation.

Synchronous Bidirectional Attention (SBAtt)

The core of the model is the SBAtt mechanism. In a standard Transformer, the decoder uses self-attention to look at previously generated tokens. SBAtt replaces this by allowing the L2R decoder to attend to its own history and the tokens currently being produced by the R2L decoder at the same time step. This effectively provides each decoder with a "future" context from the opposing side.

Conceptual overview of Synchronous Bidirectional Attention (SBAtt) showing interaction between L2R and R2L decoders.

Model Architecture and Fusion

The overall architecture integrates SBAtt into the Transformer decoder block. To combine the "history" state (from the current direction) and the "future" state (from the opposite direction), the authors utilize a fusion mechanism. Among various tested methods, nonlinear interpolation using a tanh activation function was found to be the most effective.

The SB-NMT architecture, highlighting the integration of the Synchronous Bidirectional Attention block within the Transformer decoder.

To support bidirectional generation during inference, the standard beam search algorithm was modified. The beam is split equally between L2R and R2L hypotheses. At the conclusion of the search, the model selects the highest-probability sequence from the combined pool of bidirectional candidates.

Experimental Results

The model was evaluated on three major benchmarks: NIST Chinese-English (~2.0M pairs), WMT14 English-German (~4.5M pairs), and WMT18 Russian-English (~14M pairs).

Performance and Accuracy

SB-NMT achieved significant gains over the standard Transformer baseline, with improvements of 3.92 BLEU points on Chinese-English and 1.49 points on English-German. At the time of publication, these results established new state-of-the-art scores (51.11 for Zh-En and 29.21 for En-De).

Analysis of token-level accuracy confirmed that while L2R models excel at sentence beginnings and R2L models at sentence endings, SB-NMT bridges this gap, maintaining high accuracy across the entire sequence.

Efficiency and Robustness

Despite the bidirectional complexity, SB-NMT is highly efficient. It translates approximately 17.87 sentences per second, nearly three times faster than traditional re-ranking methods (6.51 sentences/sec). Furthermore, the model demonstrates increased robustness to larger beam sizes, avoiding the "beam search curse" often seen in unidirectional models.

Conclusion and Limitations

SB-NMT represents a significant step forward in NMT by enabling real-time interaction between L2R and R2L decoding. By providing "future" context during the generation process, the model significantly reduces under-translation and improves overall sequence balance.

However, the training process is more complex than standard models. To prevent the model from "cheating" by seeing gold-standard future tokens, a specific training strategy involving pseudo-references from pre-trained unidirectional models is required. Future work may extend this synchronous bidirectional framework to other tasks such as text summarization and image captioning.

Summary updated

BibTeX
@article{zhou2019synchronous,
  author = {Long Zhou and Jiajun Zhang and Chengqing Zong},
  title = {{Synchronous Bidirectional Neural Machine Translation}},
  journal = {Trans. Assoc. Comput. Linguistics},
  year = {2019},
  doi = {10.1162/tacl\_a\_00256},
}
Figure