[Paper Review] PTT5: Pretraining and validating the T5 model on Brazilian Portuguese data
PTT5 pretrains T5 on Brazilian Portuguese data (BrWac) and shows improved performance over original T5 on Portuguese tasks, with the Portuguese vocabulary offering additional gains; pretraining all weights beats embeddings-only in some settings.
In natural language processing (NLP), there is a need for more resources in Portuguese, since much of the data used in the state-of-the-art research is in other languages. In this paper, we pretrain a T5 model on the BrWac corpus, an extensive collection of web pages in Portuguese, and evaluate its performance against other Portuguese pretrained models and multilingual models on three different tasks. We show that our Portuguese pretrained models have significantly better performance over the original T5 models. Moreover, we demonstrate the positive impact of using a Portuguese vocabulary. Our code and models are available at https://github.com/unicamp-dl/PTT5.
Motivation & Objective
- Motivate the need for Portuguese-resource models in NLP and extend T5 capabilities to Portuguese.
- Pretrain a T5 model on a large Brazilian Portuguese corpus (BrWac) and create a dedicated Portuguese vocabulary.
- Evaluate fine-tuned models on Portuguese tasks (ASSIN 2, HAREM) and compare against multilingual baselines and English-T5.
- Assess whether pretraining all weights versus only vocabulary embeddings affects performance and training efficiency.
- Demonstrate that language-specific pretraining improves performance and discuss trade-offs between vocabulary choices.
Proposed method
- Create a Portuguese vocabulary via SentencePiece trained on Portuguese Wikipedia (32k pieces).
- Pretrain T5 starting from original T5 checkpoints on BrWac using a denoising objective with 15% corruption for 4 epochs.
- Fine-tune and evaluate on ASSIN 2 (semantic similarity and entailment) and HAREM (NER) with task-specific input/output formats.
- Compare two output strategies (string generation vs linear head over last hidden states) and assess embedding-only pretraining versus full-model pretraining.
- Perform ablations on vocabulary choice (Portuguese vs original T5) and model size (Small/Base/Large) to study convergence and performance.
Experimental results
Research questions
- RQ1Does monolingual Portuguese pretraining of T5 improve performance on Portuguese NLP tasks compared to the original T5 and multilingual models?
- RQ2What is the impact of using a dedicated Portuguese vocabulary versus the original T5 vocabulary on downstream task performance?
- RQ3How does PTT5 perform on ASSIN 2 and HAREM compared to baselines like BERTimbau and mBERT?
- RQ4Is pretraining all weights preferable to pretraining only vocabulary embeddings for downstream performance, particularly on smaller validation sets?
- RQ5How do model size and training strategy affect convergence and final metrics for Portuguese pretraining?
Key findings
- PTT5 models outperform the original T5 on Portuguese sentence entailment and NER tasks.
- Using a Portuguese vocabulary significantly improves results over the original T5 vocabulary.
- On ASSIN 2, pretraining all weights yields better test performance than embeddings-only pretraining, with PTT5 Base achieving competitive MSE and Pearson results.
- PTT5 Base with Portuguese vocabulary achieves the best validation MSE on ASSIN 2 semantic similarity.
- PTT5 large with Portuguese vocabulary achieves the best validation CE loss on entailment, but may not always yield the best test metrics compared to base models.
- On HAREM, language-specific pretraining improves over the original T5, with Portuguese vocabulary providing further gains, though BERT-based models can still outperform PTT5 in some settings.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.