Data Augmentation with Adversarial Training for Cross-Lingual NLI

Xin Dong, Yaxin Zhu, Zuohui Fu, Dongkuan Xu, Gerard de Melo

Abstract

Cross-lingual Natural Language Inference (NLI) is often hindered by typological differences between languages and the inherent brittleness of zero-shot transfer models. This paper introduces a robust framework that integrates two novel data augmentation strategies—Reorder Augmentation (RA) and Semantic Augmentation (SA)—with adversarial training via Projected Gradient Descent (PGD). By synthetically diversifying word order and semantic relationships while regularizing against the resulting noise, the proposed method achieves state-of-the-art results on the XNLI benchmark, in some cases outperforming models trained on native-language data.

Introduction

Natural Language Inference (NLI) involves determining whether a "premise" sentence entails, contradicts, or is neutral toward a "hypothesis." While massive NLI datasets exist for English, resources for most of the world's 7,000+ languages remain scarce. The standard solution is zero-shot cross-lingual transfer, where a model like XLM-R is trained on English and evaluated on other languages. However, this approach typically fails due to two primary factors:

  1. Typological Divergence: Languages possess distinct syntactic structures. For example, English follows a Subject-Verb-Object (SVO) pattern, whereas many other languages use Subject-Object-Verb (SOV). Models trained exclusively on English word order struggle with these syntactic shifts.
  2. Model Brittleness: Zero-shot models are often fragile, failing to capture the subtle semantic nuances required for NLI, particularly when the target language is linguistically distant from English.

Methodology

The authors propose a two-step pipeline designed to generate high-quality synthetic training data and a more resilient classifier.

1. Data Augmentation Strategies

To address the limitations of standard transfer, the framework employs two augmentation techniques:

  • Reorder Augmentation (RA): To help the model handle diverse sentence structures, the authors utilize parallel corpora (e.g., JW300) to learn word-alignment patterns. A Seq2Seq model is trained to "scramble" English sentences into the word orders of other languages, teaching the model to prioritize semantic meaning over fixed positional cues.
  • Semantic Augmentation (SA): To increase semantic diversity, a T5 model generates new hypotheses for existing premises based on target labels. For instance, given a premise and a "contradiction" label, the model generates a logically opposing sentence.
Visualizing the Reorder Augmentation (RA) process through word alignment and source reordering.

To manage the noise inherent in synthetic data, the authors implement Label Rectification. A high-performing "Teacher" model (RoBERTa-Large) validates or corrects the labels of the generated data, ensuring the quality of the augmented training set.

2. Adversarial Training

Training on synthetic data can lead to overfitting on "fake" patterns or artifacts. To mitigate this, the authors employ Projected Gradient Descent (PGD). During training, small, worst-case perturbations are injected into the word embeddings. This forces the model to become robust to noise and improves its ability to bridge the gap between similar concepts across different languages.

Experimental Results

The framework was evaluated using XLM-RoBERTa-base as the backbone across the 15 languages of the XNLI benchmark.

Comprehensive results on the XNLI benchmark comparing baselines with the proposed augmentation and adversarial training methods.

Key Findings

  • State-of-the-Art Performance: The full method (+RA+SA+PGD) achieved an average accuracy of 73.0% across all 15 languages, a significant improvement over the vanilla XLM-R baseline of 69.1%.
  • Low-Resource Gains: The improvements were most pronounced in low-resource settings. When using only 5% of the original training data (20k examples), the method improved performance by an average of 6.7%.
  • Surpassing Supervised Models: In several languages, including Chinese and French, the augmented zero-shot model outperformed the "Translate-Train" method, which has access to human-labeled target-language translations.
  • The Necessity of Adversarial Training: While augmentation provides more examples, adversarial training acts as the "secret sauce" that allows the model to effectively digest noisy data without being distracted by synthetic artifacts.

Conclusion

This research demonstrates that high-quality synthetic data, when combined with robust training techniques, can significantly narrow the gap in cross-lingual NLI performance. While the method introduces additional computational costs and requires some parallel data for reordering, it provides a powerful path forward for low-resource language support. Future work will explore applying this framework to other tasks such as Question Answering and Named Entity Recognition.

Summary updated

BibTeX
@inproceedings{dong2021data,
  author = {Xin Dong and Yaxin Zhu and Zuohui Fu and Dongkuan Xu and Gerard de Melo},
  title = {{Data Augmentation with Adversarial Training for Cross-Lingual NLI}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2021},
  doi = {10.18653/v1/2021.acl-long.401},
}
Figure