Synchronous Bidirectional Neural Machine Translation

Long Zhou, Jiajun Zhang, Chengqing Zong

Introduction

Standard Neural Machine Translation (NMT) models, such as the Transformer, typically generate text unidirectionally, usually from left to right (L2R). This approach creates an inherent imbalance: while the model has access to the full historical context for tokens at the end of a sentence, it has very little context for those at the beginning. Empirically, L2R models excel at prefixes but struggle with suffixes, while right-to-left (R2L) models show the opposite trend. Furthermore, unidirectional generation prevents the model from exploiting "future" target-side context, a strategy humans use to maintain global coherence.

This paper introduces Synchronous Bidirectional Neural Machine Translation (SB-NMT), a framework that decodes in both directions simultaneously within a single model. By enabling interaction between these two streams, the model leverages both history and future context to improve translation quality.

Methodology

The SB-NMT framework relies on three core innovations to facilitate interactive, simultaneous decoding.

Synchronous Bidirectional Attention (SBAtt)

The primary architectural innovation is Synchronous Bidirectional Attention (SBAtt). In a standard Transformer, masked self-attention prevents the decoder from "looking ahead." SBAtt replaces this restriction by allowing the L2R stream to attend to its own history as well as the tokens currently being predicted by the R2L stream, and vice versa.

The SBAtt mechanism enables the L2R and R2L decoding streams to interact, providing each with "future" context from the opposite direction.

To combine the "history" (same-direction context) and "future" (opposite-direction context), the authors employ an Interactive Fusion layer. This layer can use linear interpolation, nonlinear transformations (tanh/ReLU), or gating mechanisms to balance the two context sources.

Rather than running two independent models, SB-NMT uses a single decoder guided by special start tokens: <l2r> and <r2l>. During inference, a modified beam search is used where the beam is partitioned, dedicating half to L2R hypotheses and half to R2L.

Synchronous Bidirectional Beam Search partitions the beam to maintain both L2R and R2L hypotheses simultaneously.

Pseudo-Reference Training

To avoid data leakage where the model simply copies from the opposite direction during training, a two-stage process is used. Vanilla L2R and R2L models are first trained to generate "pseudo-references." The SB-NMT model is then trained using these pseudo-references, teaching it to interact with imperfect, predicted future context rather than ground-truth labels.

Experimental Setup

The model was evaluated on three large-scale translation tasks:

  • NIST Chinese-English: ~2.0 million sentence pairs.
  • WMT14 English-German: ~4.5 million sentence pairs.
  • WMT18 Russian-English: ~14 million sentence pairs.

Evaluation utilized standard benchmarks (NIST 03-06, Newstest 2014/2018) and Byte Pair Encoding (BPE) for subword segmentation.

Results and Analysis

SB-NMT achieved significant improvements over the baseline Transformer (Big) model across all tasks:

  • Chinese-English: Gained 3.92 BLEU points, reaching a state-of-the-art 51.11.
  • English-German: Improved by 1.49 BLEU points (29.21 BLEU).
  • Russian-English: Improved by 1.04 BLEU points.

Qualitative analysis revealed a 30.6% reduction in under-translation errors. The bidirectional context helps the model track untranslated source words more effectively than unidirectional baselines.

Key Insights

  • Complementary Error Profiles: L2R and R2L models have inverse error distributions. SB-NMT's interaction mechanism effectively fills the context gap for both sides.
  • Efficiency: SB-NMT outperforms ensemble methods while remaining more compact and decoding faster than traditional two-pass asynchronous bidirectional approaches.
  • Beam Search Robustness: Unlike standard Transformers, which can suffer from the "beam search curse" (quality drop with large beam sizes), SB-NMT remains stable, suggesting bidirectional constraints help prune low-probability search paths.

Conclusion

SB-NMT successfully addresses the context imbalance of unidirectional NMT by enabling synchronous, interactive decoding. While the training pipeline is more complex due to the need for pseudo-references, the gains in translation quality and robustness are substantial. Future work may extend this framework to other sequence tasks like abstractive 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