Lost in Variation? Evaluating NLI Performance in Basque and Spanish Geographical Variants

Jaione Bengoetxea, Itziar Gonzalez-Dios, Rodrigo Agerri

TL;DR

Current language models struggle significantly when processing regional dialects and geographical language variants, especially in low-resource languages. This paper introduces XNLIvar, a manually curated parallel dataset for Basque and Spanish variants, revealing a substantial performance drop across both encoder-only and large generative language models when confronted with dialectal diversity.

What Problem Does This Paper Address?

Most Natural Language Processing (NLP) systems and Large Language Models (LLMs) are trained predominantly on standardized versions of languages. However, human language is naturally diverse, filled with regional dialects and geographical variations (diatopic variation). When AI models encounter non-standard language, their performance often degrades.

This issue is particularly severe for low-resource languages like Basque (a language isolate with around 1 million speakers undergoing normalization) compared to high-resource languages like Spanish (~600 million speakers). The authors tackle this gap by evaluating how current state-of-the-art models handle geographical variants in a core language understanding task: Natural Language Inference (NLI).

Methods

The authors use Natural Language Inference (NLI)—classifying the relationship between a premise and a hypothesis as entailment, contradiction, or neutral—as a pivot task to evaluate language understanding. They test two main paradigms:

  1. Discriminative Models (Encoder-only): Fine-tuning models like XLM-RoBERTa large and mDeBERTa using different cross-lingual strategies: Model transfer (training on English), Translate-train (training on machine-translated target languages), and Translate-test (translating evaluation data back to English).
  2. Generative Models (Decoder-based LLMs): Evaluating models like Llama-3.1-Instruct (8B and 70B) and Gemma 2 Instruct (9B and 27B) using various prompting strategies, including zero-shot, few-shot, Chain-of-Thought (CoT), and a Question-Answering (QA) reformulation.

To quantify the linguistic divergence between standard and dialectal sentences, they utilize the Levenshtein distance metric, which measures the minimum character-level edits needed to transform one string into another.

Datasets

The study leverages standard datasets alongside a brand-new evaluation benchmark:

  • MNLI / XNLI: Standard datasets used for training and baseline testing in English, Basque (XNLIeu), and Spanish (XNLIes).
  • XNLIeunative / XNLIeu2esnative: Manually created native Basque NLI data and its Spanish translation, serving as the standard baseline.
  • XNLIvar (New): The core contribution—a novel, manually curated parallel dataset containing geographical variants. It consists of:
  • XNLIeuvar (894 instances): Covers Western, Central, and Navarrese Basque dialects.
  • XNLIesvar (666 instances): Covers Spanish variants from Cuba, Ecuador, Uruguay, and Spain (Andalusian and Tenerife).
Datasets used for training and testing

Key Insights and Ideas

  • Linguistic Distance Correlates with Performance Drop: In Basque, peripheral dialects like Western Basque are linguistically more distant from the standard form (higher Levenshtein distance), which directly translates to lower model accuracy.
  • Orthography vs. Lexicon: In Spanish, variants that alter spelling to reflect local pronunciation (e.g., Andalusian or Cuban phonetic changes like dropping word-final /s/, writing mihma instead of misma) confuse models much more than variants that simply swap vocabulary or sentence structure (e.g., Ecuadorian or Uruguayan lexical changes), despite having a smaller string distance from the standard.
  • It's the Variation, Not the Overlap: The authors measured the Levenshtein distance between premises and hypotheses across standard and variant datasets. They found that lexical overlap remains consistent, meaning the performance drop is caused by the structural and dialectal variation itself, not a change in the overlap dynamics.
  • Gemma vs. Llama: Generative models show varying robustness; for instance, Gemma 2 demonstrated greater resilience to Basque linguistic variation compared to Llama-3.1, experiencing a smaller percentage-point drop from the standard baseline.

Key Results

  • Basque Performance Drop: For discriminative models (XLM-RoBERTa large via translate-train), accuracy dropped from 75.63% on standard native Basque to 73.21% on the variant dataset. Generative models suffered even more: Gemma-2-it-27B dropped from 68.28% to 61.52% in a few-shot QA setting.
  • Spanish Performance Drop: Spanish models were more resilient due to massive representation in pre-training corpora, but still saw declines. For example, Llama-3.1-70B using Chain-of-Thought dropped from 77.29% to 75.52%.

The relationship between dialectal distance and accuracy highlights how non-standard forms degrade performance across both languages:

Basque dialect distance vs accuracy
Figure 1: Standard to dialectal Levenshtein distance vs accuracy of best discriminative models.

Limitations and Future Work

  • Annotator Homogeneity: The dataset was adapted by a relatively small group (12 for Basque, 6 for Spanish), all of whom have linguistic or NLP backgrounds. The authors note that laypeople might introduce different, more organic variations.
  • Dialect Imbalance: Certain dialects, like Navarrese Basque (only 7% of the data) and Uruguayan Spanish (5.9%), are underrepresented in the current iteration.
  • Task Scope: The evaluation is restricted to Natural Language Inference (NLI), meaning these findings might manifest differently in other NLP tasks like summarization or question answering.
  • Future Directions: The authors plan to expand the dataset to include more geographical variants, incorporate other languages, and investigate the performance of variation-inclusive monolingual models.

Summary updated

BibTeX
@inproceedings{bengoetxea2025lost,
  author = {Jaione Bengoetxea and Itziar Gonzalez-Dios and Rodrigo Agerri},
  title = {{Lost in Variation? Evaluating NLI Performance in Basque and Spanish Geographical Variants}},
  booktitle = {CoNLL @ ACL},
  year = {2025},
  url = {https://openreview.net/forum?id=Lx8tdTu218},
}
Figure