Improving Zero-Shot Cross-Lingual Transfer Learning via Robust Training

Kuan-Hao Huang, Wasi Uddin Ahmad, Nanyun Peng, Kai-Wei Chang

Abstract

Zero-shot cross-lingual transfer allows models trained on resource-rich languages to be deployed on low-resource ones without target-language training data. However, performance is often hindered by imperfect alignment in multilingual embedding spaces. This paper frames these misalignments as adversarial noise and introduces robust training techniques—specifically adversarial training and randomized smoothing—to enhance the stability of multilingual BERT (mBERT). Our approach significantly boosts performance, particularly for languages typologically distant from the source.

The Challenge of Embedding Misalignment

In zero-shot cross-lingual transfer, we rely on models like mBERT to learn a shared representation across languages. Ideally, the word "cat" in English and "chat" in French would occupy the exact same point in vector space. In practice, they are slightly offset. This "translation gap" acts as a perturbation that can cause a classifier trained on English data to misinterpret inputs in other languages.

While traditional methods attempt to force better alignment using expensive parallel corpora or bilingual dictionaries, this paper proposes a different philosophy: What if we make the classifier robust enough to handle the noise caused by misalignment?

Methods: Robustness as a Solution

The authors treat the natural embedding gap between a source word and its translation as an adversarial perturbation $\delta$. To mitigate this, they fine-tune mBERT using two primary robust training strategies:

  1. Adversarial Training (ADV): This uses a min-max objective to find the "worst-case" perturbation within a defined radius and trains the model to remain accurate despite it.
  2. Randomized Smoothing (RS): This method trains a "smoothed" classifier that produces stable predictions within a local neighborhood of the input. This is implemented via Random Perturbation (RP) (adding noise during training) and Data Augmentation (DA) (replacing words with synonyms).
Visualizing cross-lingual embedding misalignment and the robust training approach.

Key Insights: The Role of Typological Distance

A major finding of this work is that the benefit of robust training is directly proportional to the "distance" between the source and target languages. Using lang2vec to measure typological distance, the authors observed that languages like Chinese, Korean, and Japanese—which are very different from English—showed the most dramatic improvements.

Performance gains correlate with the typological distance of the target language from English across PAWS-X and XNLI.

This correlation suggests that as the natural misalignment ($\delta$) increases for distant languages, the "buffer" provided by robust training becomes increasingly critical for successful transfer. Randomized Smoothing (RS) generally outperformed Adversarial Training (ADV) because it optimizes for the average distribution of noise rather than a pessimistic worst-case scenario.

Results and Evaluation

The methods were tested on PAWS-X (paraphrase identification) and XNLI (natural language inference) in standard zero-shot and generalized (mixed-language) settings.

  • Standard Transfer: Robust training improved mBERT by an average of 2.1 points on PAWS-X and 1.6 points on XNLI.
  • Distant Languages: On PAWS-X, the RS-DA approach improved performance on Korean by 4.1% and Japanese by 4.0%.
  • Generalized Transfer: In scenarios where sentence pairs were mixed (e.g., English premise with an Arabic hypothesis), the robust models showed significantly higher stability than standard mBERT, effectively tolerating the mixed-space noise.

Limitations and Future Directions

The current framework primarily addresses lexical and semantic noise in the embedding space. It does not yet account for syntactic variations, such as differences in word order. Preliminary attempts to simulate syntactic noise via random word swapping did not yield significant gains, suggesting that more sophisticated structural perturbations—perhaps using paraphrase generation models—are needed for future iterations of robust cross-lingual learning.

Summary updated

BibTeX
@inproceedings{huang2021improving,
  author = {Kuan-Hao Huang and Wasi Uddin Ahmad and Nanyun Peng and Kai-Wei Chang},
  title = {{Improving Zero-Shot Cross-Lingual Transfer Learning via Robust Training}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2021},
  doi = {10.18653/v1/2021.emnlp-main.126},
}
Figure