Zero-Shot Cross-Lingual Sentiment Classification under Distribution Shift: an Exploratory Study

Maarten De Raedt, Semere Kiros Bitew, Fréderic Godin, Thomas Demeester, Chris Develder

Abstract

The brittleness of finetuned language model performance on out-of-distribution (OOD) test samples in unseen domains has been well-studied for English, yet is unexplored for multilingual models. Therefore, we study generalization to OOD test data specifically in zero-shot cross-lingual transfer settings, analyzing performance impacts of both language and domain shifts between train and test data. We further assess the effectiveness of counterfactually augmented data (CAD) in improving OOD generalization for the cross-lingual setting, since CAD has been shown to benefit in a monolingual English setting. Finally, we propose two new approaches for OOD generalization that avoid the costly annotation process associated with CAD, by exploiting the power of recent large language models (LLMs). We experiment with 3 multilingual models, LaBSE, mBERT, and XLM-R trained on English IMDb movie reviews, and evaluate on OOD test sets in 13 languages: Amazon product reviews, Tweets, and Restaurant reviews. Results echo the OOD performance decline observed in the monolingual English setting. Further, (i) counterfactuals from the original high-resource language do improve OOD generalization in the low-resource language, and (ii) our newly proposed cost-effective approaches reach similar or up to to +3.1% better accuracy than CAD for Amazon and Restaurant reviews.

1. Introduction

In Natural Language Processing (NLP), zero-shot cross-lingual transfer is a standard technique for deploying models on low-resource languages by training on high-resource data (typically English). However, these models often face a "double whammy" of distribution shifts: Language Shift (moving from the source language to an unseen target language) and Domain Shift (moving from the training domain, such as movie reviews, to a test domain like social media or product reviews). While these shifts have been studied independently in English, their combined impact on multilingual models remains largely unexplored.

2. Methodology and Transfer Strategies

This study evaluates three prominent multilingual models—mBERT, XLM-R, and LaBSE—under various transfer conditions. The researchers compared standard baselines (Zero-shot, Translate-Train, and Translate-Test) against data augmentation strategies designed to improve robustness.

Overview of cross-lingual transfer strategies and proposed LLM-based augmentation methods.

Beyond human-annotated Counterfactually Augmented Data (CAD), which involves editing text to flip sentiment labels and force models to ignore spurious features, the authors propose two novel LLM-driven (GPT-3.5) alternatives:

  • Domain Transfer: Prompting an LLM to rewrite both training and test samples into a common "hypothetical" domain (e.g., "books") to align distributions.
  • Summarization: Condensing reviews into a maximum of 10 words to strip away domain-specific noise and retain only the core sentiment signal.

3. Experimental Results

The experiments across 13 languages and three OOD domains (Amazon, Tweets, Restaurants) reveal that performance drops significantly when both language and domain change. However, several key insights emerged:

  • CAD Generalization: Counterfactuals created in English successfully improve model performance in non-English languages, suggesting that learning to ignore spurious features in one language generalizes across the model's multilingual embedding space.
  • The Power of Summarization: The LLM-based summarization approach acted as an effective denoising filter, removing domain-specific jargon that often confuses models trained on different cinematography-focused data.
  • Cost-Effectiveness: While human CAD annotation is expensive (~$1,100 for 1.7k samples), the LLM summarization strategy achieved comparable or superior results for just $0.51.
Comparison of sentiment classification accuracy across different models, domains, and augmentation strategies.

As shown in the results table, the proposed LLM-based approaches reached up to +3.1% better accuracy than human-annotated CAD for Amazon and Restaurant reviews. For LaBSE, mBERT, and XLM-R, adding CAD improved OOD generalization for non-English samples by 14.8%, 4.7%, and 7.9%, respectively.

4. Conclusion

This exploratory study demonstrates that distribution shifts significantly degrade zero-shot cross-lingual performance, but LLM-driven data augmentation offers a highly cost-effective remedy. By using LLMs to summarize or transfer domains, researchers can achieve robustness that matches or exceeds expensive human-in-the-loop methods. Future work will explore scaling these techniques to multi-class classification and assessing the impact of inherent LLM biases on downstream sentiment classifiers.

Summary updated

BibTeX
@misc{raedt2023zero,
  author = {Maarten De Raedt and Semere Kiros Bitew and Fréderic Godin and Thomas Demeester and Chris Develder},
  title = {{Zero-Shot Cross-Lingual Sentiment Classification under Distribution Shift: an Exploratory Study}},
  year = {2023},
  eprint = {2311.06549},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2311.06549},
}
Figure