ILab-NLP at SemEval-2026 Task 9: Comparing XLM-RoBERTa and LLaMA-2 for Multilingual Polarization Detection
Summary
ILab-NLP's system for SemEval-2026 Task 9, Subtask 1, addresses binary detection of polarized versus non-polarized posts in English and Spanish. The team compared a fine-tuned multilingual encoder model, XLM-RoBERTa, against a prompted generative model, LLaMA-2 7B. Experiments revealed XLM-RoBERTa delivered stronger and more stable performance overall. LLaMA-2, conversely, showed a propensity for false positives in Spanish, attributed to a significant bias towards predicting the polarized class. Beyond headline results, the analysis included model behavior using confidence signals and SHAP, alongside efficiency measurements via CodeCarbon to detail performance-cost tradeoffs.
Key takeaway
For NLP engineers developing multilingual polarization detection systems, XLM-RoBERTa offers superior stability and performance compared to LLaMA-2 7B. You should prioritize fine-tuned encoder models for robust classification, especially when false positives are critical. If you consider generative models like LLaMA-2, rigorously test for language-specific biases, particularly a strong inclination towards polarized class predictions, and implement mitigation strategies to ensure reliable output.
Key insights
Fine-tuned encoder models like XLM-RoBERTa generally outperform prompted generative models such as LLaMA-2 for multilingual polarization detection.
Principles
- Encoder models provide stable performance for classification.
- Generative models can exhibit strong class bias, especially in specific languages.
Method
The study compared fine-tuned XLM-RoBERTa with prompted LLaMA-2 7B for binary classification, analyzing model behavior using confidence signals, SHAP, and computational efficiency with CodeCarbon.
In practice
- Prioritize XLM-RoBERTa for stable multilingual polarization detection.
- Carefully evaluate LLaMA-2 for bias, particularly in Spanish text.
- Use CodeCarbon to measure model efficiency tradeoffs.
Topics
- Multilingual NLP
- Polarization Detection
- XLM-RoBERTa
- LLaMA-2
- SemEval-2026
- Model Comparison
- Computational Efficiency
Best for: AI Engineer, Research Scientist, AI Scientist, Machine Learning Engineer, NLP Engineer
Related on AIssential
Editorial summary, takeaway, and curation by AIssential. Original article published by Paper Index on ACL Anthology.