Future-Prediction-Based Model for Neural Machine Translation

Bingzhen Wei, Junyang LinarXiv 2018

Abstract

We propose a novel model for Neural Machine Translation (NMT). Different from the conventional method, our model can predict the future text length and words at each decoding time step so that the generation can be helped with the information from the future prediction. With such information, the model does not stop generation without having translated enough content. Experimental results demonstrate that our model can significantly outperform the baseline models. Besides, our analysis reflects that our model is effective in the prediction of the length and words of the untranslated content.

Introduction

Standard sequence-to-sequence (Seq2Seq) models for Neural Machine Translation typically operate in a myopic, autoregressive fashion, generating one word at a time based only on the previously generated tokens and the source context. This approach lacks an explicit internal representation of the content yet to be translated. Consequently, models often suffer from two primary issues: premature termination, where the model generates an "end-of-sentence" token before all source information is captured, and semantic drifting, where the lack of global context leads to translations that are fluent but disloyal to the original meaning.

To address these challenges, we introduce the Future-Prediction-Based (FPB) model. By providing the decoder with a "conjecture" of the untranslated content, we aim to guide the generation process with a forward-looking perspective that ensures the model remains faithful to the source text.

Methodology

The FPB model augments a standard attention-based Bi-LSTM Seq2Seq architecture with two specialized components designed to look ahead:

  1. Bag-of-Words (BOW) Predictor: At each time step $t$, the model predicts the set of words expected in the remainder of the sentence ($y_{>t}$). To handle the complexity of exact sequence prediction, the model predicts a probability distribution over the vocabulary. Accuracy is enhanced by generating $k$ different outputs and averaging them.
  2. Length Predictor: This module predicts a scalar value representing the remaining word count. This acts as a "countdown" mechanism, discouraging the decoder from stopping prematurely.

The predicted BOW distribution is converted into a "future embedding" ($e_{bow}$) and fed back into the decoder at the next time step, ensuring that the future conjecture directly informs the current word choice. The model is trained using a joint loss function: $$L = \lambda_1 L_{NLL} + \lambda_2 L_{BOW} + \lambda_3 L_{len}$$ where $L_{NLL}$ is the standard translation loss, and the other terms supervise the future-prediction modules.

Experimental Setup

The FPB model was evaluated on two distinct translation tasks:

  • WMT 2014 English-German: A large-scale task with 4.5 million sentence pairs, using news-test 2013 for development and news-test 2014 for testing.
  • IWSLT English-Vietnamese: A smaller-scale task with 133,000 sentence pairs based on TED talks.

Results and Analysis

The FPB model consistently outperformed established baselines across both datasets. On the English-German task, it achieved a BLEU score of 25.79, surpassing Google’s GNMT and the convolutional ConvS2S model.

Comparison of FPB with baseline models on the English-German task.

On the English-Vietnamese task, the FPB model reached a BLEU score of 27.70. An ablation study revealed that the BOW predictor is the primary driver of these gains, providing critical semantic guidance that outweighs the contribution of the length predictor alone.

Ablation study showing the impact of the length and BOW predictors on translation performance.

Insights into Future Prediction

A key finding is that the act of predicting the future serves as a powerful regularizer. Even when the BOW prediction is not perfectly accurate, the requirement to predict it forces the decoder's hidden states to retain more global information from the source. Analysis showed that while BOW prediction accuracy naturally declines as the "future" horizon grows, it remains stable at approximately 50% even for 20-word horizons, providing a persistent and useful signal throughout the decoding process.

Conclusion

The Future-Prediction-Based model demonstrates that incorporating explicit conjectures about untranslated content significantly improves NMT performance. By mitigating myopic generation, the model produces more faithful translations. Future work will explore the application of this framework to other generative tasks like summarization and dialogue, as well as optimizing the computational overhead introduced by the additional prediction heads.

Summary updated

BibTeX
@misc{wei2018future,
  author = {Bingzhen Wei and Junyang Lin},
  title = {{Future-Prediction-Based Model for Neural Machine Translation}},
  year = {2018},
  eprint = {1809.00336},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1809.00336},
}
Figure