Abstract
Early Neural Machine Translation (NMT) models struggle to translate long sentences because they compress the entire input into a single, fixed-length vector, losing crucial details. This paper proposes a novel automatic segmentation algorithm that chops long sentences into shorter, highly confident clauses, translates them independently, and concatenates the results. This approach significantly boosts translation quality for long sentences and improves the model's robustness against unknown words.
Introduction
When this paper was written, the newly introduced RNN Encoder-Decoder models for machine translation were showing great promise, but they hit a severe wall with sentence length. When input sentences exceeded roughly 20 words, translation quality plummeted.
This "curse of sentence length" happens because the encoder network is forced to squash a variable-length sequence into a fixed-size vector representation. For long sentences, the network simply lacks the capacity to remember all the subtle details, causing the decoder to generate poor translations. Furthermore, training on long sentences is computationally expensive, and parallel training corpora rarely contain enough long-sentence examples to teach the model effectively. The authors tackle this gap by finding a way to feed the network the short, bite-sized phrases it handles best.
Proposed Method: Automatic Segmentation
Instead of trying to force the NMT model to digest a massive sentence all at once, the authors introduce an automatic segmentation step prior to translation. The input sentence is segmented into phrases, each is translated independently by the RNN Encoder-Decoder, and the outputs are concatenated.
The core innovation is how the model decides where to cut the sentence. The authors formulate this as an integer programming problem that maximizes a total "confidence score" for the segmented pieces. To calculate this confidence score for a candidate phrase, they use:
- A direct translation model: The log-probability of the translation given the source phrase $p(f|e)$.
- A reverse translation model: The log-probability of the source phrase given the translation $p(e|f)$.
- A length penalty: A denominator term that penalizes overly short segments, preventing the model from cheating (since RNNs tend to overestimate the probability of very short sequences).
An approximate beam search is used to find candidate translations for the sub-phrases, and the optimal segmentation can be solved in polynomial time.
Experimental Setup
Datasets
- Training: A massive 348 million word English-to-French parallel corpus (combining Europarl, news commentary, UN data, and crawled corpora). Training was restricted to sentences of 30 words or fewer.
- Evaluation:
news-test2012andnews-test2013were used as development/tuning sets, andnews-test2014was used as the primary test set. - Vocabulary: The models were limited to the top 30,000 most frequent words for both languages. All other words were mapped to an
[UNK](unknown) token.
Analysis and Results
The authors found that the fixed-length bottleneck is a significant limitation. Even randomly segmenting a long sentence yielded better translations than feeding the whole sentence into the NMT model. This starkly highlights the severe capacity limits of early fixed-vector RNN encoders.
Key Results
- Massive BLEU improvement: On the
news-test2014dataset, the baseline RNN Encoder-Decoder achieved a BLEU score of 13.92. The proposed bidirectional segmentation approach boosted this to 20.86. - Control comparisons: Random segmentation achieved a BLEU of 16.60, and segmentation using random confidence scores achieved 16.76. This proves that while any segmentation helps, their specific bidirectional confidence metric is highly effective.
- Length robustness: While the baseline model's BLEU score crashes as sentence length increases past 20-30 words, the segmentation approach maintains a stable BLEU score even for sentences up to 80 words long.
Furthermore, segmenting sentences naturally isolates unknown words ([UNK]). The authors observed that shorter clauses with fewer unknown words lead to much more stable translations. Consequently, the segmented approach is highly robust to out-of-vocabulary terms compared to translating the full sentence.
Conclusion and Future Work
While effective, the method has limitations. It simply concatenates translated segments in their original order. This works for English-to-French but may fail for language pairs requiring long-distance reordering. Additionally, translating segments in isolation can lead to disjointed final sentences, impacting fluency and punctuation. Scoring every possible sub-phrase also introduces computational overhead. Future work should investigate mechanisms to intelligently reorder translated clauses and improve the overall fluency of concatenated outputs.
Summary updated