SciBETO-continual
Ablation model. This is BERTIN further pre-trained on the SciBETO scientific corpus. It was released to reproduce the from-scratch vs. continual pre-training comparison in the SciBETO paper. For downstream use we recommend SciBETO-base or SciBETO-large.
SciBETO-continual starts from BERTIN (RoBERTa-base, 125M parameters) and continues masked language modeling on the same Spanish scientific corpus used to train SciBETO. It keeps BERTIN's general-domain tokenizer and vocabulary. This is the main difference from SciBETO-base, which has the same architecture and size but was trained from scratch with a tokenizer learned on scientific text.
- Paper: SciBETO: A Domain-Specific RoBERTa Model Trained on Spanish Scientific Texts (EACL 2027)
- Models: SciBETO-base · SciBETO-large · SciBETO-continual (ablation)
- Benchmarks: Spanish Scientific NLP Datasets
- Code: pre-training · fine-tuning and evaluation
Training
| Initialization | bertin-project/bertin-roberta-base-spanish |
| Architecture | RoBERTa-base (12 layers, hidden size 768), 125M parameters |
| Tokenizer | BERTIN's (unchanged) |
| Data | SciBETO pre-training corpus: 1.43M deduplicated Spanish scientific documents, 18.2B words |
| Objective | Masked language modeling, 15% masking |
| Effective batch size | 4,224 sequences of 512 tokens |
| Peak learning rate | 1e-4, selected from {2e-5, 5e-5, 1e-4} with 3,000-step probe runs evaluated on downstream dev sets |
| Schedule | 2 epochs (24,000 steps), 1,440 warmup steps |
| Released checkpoint | step 12,000 (end of epoch 1), selected on development-set performance |
The main branch holds the step-12,000 checkpoint used in the paper's main results. The training-state files (optimizer.pt, scheduler.pt, rng_state_*.pth, trainer_state.json, training_args.bin) are included for reproducibility and are not needed for inference or fine-tuning.
Results
Same fine-tuning protocol as all encoders in the paper: five seeds, mean ± 95% CI half-width.
| Model | Academic Knowledge | Banrep (EM) | Econ-IE | WikiCAT | PAWS-X | SQAC | ESNLIR |
|---|---|---|---|---|---|---|---|
| BERTIN (initialization) | 90.12 ± 0.61 | 57.39 ± 0.95 | 48.81 ± 1.15 | 74.46 ± 0.83 | 88.44 ± 0.47 | 75.63 ± 0.58 | 66.55 ± 0.27 |
| SciBETO-continual | 90.32 ± 0.30 | 57.79 ± 1.39 | 49.73 ± 0.80 | 74.25 ± 0.59 | 88.83 ± 0.99 | 75.87 ± 0.85 | 67.48 ± 0.32 |
| SciBETO-base (from scratch) | 90.95 ± 0.56 | 58.95 ± 0.33 | 51.25 ± 0.24 | 75.34 ± 0.39 | 88.58 ± 0.52 | 71.35 ± 0.96 | 65.89 ± 0.14 |
Main findings:
- Against BERTIN, continual pre-training changes scores by −0.21 to +0.94. Only the ESNLIR gain survives the confidence intervals, and none of the gains on the three scientific benchmarks does.
- Against SciBETO-base at equal size, training from scratch with a domain tokenizer is better on all three scientific benchmarks (+0.63, +1.16, +1.52; intervals separate on Econ-IE). The continual model keeps more general-domain competence, winning on SQAC (+4.52) and ESNLIR (+1.60).
- Epoch-2 checkpoint (24k): results are mixed and within the intervals: +0.10 on Academic Knowledge, +0.04 on Banrep and −0.56 on Econ-IE.
- Compute was not matched: the released checkpoint saw about 51M training sequences, roughly one pass over the corpus, versus about 296M for SciBETO-base. The comparison therefore shows which approach was better at these budgets, not that continual pre-training cannot close the gap.
Usage
from transformers import pipeline
fill = pipeline("fill-mask", model="Flaglab/SciBETO-continual")
fill("La política <mask> expansiva redujo las tasas de interés.")
License
CC BY 4.0, the same license as BERTIN, from which this model is derived. Please also cite BERTIN (de la Rosa et al., 2022).
Citation
@inproceedings{prieto2027scibeto,
title = {{SciBETO}: A Domain-Specific {RoBERTa} Model Trained on {Spanish} Scientific Texts},
author = {Prieto, Juan Camilo and Mart{\'i}nez Novoa, Santiago and Gomez, Lina and Manrique, Ruben},
booktitle = {Proceedings of the Conference of the European Chapter of the Association for Computational Linguistics (EACL 2027)},
year = {2027}
}