Deterministic Reversible Data Augmentation for Neural Machine Translation

Jiashu Yao, Heyan Huang, Zeming Liu, Yuhang Guo

Abstract

Neural Machine Translation (NMT) models often leverage data augmentation (DA) to enhance generalization. However, common DA techniques like token substitution or probabilistic subword regularization can introduce semantic noise or "sub-optimal" segmentations that disrupt linguistic consistency. This paper introduces Deterministic Reversible Data Augmentation (DRDA), a method that represents sentences at multiple levels of subword granularity using fixed, deterministic segmentations. By employing a multi-view learning objective with an agreement loss, DRDA ensures that different symbolic representations of the same sentence converge to a consistent semantic space. Experimental results across various resource settings demonstrate that DRDA significantly outperforms standard Transformers and existing DA baselines, yielding gains of up to 4.37 BLEU in low-resource scenarios and improved robustness to noise.

Introduction

In NMT, data augmentation is a critical strategy for improving model performance, especially when training data is scarce. Traditional techniques, such as token dropping or substitution, are often irreversible and can lead to a loss of original meaning. Newer methods like subword regularization (e.g., BPE-dropout) use probabilistic sampling to create diverse subword sequences. While reversible, these random samples frequently produce linguistically nonsensical fragments (e.g., splitting "supermarket" into "sup erm ark et"), which introduces noise and complicates the model's semantic understanding. DRDA addresses this "semantic consistency" problem by generating diverse training data that is symbolically different but semantically identical through deterministic processes.

Methodology

DRDA is built upon three primary components designed to maintain semantic integrity while providing diverse training signals:

  1. Multi-Granularity Segmentation: Unlike probabilistic methods, DRDA generates multiple versions of a source sentence using different, fixed Byte Pair Encoding (BPE) vocabulary sizes (e.g., a 10k "prime" vocabulary and a 5k "augmented" vocabulary). This deterministic approach ensures that every segmentation is linguistically plausible.
  2. Multi-view Learning: To ensure the model treats these different versions as the same underlying concept, a multi-view loss function is employed. This includes standard translation loss for all versions and an agreement loss (symmetric KL divergence) that aligns the output probability distributions of the different granularities.
  3. Dynamic Selection at Inference: The model can choose the optimal granularity during translation using a simplified $n$-best decoding strategy to select the most probable segmentation for a given input.
Comparison of DRDA with previous data augmentation techniques.
The DRDA framework featuring multi-view learning and overlapped embedding matrices.

Crucially, DRDA requires no extra corpora and maintains the standard Transformer architecture, utilizing overlapped embedding matrices to handle varying vocabulary sizes efficiently.

Experimental Results

DRDA was evaluated across high-resource (WMT14 En→De), low-resource (IWSLT), and extremely low-resource (TED En↔Sk) datasets. It consistently outperformed vanilla Transformers and strong baselines like R-Drop and SwitchOut:

  • Low-Resource Performance: On the TED En→Sk task, DRDA achieved a substantial +4.37 BLEU gain over the baseline.
  • General Improvements: IWSLT tasks showed average improvements between 1.8 and 2.6 BLEU points.
  • Robustness: In cross-domain tests using the himl dataset (health and scientific summaries), DRDA proved superior to subword sampling methods, indicating that deterministic views handle natural noise more effectively than random perturbations.

Discussion and Key Insights

A central finding of this research is the "Frequency Drop" phenomenon. As vocabulary size increases, fine-grained subwords are often absorbed into larger, coarse-grained tokens, preventing the model from learning the precise meanings of smaller units. DRDA mitigates this by exposing the model to both versions simultaneously. Furthermore, the multi-view objective facilitates semantic composition, effectively teaching the model that the sum of embeddings for sub-units (like "_back" and "ground") should equal the embedding of the whole token ("_background").

Conclusion and Future Work

DRDA provides a robust, deterministic alternative to probabilistic data augmentation in NMT. While gains are most pronounced in low-resource settings where the "frequency drop" is most severe, the method offers consistent improvements across the board. Future research may explore applying DRDA to Large Language Models (LLMs) to improve their understanding of complex, rare terminologies by decomposing them into more frequent, well-understood sub-units.

Summary updated

BibTeX
@inproceedings{yao2024deterministic,
  author = {Jiashu Yao and Heyan Huang and Zeming Liu and Yuhang Guo},
  title = {{Deterministic Reversible Data Augmentation for Neural Machine Translation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.findings-acl.481},
}
Figure