BERTugues: A Novel BERT Transformer Model Pre-trained for Brazilian Portuguese
Large Language Models (LLMs) are trained for English or multilingual versions, with superior performance in English. This disparity occurs because, in the training of multilingual models, only a relatively small amount of data is added for each additional language. Consequently, while these models can function in Portuguese, their performance is suboptimal. The first BERT model (Bidirectional Encoder Representations from Transformers) specifically trained for Brazilian Portuguese was BERTimbau in 2020, which enhanced performance across various text-related tasks. We followed the training approach of BERT/BERTimbau for BERTugues, while implementing several improvements. These included removing rarely used characters in Portuguese from the tokenizer, such as oriental characters, resulting in the addition of over 7,000 new tokens. As a result, the average length of sentence representations was reduced from 3.8 words with more than one token to 3.0, which positively impacted embedding performance by improving metrics relevant to classification problems. Two additional enhancements involved embedding emojis as tokens - an essential step for capturing conversational nuances - and filtering low-quality texts from the training dataset. These modifications improved performance across various tasks, raising the average F1 score from 64.8 % in BERTimbau to 67.9 % in BERTugues.
Authors
- Luciane Agnoletti dos Santos Pedotti (ORCID: https://orcid.org/0000-0003-0205-366X)
- Ricardo Mazza Zago (ORCID: https://orcid.org/0000-0003-0175-1976)
Institutions
- Universidade Tecnológica Federal do Paraná (BR)
- Universidade Estadual de Campinas (UNICAMP) (BR)
Publication Details
- Journal
- Semina Ciências Exatas e Tecnológicas
- Published
- 2024-12-20
- DOI
- https://doi.org/10.5433/1679-0375.2024.v45.50630
- Citations
- 2
- Primary Topic
- Speech Recognition and Synthesis
- Type
- article
- Field-Weighted Citation Impact
- 0.69