The FineWeb Datasets: Decanting the Web for the Finest Text Data at Scale
Penedo et al., 2024, The FineWeb Datasets (Advances in Neural Information Processing Systems 37 (NeurIPS 2024), Datasets and Benchmarks Track)
Subscriber deck — free during early access
3 cards in “3.4 Deduplication” · whole deck
3.4 Deduplication
- How does FineWeb’s MinHash deduplication work?Each document’s word 5-grams are hashed with 112 hash functions in 14 buckets of 8; documents agreeing on all 8 hashes of any bucket (targeting ≥ 75% similarity) are duplicates, clusters are formed transitively, and one document per cluster is kept.
- Penedo et al., 2024, The FineWeb Datasets (Advances in Neural Information Processing Systems 37 (NeurIPS 2024), Datasets and Benchmarks Track), §3.4
- Why did global deduplication across all snapshots disappoint?It shrank the data to 4T tokens but barely improved models. In an old snapshot, the 10% of data that survived deduplication against all others was worse (ads, keyword lists, bad formatting) than the 90% removed: global deduplication upsamples low-quality unique text.
- Penedo et al., 2024, The FineWeb Datasets (Advances in Neural Information Processing Systems 37 (NeurIPS 2024), Datasets and Benchmarks Track), §3.4
- What deduplication strategy did FineWeb adopt instead?Deduplicating each snapshot independently, leaving 20T tokens and matching RefinedWeb’s performance. The main benefit seems to come from removing huge duplicate clusters within crawls; removing small clusters across crawls can hurt.
Each step was kept only if it improved small ablation models - Penedo et al., 2024, The FineWeb Datasets (Advances in Neural Information Processing Systems 37 (NeurIPS 2024), Datasets and Benchmarks Track), §3.4
Source
- Guilherme Penedo, Hynek Kydlíček, Loubna Ben allal, Anton Lozhkov, Margaret Mitchell, Colin Raffel, Leandro Von Werra and Thomas Wolf. 2024. The FineWeb Datasets: Decanting the Web for the Finest Text Data at Scale. In Advances in Neural Information Processing Systems 37 (NeurIPS 2024), Datasets and Benchmarks Track. https://papers.nips.cc/paper_files/paper/2024/hash/370df50ccfdf8bde18f8f9c2d9151bda-Abstract-Datasets_and_Benchmarks_Track.html