Abstract
Data augmentation is an effective performance enhancement in neural machine translation (NMT) by generating additional bilingual data. In this paper, we propose a novel data augmentation enhancement strategy for neural machine translation. Different from existing data augmentation methods which simply choose words with the same probability across different sentences for modification, we set sentence-specific probability for word selection by considering their roles in sentence. We use dependency parse tree of input sentence as an effective clue to determine selecting probability for every words in each sentence. Our proposed method is evaluated on WMT14 English-to-German dataset and IWSLT14 German-to-English dataset. The result of extensive experiments show our proposed syntax-aware data augmentation method may effectively boost existing sentence-independent methods for significant translation performance improvement.
Introduction
Neural Machine Translation (NMT) models are notoriously data-hungry, requiring vast amounts of bilingual corpora to achieve high performance. To mitigate data scarcity and improve robustness, researchers frequently employ data augmentation techniques such as word dropping, swapping, or replacement. However, standard word-level augmentation methods are typically "syntax-blind," treating every word in a sentence with an equal probability of modification.
This uniform approach can be detrimental; for instance, randomly deleting a sentence's primary verb or subject can fundamentally alter or destroy its semantic meaning. Training on such corrupted data may introduce noise that hinders rather than helps the model. This paper introduces a syntax-aware selection strategy that prioritizes modifying less critical "leaf" words while protecting the core structural elements of the sentence.
Methodology
The core of the proposed method is the use of Dependency Parsing as a heuristic to determine word importance. In a dependency tree, the "root" (often the main verb) represents the most salient part of the sentence, while words further down the branches (leaves) typically serve as modifiers.
The selection process follows these steps:
- Depth Calculation: For each word $i$, the depth $d_i$ in the parse tree is calculated.
- Probability Assignment: A selection probability $q_i$ is assigned based on depth; words closer to the root receive a lower probability of modification, while deeper words receive a higher probability.
- Normalization: These probabilities are normalized via a softmax layer to create a distribution across the sentence.
- Length Compensation: The final probability is scaled by sentence length to ensure longer sentences receive proportional modification.
This syntax-aware selection is integrated into three standard operations: Blanking (replacing with a [BLANK] token), Dropout (removing the word), and Replacement (substituting with a frequency-similar word).
Experimental Setup
The method was evaluated on two major benchmarks:
- IWSLT14 German-to-English (De-En): A smaller dataset containing 153,000 training pairs.
- WMT14 English-to-German (En-De): A large-scale dataset with 4.5 million training pairs.
The Stanford Parser was utilized to generate dependency trees for all source sentences in the training sets.
Results and Discussion
The syntax-aware approach consistently outperformed both the baseline Transformer and standard random data augmentation methods. On the WMT14 (En-De) task, syntax-aware "Blanking" achieved a 27.6 BLEU score, significantly higher than the 26.8 baseline and the 26.9 score of random blanking.
A key finding is the impact on the "Replacement" operation. While standard random replacement actually degraded performance on WMT14 (dropping to 24.8 BLEU), applying syntax-aware selection to the same operation restored performance to 26.7 BLEU. This demonstrates that the selection of which word to modify is often more critical than the modification type itself. Furthermore, as shown in the training curves, syntax-aware models converge faster, reaching higher BLEU scores much earlier in the training process compared to the baseline.
Conclusion
By respecting the hierarchical structure of language, syntax-aware data augmentation provides a more efficient way to inject noise into NMT training. Using tree depth as a proxy for word salience successfully protects the semantic "skeleton" of sentences. Future work may explore utilizing specific dependency labels (e.g., subject vs. object) for even more granular control or applying these constraints to target-side augmentation.
Summary updated