Improving Bidirectional Decoding with Dynamic Target Semantics in Neural Machine Translation

Yong Shan, Yang Feng, Jinchao Zhang, Fandong Meng, Wen ZhangarXiv 2019

Abstract

Standard Neural Machine Translation (NMT) models typically generate text in a left-to-right (L2R) fashion, which limits their access to future target-side context. This paper proposes a novel bidirectional decoding framework that incorporates a Dynamic Interaction Module (DIM). By utilizing a right-to-left (R2L) decoder to provide a "draft" of future semantics, the L2R decoder can dynamically "read" and "update" its understanding of the target sentence. Experimental results on Chinese-English and English-Romanian tasks demonstrate that this approach significantly improves translation quality, outperforming standard RNN and Transformer baselines while maintaining high parameter efficiency.

Introduction

Most NMT models operate strictly from left to right. While effective, this creates an "unbalanced" translation process: the model has full context for the words it has already generated but must guess blindly about the "future" words on the right side of the sentence. This often results in a lack of global coherence, where the beginning of a sentence is more accurate than the end.

Previous attempts to incorporate bidirectional context often relied on shallow methods, such as re-scoring finished translations or using static attention mechanisms. These approaches fail to track which parts of the future context have already been utilized. This paper introduces a deeper interaction between L2R and R2L decoders through a memory-gating mechanism inspired by Neural Turing Machines.

Methodology: The Dynamic Interaction Module

The proposed architecture consists of a shared encoder and two decoders: a primary L2R decoder and an auxiliary R2L decoder. The core innovation is the Dynamic Interaction Module (DIM), which allows the L2R decoder to consult a pre-generated R2L "draft."

Architecture of the proposed bidirectional NMT model featuring the Dynamic Interaction Module (DIM).

As the L2R decoder generates tokens, DIM performs three key operations:

  1. Address: It determines which parts of the R2L hidden states are relevant to the current decoding step.
  2. Read: It extracts specific semantic information from the addressed states.
  3. Update: Using FORGET and ADD gates, the module updates its internal state to track interaction history. This prevents the model from repeatedly attending to the same future information, ensuring it stays focused on the next required word.

To ensure both decoders are aligned, the authors employ Agreement Regularization during training. By penalizing divergence between the output logits (raw scores) of the L2R and R2L decoders, the model ensures that both directions converge on a consistent semantic representation. The authors found that regularizing logits was more effective than regularizing internal hidden states, as logits carry more direct information about final word choice.

Experimental Results

The model was evaluated on the NIST Chinese-English (Zh-En) and WMT’16 English-Romanian (En-Ro) benchmarks.

Performance comparison (BLEU) and parameter counts across different NMT architectures on the Chinese-English task.

Performance and Efficiency

On the Zh-En task, the proposed model achieved a significant improvement of +3.23 BLEU points over the standard RNNSearch baseline and +1.04 BLEU over the previous state-of-the-art bidirectional model (ABDNMT). Notably, the model is highly parameter-efficient; it outperformed a standard Transformer on Zh-En while using only ~56M parameters compared to the Transformer's ~90M. On the En-Ro task, the model yielded a gain of +0.84 BLEU over the Transformer while using only 68% of the parameters.

Robustness and Attention Quality

Analysis of performance relative to sentence length shows that the model's advantage is sustained even for long sentences (50+ words). The dynamic "future" context provided by DIM is particularly effective at maintaining coherence throughout long-range dependencies. Furthermore, visualization of attention maps indicates that DIM produces sharper, more diagonal attention patterns compared to previous methods, suggesting that the "Update" operation successfully helps the model track its progress through the target sentence's future semantics.

Conclusion

This work demonstrates that dynamic interaction between L2R and R2L decoders can significantly enhance NMT performance. By maintaining an interaction history, the DIM allows for more precise utilization of future target-side context. While the current implementation requires an initial R2L pass, which adds some inference latency, the gains in translation quality and parameter efficiency make it a compelling alternative to massive, unidirectional models. Future work may explore synchronous bidirectional decoding to further optimize inference speed.

Summary updated

BibTeX
@misc{shan2019improving,
  author = {Yong Shan and Yang Feng and Jinchao Zhang and Fandong Meng and Wen Zhang},
  title = {{Improving Bidirectional Decoding with Dynamic Target Semantics in Neural Machine Translation}},
  year = {2019},
  eprint = {1911.01597},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1911.01597},
}
Figure