Data Augmentation by Concatenation for Low-Resource Translation: A Mystery and a Solution

Toan Q. Nguyen, Kenton Murray, David Chiang · DOI

TL;DR

This paper investigates why simply concatenating sentence pairs during training significantly improves low-resource neural machine translation (NMT). The authors discover that the benefit isn't due to leveraging discourse context, but rather from increased diversity in sentence positions, contexts, and lengths within training minibatches.

What Problem Does This Paper Address?

Neural machine translation (NMT) systems often struggle with low-resource languages due to a scarcity of training data. A common technique to combat this is data augmentation, which aims to artificially expand the training set. One simple yet surprisingly effective method is concatenating consecutive sentence pairs from parallel corpora. However, the underlying reasons for its success, particularly whether it's due to capturing discourse context, remained unclear. This paper aims to demystify this phenomenon by dissecting the contributions of various factors introduced by concatenation.

Methods

The core of the paper revolves around an ablation study to pinpoint the exact mechanisms behind concatenation's effectiveness. The authors compare two concatenation strategies:

  • CONSEC: Concatenating adjacent sentence pairs from the same document.
  • RAND: Concatenating randomly chosen sentence pairs.

They then systematically remove or alter the hypothesized contributing factors to measure their impact on translation quality (measured by BLEU score). The key hypotheses tested are:

  • Discourse Context: Does the model benefit from seeing related sentences together?
  • Position Diversity: Does shifting sentence positions within concatenated pairs help the model generalize better to different word positions?
  • Context Diversity: Does the increased variety of (potentially unrelated) sentence pairs help the model learn to focus on relevant information and ignore noise?
  • Length Diversity: Does the mixture of short and long sentences within minibatches improve training efficiency and model performance?

Datasets

The experiments were conducted on four low-resource language pairs:

  • Galician to English (gl→en)
  • Slovak to English (sk→en)
  • English to Vietnamese (en→vi)
  • English to Hebrew (en→he)

The paper mentions using Transformer models and standard NMT training setups, including BPE for subword tokenization.

Key Insights and Ideas

  • Discourse Context is Not the Primary Driver: Surprisingly, concatenating random sentence pairs (RAND) yields similar improvements to concatenating consecutive pairs (CONSEC). This strongly suggests that the benefit doesn't stem from the model learning to leverage discourse coherence.
  • Position Shifting is a Contributor: Shifting the starting positions of the second sentence in a concatenated pair helps the model generalize to different word positions, especially for longer sentences. However, this effect is not the sole explanation.
  • Context Diversity Matters: Masking self-attention in concatenated examples (preventing sentences from attending to each other) significantly degrades performance, indicating that the increased "negative context" (unrelated sentences) helps the model learn to focus on relevant information.
  • Length Diversity is Crucial: Altering the batching strategy to reduce length diversity (sep-batch) also leads to a noticeable drop in performance, suggesting that the mix of sentence lengths is important for efficient training and better generalization.
  • Combined Effect Explains Everything: When all three hypothesized factors (position diversity, context diversity, and length diversity) are accounted for, the improvement from concatenation is almost entirely explained, bringing performance close to the baseline.

Key Results

  • Concatenation (both CONSEC and RAND) consistently improves BLEU scores by approximately +1.0 across the four low-resource language pairs compared to the baseline.
  • The improvement is more pronounced for datasets with fewer training examples.
  • An ablation study showed that removing context diversity (masking attention) caused a drop of -0.7 BLEU, and removing length diversity (sep-batch) caused a drop of -0.2 BLEU.
  • When both context and length diversity were removed, and position shifting was also neutralized (reset-pos), the BLEU score dropped to 28.0, very close to the baseline of 27.8.

Limitations and Future Work

  • BLEU as the Sole Metric: The authors acknowledge that BLEU might not capture all nuances of translation quality, and improvements in discourse context might exist but not be reflected in BLEU scores.
  • Focus on Low-Resource: While the method is effective for low-resource settings, its impact on high-resource languages is not explicitly discussed.
  • Future Work: The paper implicitly suggests further exploration into how to best leverage these diversity factors in data augmentation strategies for NMT. The authors' work also highlights the need for more sophisticated evaluation metrics that can capture discourse-level improvements.

Summary updated

BibTeX
@inproceedings{nguyen2021data,
  author = {Toan Q. Nguyen and Kenton Murray and David Chiang},
  title = {{Data Augmentation by Concatenation for Low-Resource Translation: A Mystery and a Solution}},
  booktitle = {Iwslt},
  year = {2021},
  doi = {10.18653/v1/2021.iwslt-1.33},
}
Figure