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

TL;DR

This paper explores the "double whammy" of distribution shift in NLP: when a model trained on one language and domain (e.g., English movie reviews) is tested on a different language and domain (e.g., French product reviews). The authors demonstrate that while performance takes a major hit, cost-effective data augmentation using Large Language Models (LLMs)—specifically through abstractive summarization—can significantly boost robustness, often outperforming expensive human-annotated counterfactual data.

What Problem Does This Paper Address?

Modern NLP relies heavily on zero-shot cross-lingual transfer: training a model on a high-resource language like English and deploying it on others. However, real-world deployments rarely stay within the same "domain." A sentiment classifier trained on the polished prose of IMDb movie reviews might struggle with the slang of Twitter or the specific vocabulary of restaurant critiques.

This creates two types of distribution shift:

  1. Language Shift: The difference between the training language (English) and the target language.
  2. Domain Shift: The difference between the training topic (Movies) and the target topic (Products, Tweets, etc.).

Models often latch onto "spurious features"—words like "Spielberg" that correlate with positive movie reviews but mean nothing for a review of a toaster. When both language and domain shift simultaneously, these models become incredibly brittle.

Methods

The researchers evaluated three popular multilingual models—mBERT, XLM-R, and LaBSE—across several transfer strategies:

  • Zero-shot: Direct evaluation on the target language.
  • Translate-Train: Translating English training data into the target language.
  • Translate-Test: Translating the target test samples into English before inference.

To combat domain shift, they compared three data augmentation strategies:

  1. Counterfactually Augmented Data (CAD): A gold-standard baseline where humans minimally edit reviews to flip their sentiment label (e.g., changing "I loved this movie" to "I hated this movie"). This is effective but extremely expensive.
  2. Domain Transfer (Proposed): Using an LLM (ChatGPT) to map both training and test samples to a common "neutral" domain, such as books.
  3. Summarization (Proposed): Using an LLM to condense reviews into a maximum of 10 words. The hypothesis is that summarization strips away domain-specific "noise" and spurious features, leaving only the core sentiment.
Fig. 1: Zero-shot cross-lingual transfer setup. Mul- tiple transfer strategies, including our newly proposed summarization and domain transfer methods for boost- ing OOD generalization.

Datasets

  • In-Distribution (ID): English IMDb movie reviews (training and validation).
  • Out-of-Distribution (OOD):
    • Amazon product reviews (6 languages).
  • Tweets (8 languages).
  • Restaurants (SemEval-2016 Task 5, 6 languages). In total, the study covers 13 different languages.

Key Insights and Ideas

  • Summarization as a Normalizer: The most striking finding is that abstractive summarization acts as a powerful filter. By forcing the LLM to capture the "essence" of a review in 10 words, domain-specific jargon and syntactic quirks are discarded. This makes the training and test distributions look much more alike.
  • The Cost-Benefit Gap: Human-annotated CAD is slow and pricey (~$1,105 for 1.7k samples). The authors show that for the same cost, their LLM-based summarization method could process 5 million to 15 million samples.
  • Model Sensitivity: Not all multilingual models are created equal. mBERT and XLM-R showed a stronger bias toward English than LaBSE, which maintained more consistent (though sometimes lower) performance across languages.
  • Spurious Feature Mitigation: The study confirms that domain shift is often caused by models relying on non-sentiment features. As shown in the examples below, summarization successfully distills "The straps are super small... easy to lose the watch" into "Small straps, bad closure, easy to lose."
Table 1: Examples of how Domain Transfer and Summarization transform the raw text.

Key Results

  • OOD Performance Drop: Without augmentation, models saw accuracy drops ranging from 6% to nearly 20% when moving from movie reviews to other domains.
  • Summarization Wins: The summarization strategy consistently outperformed the "Original Only" baseline and often beat the human-annotated CAD. For Amazon and Restaurant reviews, summarization improved accuracy by up to 3.1% over CAD.
  • Translate-Test + Summarization: The best overall results for non-English OOD data were achieved by translating the test samples to English and then summarizing both the training and test data.
Table 3: Comparison of OOD generalization across different augmentation methods. Summarization (bottom row) shows strong performance across the board.

Limitations and Future Work

  • Task Scope: The study focused exclusively on binary sentiment classification. It remains to be seen if summarization works as well for multi-class problems or more complex tasks like Named Entity Recognition (NER).
  • LLM Bias: The authors acknowledge that using LLMs for data augmentation might introduce the LLM's own internal biases into the training set.
  • Translation Quality: The effectiveness of these methods is currently tied to the quality of machine translation, which may be lower for truly low-resource languages not covered in this study.
  • Future Direction: The authors suggest exploring open-source LLMs to further reduce the costs of translation and summarization during inference.

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