Abstract
This study presents a comprehensive head-to-head evaluation of Spanish language models, challenging the prevailing assumption that monolingual models inherently outperform multilingual ones. By benchmarking a diverse set of Spanish-specific and general-purpose multilingual models across 11 datasets, we find that high-performing multilingual models like XLM-RoBERTa and mDeBERTa often exceed the performance of specialized monolingual suites. The results highlight the critical roles of model architecture, pre-training objectives, and data quality over raw corpus volume.
Introduction
In Natural Language Processing (NLP), it is commonly assumed that a model trained exclusively on a single language (monolingual) will naturally outperform a model trained on a hundred languages (multilingual). This logic drove the development of several Spanish-specific models, such as BETO and the MarIA suite, utilizing massive datasets. However, previous evaluations often omitted the most powerful multilingual baselines. This paper addresses this gap by asking: Are monolingual Spanish models truly the best tools for the job, or are they being outpaced by generalist models developed by major technology firms?
Methodology
To ensure a fair comparison, the researchers conducted a rigorous "head-to-head" evaluation using identical fine-tuning scripts, hyperparameter grids, and evaluation protocols across all models. The study categorized models into three groups:
- Spanish Monolingual Base: BETO, BERTIN, Electricidad, MarIA-base (RoBERTa-base-bne), and IXABERTesv2.
- Multilingual Base: mBERT, XLM-RoBERTa-base, and mDeBERTa.
- Large Models: MarIA-large (RoBERTa-large-bne) vs. XLM-RoBERTa-large.
The core technique involved fine-tuning these pre-trained masked language models on specific downstream tasks to measure practical performance.
Datasets and Evaluation
The models were evaluated across 8 tasks and 11 datasets to cover a broad linguistic spectrum:
- Syntactic/Semantic Labeling: POS tagging (UD, Capitel) and Named Entity Recognition (CoNLL, Ancora 2.0, Capitel).
- Sentence Understanding: Semantic Textual Similarity (STS), Paraphrase Identification (PAWS-X), and Natural Language Inference (XNLI).
- Classification & QA: Document classification (MLDoc), Question Answering (SQAC), and Metaphor Detection (CoMeta).
The inclusion of Ancora 2.0 NER and CoMeta provides a more challenging and reproducible evaluation suite than previous benchmarks.
Key Results and Insights
The evaluation revealed several surprising trends that challenge current NLP mantras:
- Multilingual Dominance: XLM-RoBERTa-large emerged as the overall winner, outperforming the state-of-the-art monolingual MarIA-large in 9 out of 11 tasks.
- Architecture over Size: Despite its "base" size, mDeBERTa outperformed nearly every other model. This suggests that architectural innovations, such as disentangled attention, may be more impactful than language-specific data volume.
- The "Bigger Corpus" Myth: While the MarIA models were trained on the massive 135B-word BNE corpus, they were often matched by IXABERTesv2, which used the much smaller OSCAR corpus. This indicates that data quality and filtering are more vital than raw volume.
Discussion and Limitations
The study identifies a potential reporting bias in previous literature, where monolingual superiority was claimed without testing against the strongest multilingual contenders. Furthermore, the hardest task remains metaphor detection (CoMeta), where all models struggled with F1 scores in the low 60s, far below the performance seen in standard tasks like POS tagging.
Limitations of this study include a focus solely on encoder-only models. Future research should evaluate generative (GPT-style) and encoder-decoder (T5-style) models for Spanish. Additionally, the success of multilingual models may be partly due to the massive compute budgets used by large organizations, which are difficult to replicate in smaller academic or regional settings.
Conclusion
Building superior language-specific models requires more than just larger datasets; it necessitates advancements in research expertise, data auditing, and rigorous benchmarking. The dominance of multilingual models suggests that the interplay between vocabulary size, corpus quality, and training objectives is a critical area for future multi-year research programs in non-English NLP.
Summary updated