[Paper Review] ALBETO and DistilBETO: Lightweight Spanish Language Models
This paper introduces ALBETO and DistilBETO, lightweight Spanish language models based on ALBERT and DistilBERT architectures, pre-trained exclusively on Spanish corpora. Despite having significantly fewer parameters—up to 22 times smaller—ALBETO tiny achieves 87% of BETO's performance, while ALBETO base reaches 97% with 9× fewer parameters, outperforming BETO on multiple GLUE benchmark tasks including MLQA, XQuAD, and XNLI.
In recent years there have been considerable advances in pre-trained language models, where non-English language versions have also been made available. Due to their increasing use, many lightweight versions of these models (with reduced parameters) have also been released to speed up training and inference times. However, versions of these lighter models (e.g., ALBERT, DistilBERT) for languages other than English are still scarce. In this paper we present ALBETO and DistilBETO, which are versions of ALBERT and DistilBERT pre-trained exclusively on Spanish corpora. We train several versions of ALBETO ranging from 5M to 223M parameters and one of DistilBETO with 67M parameters. We evaluate our models in the GLUES benchmark that includes various natural language understanding tasks in Spanish. The results show that our lightweight models achieve competitive results to those of BETO (Spanish-BERT) despite having fewer parameters. More specifically, our larger ALBETO model outperforms all other models on the MLDoc, PAWS-X, XNLI, MLQA, SQAC and XQuAD datasets. However, BETO remains unbeaten for POS and NER. As a further contribution, all models are publicly available to the community for future research.
Motivation & Objective
- To address the scarcity of efficient, lightweight language models for Spanish by creating smaller, faster alternatives to existing large models like BETO.
- To improve accessibility of state-of-the-art NLP models for Spanish in low-resource and real-time applications such as mobile devices and web services.
- To evaluate the performance of these models across diverse NLP tasks including text classification, question answering, and named entity recognition.
- To release publicly available, fine-tuned models and code to support broader research and development in Spanish NLP.
Proposed method
- Pre-train ALBETO variants (tiny, base, large, xlarge, xxlarge) using the ALBERT architecture with weight tying to reduce parameter count.
- Train DistilBETO using knowledge distillation to compress the BETO model into a smaller, faster version while preserving performance.
- Use a large, monolingual Spanish corpus for all pre-training, ensuring language-specific optimization.
- Fine-tune all models on multiple Spanish NLP tasks from the GLUE benchmark, including MLDoc, PAWS-X, XNLI, MLQA, SQAC, and XQuAD.
- Evaluate performance using standard metrics such as F1, exact match, and accuracy across all tasks.
- Release all models and fine-tuning code via Hugging Face and GitHub to ensure community access and reproducibility.
Experimental results
Research questions
- RQ1Can lightweight ALBERT and DistilBERT variants achieve competitive performance on Spanish NLP tasks while using significantly fewer parameters than BETO?
- RQ2How does model efficiency (parameter count) correlate with performance on downstream tasks like question answering and natural language inference in Spanish?
- RQ3Does the cased version of BETO maintain a performance advantage on tasks like POS and NER due to case sensitivity, and how do the lightweight models compare?
- RQ4To what extent can knowledge distillation and parameter-sharing strategies preserve performance when compressing BETO into a lighter model for Spanish?
- RQ5Can these lightweight models serve as viable alternatives to BETO in low-resource or inference-constrained environments?
Key findings
- ALBETO tiny achieves 87% of BETO's performance on the GLUE benchmark while using 22 times fewer parameters.
- ALBETO base attains 97% of BETO's performance with more than 9 times fewer parameters.
- The ALBETO xxlarge model outperforms BETO cased on MLQA (2.5 pp higher F1), SQAC (2.8 pp higher F1), and XQuAD (2.3 pp higher F1).
- On the XNLI task, ALBETO xxlarge achieves an F1 score of 82.42, surpassing BETO cased by 0.5 points.
- For POS and NER tasks, BETO cased still outperforms all lightweight models, particularly due to case sensitivity, though ALBETO models show strong performance.
- DistilBETO and all ALBETO variants are publicly released with fine-tuned weights and training code, enabling broad community use.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.