Search papers, labs, and topics across Lattice.
This paper introduces PortBERT, a family of RoBERTa-based language models specifically designed for the Portuguese language, focusing on balancing performance with training and deployment efficiency. Trained on over 450 GB of curated data using byte-level BPE tokenization, PortBERT demonstrates competitive performance on the ExtraGLUE benchmark, outperforming existing monolingual and multilingual models. The study emphasizes not only accuracy but also provides critical insights into training and inference times, thus addressing the significant gap in compute-performance tradeoffs in Portuguese NLP.
PortBERT achieves competitive performance while significantly improving training and inference efficiency for Portuguese language models, challenging the status quo of scale-focused approaches.
Transformer models dominate modern NLP, but efficient, language-specific models remain scarce. In Portuguese, most focus on scale or accuracy, often neglecting training and deployment efficiency. In the present work, we introduce PortBERT, a family of RoBERTa-based language models for Portuguese, designed to balance performance and efficiency. Trained from scratch on over 450 GB of deduplicated and filtered mC4 and OSCAR23 from CulturaX using fairseq, PortBERT leverages byte-level BPE tokenization and stable pre-training routines across both GPU and TPU processors. We release two variants, PortBERT base and PortBERT large, and evaluate them on ExtraGLUE, a suite of translated GLUE and SuperGLUE tasks. Both models perform competitively, matching or surpassing existing monolingual and multilingual models. Beyond accuracy, we report training and inference times as well as fine-tuning throughput, providing practical insights into model efficiency. PortBERT thus complements prior work by addressing the underexplored dimension of compute-performance tradeoffs in Portuguese NLP. We release all models on Huggingface and provide fairseq checkpoints to support further research and applications.