TL;DR
The HPLT project has released HPLT v2, a massive, open-source multilingual dataset containing 8 trillion monolingual tokens across 193 languages and 380 million parallel sentence pairs. By uniquely combining data from the Internet Archive and Common Crawl with an upgraded, rigorous cleaning pipeline, HPLT v2 delivers high-quality training data that matches or outperforms top-tier proprietary and open alternatives for language modeling and machine translation.
What Problem Does This Paper Address?
State-of-the-art Large Language Models (LLMs) are notoriously data-hungry, requiring trillions of clean, diverse tokens. However, gathering high-quality data for non-English languages remains a massive bottleneck. Furthermore, the vast majority of open datasets rely almost exclusively on Common Crawl, creating a single point of failure and bias for the AI community.
To enable open, reproducible, and truly global NLP research, the authors introduce HPLT v2. They address the challenges of web-scale data curation—such as boilerplate text, explicit content, machine-translated spam, and lack of formatting uniformity—by building a highly sophisticated, reproducible text-processing pipeline.
Methods
The authors ingested a staggering 4.5 petabytes of compressed web crawl data (3.7 PB from the Internet Archive and 0.8 PB from Common Crawl).
To turn this raw HTML wilderness into clean text, they developed an upgraded pipeline:
- Text Extraction & Boilerplate Removal: They transitioned to
Trafilatura, which strips out menus, headers, and footers far more effectively than previous tools. - Language Identification (LID): They utilized a modified version of
OpenLIDto expand language variety coverage to 193 categories, followed by segment-level verification usingHeLI-OTS. - Filtering & Quality Scoring: Documents were filtered using
Web Docs Scorer(discarding low-quality pages), heuristic length checks, adult content blacklists, and strict compliance withrobots.txtrules. - Parallel Alignment: For the bilingual datasets, they adapted the
Bitextorarchitecture, usingLoomchildfor sentence splitting andBicleaner AIto identify high-probability translations.
Datasets
The HPLT v2 release includes several components:
- Monolingual Corpora: 52 trillion characters (~7.6 trillion whitespace tokens) covering 193 language varieties, offered in both "deduplicated" and "cleaned" variants.
- Parallel Corpora: Over 380 million sentence pairs covering 50 languages aligned with English.
- DocHPLT v2 & MultiHPLT v2: Document-aligned contexts and multi-way pivoted parallel corpora (1,275 language pairs).
For evaluation, the authors trained and tested models against standard benchmarks including Universal Dependencies (UD) treebanks, WikiAnn (for Named Entity Recognition), NorEval (for Norwegian), and standard English LLM benchmarks (HellaSwag, PIQA, OpenBookQA, ARC).
Key Insights and Ideas
- The Internet Archive is a Hidden Treasure: While Common Crawl yields more text per gigabyte (because it targets text-heavy pages), the Internet Archive is an invaluable, non-overlapping source. Crucially, for languages like Chinese and Persian, the Internet Archive actually yielded more total text than Common Crawl.
- Web Crawlers Are Getting Smarter: Manual inspection revealed that newer Common Crawl data (post-2017) contains roughly half the "unnatural text" (spam/SEO stuffing) of older crawls. This is thanks to the introduction of harmonic centrality ranking algorithms in the crawlers, which prioritize high-quality domains.
- Aggressive Cleaning Changes Everything: Moving from segment-level filtering to document-level scoring (
Trafilatura+Web Docs Scorer) drastically reduced the proportion of short, fragmented segments and boosted downstream model performance significantly compared to HPLT v1.2.
Key Results
The authors proved the value of HPLT v2 by training models from scratch and evaluating them against industry baselines:
- Masked Language Models (MLMs): BERT models trained on HPLT v2 achieved dominant "win rates" against mBERT, XLM-R, and HPLT v1.2 across downstream tasks like part-of-speech tagging, dependency parsing, and named entity recognition.
- Generative Language Models: 1.7B-parameter Llama-architecture models trained on English HPLT v2 matched the performance of the highly praised
FineWebdataset and easily beat HPLT v1.2.
- Low-Resource Performance: On Norwegian generative tasks, HPLT v2 performed on par with specialized multilingual datasets like
CulturaXandFineWeb-2.
- Machine Translation: MT models trained on HPLT v2 parallel data saw an average jump of +4.2 BLEU points over HPLT v1.2. Combining HPLT v2 with the popular OPUS dataset yielded the best overall results, proving HPLT contains unique, high-value translation pairs.
Limitations and Future Work
Despite its massive scale, HPLT v2 still reflects the systemic biases of the internet: Indo-European languages (especially English, at ~44%) dominate the dataset. The authors also noted residual boilerplate errors (especially from Wikipedia templates) and the ongoing difficulty of filtering out machine-generated text.
A specific technical limitation discovered during evaluation was a punctuation normalization bug that incorrectly converted Chinese, Japanese, and Korean punctuation into Latin equivalents, degrading performance for those scripts. The team plans to resolve this in the next pipeline iteration and focus heavily on expanding coverage for underserved languages.
Summary updated