MrBERT: Modern Multilingual Encoders via Vocabulary, Domain, and Dimensional Adaptation

Tamayo, Daniel, Lacunza, Iñaki, Rivera-Hidalgo, Paula, Da Dalt, Severino, Aula-Blasco, Javier, Gonzalez-Agirre, Aitor, Villegas, Marta

–arXiv.org Artificial Intelligence 

While specialWe introduce MrBERT, a family of 150M-300Mized encoders have been developed for the biomedical (Lee parameter encoders built on the ModernBERT ar-et al., 2025; Sounack et al., 2025) and legal (Chalkidis chitecture and pre-trained on 35 languages andet al., 2020) domains, these models often remain decoupled from the architectural improvements seen in moderncode. Through targeted adaptation, this model general-purpose encoders. We argue that the optimal pathfamily achieves state-of-the-art results on Catalanand Spanish-specific tasks, while establishingto specialization is context-dependent. For regional lanrobust performance across specialized biomed-guages such as Spanish and Catalan, efficiency is best ical and legal domains. To bridge the gap be-achieved through vocabulary adaptation (Da Dalt et al., tween research and production, we incorporate 2024) and language-specific data mining (Armengol-Estapé et al., 2021; Gutiérrez-Fandiño et al., 2021; Serrano et al.,Matryoshka Representation Learning (MRL), enabling flexible vector sizing that significantly re-2022), allowing for more compact, task-optimized footduces inference and storage costs.