Bridging the domain gap in cross-lingual document classification

Guokun Lai, Barlas Oguz, Yiming Yang, Veselin StoyanovarXiv 2019

Abstract

The scarcity of labeled training data often prohibits the internationalization of NLP models to multiple languages. Recent developments in cross-lingual understanding (XLU) have made progress in this area, trying to bridge the language barrier using language universal representations. However, even if the language problem was resolved, models trained in one language would not transfer to another language perfectly due to the natural domain drift across languages and cultures. We consider the setting of semi-supervised cross-lingual understanding, where labeled data is available in a source language (English), but only unlabeled data is available in the target language. We combine state-of-the-art cross-lingual methods with recently proposed methods for weakly supervised learning such as unsupervised pre-training and unsupervised data augmentation to simultaneously close both the language gap and the domain gap in XLU. We show that addressing the domain gap is crucial. We improve over strong baselines and achieve a new state-of-the-art for cross-lingual document classification.

Introduction

In Cross-Lingual Understanding (XLU), the primary challenge is training a model in a high-resource language (like English) and applying it to a target language where labeled data is scarce. Traditionally, this has been treated as a "language gap" problem—aligning vector representations across languages. However, this paper highlights the critical role of the domain gap. Even with perfect alignment, cultural and contextual differences cause "natural domain drift." For instance, sentiment expression or news priorities can vary significantly between regions. Models optimized solely for the source domain often fail to generalize to these target-language nuances.

Methodology

To address both the language and domain gaps, the authors propose a framework integrating three core techniques:

  1. Masked Language Model (MLM) Pre-training: A pre-trained cross-lingual model (XLM) is fine-tuned on unlabeled data from the target domain, allowing it to adapt to specific vocabulary and stylistic variations.
  2. Unsupervised Data Augmentation (UDA): The framework employs back-translation to generate synthetic paraphrases. The model is trained to maintain consistency in predictions across original and paraphrased inputs.
  3. Self-Training (Teacher-Student): To resolve the discrepancy where models are trained on augmented data but tested on pure target data, a "Teacher" model (trained with UDA) labels the unlabeled target data. A "Student" model is then trained on these pseudo-labels to fully adapt to the target distribution.
Overview of the proposed semi-supervised cross-lingual framework combining UDA and self-training.

Key Insights and Results

The "More Data" Paradox

A surprising finding was that increasing labeled English data beyond a certain point can actually hurt performance in the target language. This suggests that the model overfits to English-specific nuances, reducing its flexibility when encountering the domain drift of the target language.

Performance Gains

The proposed method achieved a massive average error reduction of 44% compared to standard XLM baselines. It set new state-of-the-art results across all tested languages in the MLDoc news classification task. On Amazon sentiment tasks, the performance approached monolingual baselines, proving that semi-supervised domain adaptation can effectively compensate for a lack of target-language labels.

Performance comparison on Amazon sentiment classification tasks across different categories and languages.

Conclusion and Future Work

While highly effective, the approach is computationally intensive, with MLM pre-training requiring upwards of 500 GPU hours. Furthermore, the self-training component's success is tied to the volume of available unlabeled data. Future research will explore whether these domain-bridging techniques generalize to more complex tasks like Natural Language Inference (NLI) or Question Answering.

Summary updated

Abstract

The scarcity of labeled training data often prohibits the internationalization of NLP models to multiple languages. Recent developments in cross-lingual understanding (XLU) has made progress in this area, trying to bridge the language barrier using language universal representations. However, even if the language problem was resolved, models trained in one language would not transfer to another language perfectly due to the natural domain drift across languages and cultures. We consider the setting of semi-supervised cross-lingual understanding, where labeled data is available in a source language (English), but only unlabeled data is available in the target language. We combine state-of-the-art cross-lingual methods with recently proposed methods for weakly supervised learning such as unsupervised pre-training and unsupervised data augmentation to simultaneously close both the language gap and the domain gap in XLU. We show that addressing the domain gap is crucial. We improve over strong baselines and achieve a new state-of-the-art for cross-lingual document classification.
BibTeX
@misc{lai2019bridging,
  author = {Guokun Lai and Barlas Oguz and Yiming Yang and Veselin Stoyanov},
  title = {{Bridging the domain gap in cross-lingual document classification}},
  year = {2019},
  eprint = {1909.07009},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1909.07009},
}
Figure