TL;DR
This paper introduces two novel methods to inject syntactic information from source sentences into Transformer-based neural machine translation (NMT) models. By leveraging linearized constituency parses, they demonstrate consistent improvements in low-resource translation scenarios, particularly with their multi-task learning approach.
What Problem Does This Paper Address?
Transformer models have revolutionized NMT, achieving state-of-the-art results. However, research suggests they may not capture syntactic structures as effectively as recurrent neural networks (RNNs), especially in low-resource settings. This can lead to poorer generalization and translation quality. While Transformers show some inherent ability to learn syntax, this ability diminishes in low-resource scenarios. The paper aims to bridge this gap by explicitly incorporating source-side syntactic information into Transformer NMT models to improve their understanding and generation of grammatically correct translations, particularly when data is scarce.
Methods
The authors propose two main methods for integrating source syntax:
- Multi-Task NMT and Parsing with Shared Decoder: This approach trains a single Transformer model to perform two tasks simultaneously: translating the source sentence into the target language and parsing the source sentence into a linearized constituency parse. The model uses a shared encoder and decoder for both tasks. This is a novel application of multi-task learning to Transformer NMT, differing from previous work by using a single shared decoder and a Transformer architecture.
- Mixed Encoder Transformer: This method trains a standard Transformer NMT model on a corpus that includes both unparsed source sentences and source sentences with their linearized constituency parses. During inference, the model can handle either input format. This approach allows the model to learn from both syntactic and non-syntactic data without requiring modifications to the core Transformer architecture.
Both methods utilize linearized constituency parses. These parses are generated using the Stanford CoreNLP parser and then "linearized" using a depth-first tree traversal. To manage sequence length, part-of-speech tags are removed from the parses.
Datasets
- Europarl Parallel Corpus: Used for small-scale cross-lingual experiments, translating English into 21 diverse target languages. The data was filtered to ensure it represented intersections of the Europarl training data, resulting in 170k parallel sentences per language pair.
- WMT Datasets: Used for full-scale experiments, specifically:
- English→Turkish (TR) from WMT18.
- English→Romanian (RO) from WMT16.
- English→German (DE) from WMT17. These datasets provided larger amounts of training data compared to the Europarl corpus.
Key Insights and Ideas
- Syntax is Crucial for Low-Resource NMT: The paper strongly suggests that explicit syntactic information is particularly beneficial for Transformer NMT when training data is limited.
- Multi-Task Learning is Effective: The multi-task approach, where the model learns to translate and parse simultaneously, consistently yielded the best results across many low-resource language pairs.
- Transformer Syntax Learning is Data-Dependent: While Transformers can learn syntax implicitly, this ability is significantly weaker in low-resource settings, highlighting the need for explicit syntactic supervision.
- Linearized Parses are a Practical Solution: Using linearized parses allows for the integration of syntax without altering the fundamental Transformer architecture, making it a flexible and practical approach.
- High-Resource NMT is Different: The benefits of syntactic augmentation diminish or even disappear in very high-resource scenarios (e.g., English-German WMT), suggesting that Transformers might learn sufficient syntax from abundant data alone in these cases.
Key Results
- Small-Scale Cross-Lingual: The multi-task system consistently improved over a non-syntactic baseline by an average of 1.3 BLEU points across 21 target languages. For most languages, it achieved at least a 1 BLEU point improvement.
- Full-Scale WMT:
- English→Turkish (EN→TR): The multi-task method showed improvements of 1.0-1.6 BLEU points over the baseline, mirroring the small-scale results.
- English→Romanian (EN→RO): Modest improvements were observed (0.5 BLEU for both methods), less pronounced than in the Europarl EN→RO experiments, suggesting data quantity might be a factor.
- English→German (EN→DE): For this high-resource task, the multi-task model performed poorly, even worse than the baseline, while the mixed encoder offered only marginal improvements. This is a significant finding, indicating that syntactic augmentation is not universally beneficial.
Limitations and Future Work
- High-Resource Degradation: The most significant limitation observed is the degradation of performance for the multi-task model in very high-resource settings (EN→DE WMT). The authors note that in the EN→DE case, the multi-task model failed to learn to parse effectively, outputting identical parses for all sentences.
- Validation Focus: For the multi-task model, validation was only performed on the translation task, not the parsing task, which might have contributed to the failure to learn parsing in the EN→DE case.
- Future Work:
- Extending these techniques to incorporate target-side syntax.
- Investigating different source languages to understand if syntax has a greater effect on certain languages.
- Exploring a multi-task, multilingual NMT framework with multiple target languages.
Summary updated