MrBERT-science is a new foundational multilingual science model built on the
ModernBERT
architecture. The model is obtained via domain adaptation from
MrBERT
, initializing all weights from MrBERT and further training on a domain-specific scientific corpus comprising comprising 3.6B tokens (38.1% Spanish, 61.9% English).
Technical Description
Technical details of the MrBERT-science model.
Description
Value
Model Parameters
308M
Tokenizer Type
SPM
Vocabulary size
256000
Precision
bfloat16
Context length
8192
Training Hyperparemeters
Hyperparameter
Value
Pretraining Objective
Masked Language Modeling
Learning Rate
6E-04
Learning Rate Scheduler
Cosine
Warmup
360,000,000 tokens
Optimizer
decoupled_stableadamw
Optimizer Hyperparameters
AdamW (β1=0.9,β2=0.98,ε =1e-06 )
Weight Decay
1E-05
Global Batch Size
512
Dropout
1E-01
Activation Function
GeLU
How to use
>>> from transformers import pipeline
>>> from pprint import pprint
>>> unmasker = pipeline('fill-mask', model='BSC-LT/MrBERT-science')
>>> pprint(unmasker("Hubble's<mask>describes the expansion of the universe and the relationship between a galaxy's distance and its recessional velocity.", top_k=3))
[{'score': 0.8211672902107239,
'sequence': "Hubble's law describes the expansion of the universe and the ""relationship between a galaxy's distance and its recessional "'velocity.',
'token': 21673,
'token_str': 'law'},
{'score': 0.16654537618160248,
'sequence': "Hubble's Law describes the expansion of the universe and the ""relationship between a galaxy's distance and its recessional "'velocity.',
'token': 18573,
'token_str': 'Law'},
{'score': 0.0063100955449044704,
'sequence': "Hubble's equation describes the expansion of the universe and ""the relationship between a galaxy's distance and its "'recessional velocity.',
'token': 174396,
'token_str': 'equation'}]
EVALUATION:
In addition to the MrBERT family, the following base foundation models were considered:
AbScientia:
A Spanish scientific abstracts dataset focused on STEM disciplines, organized into 24 unified categories to capture the specifications of Spanish scientific language. The reported metric is accuracy.
Scientific-paragraphs-categorization ('en' split):
A large-scale topic-classification dataset built from open-access scientific publications, classified into 26 scientific topics to capture the characteristics of standard English scientific language. The reported metric is accuracy.
Task Name
Task Type
mmBERT (308M)
MrBERT (308M)
MrBERT-es (150M)
INDUS (125M)
SciBERT (110M)
MrBERT-science (308M)
abscientia (ES)
Text Classification
82.66
81.98
82.39
79.24
80.80
82.34
scientific_paragraphs (EN)
Text Classification
60.22
61.02
60.82
63.95
62.77
62.20
chemhotpotqa (EN)
Retrieval
62.73
62.70
56.94
63.79
64.43
62.94
chemnq (EN)
Retrieval
34.87
39.70
29.37
39.78
39.09
36.65
climate_fever_v2 (EN)
Retrieval
23.32
23.21
21.52
23.91
23.06
23.04
litsearch (EN)
Retrieval
11.06
12.17
12.41
12.24
13.52
11.78
Average (EN)
All Tasks
38.44
39.76
36.21
40.73
40.57
39.32
Average (EN + ES)
All Tasks
44.76
45.79
42.81
46.23
46.32
45.47
Additional information
Author
The Language Technologies Lab from Barcelona Supercomputing Center.
Contact
For further information, please send an email to
[email protected]
.
Copyright
Copyright(c) 2026 by Language Technologies Lab, Barcelona Supercomputing Center.
Funding
This work has been supported and funded by the Ministerio para la Transformación Digital y de la Función Pública and the Plan de Recuperación, Transformación y Resiliencia – funded by the EU through NextGenerationEU, within the framework of the Modelos del Lenguaje project, as well as by the European Union – NextGenerationEU. Views and opinions expressed are however those of the author(s) only and do not necessarily reflect those of the European Union or European Commission. Neither the European Union nor the European Commission can be held responsible for them.
Acknowledgements
This project has benefited from the contributions of numerous teams and institutions through data contributions.
In Catalonia, many institutions have been involved in the project. Our thanks to Òmnium Cultural, Parlament de Catalunya, Institut d'Estudis Aranesos, Racó Català, Vilaweb, ACN, Nació Digital, El món and Aquí Berguedà.
At national level, we are especially grateful to our ILENIA project partners: CENID, HiTZ and CiTIUS for their participation. We also extend our genuine gratitude to the Spanish Senate and Congress, Fundación Dialnet, Fundación Elcano and the ‘Instituto Universitario de Sistemas Inteligentes y Aplicaciones Numéricas en Ingeniería (SIANI)’ of the University of Las Palmas de Gran Canaria.
At the international level, we thank the Welsh government, DFKI, Occiglot project, especially Malte Ostendorff, and The Common Crawl Foundation, especially Pedro Ortiz, for their collaboration.
Their valuable efforts have been instrumental in the development of this work.
Disclaimer
Be aware that the model may contain biases or other unintended distortions.
When third parties deploy systems or provide services based on this model, or use the model themselves,
they bear the responsibility for mitigating any associated risks and ensuring compliance with applicable regulations,
including those governing the use of Artificial Intelligence.
The Barcelona Supercomputing Center, as the owner and creator of the model, shall not be held liable for any outcomes resulting from third-party use.
MrBERT-science huggingface.co is an AI model on huggingface.co that provides MrBERT-science's model effect (), which can be used instantly with this BSC-LT MrBERT-science model. huggingface.co supports a free trial of the MrBERT-science model, and also provides paid use of the MrBERT-science. Support call MrBERT-science model through api, including Node.js, Python, http.
MrBERT-science huggingface.co is an online trial and call api platform, which integrates MrBERT-science's modeling effects, including api services, and provides a free online trial of MrBERT-science, you can try MrBERT-science online for free by clicking the link below.
BSC-LT MrBERT-science online free url in huggingface.co:
MrBERT-science is an open source model from GitHub that offers a free installation service, and any user can find MrBERT-science on GitHub to install. At the same time, huggingface.co provides the effect of MrBERT-science install, users can directly use MrBERT-science installed effect in huggingface.co for debugging and trial. It also supports api for free installation.