Learning to Generalize to More: Continuous Semantic Augmentation for Neural Machine Translation

Xiangpeng Wei, Heng Yu, Yue Hu, Rongxiang Weng, Weihua Luo, Rong Jin

Abstract

Traditional data augmentation for Neural Machine Translation (NMT) often relies on discrete text manipulations, which can suffer from limited diversity and semantic drift. We present Continuous Semantic Augmentation (CSANMT), a framework that performs augmentation in a continuous semantic vector space. By sampling diverse, meaning-preserving vectors from an adjacency region around training instances, CSANMT achieves state-of-the-art performance and demonstrates superior generalization, particularly in low-resource and noisy settings.

Introduction

Supervised NMT models are notoriously data-hungry. While Data Augmentation (DA) is a common strategy to improve generalization, traditional discrete-space methods—such as word swapping, token dropping, or Back-Translation (BT)—face two significant hurdles. First, they often lack diversity; BT, for instance, typically relies on beam search which favors high-probability, frequent translations. Second, they risk semantic drift, where minor character or word changes fundamentally alter a sentence's meaning.

CSANMT addresses these issues by treating meaning as a continuous region rather than a single discrete point. This allows the model to explore a "cloud" of semantic variants for every training sentence, effectively simulating a vast array of potential rephrasings without the need for explicit text generation.

Methodology: Continuous Semantic Augmentation

The CSANMT framework integrates three core components into the standard Transformer architecture to enable continuous-space augmentation.

The CSANMT architecture integrates a Semantic Encoder and a Broadcasting Integration Network into the standard Transformer pipeline.

1. Semantic Encoder & Tangential Contrastive Learning

A semantic encoder maps source and target sentences into a shared continuous space. To ensure this space accurately reflects semantic equivalence, the authors employ a tangential contrastive loss. This objective treats the boundary of a semantic region as a "critical state," encouraging the model to cluster semantically similar sentences while maintaining clear separation from dissimilar ones.

2. Mixed Gaussian Recurrent Chain (MGRC) Sampling

Rather than adding isotropic noise, the MGRC algorithm samples a cluster of $K$ vectors from the "adjacency semantic region" of a training pair. This recurrent sampling process ensures that the augmented vectors are diverse yet remain strictly within the bounds of the original meaning.

3. Broadcasting Integration Network

These sampled vectors are "broadcast" into the NMT decoder. This allows the decoder to learn from a variety of semantic variants simultaneously, providing a much richer training signal than a single static vector.

Experimental Results

The researchers evaluated CSANMT across rich-resource (WMT14 En-De/En-Fr, NIST Zh-En) and low-resource (IWSLT14/17) benchmarks.

Performance results across NIST and WMT datasets, showing the impact of the number of sampled vectors (K) and the hyperparameter η.

Key Performance Metrics

  • State-of-the-Art Results: On WMT14 En-De, CSANMT achieved 30.94 BLEU, surpassing established methods like Back-Translation and AdvAug. In NIST Zh-En tasks, it outperformed the baseline by an average of 4.2 BLEU points.
  • Low-Resource Efficiency: In IWSLT tasks, the model saw gains of 2.7 to 2.9 BLEU points. Remarkably, CSANMT can match the performance of a vanilla Transformer using only 25% of the training data, highlighting its extreme information density.
  • Rare Word Mastery: The model improved rare word prediction accuracy by up to 16%, suggesting that exploring semantic neighborhoods helps the model learn better representations for infrequent terms.
  • Robustness: CSANMT proved significantly more resilient to input noise (e.g., typos or missing words) compared to models trained with discrete augmentation.

Discussion and Conclusion

While CSANMT offers substantial gains in translation quality and robustness, it does introduce a computational overhead, taking approximately 44% longer to converge due to the sampling of $K$ vectors per instance. Furthermore, performance gains tend to saturate around $K=40$, suggesting a limit to the useful diversity that can be extracted from a single training pair.

Future work may involve extending this continuous framework to multi-lingual NMT or integrating it with large-scale monolingual data to further push the boundaries of neural translation generalization.

Summary updated

BibTeX
@inproceedings{wei2022learning,
  author = {Xiangpeng Wei and Heng Yu and Yue Hu and Rongxiang Weng and Weihua Luo and Rong Jin},
  title = {{Learning to Generalize to More: Continuous Semantic Augmentation for Neural Machine Translation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2022},
  doi = {10.18653/v1/2022.acl-long.546},
}
Figure