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

Jaione Bengoetxea, Itziar Gonzalez-Dios, Rodrigo Agerri

Abstract

In this paper, we evaluate the capacity of current language technologies to understand Basque and Spanish language varieties. We use Natural Language Inference (NLI) as a pivot task and introduce a novel, manually-curated parallel dataset in Basque and Spanish, along with their respective variants. Our empirical analysis of crosslingual and in-context learning experiments using encoder-only and decoder-based Large Language Models (LLMs) shows a performance drop when handling linguistic variation, especially in Basque. Error analysis suggests that this decline is not due to lexical overlap, but rather to the linguistic variation itself. Further ablation experiments indicate that encoder-only models particularly struggle with Western Basque, which aligns with linguistic theory that identifies peripheral dialects (e.g., Western) as more distant from the standard. All data and code are publicly available.

Introduction

Current Large Language Models (LLMs) are surprisingly brittle when faced with regional dialects and linguistic variation. Most NLP research and benchmarking focus on "standard" versions of languages, such as standard "Batua" Basque or standard Peninsular Spanish. However, real-world language varies significantly by geography (diatopic), social group (diastratic), and context (diaphasic). If AI systems only understand standard versions, they risk performing poorly for millions of speakers, creating a form of linguistic discrimination. This paper investigates how well current models handle geographical variation in Natural Language Inference (NLI).

The XNLIvar Dataset

The core contribution of this work is XNLIvar, a manually-curated dataset that expands the Cross-lingual NLI (XNLI) framework to include regional variants. Unlike synthetically generated data, XNLIvar was adapted by native speakers to ensure authentic linguistic patterns.

  • Basque Variants: Western (Biscayan), Central (Gipuzkoan), and Navarrese.
  • Spanish Variants: Regional forms from Cuba, Ecuador, Uruguay, and Spain (Andalusia and Tenerife).
Examples of standard language versus regional variations in Basque and Spanish.

Methodology

The researchers evaluated two primary architectures:

  1. Discriminative Models (Encoder-only): Fine-tuned models like XLM-RoBERTa and mDeBERTa using strategies such as Model transfer, Translate-train, and Translate-test.
  2. Generative Models (Decoder-based): Zero-shot and few-shot prompting with Llama-3.1 and Gemma-2.

To quantify the difficulty of each variant, the study employed Levenshtein distance to measure the character-level divergence of dialectal sentences from their standard counterparts.

Key Results and Insights

Experiments revealed a significant "variation gap." For Basque, discriminative models saw a ~4-point drop, while Llama-3.1-70B experienced a massive 10-point decline when moving from standard to variant text.

Accuracy vs. Levenshtein distance across Basque and Spanish variants, illustrating the performance drop as linguistic distance increases.

The "Peripheral" Penalty

Models struggle most with "peripheral" dialects. In Basque, the Western dialect is linguistically most distant from the standard; accordingly, models showed the steepest accuracy declines in this category.

Orthography vs. Lexicon

In Spanish, models were relatively resilient to purely lexical changes (synonyms). However, orthographic changes—writing words phonetically to reflect regional pronunciation (e.g., writing ehta instead of esta)—caused much sharper performance drops.

Beyond Lexical Overlap

A common shortcut for NLI models is relying on word overlap between sentences. The authors demonstrated that while lexical overlap remained consistent across standard and variant versions, accuracy still plummeted. This suggests that models are genuinely confused by the linguistic variation itself, rather than a lack of shared vocabulary.

Conclusion

Basque remains a significantly harder target than Spanish, likely due to its complex morphology and lower representation in pre-training data. While the Translate-train approach with XLM-RoBERTa yielded the best overall results, the performance gap across all models highlights a critical need for more inclusive training data. Future work will focus on expanding the dataset and investigating the performance of monolingual models on these regional variants.

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