Researchers from IIT Bombay have developed a pipeline to boost zero-shot crosslingual performance by using Large Language Models (LLMs) to generate synthetic, task-specific training data. By combining LLM-based augmentation with "teacher-student" soft-labeling and sophisticated data selection strategies, they achieved significant accuracy gains in low-resource languages like Marathi, Urdu, and Swahili without any human-labeled data in those languages.
Problem Statement
While multilingual models like XLM-R have revolutionized NLP, their "zero-shot" performance—training on English and testing on another language—often falters. This is especially true for low-resource languages or when there is a "domain mismatch" (e.g., training on English news but testing on Marathi movie reviews). The authors address how to best use LLMs to generate synthetic data that improves crosslingual transfer when zero labeled data is available in the target language and domains are potentially mismatched.
Methodology
The proposed multi-stage pipeline consists of four key phases:
- Generation: Llama-2-13b-chat generates task-specific English text. Domain information is included in the prompt to bridge potential gaps.
- Translation: English generations are translated into target languages using Machine Translation (MT) systems like IndicTrans2 or NLLB.
- Data Selection: Rather than using all generated data, the authors test several strategies to find the most helpful subset:
- top-k: Selecting instances where a teacher model has the highest confidence.
- div-k: Using K-means clustering on LaBSE embeddings to ensure semantic diversity.
- amb-k: Selecting "ambiguous" examples where model predictions fluctuate most during training.
- Teacher-Student Training: A teacher model (XLM-R) provides "soft labels" (probability distributions) for the synthetic data. A student model is then trained on a mix of gold English data and the selected synthetic data.
Experimental Setup
The framework was evaluated across several datasets and tasks:
- Source Tasks (English): SST5 for Sentiment Analysis and SNLI for Natural Language Inference.
- Target Tasks: Marathi Sentiment, Hindi Product Reviews, and GLUECoS (Hindi-English code-switched). For NLI, XNLI was used for Hindi, Urdu, and Swahili.
- Domain Adaptation: Experiments also included generating data for specific out-of-domain areas like Medical and Law.
Key Results and Insights
The proposed methods outperformed standard zero-shot baselines across all evaluated tasks. Key findings include:
- Selection > Volume: Smaller, curated subsets of synthetic data often outperform the entire generated set, reducing costs while improving generalization.
- Diversity is Essential: The
div-kstrategy (clustering) was consistently strong, ensuring the model sees a representative sample of the task rather than overfitting to easy examples. - Soft Labels vs. Hard Labels: Training with the teacher's probability distributions is significantly more effective than using hard labels from the LLM prompt, as it provides robustness against synthetic noise.
- Performance Gains: The team observed an average improvement of 1.5 absolute points, with a peak improvement of 7.13 points on Hindi Product Reviews.
Limitations and Future Work
Despite the success, the pipeline remains sensitive to prompt engineering. Additionally, strategies like amb-k are computationally expensive due to the need for checkpoint analysis. Future research will focus on extending these methods to more structured tasks like Question Answering or Summarization, and reducing the reliance on high-quality Machine Translation systems for the target language.
Summary updated