Abstract
Standard Neural Machine Translation (NMT) models often treat language as a flat sequence of tokens, which can lead to difficulties in handling complex grammatical structures and long-distance reordering. This paper presents a method to incorporate target-side syntactic knowledge into NMT by training models to output linearized constituency trees. By using standard attention-based architectures with these augmented target sequences, the authors demonstrate significant improvements in translation quality, especially in low-resource scenarios and for complex structural reordering.
Introduction
While sequence-to-sequence NMT has achieved remarkable success, it often lacks the explicit structural awareness that characterized earlier Statistical Machine Translation (SMT) models. Specifically, "string-to-tree" (S2T) models were previously favored for their ability to handle structural differences between languages, such as the verb-final position in German versus the verb-second position in English. This research explores whether NMT can regain these benefits by simply changing the target representation to include syntactic markers.
Methodology: Linearized Syntactic Trees
The core approach involves representing target-language constituency trees as flat sequences of tokens. Instead of a plain sentence, the model learns to generate a "linearized" version that includes brackets and labels (e.g., (NP ... )NP).
This representation allows the use of standard attention-based sequence-to-sequence architectures (like Nematus) without structural modifications. To manage vocabulary size, Byte Pair Encoding (BPE) is applied to the words within the tree, resulting in a bpe2tree model that interleaves sub-word units with syntactic tags.
Experimental Setup
The models were evaluated on two main fronts:
- High-Resource: The WMT16 German-English (DE-EN) news translation task, featuring 4.5 million sentence pairs.
- Low-Resource: News Commentary v8 datasets for German, Russian (RU), and Czech (CS) to English translation.
In all cases, the English target sentences were automatically parsed into constituency trees using the BLLIP parser to create the training data.
Analysis and Insights
The authors identified several key reasons for the improved performance of the syntax-aware models:
Syntax as a Structural "Plan"
Analysis of the attention mechanism reveals that the model uses syntactic markers to "plan" sentence structure. When generating the initial opening brackets of a phrase, the attention mechanism often focuses on the main verb or key structural elements in the source sentence. This suggests the syntactic framework helps the model decide the overall sentence structure before it even starts picking specific words.
Improved Reordering and Complexity
The bpe2tree model demonstrated a greater capacity for "distortion"—the movement of words from their original relative positions—allowing for more natural English word order from German sources. Furthermore, the model produced more complex structures, such as relative clauses using pronouns like "who," "which," and "that," more frequently than the baseline, matching the distribution of the reference translations more closely.
Key Results
- BLEU Score Gains: On the WMT16 DE-EN task, the
bpe2treeensemble reached a BLEU score of 33.24, a significant improvement over the syntax-agnostic baseline of 32.38. - Low-Resource Success: The benefits were even more pronounced in low-resource settings. For example, in the RU-EN task, the ensemble BLEU jumped from 11.91 to 12.89.
- Human Preference: In a blind evaluation of 500 sentences, human evaluators preferred the syntax-aware translations in 37.2% of cases, while the baseline was preferred only 30.8% of the time.
Conclusion
This work demonstrates that target-side syntax can be effectively integrated into NMT through simple linearization. While this increases sequence length and computational cost, the benefits in structural accuracy and translation fluency are substantial. Future research may explore more efficient tree-structured decoding to mitigate the overhead of long linearized sequences and reduce dependency on the quality of automatic parsers.
Summary updated