Abstract
While standard Neural Machine Translation (NMT) models are effective at learning patterns from large datasets, they often treat sentences as flat sequences, neglecting deep structural details. This lack of linguistic awareness can lead to errors like discontinuous translations or over-translation. This paper proposes incorporating explicit source-side syntax by linearizing phrase parse trees into structural labels. Among three proposed architectures, a "Mixed RNN" encoder that interleaves words with their syntactic labels performs best, improving translation quality by up to 1.4 BLEU points on Chinese-to-English tasks.
Introduction
Standard sequence-to-sequence (seq2seq) models are "linguistics-free," relying on the model's capacity to implicitly learn grammar. However, this approach frequently fails on complex sentence structures. Two primary failure modes are observed:
- Discontinuous Translation: Where a cohesive source concept (like a specific noun phrase) is split awkwardly in the target output.
- Over-translation: Where the model loses track of its state and translates the same source word multiple times in different parts of the output.
To address these, we explore methods to explicitly provide the encoder with syntactic information from a parse tree, helping the model maintain "coverage" and structural integrity.
Methodology: Linearizing Syntax
The core contribution is the integration of phrase parse trees into the NMT encoder. The authors propose three distinct architectures to achieve this:
- Parallel RNN Encoder: Maintains separate RNNs for words and structural labels, concatenating their hidden states.
- Hierarchical RNN Encoder: Uses a two-layer approach where a bottom "syntax layer" feeds into a top "word layer."
- Mixed RNN Encoder: The most effective method, which uses a single RNN to process a "stitched" sequence of words and labels derived from a depth-first traversal of the parse tree.
For a sentence like "I love dogs," the Mixed RNN might receive an input sequence such as S NP PRN I VP VBP love NP NNS dogs. This "tight coupling" allows the model to use syntax as an anchor, making it less likely to lose its way in long or complex sentences.
Experimental Results
The models were evaluated on Chinese-to-English translation using 1.25M sentence pairs from LDC corpora and tested on NIST MT datasets (02-05).
Key Findings
- Performance Gains: The Mixed RNN achieved an average improvement of 1.4 BLEU points over the baseline RNNSearch model.
- Improved Coverage: The Ratio of Over-Translation (ROT) decreased by 18% (from 5.5% to 4.5%), indicating better tracking of translated content.
- Alignment Quality: Alignment Error Rate (AER) significantly improved, showing that syntactic labels help the attention mechanism map source words to target words more accurately.
- Complexity vs. Benefit: Despite tripling the input sequence length, training time only increased by 26% on a single GPU, a manageable overhead for the resulting accuracy gains.
Conclusion
Explicitly modeling source-side syntax provides a powerful "shortcut" for NMT models to understand complex linguistic structures. The Mixed RNN approach demonstrates that simple linearization and tight coupling of words and labels are more effective than complex multi-stream architectures. While the method increases sequence length and depends on parser quality, the significant reduction in structural errors makes it a compelling enhancement for standard seq2seq models.
Summary updated