---
title: "Lessons learned from the evaluation of Spanish Language Models"
description: "A Spanish language benchmark compares Spanish-only and multilingual systems and finds that the strongest multilingual entrants lead overall."
canonical: "https://research.elamur.ai/free/en/papers/agerri-2022-lessons-learned-evaluation-spanish-language/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/agerri-2022-lessons-learned-evaluation-spanish-language/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2022](https://md.research.elamur.ai/free/en/papers/2022/) / Lessons learned from the evaluation of Spanish Language Models

# Lessons learned from the evaluation of Spanish Language Models

Paper · 2022 · Rodrigo Agerri and Eneko Agirre

**Authors:** [Rodrigo Agerri](https://md.research.elamur.ai/free/en/authors/rodrigo-agerri/) and [Eneko Agirre](https://md.research.elamur.ai/free/en/authors/eneko-agirre/) · **Year:** 2022 · **Venue:** arXiv:2212.08390 · **Licence:** [CC BY 4.0 (arXiv)](https://creativecommons.org/licenses/by/4.0/)

[licence](https://creativecommons.org/licenses/by/4.0/)

- [arXiv 2212.08390](https://arxiv.org/abs/2212.08390)

## Summary

Does training a system exclusively on Spanish make it better at working with Spanish? Earlier evaluations had given researchers reason to favor Spanish-only systems, but the answer depended on which multilingual alternatives they faced. The authors reopen the comparison with XLM-RoBERTa and mDeBERTa, which were absent from the previous large Spanish evaluation. They assess how well released [language models](https://md.research.elamur.ai/free/en/concepts/language-model/) adapt to the same Spanish tasks, from labeling individual words to deciding whether sentences mean roughly the same thing.

The study evaluates 12 systems on 8 tasks represented by 11 datasets. It follows the earlier MarIA evaluation closely enough to preserve comparisons with its results and adds datasets for recognizing names and detecting metaphors. Each system starts with what it learned from large collections of text and undergoes [fine-tuning](https://md.research.elamur.ai/free/en/concepts/fine-tuning/) for each benchmark task. The setup gives the systems the same kinds of task-specific training choices while preserving the substantial differences in how they were originally built.

XLM-RoBERTa-large leads overall and beats the large Spanish-only MarIA system on 9 of the 11 datasets. The smaller multilingual mDeBERTa ranks next overall. Among Spanish-only systems of base size, IXABERTesv2 achieves a better average and more dataset wins than MarIA base, in spite of having learned from a smaller, publicly available text collection. IXABERTesv2 also has the edge over XLM-RoBERTa-base in the comparison the authors draw between similarly sized systems. The identity of the multilingual baseline therefore changes what the evaluation says about the advantage of specializing in Spanish.

A second comparison asks whether the strongest entrants improve on the best previously reported results for individual tasks. They do so clearly on PAWS-X paraphrase identification, while the best scores in the study remain well short of published results on CoNLL name recognition and XNLI sentence inference. Changing to customary accuracy measures on selected datasets and leaving the difficult metaphor dataset out of the overall average both preserve the broad ranking. The authors can establish how the released systems perform under their evaluation. Explaining that performance would require varying the training text, architecture, or training schedule under more closely matched conditions.

## Deep dive: Lessons learned from the evaluation of Spanish Language Models

A Spanish language benchmark compares Spanish-only and multilingual systems and finds that the strongest multilingual entrants lead overall. · about 32 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### What a Spanish-only training run has to prove

A developer who needs to label names in Spanish text or classify Spanish documents can start with a system trained on Spanish alone or with one trained on text from many languages. Both can be adapted to the particular application. Before doing that work, the developer needs some evidence about which starting point is likely to help. The answer matters to researchers contemplating a more expensive decision as well. A group that trains a new system from scratch has to choose text, design the training procedure, and secure the hardware to carry it out. A comparison with the strongest available alternatives gives that investment a meaningful target.

The paper situates the question in a shift in [natural language processing](https://md.research.elamur.ai/free/en/concepts/natural-language-processing/) toward reuse of systems trained on large text collections. Instead of learning everything from the labeled examples for an individual application, a system first learns from a much broader corpus, meaning a collection of text. It can then put the representations acquired during this stage to work on a narrower problem. The authors describe this approach as having changed research and application development. They also emphasize who could afford to pursue it at scale. Training on collections assembled from the web required expensive hardware, and much of the innovation they discuss came from large companies and focused on English. Some powerful systems were made available as paid services, while others were released for others to use.

[Multilingual and cross-lingual NLP](https://md.research.elamur.ai/free/en/topics/multilingual-nlp/) offered one route to applying these advances to many languages. Multilingual BERT and XLM-RoBERTa were built to cover 100 languages. A single released system could therefore offer a starting point even when a research group lacked the resources for a separate training run. The breadth also made cross-lingual transfer possible, in which what a system learns for one language helps it work with another. A Spanish benchmark still had to establish how well this option served Spanish specifically. The existence of support for a language tells a researcher that it is within the system's intended range. A benchmark tests how effectively the system can use what it acquired for that language.

The other route was to devote the training effort to one language. The paper describes earlier research on Basque and French as evidence that choices about the training procedure and text can make specialization pay off. Work on Finnish and Estonian drew attention to the quality of the text collections themselves. The authors also discuss efforts for Basque and Catalan that developed evaluation datasets alongside the systems they were intended to assess. These projects addressed a practical dependency. A research group can build a new system for a language, but to show where it helps it also needs tasks with agreed target answers and enough comparable evidence to interpret the scores.

The authors see a reason for the advantage of specialization to vary across languages. They describe Spanish and English as well represented in multilingual training. [Low-resource languages](https://md.research.elamur.ai/free/en/topics/low-resource-languages/) can have a much smaller share of the examples seen during such training. For a language in that situation, a dedicated corpus can increase the amount of relevant material a system sees and give its builders more control over the text. For Spanish, the amount already available to multilingual developers changes the tradeoff. The paper uses this reasoning to explain why successful specialization in one language creates a hypothesis for another language, with the outcome still to be tested.

#### How the available comparisons took shape

BETO gave Spanish researchers an early dedicated option based on BERT. The authors date its release to around the end of 2019 and point out that it remained the sole Spanish-specific system of its kind for a considerable period. It learned from a collection that included Spanish Wikipedia and Spanish text from OPUS. Its developers compared it to multilingual BERT using GLUES, their Spanish evaluation set. That comparison made multilingual BERT a concrete point of reference as work on Spanish-specific systems began to accumulate.

The range of available systems expanded quickly. In 2020 the Ixa group released IXABERTesv1 and IXABERTesv2, as well as ixambert, trained for Basque, Spanish and English. A community effort subsequently produced BERTIN from the Spanish portion of mC4. Some of its developers also released Electricidad. Under the MarIA project, a team at the Barcelona Supercomputing Center produced base and large RoBERTa variants using a corpus derived from the Spanish National Library's web crawl. The systems represented different ways to assemble a training corpus and run the training, even when they shared a broadly similar design.

MarIA supplied the main precedent for the evaluation procedure used in this paper. Its published benchmark compared the MarIA entrants with BETO, BERTIN, Electricidad and multilingual BERT. The earlier work offered scripts, datasets and a basis for aligning the evaluation settings. Its choice of multilingual comparison left a separate issue unresolved. XLM-RoBERTa was already available in base and large versions, and mDeBERTa offered a further architecture to try. A judgment based on multilingual BERT could establish how the Spanish entrants compared with that particular checkpoint. Applying the same judgment to multilingual systems as a whole required testing the other plausible contenders.

A checkpoint is the saved state of a system after training. Comparing released checkpoints answers a practical question about the choices a user actually has. Each checkpoint embodies decisions made by its developers, including what to read, how to divide text into units, how large to make the system and how long to train it. This is why the authors can reuse earlier work and still ask a substantially different question. They preserve much of the testing procedure while broadening the field of entrants. The usefulness of that comparison depends on how well it controls the treatment of the entrants during the test, even though their earlier training histories differ.

#### A second comparison with a different purpose

The authors also distinguish a comparison among checkpoints from a comparison against the best results previously published for a task. The first helps someone choose a starting point when they plan to adapt a released encoder. The second asks whether the resulting system advances work on that task. An evaluation can identify a winner among general-purpose encoders even if a method developed in earlier work has already achieved a stronger result on the same dataset.

Metric choice matters for the second comparison. The researchers inherit an evaluation that uses micro F1 for most datasets. For some tasks, the published literature more commonly reports accuracy. A task can therefore have a clear winner under the inherited setup while leaving the size of its advance over previous work difficult to interpret. Aligning the metric makes the older result a usable point of reference. It also changes the question from which entrant did best in this study to how far the study's best result gets on the task's customary scale.

The paper's scope is primarily the kind of encoder used in BERT and its relatives. An encoder takes text as input and produces representations that can feed another task. The authors set aside work on decoder-only systems such as GPT and encoder-decoder systems such as T5 for future investigation. This keeps the study centered on a particular way of reusing pretrained systems. It compares how well their representations support labeled Spanish tasks after adaptation, instead of comparing every way a system could be trained or asked to work with Spanish.

### The method, step by step

#### Separate pretraining from the evaluation

The researchers start with encoders that have already completed their original training. They take each available checkpoint and adapt it separately for the tasks in the benchmark. In a tagging task, the prediction concerns a word or a portion of the input. In a classification task, it can concern a sentence or a larger piece of text. The same initial checkpoint can thus lead to distinct fitted systems for different tasks. The evaluation compares what can be achieved from each starting point through the shared adaptation procedure.

The original training stage is usually called pretraining. The common objective in the BERT and RoBERTa families is masked language modeling. The trainer hides some of the text and asks the system to recover the missing units from their context. Those units are called tokens and come from a fixed vocabulary, the inventory of units available to represent inputs. The exercise uses the original text to supply its own targets. Success on the exercise shapes the encoder's representations, which can later be adapted to produce a grammatical tag, a document category, or another task-specific prediction.

Some of the BERT entrants also use next sentence prediction. In this exercise, the training signal concerns whether one piece of text follows another. RoBERTa retains the masked prediction exercise and changes how it is run. The paper describes it as using larger batches, longer sequences and masks generated dynamically. Dynamic masks let different positions be hidden when text is used for training. A batch is the group of inputs processed for an update, and a sequence is the ordered input that the encoder processes. Which objective is used, how many sequences enter an update, and how long they can be all shape the work done in a training run.

The inclusion of mDeBERTa also gives the benchmark a prominent entrant trained with replaced token detection, an objective that originated with ELECTRA. Here the encoder is trained to identify tokens that have been substituted. It judges which observed units belong in their positions, where masked language modeling calls for recovering the identities of hidden units. The paper also identifies changes to attention and to the sharing of embeddings in mDeBERTa. [Attention](https://md.research.elamur.ai/free/en/concepts/transformer/) governs how information from different positions contributes to their representations. [Embeddings](https://md.research.elamur.ai/free/en/concepts/word-embeddings/) are numerical representations associated with the units the system processes. Those design changes and the different objective enter the comparison together in the released checkpoint.

How the authors compare released Spanish and multilingual encoders The steps in order.

#### Record how the entrants were trained

The authors use the pretraining histories to describe each entrant and interpret the results afterward. Among the BERT-base systems, BETO, IXABERTesv1 and ixambert all use both masking and next sentence prediction. BETO runs for 2M steps. For the initial 900K steps, the batch size is 2048 and sequences are capped at 128 in length. The remaining steps use a batch size of 256 and a maximum sequence length of 512. This schedule starts with many short inputs per batch and later allows longer ones while reducing the batch size. IXABERTesv1 and ixambert each run for 1M steps, with batches of 256 and a sequence length of 512.

These histories put two kinds of variation side by side. IXABERTesv1 and ixambert follow the same broad BERT recipe and use the same step count, batch size and sequence length as each other. Their intended language coverage differs. BETO is also in the BERT-base family but uses a staged schedule. Shared architecture names therefore help identify meaningful comparisons while leaving training differences to account for. Multilingual BERT provides another checkpoint using the two BERT objectives, with 1M steps, a batch size of 256 and a sequence length of 512.

The Spanish RoBERTa systems use the masked objective alone. IXABERTesv2, shortened to IXAes in the results, uses 120.500 steps with batches of 2048 and a sequence length of 512. BERTIN trains for 250K steps. Its first 230k steps use a sequence length of 128 and batches of 2048. Its remaining training uses a sequence length of 512 and batches of 384. Like BETO, BERTIN changes the allowable sequence length during training, but it follows the RoBERTa approach and comes from a different text source.

The MarIA systems take another route within the RoBERTa family. Both use a batch size of 2048 and a sequence length of 512, with training limited to one epoch through the corpus and with dropout disabled. An epoch is a pass through the training data. Dropout is a training technique that temporarily disables parts of the network during updates. MarIA's schedule ties the amount of work to the size of the corpus in a way that a stated step count alone does not describe. Even between systems with similar batch sizes and sequence lengths, the timing and amount of exposure to the data can differ substantially.

The large multilingual runs have their own schedules. Both XLM-RoBERTa variants use 1.5M steps, a batch size of 8192 and a sequence length of 512. The authors describe mDeBERTa as following the XLM-RoBERTa procedure with 500K steps and with its different objective and architectural features. A step is the unit in which the authors report the duration of these runs. The size and length of the batches give that count context. A comparison of raw step counts would miss the variation in how much text a batch can contain and in what the system is asked to learn from it.

Corpus source varies along with these recipes. IXAes uses OSCAR, a multilingual resource built from Common Crawl with publicly available, relatively light filtering. The authors say OSCAR covers 166 languages. BERTIN uses Spanish from mC4. The strongest multilingual entrants use CC100, which the authors describe as filtered Common Crawl data. MarIA's BNE corpus comes from the Spanish National Library crawl and was filtered by the project that trained the systems. It was unavailable to the public when the authors wrote the paper. Such differences affect what can be inspected about a training run, independently of what its checkpoint scores on an evaluation.

The authors also record architectural properties such as the number of layers, the size of the hidden representations, the number of attention heads, the vocabulary size and the parameter count. A layer is a stage of computation. The hidden size describes the width of its internal representation, while attention heads compute multiple sets of relationships among input positions. Parameters are the values learned during training. Total parameter count and the work required to process an input are related descriptions of size, with vocabulary accounting for part of the count. The paper later uses that distinction to interpret the comparison between the large checkpoints.

#### Use a common adaptation procedure

The benchmark follows the MarIA data splits for tasks already covered there. A split assigns examples to different roles. Training examples provide the task labels used to update the encoder and prediction layer. Development examples guide the choice of a trained checkpoint and its settings. The benchmark scores are the evidence used to compare systems after those choices. Keeping the established split boundaries makes it possible to put new measurements beside earlier ones without changing the examples used for each role.

The authors create splits for the two added datasets, AnCora 2.0 for name recognition and CoMeta for metaphor detection. They release those splits so that subsequent experiments can use the same partitions. Capitel's tagging and name-recognition datasets are exceptions to the general availability of the benchmark data. The authors retain them to keep the comparison with MarIA broad. The public artifacts include the evaluation code and data splits, and the implementation uses the HuggingFace Transformers API. The authors also credit the MarIA team with helping them use the earlier scripts.

In each task, the scripts add a single linear layer to the encoder being adapted. This layer converts the encoder's representation into scores used for the task's prediction. For classification at sentence or paragraph level, the authors take the representation at a designated input position. BERT uses `[CLS]` for this role, and the paper specifies `<s>` for RoBERTa. That position supplies the representation to which the classification layer is applied. The training labels give this combination of encoder and output layer an incentive to retain the distinctions relevant to the task.

Inputs in fine-tuning have a maximum sequence length of 512. This is a common training constraint across the benchmark, separate from the choices the original developers made about sequence length during pretraining. The authors use the MarIA scripts with minor modifications and search the same set of candidate settings. Candidate batch sizes are 8, 16 and 32. Candidate weight decay values are 0.01 and 0.1. Candidate learning rates are 1e-5, 2e-5, 3e-5 and 5e-5. A grid search explores the combinations formed by the candidate values. Weight decay controls a regularizing influence on the learned parameters, and the learning rate controls the size of training updates.

This procedure gives an entrant room to respond differently to the same available settings. A learning rate that works for one checkpoint may be a poor choice for another. A common grid makes the scope of the search comparable while permitting its outcome to vary. The authors select the best checkpoint on the development set over 5 epochs. They also keep a fixed seed, the input used to initialize the experiment's random choices. This describes a procedure intended to be repeatable with the same data and settings. The evidence produced is the outcome under that fixed seed.

#### Compare datasets and count wins

For the main comparison, the paper reports each dataset on its designated metric, then summarizes the results with an average and a count of dataset wins. Grouping the checkpoints by training language and size provides an intermediate view between individual tasks and a single overall winner. The groups are Spanish-only base, multilingual base and large. The large group contains a Spanish-only entrant and a multilingual one. A system can therefore win within its group while another group supplies the best score on that dataset.

For a shared win, the paper uses a fractional credit:

```
1/n
```

Here `1` is the credit for a dataset win without a tie, `/` denotes division, and `n` is the number of tied systems. Each tied system gets the resulting share. The convention lets the authors count how often systems lead while handling datasets on which their reported scores coincide. Wins capture the frequency with which an entrant comes first. The average is sensitive to score gaps as well, so a sequence of close results and a large gap on a different dataset can affect the two summaries in different ways.

The authors report a second average that omits CoMeta. This uses the same underlying results for the other datasets and asks how much the overall reading depends on the unusually low metaphor scores. They also repeat evaluation for selected datasets using accuracy where the first comparison used F1. That change serves a separate purpose. It aligns the evaluation with the customary metric for comparing the paper's results to those already published on the same task.

### Experiments and results

#### What the benchmark asks the systems to do

The experiment covers 12 systems, 8 task types and 11 datasets. The distinction between task types and datasets matters because some tasks have multiple sets of examples. The results can show whether a system does well on one dataset for a skill and how it fares when tested on another dataset for that skill. The group and overall averages summarize across datasets, so task types with multiple datasets enter the overall comparison in more than one place.

In [part-of-speech tagging](https://md.research.elamur.ai/free/en/concepts/part-of-speech-tagging/), a system predicts grammatical categories for words. The paper evaluates tagging on UD and Capitel. UD refers to [Universal Dependencies](https://md.research.elamur.ai/free/en/concepts/universal-dependencies/). The common accuracy measure for these results is word accuracy, which gives credit for assigning the correct tag to a word. The initial comparison uses the inherited F1 reporting convention, while the comparison to prior work uses word accuracy on both datasets.

[Named entity recognition](https://md.research.elamur.ai/free/en/concepts/named-entity-recognition/) asks a system to identify mentions and assign their types. It appears on CoNLL 2002, Capitel and AnCora 2.0. Capitel supplies data for this task as well as for tagging. AnCora 2.0 extends the earlier Spanish evaluation with another name-recognition dataset. The presence of several datasets gives the researchers multiple opportunities to observe an encoder's performance on the same broad task. A result on a particular corpus still belongs to its examples, labels and evaluation procedure.

The [semantic similarity](https://md.research.elamur.ai/free/en/concepts/semantic-similarity/) task examines how close two texts are in meaning. The paper calls this task STS and uses data drawn from the earlier SemEval similarity work it cites. PAWS-X tests paraphrase identification, which asks for a decision about whether a pair of texts expresses the same meaning. XNLI concerns natural language inference, where the decision is about what relation one statement bears to another. These datasets all concern relationships between texts, yet their target predictions differ. A degree of similarity, a paraphrase judgment and an inference judgment each put different demands on the adapted encoder.

For document [classification](https://md.research.elamur.ai/free/en/concepts/text-classification/), the study uses MLDoc, where the unit to be categorized is a document. SQAC supplies Spanish [question answering](https://md.research.elamur.ai/free/en/concepts/question-answering/) data and comes from the MarIA work. CoMeta asks a system to detect metaphors. Its inclusion gives the benchmark a task on which figurative use matters and lets the authors examine performance outside the set inherited from MarIA. CoMeta and AnCora 2.0 are the additions, each with splits established for this study.

The main results use micro F1 for most datasets. F1 balances precision, which concerns the correctness of predicted positives, with recall, which concerns how many reference positives are recovered. Micro averaging pools the underlying decisions before calculating the score. MLDoc and XNLI use accuracy, which counts correct decisions among the evaluated examples. STS uses the official combined score for that dataset. The average consequently brings together results that describe different kinds of decisions. It serves as a benchmark-wide summary of the reported scores, while the individual dataset results carry the interpretation specific to each task.

#### Which released systems lead

The original comparison retains MarIA's published scores where available and fills out the comparison with additional runs following the adaptation procedure. Among the Spanish-only base entrants, IXAes has both the highest average and the most dataset wins. MarIA base comes next. BETO follows, with BERTIN and Electricidad farther behind in the ranking the authors report. The lead for IXAes matters because its checkpoint was trained with a smaller, publicly available corpus. The result establishes that corpus size alone is an unreliable guide to the order of these entrants.

Within the multilingual base group, mDeBERTa leads. XLM-RoBERTa-base and ixambert follow with similar overall performance. Comparing the strongest base entrants across groups shows how the result depends on the multilingual system chosen. IXAes does better than XLM-RoBERTa-base in the authors' comparison, and they describe MarIA base as slightly ahead of that multilingual option as well. Bringing in mDeBERTa changes the ordering. The leading base-size checkpoint comes from multilingual training and has a newer architecture than the Spanish-only entrants.

XLM-RoBERTa-large beats MarIA large on 9 of the 11 datasets and has the better average. The multilingual mDeBERTa also edges past MarIA large overall. XLM-RoBERTa-large ranks first in the full comparison, including against mDeBERTa. Its lead across the benchmark coexists with individual wins by other entrants. For example, the paper identifies mDeBERTa as the strongest entrant on UD tagging under word accuracy and MarIA large as the strongest on Capitel name recognition.

The paper puts the large systems' sizes in context. It attributes much of XLM-RoBERTa-large's additional size to its larger vocabulary and describes the large entrants as comparable in floating-point operations, a measure of computational work. XLM-RoBERTa also supports 99 languages in addition to Spanish, which gives it scope for cross-lingual transfer. These are distinct considerations. The benchmark score describes performance on Spanish tasks after fine-tuning. The vocabulary and computing remarks concern the checkpoint's design and cost, and broader language support matters for applications that also work across languages.

For readers choosing among checkpoints, the authors connect the ranking to hardware budget. They present XLM-RoBERTa-large as the strongest overall inference option in the comparison, with the time and GPU memory demands associated with using the larger system. They identify mDeBERTa as the next choice for smaller budgets and IXAes as an option when resources are more modest. They also encourage attention to the result for the task closest to the intended application. The group rankings make this possible by showing which entrants do well under different size constraints. The advice reflects benchmark performance and the authors' discussion of computing requirements.

#### How the scores compare with earlier task results

The authors repeat the evaluation of PAWS-X and both part-of-speech datasets using customary accuracy measures. They fine-tune all 12 systems under the same methodology for this reevaluation. Accuracy applies to the paraphrase decision on PAWS-X and to individual words on UD and Capitel tagging. The resulting comparison preserves the broad trends of the inherited evaluation and gives a basis for placing several results alongside previously published scores.

On Spanish UD part-of-speech tagging, the leading entrant is mDeBERTa, with word accuracy of 99.20. The earlier result cited by the paper is 99.05, from work by Straka and colleagues. The authors regard those scores as comparable. The result illustrates why a chart of the best score in a new benchmark needs the older task result alongside it. The current study identifies a leading checkpoint while showing how close earlier tagging work already came on the same measure.

Leading benchmark and prior results on UD part-of-speech tagging by word accuracy mDeBERTa edges the cited earlier tagging result.

**The numbers**

| System or setting | word accuracy |
| --- | --- |
| Earlier result from Straka and colleagues | 99.05 |
| mDeBERTa (this paper) | 99.20 |

MarIA large reaches 90.51 F1 on Capitel name recognition. The best earlier result cited in the paper is 90.34. The authors treat the gap as minor. This case supplies a different task winner from the UD result and shows the value of reading the score for the actual application. It also illustrates the distinction between leading a head-to-head evaluation on a dataset and posting a substantively stronger result than the one already available in the literature.

Leading benchmark and prior results on Capitel named entity recognition by F1 MarIA large finishes close to the cited earlier result.

**The numbers**

| System or setting | F1 |
| --- | --- |
| Earlier projected-annotation result | 90.34 |
| MarIA large (this paper) | 90.51 |

On MLDoc, BETO obtains 97.17 accuracy, compared with a previously reported 96.80. BETO is below IXAes and MarIA base in the overall Spanish-only ranking, so the document classification result shows how an aggregate can obscure a system's strongest task. The paper again characterizes the improvement over the earlier result as slight. A user whose work resembles MLDoc might weigh that individual result differently from someone choosing a single starting point for several Spanish applications.

Leading benchmark and prior results on MLDoc document classification by accuracy BETO scores slightly above the cited earlier result.

**The numbers**

| System or setting | accuracy |
| --- | --- |
| Earlier result from Lai and colleagues | 96.80 |
| BETO (this paper) | 97.17 |

In other comparisons, the previous results remain well ahead of the entrants in this study. The cited CoNLL name-recognition result is 95.90 F1, and the earlier XNLI result is 85.50 accuracy. The authors report that their best results on those datasets fall well short of these benchmarks. These gaps help explain why the paper treats stronger available checkpoints and better task-specific methods as complementary lines of work. The published high scores provide targets even after a broad comparison has identified a better starting encoder.

PAWS-X is the clear case in which the authors report an improvement over the earlier benchmark. They attribute that improvement to the XLM-RoBERTa and mDeBERTa entrants when evaluated with the standard accuracy measure. For Capitel tagging, AnCora 2.0 name recognition, STS, SQAC and CoMeta, the authors describe results as first published in the course of the Spanish encoder evaluations, including this study. The comparison to task history therefore has a different meaning for those datasets. The benchmark results help establish the initial reference points against which subsequent scores could be read.

CoMeta scores are markedly lower across systems than the other results. The authors relate this to the difficulty of metaphor detection and the generally low state of the art they describe for the task. When CoMeta is omitted, the benchmark averages rise somewhat and the broad trends survive. The comparison still has a leading multilingual large checkpoint, a strong multilingual base checkpoint and comparatively close Spanish-only entrants. CoMeta contributes evidence about a difficult task even though its inclusion is unnecessary to produce the overall ranking the paper emphasizes.

### What the ablations show

The paper reports no controlled pretraining ablations, and its analyses instead compare released checkpoints by size and language coverage, change selected evaluation metrics, and recalculate the aggregate without the metaphor dataset.

#### Which conclusions survive changes to scoring

Removing CoMeta tests the sensitivity of the summary to a dataset on which scores are low across the board. A simple benchmark average can reflect both the relative strength of the systems and the particular mix of tasks included. If a difficult dataset were especially favorable to one entrant, its inclusion could pull the aggregate in that entrant's direction. The paper's second average asks whether the results depend on that influence. The broad ranking holds when CoMeta is left out, giving evidence that the main ordering occurs across the rest of the benchmark as well.

This is a change in the calculation made after evaluation. The researchers use the benchmark scores already obtained and change which datasets enter the average. The result concerns how robust the broad ordering is to this single omission. It leaves open how the average would behave under other changes, such as replacing several datasets or giving each task type the same influence. The authors' check is informative because it targets a visible feature of these results, the unusually low scores on metaphor detection.

Changing the scores reported for PAWS-X, UD and Capitel tagging probes a different dependency. The inherited procedure used F1 for these datasets. The customary procedure asks how often the paraphrase decision or the word tag is correct. Which measure is used can affect the interpretation of differences and the comparison to past work. In the accuracy-based rerun, the overall tendencies remain consistent with the inherited measure. This extends the support for the broad conclusions and makes selected task comparisons easier to interpret using the conventions of their own literature.

The earlier results then supply checks on what counts as progress. mDeBERTa's best UD tagging result and MarIA large's best Capitel recognition result sit close to earlier values. BETO's MLDoc result also lies near the previous best. CoNLL name recognition and XNLI present much more room for improvement, while PAWS-X presents a clear advance. These outcomes help separate the implications of a scoring change from the implications of adding a strong entrant. A customary metric establishes a common scale. The task's prior best determines where a score falls on that scale relative to published work.

#### What comparisons among checkpoints can establish

The comparisons within a size category make the question about language coverage more precise. At base size, the relative strength of IXAes and XLM-RoBERTa-base shows that a Spanish-only checkpoint can outperform a multilingual checkpoint in a reasonably close comparison. mDeBERTa's position shows why that conclusion needs to name the alternative. Both facts can hold because the comparison is between realized systems with distinct architectures and training histories. For the practical question of what to use, those differences are part of what the user receives when selecting a checkpoint.

The comparison between IXAes and MarIA base is especially relevant to the paper's discussion of corpora. Both are Spanish RoBERTa-base entrants, and the stronger of the pair on the study's aggregate comes from the smaller, publicly available corpus. The authors contrast the relatively light publicly available filtering behind OSCAR with the in-house filtering used for BNE. The result makes it reasonable to investigate how these corpora differ. The training schedules also differ, so the scores reflect more than corpus choice. An audit could describe the text in each collection, while a matched experiment would be needed to measure the effect of substituting one corpus for the other.

Vocabulary size provides another example of the value and limits of the comparison. The authors observe that the Spanish entrants tend to have smaller vocabularies than XLM-RoBERTa and mDeBERTa. They also point out that BETO and Electricidad have smaller vocabularies than the stronger IXAes and MarIA entrants. These patterns are consistent with a vocabulary contribution to performance. Differences remain among Spanish systems with the same vocabulary size, so size by itself cannot account for the full ranking. To understand the contribution, an experiment would need to change the vocabulary under otherwise matched conditions.

The authors likewise consider the training schedule. MarIA's decision to run for a single epoch contrasts with schedules used for the strongest multilingual checkpoints. The paper considers the possibility that some Spanish systems had too little training. It also describes prior work that recommended both longer and shorter training procedures in different settings. The comparison can motivate studying the number of steps, and the published schedules help define the settings worth investigating. A causal answer would require a run that varies the amount of training while controlling the related decisions about corpus, architecture and batch construction.

The same principle applies to mDeBERTa. Its results make the architecture and objective of that checkpoint relevant to future Spanish work. The checkpoint embodies replaced token detection, changes to attention, changes to embedding sharing, and its own training schedule. The benchmark evaluates those choices together. The authors observe that the Spanish entrants predate the newer DeBERTa architecture, which helps frame the next experiment they would want. It also means the strongest multilingual base entrant had no directly matched Spanish-only counterpart in the comparison.

#### Why the proposed controls answer different questions

The paper proposes a comparison in which researchers fix the architecture and training procedure and change the corpus. That design would test how substituting training text affects the same kind of encoder. It could be paired with inspection of the collections to understand what constitutes a change in quality or composition. The authors cite earlier work suggesting that aggressive filtering does not always improve downstream scores and that corpus size may matter alongside filtering. An experiment with a matched recipe could ask how far that observation carries to the corpora used for Spanish.

The other proposal is to keep the corpus fixed while changing the training method or its specification. This addresses the possibility that a less successful checkpoint could do better when trained for a different number of steps or with a different objective. The direction of control matters. A fixed recipe gives a firm basis for comparing corpora. A fixed corpus gives a firm basis for comparing recipes. The present results motivate both because the available checkpoints differ on both dimensions. They also give future experiments a practical benchmark against which to judge the effect of a controlled change.

### Limitations

#### Limits stated by the authors

The authors describe their task coverage as broad and limited. The datasets cover several familiar uses of Spanish NLP, but the benchmark speaks most directly to applications that resemble those datasets. The paper treats its leaders as sensible defaults when a target task is missing. That is guidance based on available evidence. Evidence for performance on a different dataset would come from evaluating on that dataset under conditions relevant to the intended application.

The paper focuses on adapting encoders to supervised tasks. Decoder-only and encoder-decoder approaches remain outside the comparison. The authors discuss these alternatives because developments in text generation and in [few-shot learning](https://md.research.elamur.ai/free/en/concepts/few-shot-learning/), where a system works with only a small number of examples for the task, make them relevant to Spanish. The results here concern a particular form of supervised reuse. They give no relative scores for the broader families or for a setting in which task-specific fine-tuning is replaced by instructions or examples supplied at use time.

Data access limits what can be reproduced and investigated. Capitel's tagging and name-recognition corpora are unavailable to the public, even though the paper makes its evaluation code and other data splits available. The authors use Capitel to preserve continuity with the MarIA benchmark and explicitly discuss the cost of that decision for reproducibility. The two new datasets have public splits. A reader with access to the rest of the suite can therefore repeat the comparisons on those datasets, while reproducing the Capitel experiments requires access to the relevant corpora.

The original BNE training corpus presents another access constraint. An evaluation of a released MarIA checkpoint is possible using the benchmark, but direct inspection of what the original system read needs the training corpus. The authors emphasize the importance of public training corpora for investigating the properties and biases of the systems built from them. They suggest inspecting a sample of BNE and comparing it to other text sources. Their discussion of corpus quality is consequently a proposal for investigation, with the observed benchmark order providing the reason to undertake it.

The authors explicitly characterize the analysis of training factors as retrospective. They cannot pinpoint how much of a difference arose from the corpus, architecture, vocabulary, objective or amount of training. The causal comparisons they call for would require training new variants under deliberate conditions. The study offers a useful ranking of currently available checkpoints for Spanish, along with measured circumstances in which older reference results still lead. Its broader explanations remain hypotheses grounded in the differences among those checkpoints.

The authors also place the results in a particular moment of system availability. They note that the trained systems used text predating Covid-19 and use this as an example of why released checkpoints can age. They raise the question of who will keep producing strong updated systems for Spanish. The benchmark itself measures performance on its chosen tasks. Their observation about dated text concerns the basis on which the systems were trained, and their discussion of future releases concerns the sustainability of the work.

#### Limits that follow from the setup

A common fine-tuning procedure gives the entrances to the comparison a shared structure. The results are conditional on a linear prediction layer, the stated search grid and the duration of the search. The strongest setting inside that grid is what the benchmark seeks to find. An encoder with a different preferred search range or task architecture might perform differently under another procedure. Extending the search independently for each entrant could answer a question about attainable performance with additional tuning, while the shared search here answers a question about performance under comparable treatment.

The fixed seed serves reproducibility and gives the paper one realized outcome for the specified procedure. How much the scores vary across seeds is a separate question. This matters particularly for the small differences the authors highlight in comparisons to earlier work. The numerical ordering of two reported scores can be clear even when its stability across reruns remains uncertain. The paper's descriptions of close results as close deserve to travel with the scores. Their practical interpretation is narrower than the interpretation of a lead that repeats across many datasets.

The average across datasets summarizes performance across different metrics and units of prediction. A document classification error, a wrong grammatical tag and an incorrect paraphrase decision have different meanings. The average can organize the results, but its size has no single task-level interpretation. In addition, a task with multiple datasets enters the aggregate multiple times. Consequently, the overall ranking reflects both the performance of the systems and which datasets the authors selected. The parallel use of dataset-level results, group wins and the average makes those properties easier to see.

Likewise, the best published task scores are useful points of reference and answer a different question from the controlled use of a shared adaptation pipeline. Earlier task work can use its own training choices or methods designed for its particular predictions. The paper's alignment of the metric helps compare where the results land. A claim about why an earlier method outperforms an entrant would require comparing their procedures under more tightly aligned conditions. The published numbers show whether there is a gap worth explaining.

The size groups also support only a limited comparison of costs. Labels such as base and large communicate the main budget distinction, while vocabulary contributes to total size and computational work depends on more than parameter count. The authors' remarks on similar floating-point work for the large pair and on relative GPU requirements help interpret the choice. They do not amount to a hardware-specific benchmark of runtime and memory across the full set of tasks and systems. A deployment decision based on precise latency or memory limits would need measurements under the deployment conditions.

Finally, Spanish performance and cross-lingual usefulness are distinct outcomes. The multilingual checkpoints provide the option of transfer across languages, and the authors consider that an advantage for certain users. The study's scores, however, come from adaptation and evaluation on Spanish tasks. They establish the strength of those checkpoints for the Spanish benchmark. The relative benefit of transfer between particular languages or under different amounts of labeled data would need its own evaluation.

### What came after

There are no documented later studies to trace from this paper. The directions the authors set out are proposals for work beyond the benchmark, including controlled experiments on Spanish training corpora, investigations of training schedules and objectives, and evaluations of architectures outside the encoder comparison.

The most direct continuation the paper proposes is to build checkpoints expressly for comparison. That would turn observations about the available entrants into experiments capable of measuring the effect of a selected change. Training with different corpora under the same procedure could address the role of text source and filtering. Training with the same corpus under different specifications could address the role of the objective or schedule. Both directions follow from the fact that the available Spanish and multilingual checkpoints differed on several dimensions at once.

The authors also call for work on generation and learning from very few examples in Spanish. They discuss T5 as an example of an encoder-decoder approach and GPT-3 as an example of the decoder-only direction, while observing that much related work outside English uses multilingual systems such as mBART and mT5. These are examples the paper itself uses to explain the scope of the research it advocates. The supervised benchmark gives such work a comparison point on the tasks it covers, while generation and few-shot settings would require evaluation procedures suited to their own outputs.

The closing argument concerns the ability to sustain that research. The authors call for a multi-year program that can bring together experienced researchers, public data and sustained access to powerful GPUs. Their reason follows from the experimental gap. Testing whether a corpus, architecture or training schedule improves on a strong released checkpoint requires repeated training runs, followed by evaluation against the strongest available alternatives and the relevant prior task results. The paper supplies that comparative starting point for Spanish encoders and identifies the questions a new series of training runs would need to answer.

## Cite

Cite as Rodrigo Agerri and Eneko Agirre. 2022. Lessons learned from the evaluation of Spanish Language Models. arXiv:2212.08390.

The paper itself, not this page. BibTeX from the library's record of the work. [arXiv 2212.08390](https://arxiv.org/abs/2212.08390)

```bibtex
@misc{agerri2022lessons,
  title = {{Lessons learned from the evaluation of Spanish Language Models}},
  author = {Rodrigo Agerri and Eneko Agirre},
  year = {2022},
  eprint = {2212.08390},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2212.08390}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
