The RefinedWeb Dataset for Falcon LLM: Outperforming Curated Corpora with Web Data, and Web Data Only

Guilherme Penedo, Quentin Malartic, Daniel Hesslow, Ruxandra Cojocaru, Alessandro Cappelli, Hamza Alobeidli, B. Pannier, Ebtesam Almazrouei, Julien Launay

arXiv (Cornell University) · 2023 · 156 citations · 0 references

DOIFull text

Open access

Concepts

TL;DR

Large language models are typically trained on a mix of filtered web data and curated corpora, a process deemed essential for strong zero‑shot generalization, yet its scalability is uncertain as models grow to trillions of tokens. We demonstrate that properly filtered and deduplicated web data alone can produce powerful models that even surpass state‑of‑the‑art models trained on The Pile. We release a 600 billion‑token extract of our RefinedWeb dataset and train 1.3 B and 7.5 B‑parameter language models on it. The high‑quality web data remains abundant, with five trillion tokens extracted from CommonCrawl.

Abstract

Large language models are commonly trained on a mixture of filtered web data and curated high-quality corpora, such as social media conversations, books, or technical papers. This curation process is believed to be necessary to produce performant models with broad zero-shot generalization abilities. However, as larger models requiring pretraining on trillions of tokens are considered, it is unclear how scalable is curation and whether we will run out of unique high-quality data soon. At variance with previous beliefs, we show that properly filtered and deduplicated web data alone can lead to powerful models; even significantly outperforming models from the state-of-the-art trained on The Pile. Despite extensive filtering, the high-quality data we extract from the web is still plentiful, and we are able to obtain five trillion tokens from CommonCrawl. We publicly release an extract of 600 billion tokens from our RefinedWeb dataset, and 1.3/7.5B parameters language models trained on it.