Overcoming the Curse of Sentence Length for Neural Machine Translation using Automatic Segmentation

Jean Pouget-Abadie, Dzmitry Bahdanau, Bart van Merrienboer, KyungHyun Cho, Yoshua Bengio

Abstract

The authors of (Cho et al., 2014a) have shown that the recently introduced neural network translation systems suffer from a significant drop in translation quality when translating long sentences, unlike existing phrase-based translation systems. In this paper, we propose a way to address this issue by automatically segmenting an input sentence into phrases that can be easily translated by the neural network translation model. Once each segment has been independently translated by the neural machine translation model, the translated clauses are concatenated to form a final translation. Empirical results show a significant improvement in translation quality for long sentences.

Introduction

In the early development of Neural Machine Translation (NMT), a significant challenge emerged: translation quality degraded sharply as sentence length increased. While traditional phrase-based statistical machine translation (SMT) systems handled long sentences relatively well, the RNN Encoder-Decoder architectures of 2014 struggled. This "curse of sentence length" was primarily due to the fixed-length vector bottleneck, where the model attempted to compress the entire meaning of a long sentence into a single representation. This paper proposes a solution by automatically segmenting long sentences into shorter, manageable clauses that the NMT model can translate more reliably.

Methodology: Automatic Segmentation

The proposed approach involves breaking a long input sentence into smaller segments, translating them independently, and concatenating the results. The core of this method is finding an optimal segmentation based on a confidence score.

Confidence Scoring

The confidence score for a phrase pair is calculated using both a forward model $p(f|e)$ and an inverse model $p(e|f)$. This bidirectional check ensures that the translation is stable and can be mapped back to the source. A penalty is also applied to very short segments to prevent overly granular, word-by-word translations.

Optimization

Finding the optimal segmentation is framed as an optimization problem to maximize the total confidence score across all segments. Due to the mathematical properties of the constraints (total unimodularity), this can be solved efficiently in quadratic time $O(n^2)$ relative to the sentence length.

Experimental Setup

The method was evaluated on English-to-French translation using a large bilingual corpus of 348 million words. Evaluation was conducted on standard WMT benchmarks (news-test2012, news-test2013, and news-test2014). The vocabulary was restricted to the 30,000 most frequent words, with others replaced by an [UNK] token.

Results and Analysis

The impact of automatic segmentation was most pronounced on long sentences. As shown in Figure 2, the baseline RNN Encoder-Decoder without segmentation experiences a dramatic drop in BLEU score as sentence length exceeds 20-30 words. In contrast, the segmented model maintains consistent performance regardless of length.

BLEU scores across different sentence lengths for RNNenc (with/without segmentation) and Moses.

On the news-test2014 dataset, the baseline scored 13.15 BLEU, while the proposed segmentation method achieved 20.86 BLEU—a relative improvement of approximately 58%. While this significantly closed the gap with the phrase-based Moses system (33.30 BLEU), it highlighted the remaining challenges for NMT at the time.

Robustness to Unknown Words

Another key insight was the model's improved robustness to unknown words. In a standard RNN, a single [UNK] token can disrupt the entire hidden state sequence. Segmentation localizes this impact to a single short clause. Figure 1 illustrates that the BLEU score decrease is significantly mitigated when segmentation is used, even as the number of unknown words increases.

Impact of unknown words on BLEU score decrease with and without segmentation.

Discussion and Conclusion

The success of even random segmentation suggested that the primary bottleneck was the encoder's capacity rather than linguistic complexity. However, the "translate and stitch" approach has limitations. It assumes similar word orders between languages and can lead to disfluencies at segment boundaries.

While the introduction of attention mechanisms shortly after this work provided a more elegant solution to the fixed-length vector problem, this paper remains a foundational study on the limitations of early NMT and the importance of localized focus during translation.

Summary updated

BibTeX
@inproceedings{pougetabadie2014overcoming,
  author = {Jean Pouget-Abadie and Dzmitry Bahdanau and Bart van Merrienboer and KyungHyun Cho and Yoshua Bengio},
  title = {{Overcoming the Curse of Sentence Length for Neural Machine Translation using Automatic Segmentation}},
  booktitle = {SSST @ EMNLP},
  year = {2014},
  doi = {10.3115/v1/w14-4009},
}
Figure