Building High-Quality Datasets for Portuguese LLMs: From Common Crawl Snapshots to Industrial-Grade Corpora
Not on the map. Why?
Abstract (arXiv)
The performance of large language models (LLMs) is deeply influenced by the quality and composition of their training data. While much of the existing work has centered on English, there remains a gap in understanding how to construct effective training corpora for other languages. We explore scalable methods for building web-based corpora for LLMs. We apply them to build a new 120B token corpus in Portuguese that achieves competitive results to an industrial-grade corpus. Using a continual pretraining setup, we study how different data selection and preprocessing strategies affect LLM performance when transitioning a model originally trained in English to another language. Our findings demonstrate the value of language-specific filtering pipelines, including classifiers for education, science, technology, engineering, and mathematics (STEM), as well as toxic content. We show that adapting a model to the target language leads to performance improvements, reinforcing the importance of high-quality, language-specific data. While our case study focuses on Portuguese, our methods are applicable to other languages, offering insights for multilingual LLM development.
Key facts. Cited by 7 papers in the map (data through 14 Oct 2026). Builds on 54 of its 75 references that are in the map. First posted on arXiv 10 Sep 2025.
Builds on
54 of 75 references.
References · 54
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2023GPT-4 Technical Reportcited by 18,396
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2023Qwen Technical Reportcited by 3,344
- 2022Constitutional AI: Harmlessness from AI Feedbackcited by 3,050
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,411
- 2015Character-level Convolutional Networks for Text Classificationcited by 2,330
- 2020Extracting Training Data from Large Language Modelscited by 2,189
- 2019BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questionscited by 2,183
- 2023Code Llama: Open Foundation Models for Codecited by 2,139
38 more
- 2022BLOOM: A 176B-Parameter Open-Access Multilingual Language Modelcited by 1,984
- 2020mT5: A massively multilingual pre-trained text-to-text transformercited by 1,818
- 2022Solving Quantitative Reasoning Problems with Language Modelscited by 1,392
- 2021Scaling Language Models: Methods, Analysis & Insights from Training Gophercited by 1,202
- 2024The FineWeb Datasets: Decanting the Web for the Finest Text Data at Scalecited by 1,160
- 2023BloombergGPT: A Large Language Model for Financecited by 939
- 2018Adafactor: Adaptive Learning Rates with Sublinear Memory Costcited by 905
- 2023The RefinedWeb Dataset for Falcon LLM: Outperforming Curated Corpora with Web Data, and Web Data Onlycited by 763
- 2021Deduplicating Training Data Makes Language Models Bettercited by 714
- 2024TinyLlama: An Open-Source Small Language Modelcited by 618
- 2019CCNet: Extracting High Quality Monolingual Datasets from Web Crawl Datacited by 548
- 2021Deep Learning on a Data Diet: Finding Important Examples Early in Trainingcited by 533
- 2022Beyond neural scaling laws: beating power law scaling via data pruningcited by 528
- 2021Documenting Large Webtext Corpora: A Case Study on the Colossal Clean Crawled Corpuscited by 492
- 2023Llemma: An Open Language Model For Mathematicscited by 388
- 2023SemDeDup: Data-efficient learning at web-scale through semantic deduplicationcited by 303
- 2024BioMistral: A Collection of Open-Source Pretrained Large Language Models for Medical Domainscited by 301
- 2023MEDITRON-70B: Scaling Medical Pretraining for Large Language Modelscited by 274
- 2021Quality at a Glance: An Audit of Web-Crawled Multilingual Datasetscited by 243
- 2019WinoGrande: An Adversarial Winograd Schema Challenge at Scalecited by 204
- 2022Scaling Up Models and Data with textttt5x and textttseqiocited by 187
- 2023MADLAD-400: A Multilingual And Document-Level Large Audited Datasetcited by 181
- 2023CulturaX: A Cleaned, Enormous, and Multilingual Dataset for Large Language Models in 167 Languagescited by 174
- 2020MKQA: A Linguistically Diverse Benchmark for Multilingual Open Domain Question Answeringcited by 153
- 2022MASSIVE: A 1M-Example Multilingual Natural Language Understanding Dataset with 51 Typologically-Diverse Languagescited by 146
- 2024SaulLM-7B: A pioneering Large Language Model for Lawcited by 142
- 2020A Monolingual Approach to Contextualized Word Embeddings for Mid-Resource Languagescited by 131
- 2023SeaLLMs -- Large Language Models for Southeast Asiacited by 104
- 2024Datasets for Large Language Models: A Comprehensive Surveycited by 71
- 2023Typhoon: Thai Large Language Modelscited by 30
- 2023Evaluating GPT-3.5 and GPT-4 Models on Brazilian University Admission Examscited by 25
- 2023Advancing Neural Encoding of Portuguese with Transformer Albertina PT-*cited by 24
- 2017Building a Sentiment Corpus of Tweets in Brazilian Portuguesecited by 20
- 2023Sabi'a: Portuguese Large Language Modelscited by 19
- 2024Advancing Generative AI for Portuguese with Open Decoder Gerv'asio PT*cited by 19
- 2024Embedding And Clustering Your Data Can Improve Contrastive Pretrainingcited by 17
- 2024Gl'orIA -- A Generative and Open Large Language Model for Portuguesecited by 16
- 2023BLUEX: A benchmark based on Brazilian Leading Universities Entrance eXamscited by 15
50 most cited of 54 All 54 (JSON)
Built on by
Citing papers per year: 2025: 2; 2026: 5.
7 papers.
- 2026Sabi'a-4 Technical Reportcited by 6
- 2025PoETa v2: Toward More Robust Evaluation of Large Language Models in Portuguesecited by 5
- 2025Curi'o-Edu 7B: Examining Data Selection Impacts in LLM Continued Pretrainingcited by 4
- 2026Synthetic Rewriting as a Quality Multiplier: Evidence from Portuguese Continued Pretrainingcited by 0
- 2026moBERTo: A Modern Encoder for Portuguese via Continued Pretraining of ModernBERTcited by 0
- 2026BERTomelo: Your Portuguese Encoder Best Friendcited by 0
- 2026Fine PT-PT Web: A High-Quality 41 Billion Tokens Data Collection of the European Portuguese Webcited by 0
- 2026Fine PT-PT Web: A High-Quality 41 Billion Tokens Data Collection of the European Portuguese Web7 Sep 2026
- 2026BERTomelo: Your Portuguese Encoder Best Friend27 Jun 2026
- 2026moBERTo: A Modern Encoder for Portuguese via Continued Pretraining of ModernBERT21 Jun 2026
- 2026Synthetic Rewriting as a Quality Multiplier: Evidence from Portuguese Continued Pretraining25 Mar 2026
- 2026Sabi'a-4 Technical Report10 Mar 2026
- 2025Curi'o-Edu 7B: Examining Data Selection Impacts in LLM Continued Pretraining14 Dec 2025
- 2025PoETa v2: Toward More Robust Evaluation of Large Language Models in Portuguese21 Nov 2025