[Paper Review] RoBERTuito: a pre-trained language model for social media text in Spanish
RoBERTuito is a RoBERTa-based model trained on 500M Spanish tweets to improve Spanish social-media NLP tasks, with competitive cross-lingual and code-switching abilities, and released on HuggingFace.
Since BERT appeared, Transformer language models and transfer learning have become state-of-the-art for Natural Language Understanding tasks. Recently, some works geared towards pre-training specially-crafted models for particular domains, such as scientific papers, medical documents, user-generated texts, among others. These domain-specific models have been shown to improve performance significantly in most tasks. However, for languages other than English such models are not widely available. In this work, we present RoBERTuito, a pre-trained language model for user-generated text in Spanish, trained on over 500 million tweets. Experiments on a benchmark of tasks involving user-generated text showed that RoBERTuito outperformed other pre-trained language models in Spanish. In addition to this, our model achieves top results for some English-Spanish tasks of the Linguistic Code-Switching Evaluation benchmark (LinCE) and has also competitive performance against monolingual models in English tasks. To facilitate further research, we make RoBERTuito publicly available at the HuggingFace model hub together with the dataset used to pre-train it.
Motivation & Objective
- Motivate the need for domain-specific pre-trained models for Spanish social media text.
- Develop and publish a large-scale Spanish Twitter language model (RoBERTuito) and its variants.
- Evaluate RoBERTuito on Spanish social-media classification tasks and code-switching benchmarks.
- Provide transparent data and models to enable replication and further research in Spanish NLP.
Proposed method
- Train a RoBERTa-base architecture on ~500M Spanish tweets (cased, uncased, and deaccented variants).
- Preprocess tweets with normalization strategies and tokenization via SentencePiece (vocab size 30k).
- Fine-tune models on Spanish, English, and Spanish-English code-switching tasks using standard classification heads for sentence and token labeling.
- Benchmark against Spanish baselines (BETO, RoBERTa-BNE, BERTin) and multilingual models on Task A: Hate, Task B: Sentiment, Emotion, Irony; Task: LinCE for code-switching; English tasks from SemEval2017.
- Analyze the impact of input casing and accents, and evaluate code-switching performance against multilingual models.
Experimental results
Research questions
- RQ1Does RoBERTuito outperform general-domain pre-trained models on Spanish social-media classification tasks?
- RQ2How do uncased vs cased vs deaccented variants affect performance on Spanish social-media tasks?
- RQ3What is RoBERTuito’s performance in code-switching (Spanish-English) tasks compared to multilingual models?
- RQ4How does RoBERTuito perform on English Twitter tasks relative to monolingual English models?
- RQ5Is RoBERTuito effective in code-switching benchmarks such as LinCE for Spanish-English?
Key findings
- RoBERTuito uncased achieves top performance on Spanish hate speech (80.1) and sentiment (70.7) with an overall score of 69.9, outperforming BETO and RoBERTa-BNE.
- Deaccented RoBERTuito achieves hate 79.8, sentiment 70.2, emotion 54.3, irony 74.0, score 69.6, closely matching uncased.
- Cased RoBERTuito also strong but slightly behind uncased/deaccented on several Spanish tasks (hate 79.0, sentiment 70.1, emotion 51.9, irony 71.9, score 68.2).
- On English tasks, RoBERTuito generally surpasses mBERT and XLM-R BASE for sentiment, emotion, and hate speech, with BERTweet still leading in some tasks (e.g., sentiment 70.3).
- In LinCE code-switching benchmarks (Spanish-English), RoBERTuito’s dev results (Sentiment 53.2, NER 67.2, POS 97.0 for uncased) are competitive with multilingual baselines; on the official LinCE leaderboard RoBERTuito scores best in sentiment (60.6) and second in NER/POS (68.5, 97.2).
- RoBERTuito models are more parameter-efficient (108M) than XLM-R LARGE and show favorable vocabulary efficiency on Spanish tasks.
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.