Do Large Language Models Speak All Languages Equally? A Comparative Study in Low-Resource Settings

Md. Arid Hasan, Prerona Tarannum, Krishno Dey, Imran Razzak, Usman NaseemarXiv 2024 · DOI

Introduction

While Large Language Models (LLMs) show dazzling capabilities in English, this study reveals a significant performance chasm when they are applied to low-resource South Asian languages like Bangla, Hindi, and Urdu. By evaluating GPT-4, Llama 2, and Gemini Pro across three core NLP tasks, the researchers demonstrate that "speaking" a language doesn't equate to understanding its nuances, especially when training data is overwhelmingly English-centric.

The "Large" in LLM usually refers to parameters and English tokens. Approximately 90% of the data used to train these models is English, leaving a massive "linguistic gap" for the rest of the world. This paper tackles the lack of comparative evaluation for South Asian languages—specifically Bangla, Hindi, and Urdu—which represent hundreds of millions of speakers but remain "low-resource" in the AI ecosystem.

Methodology

The researchers employed a zero-shot learning framework, meaning the models were asked to perform tasks using only natural language instructions without any task-specific fine-tuning.

Key aspects of their approach include:

  • Model Comparison: They tested three prominent models: GPT-4 (closed-source), Llama 2 (open-source), and Gemini Pro (closed-source).
  • Prompting Strategy: They used standardized "expert annotator" prompts to ensure consistency across models. For GPT-4, they specifically utilized "system" and "user" roles to guide the output.
  • Safety Settings: For Gemini Pro, they had to explicitly configure safety thresholds to prevent the model from blocking the evaluation of hate speech datasets as "harmful content."
Standardized prompting strategy for the NLI task across different models.

Datasets

The study utilized a mix of existing benchmarks and newly translated datasets:

  • NLI: The XNLI (Cross-lingual Natural Language Inference) dataset was used for English, Hindi, and Urdu. For Bangla, they used a previously translated version of XNLI.
  • Sentiment & Hate Speech: Since high-quality benchmarks for these tasks are scarce in South Asian languages, the authors created new versions by translating the SemEval-2017 Task 4 (Sentiment) and the Davidson et al. 2017 (Hate Speech) datasets from English into Bangla, Hindi, and Urdu using Google Translate.

Key Insights

  • The Structural Advantage of NLI: Across all models, performance was highest on the NLI task. The authors suggest this is because NLI relies on logical relationships between sentence pairs (entailment, contradiction), which is more "structural" and easier for LLMs to grasp than the subjective, culturally-dependent nature of sentiment or hate speech.
  • The "Safety" Hurdle: Gemini Pro frequently blocked samples in the sentiment and hate speech tasks, identifying them as derogatory. This suggests that "safety" filters in LLMs may struggle to distinguish between analyzing harmful language and generating it, particularly in non-English contexts.
  • Urdu’s "Arabic" Boost: Interestingly, Gemini performed strongly in Urdu despite the language not being officially supported at the time. The researchers hypothesize this is due to Urdu's use of the Arabic script; the model likely transferred knowledge from its extensive Arabic training data.

Results and Performance Gaps

The evaluation results highlight a clear hierarchy in model performance and a persistent gap between English and low-resource languages.

Comprehensive performance metrics (Accuracy, Precision, Recall, and F1-macro) across NLI, Sentiment, and Hate Speech tasks for all tested models and languages.
  • GPT-4 Dominance: GPT-4 consistently outperformed Llama 2 and Gemini Pro across nearly all tasks and languages.
  • The Performance Gap: In the NLI task, GPT-4’s F1-macro score for English was 86.79, while its score for Urdu dropped to 63.98—a massive delta for a "state-of-the-art" model.
  • Llama 2’s English Bias: Llama 2 showed the most dramatic drop-off. In NLI, it achieved a 74.82 F1 score in English but plummeted to 42.30 for Bangla.
  • Gemini’s Consistency: While Gemini generally scored lower than GPT-4, it showed the smallest relative performance gap between English and other languages in sentiment analysis, suggesting a more balanced (if slightly lower-performing) multilingual baseline.

Limitations and Future Outlook

The authors acknowledge several critical limitations, primarily the reliance on Machine Translation Quality. The datasets were translated via Google Translate without exhaustive human verification, and errors likely impacted the final scores. Furthermore, Prompt Sensitivity remains a factor, as the study used a single prompt style. Finally, Cultural Context is often lost in translation; sentiment and hate speech are deeply tied to local culture, and direct translation may miss specific linguistic markers unique to South Asia.

Future work should focus on developing native, human-annotated datasets for these languages and exploring more sophisticated prompting techniques, such as few-shot or chain-of-thought, to bridge the resource gap.

Summary updated

BibTeX
@misc{hasan2024do,
  author = {Md. Arid Hasan and Prerona Tarannum and Krishno Dey and Imran Razzak and Usman Naseem},
  title = {{Do Large Language Models Speak All Languages Equally? A Comparative Study in Low-Resource Settings}},
  year = {2024},
  eprint = {2408.02237},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2408.02237},
}
Figure