Unsupervised Domain Adaptation of a Pretrained Cross-Lingual Language Model

Juntao Li, Ruidan He, Hai Ye, Hwee Tou Ng, Lidong Bing, Rui Yan

Abstract

Pretrained cross-lingual models like XLM and mBERT have revolutionized multilingual NLP by providing shared representations across dozens of languages. However, these models often fail to generalize across different domains, a challenge known as the "domain gap." This paper proposes Unsupervised Feature Decomposition (UFD), a framework that adapts these models to new domains without any labeled data in the target language or domain. By employing mutual information (MI) estimation, UFD separates domain-invariant features from domain-specific ones. Experimental results on the Amazon Review dataset show that UFD significantly improves performance in cross-lingual and cross-domain (CLCD) sentiment analysis.

Introduction

Modern NLP relies on cross-lingual models to bridge the language gap. However, when a model trained on English book reviews is applied to German music reviews, it faces a dual challenge: the language shift and the domain shift. This Cross-Lingual and Cross-Domain (CLCD) transfer is difficult because labeled data for every language-domain pair is rarely available. The authors address the most restrictive version of this problem: adapting a model using only unlabeled text from the source language and no labeled data for the target domain.

Unsupervised Feature Decomposition (UFD)

The core of the proposed approach is the Unsupervised Feature Decomposition (UFD) module. This module is designed to take the entangled representations from a pretrained model (e.g., XLM) and decompose them into two distinct components:

  1. Domain-Invariant Features ($F_s$): These capture core task-related information (like sentiment) that is consistent across different domains.
  2. Domain-Specific Features ($F_p$): These capture attributes unique to a specific domain that might otherwise confuse a cross-domain classifier.
The UFD architecture utilizes mutual information (MI) estimation to decompose features into domain-invariant and domain-specific components.

To achieve this separation without labels, the framework utilizes Mutual Information (MI) estimation:

  • Maximizing MI (Max-MI): The invariant extractor is encouraged to retain maximum information shared across multiple unlabeled domains.
  • Minimizing MI (Min-MI): The model ensures that invariant and specific features are as distinct as possible, preventing redundancy and ensuring a clean separation of information.

Experimental Results

The researchers evaluated UFD using the Amazon Review dataset, covering three domains (Books, DVD, Music) across four languages (English, German, French, Japanese). The model was trained on unlabeled English text to learn the feature decomposition and then fine-tuned on labeled English source-domain data.

Performance comparison of XLM-UFD against various baselines across different languages and domains.

As shown in the results table, XLM-UFD consistently outperformed standard XLM and other strong baselines. For instance, in German Book reviews, accuracy improved from 80.4% (standard XLM) to 89.2% (XLM-UFD). The model demonstrated robust performance across all target languages, even without seeing any unlabeled data in those languages during the decomposition phase. This suggests that learning to separate domain features in one language effectively transfers to others within the shared cross-lingual embedding space.

Conclusion

Unsupervised Feature Decomposition provides a powerful mechanism for adapting cross-lingual models to new domains without the need for target-domain labels. By "untangling" domain-invariant features through mutual information estimation, UFD bridges the double gap of language and domain. Future work includes extending this framework to more complex structural NLP tasks and exploring its effectiveness on a wider range of pretrained architectures.

Summary updated

BibTeX
@inproceedings{li2020unsupervised,
  author = {Juntao Li and Ruidan He and Hai Ye and Hwee Tou Ng and Lidong Bing and Rui Yan},
  title = {{Unsupervised Domain Adaptation of a Pretrained Cross-Lingual Language Model}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2020},
  doi = {10.24963/ijcai.2020/508},
}
Figure