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

Institutions

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
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

BERTugues: A Novel BERT Transformer Model Pre-trained for Brazilian Portuguese

Luciane Agnoletti dos Santos Pedotti, Ricardo Mazza Zago
2 citations
Semina Ciências Exatas e Tecnológicas
Speech Recognition and Synthesis
0.69
article

BERTugues: A Novel BERT Transformer Model Pre-trained for Brazilian Portuguese

Luciane Agnoletti dos Santos Pedotti, Ricardo Mazza Zago
article en
2 citations

Abstract

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.

Semina Ciências Exatas e TecnológicasVol. 45
Universidade Tecnológica Federal do Paraná (BR), Universidade Estadual de Campinas (UNICAMP) (BR)
Openalex Percentile: Top 22%
Speech Recognition and Synthesis
0.69
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

BERTugues: A Novel BERT Transformer Model Pre-trained for Brazilian Portuguese — Luciane Agnoletti dos Santos Pedotti, Ricardo Mazza Zago · Semina Ciências Exatas e Tecnológicas (2024) | TGRS Research Map | TGRS