File size: 13,813 Bytes
69fa30b
 
 
 
ac8fd76
 
69fa30b
 
 
 
 
 
 
 
 
 
 
 
 
7c48ed6
69fa30b
 
7c48ed6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
69fa30b
 
 
 
 
 
 
 
ac8fd76
69fa30b
 
 
 
7c48ed6
 
 
 
69fa30b
7c48ed6
 
 
69fa30b
 
7c48ed6
 
 
 
69fa30b
7c48ed6
69fa30b
e30c66e
69fa30b
7c48ed6
 
 
69fa30b
7c48ed6
69fa30b
e30c66e
7c48ed6
 
 
 
 
 
 
69fa30b
ac8fd76
69fa30b
ac8fd76
69fa30b
7c48ed6
 
 
 
 
 
69fa30b
ac8fd76
69fa30b
ac8fd76
69fa30b
 
 
 
 
 
 
 
 
7c48ed6
69fa30b
 
ac8fd76
 
 
 
69fa30b
 
ac8fd76
69fa30b
 
 
ac8fd76
 
1a0a6da
ac8fd76
69fa30b
7c48ed6
69fa30b
7c48ed6
69fa30b
7c48ed6
1dda168
7c48ed6
 
 
 
 
 
69fa30b
7c48ed6
69fa30b
7c48ed6
69fa30b
7c48ed6
69fa30b
7c48ed6
69fa30b
7c48ed6
 
 
 
69fa30b
7c48ed6
 
 
 
 
 
75d45c8
69fa30b
 
7c48ed6
 
 
69fa30b
7c48ed6
69fa30b
7c48ed6
69fa30b
7c48ed6
69fa30b
 
 
 
 
 
 
 
 
 
7c48ed6
 
 
10b9ba1
7c48ed6
 
 
 
69fa30b
 
 
 
7c48ed6
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
---
language:
- en
license: apache-2.0
size_categories:
- 1B<n<10B
task_categories:
- text-generation
pretty_name: Ultra-FineWeb-L1
tags:
- llm
- pretraining
- web-corpus
- common-crawl
- data-filtering
- deduplication
- fineweb
- ultradata
configs:
- config_name: CC-MAIN-2025-30
  data_files:
  - split: train
    path: data/CC-MAIN-2025-30/*
  features:
  - name: uid
    dtype: string
  - name: content
    dtype: string
  - name: meta
    dtype: string
  - name: dataset_index
    dtype: int64
- config_name: CC-MAIN-2025-33
  data_files:
  - split: train
    path: data/CC-MAIN-2025-33/*
  features:
  - name: uid
    dtype: string
  - name: content
    dtype: string
  - name: meta
    dtype: string
  - name: dataset_index
    dtype: int64
- config_name: CC-MAIN-2025-38
  data_files:
  - split: train
    path: data/CC-MAIN-2025-38/*
  features:
  - name: uid
    dtype: string
  - name: content
    dtype: string
  - name: meta
    dtype: string
  - name: dataset_index
    dtype: int64
- config_name: CC-MAIN-2025-43
  data_files:
  - split: train
    path: data/CC-MAIN-2025-43/*
  features:
  - name: uid
    dtype: string
  - name: content
    dtype: string
  - name: meta
    dtype: string
  - name: dataset_index
    dtype: int64
- config_name: CC-MAIN-2025-47
  data_files:
  - split: train
    path: data/CC-MAIN-2025-47/*
  features:
  - name: uid
    dtype: string
  - name: content
    dtype: string
  - name: meta
    dtype: string
  - name: dataset_index
    dtype: int64
- config_name: CC-MAIN-2025-51
  data_files:
  - split: train
    path: data/CC-MAIN-2025-51/*
  features:
  - name: uid
    dtype: string
  - name: content
    dtype: string
  - name: meta
    dtype: string
  - name: dataset_index
    dtype: int64
---

# Ultra-FineWeb-L1

<div align="center">
  <img src="assets/ultra-fineweb-l1-logo.png" width="600"/>
</div>

<p align="center">
<a href="https://arxiv.org/abs/2505.05427">πŸ“œ Ultra-FineWeb Technical Report</a> |
<a href="https://huggingface.co/collections/openbmb/ultradata">πŸ“¦ UltraData Collection</a> |
<a href="https://ultradata.openbmb.cn/">🌐 UltraData</a>
</p>

<p align="center">
English |
<a href="https://huggingface.co/datasets/openbmb/Ultra-FineWeb-L1/blob/main/README_zh.md">δΈ­ζ–‡</a>
</p>

## πŸ“š Introduction

***Ultra-FineWeb-L1*** is a large-scale English web corpus built from [Common Crawl](https://commoncrawl.org/) snapshots. Within [UltraData](https://ultradata.openbmb.cn/)'s [L0-L4 tiered data management framework](https://arxiv.org/pdf/2602.09003/), it serves as the **L1 filtered layer** for general web data and provides the foundation for subsequent L2 selection and L3 refinement. Building on the [FineWeb](https://huggingface.co/datasets/HuggingFaceFW/fineweb) processing pipeline, we perform main-text extraction, language filtering, heuristic filtering, sensitive-field replacement, MinHash deduplication, and customized data cleaning. We upgrade main-text extraction to [trafilatura 2.0](https://github.com/adbar/trafilatura), and use UltraData's data quality inspection tools and data-cleaning agents to optimize cleaning rules and apply targeted processing for residual HTML, encoding corruption and mojibake, invisible characters, corrupted content, and abnormal document lengths. The first release contains **1T+ tokens (approximately 1.14 billion documents)** from six Common Crawl snapshots in 2025. We also release [Ultra-FineWeb](https://huggingface.co/datasets/openbmb/Ultra-FineWeb/tree/main/data/ultrafineweb_l1_en_hq), the L2 selected subset produced by the [Ultra-FineWeb classifier](https://huggingface.co/openbmb/Ultra-FineWeb-classifier).

- [Ultra-FineWeb-L1](https://huggingface.co/datasets/openbmb/Ultra-FineWeb-L1): **L1 filtered data** after basic cleaning, heuristic filtering, sensitive-field replacement, and deduplication. (**Current dataset**)
- [Ultra-FineWeb](https://huggingface.co/datasets/openbmb/Ultra-FineWeb): **L2 selected data** produced by the [Ultra-FineWeb classifier](https://huggingface.co/openbmb/Ultra-FineWeb-classifier), containing approximately **1T English tokens** and **120B Chinese tokens**.
- [Ultra-FineWeb-L3](https://huggingface.co/datasets/openbmb/Ultra-FineWeb-L3): **L3 refined data** built on Ultra-FineWeb via Q&A pair generation and multi-style rewriting, containing **400B+ English tokens** and **200B+ Chinese tokens**.

## πŸ“’ What's New

- **[2026.08.20]** The [***Ultra-FineWeb-L1***](https://huggingface.co/datasets/openbmb/Ultra-FineWeb-L1) dataset is released! Built from Common Crawl snapshots, it undergoes main-text extraction, language filtering, heuristic filtering, sensitive-field replacement, customized cleaning, and deduplication, yielding **1T+ tokens (approximately 1.14 billion documents)**. We simultaneously release the L2 selected data [Ultra-FineWeb](https://huggingface.co/datasets/openbmb/Ultra-FineWeb/tree/main/data/ultrafineweb_l1_en_hq), selected by the [Ultra-FineWeb classifier](https://huggingface.co/openbmb/Ultra-FineWeb-classifier). To our best knowledge, this open-source web pre-training dataset covers the most recent Common Crawl snapshots, up to `CC-MAIN-2025-51`. πŸš€πŸš€πŸš€
- **[2026.05.28]** The [***Ultra-FineWeb-L3***](https://huggingface.co/datasets/openbmb/Ultra-FineWeb-L3) dataset is released! The **L3 refined data** built on **Ultra-FineWeb** via **Q&A Pair Generation** and **Multi-style Rewriting**, with **400B+ English** and **200B+ Chinese** tokens. To our best knowledge, it is the largest open-source Chinese pre-training synthetic corpus to date. πŸš€πŸš€πŸš€
- **[2026.05.25]** ***[MiniCPM5-1B](https://huggingface.co/openbmb/MiniCPM5-1B) is released!*** It is the first model in the MiniCPM5 series, a dense 1B Transformer designed for on-device, local deployment, and resource-constrained scenarios, reaching 1B-class open-source SOTA. Ultra-FineWeb serves as its core pre-training web dataset.
- **[2026.02.08]** The [***UltraData***](https://ultradata.openbmb.cn/) platform is now live, introducing the [L0-L4 tiered data management framework](https://arxiv.org/pdf/2602.09003). ***Ultra-FineWeb*** serves as the **L2 selected layer** for general web data in this framework. πŸ”πŸ”πŸ”
- **[2025.06.16]** The **Ultra-FineWeb-classifier** is now available on Hugging Face: [openbmb/Ultra-FineWeb-classifier](https://huggingface.co/openbmb/Ultra-FineWeb-classifier).
- **[2025.06.06]** **Ultra-FineWeb-en** and **Ultra-FineWeb-zh** are now available on Hugging Face, released alongside the [MiniCPM4 Series](https://huggingface.co/collections/openbmb/minicpm-4-6841ab29d180257e940baa9b) models.
- **[2025.05.15]** **Ultra-FineWeb** tops the Hugging Face Datasets Trending list, reaching the #1 spot! ⭐️⭐️⭐️
- **[2025.05.09]** The **Ultra-FineWeb** technical report is available on [arXiv](https://arxiv.org/abs/2505.05427). πŸ”₯πŸ”₯πŸ”₯

## πŸ—οΈ Data Processing Pipeline

Each Common Crawl dump is processed independently:

1. **Page and main-text extraction:** retain valid HTML pages from Common Crawl and use trafilatura 2.0 to extract plain text while excluding comments, navigation bars, and other non-main content.
2. **Language filtering:** use fastText language identification to retain high-confidence English documents.
3. **Heuristic filtering:** build on FineWeb's heuristic filtering approach to address repetition, low-quality documents, boilerplate text, and abnormal line structures.
4. **Sensitive-field replacement:** replace detected email addresses, IP addresses, phone numbers, identity-card numbers, and credit-card numbers with valid placeholders.
5. **MinHash deduplication:** identify near-duplicate documents within each Common Crawl dump. Following FineWeb, deduplication is performed independently within each dump rather than across the full collection.
6. **Customized cleaning:** use UltraData's data quality inspection tools and data-cleaning agents to optimize cleaning rules and apply targeted processing for residual HTML, encoding corruption and mojibake, invisible characters, corrupted content, and abnormal document lengths.

## πŸ“ Dataset Structure

Ultra-FineWeb-L1 is organized by Common Crawl dump:

```text
data/
└── CC-MAIN-YYYY-WW/
    β”œβ”€β”€ CC-MAIN-YYYY-WW-part-0001-of-NNNN.parquet
    β”œβ”€β”€ CC-MAIN-YYYY-WW-part-0002-of-NNNN.parquet
    └── ...
```

The classifier-selected L2 subset is released in [Ultra-FineWeb](https://huggingface.co/datasets/openbmb/Ultra-FineWeb):

```text
data/ultrafineweb_l1_en_hq/
└── CC-MAIN-YYYY-WW/
    β”œβ”€β”€ ultrafineweb-l1-en-hq-CC-MAIN-YYYY-WW-part-0001-of-NNNN.parquet
    └── ...
```

### Data fields

| Field | Type | Description |
|:---|:---|:---|
| `uid` | `string` | UUID4 document identifier |
| `content` | `string` | Cleaned plain-text document |
| `meta` | `string` | JSON-encoded source and processing metadata, including `url`, `language`, `language_score`, `warc_record_id`, `warc_date`, and `source_file` |
| `dataset_index` | `int64` | Dataset-source identifier |

## πŸ“ˆ Experimental Results

### Evaluation Setup

We follow the FinePhrase evaluation setup and adopt the [FineWeb](https://huggingface.co/datasets/HuggingFaceFW/fineweb) ablation methodology: each data configuration is evaluated on 12 benchmarks across six categories using 3-shot prompting with a single random seed. For most tasks, we use the Cloze Format (CF), framing evaluation as next-token prediction. Compared with standard multiple-choice evaluation, CF reduces interference from instruction following and answer formatting for smaller models and provides a more stable evaluation signal. The benchmarks are:

- **General Knowledge**: ARC, MMLU Redux
- **Reading Comprehension**: SQuAD v2, DROP
- **Reasoning**: OpenBookQA, XCSQA
- **Natural Language Understanding**: WinoGrande, PIQA, HellaSwag
- **Math**: GSM8K
- **Table Understanding**: WikiTableQuestions, TriviaQA

### Training Setup

To evaluate the effectiveness of the cleaning pipeline, we select `CC-MAIN-2025-26`, the latest Common Crawl snapshot covered by [FineWeb v1.4](https://huggingface.co/datasets/HuggingFaceFW/fineweb), and compare data processed by the FineWeb v1.4 and Ultra-FineWeb-L1 pipelines. Both groups are trained for **20B tokens** with the **[MiniCPM5-1B](https://huggingface.co/openbmb/MiniCPM5-1B)** model under identical settings: 32 GPUs, a micro batch size of 16, a global batch size of 512, the Muon optimizer, an initial learning rate of 0.000522, and a minimum learning rate of 0.0000522.

### Results

The figures below show the six-category macro-average and 12-task micro-average scores of four data configurations throughout training. Scores generally improve as the number of training tokens increases. At the end of training, **Ultra-FineWeb-L1** reaches **9.668%** macro and **9.180%** micro, outperforming **FineWeb** by **0.635** and **0.696** percentage points, respectively, and validating the effectiveness of the optimized cleaning pipeline. Quality selection yields further gains: **Ultra-FineWeb-from-FW** reaches **9.954% / 9.414%**, while **Ultra-FineWeb-from-L1** achieves the best results at **10.379% / 9.798%**, indicating that L1 cleaning and subsequent quality selection provide complementary benefits.

<div align="center">
  <img src="./assets/results-macro.png" width="400" alt="Macro-average results" style="display: inline-block;" />
  <img src="./assets/results-micro.png" width="400" alt="Micro-average results" style="display: inline-block;" />
</div>

| Data | Six-category Macro Average | 12-task Micro Average |
| --- | ---: | ---: |
| FineWeb | 9.033% | 8.484% |
| Ultra-FineWeb-L1 | 9.668% | 9.180% |
| Ultra-FineWeb-from-FW | 9.954% | 9.414% |
| Ultra-FineWeb-from-L1 | 10.379% | 9.798% |

## ❀️ Acknowledgements

- **Source Web Data**: [Common Crawl](https://commoncrawl.org/)
- **Data Processing Pipeline**: [FineWeb](https://huggingface.co/datasets/HuggingFaceFW/fineweb), [DataTrove](https://github.com/huggingface/datatrove)
- **Text Extraction and Cleaning Tools**: [trafilatura](https://github.com/adbar/trafilatura), [fastText](https://fasttext.cc/), [NLTK](https://www.nltk.org/), [ftfy](https://github.com/rspeer/python-ftfy)

We thank these outstanding open-source projectsβ€”their contributions make Ultra-FineWeb-L1 possible! πŸ™Œ

## πŸ“– Citation

If you find **Ultra-FineWeb-L1** useful in your research, please consider citing:

```bibtex
@misc{wang2025ultrafineweb,
  title={{Ultra-FineWeb}: Efficient Data Filtering and Verification for High-Quality LLM Training Data},
  author={Yudong Wang and Zixuan Fu and Jie Cai and Peijun Tang and Hongya Lyu and Yewei Fang and Zhi Zheng and Jie Zhou and Guoyang Zeng and Chaojun Xiao and Xu Han and Zhiyuan Liu},
  year={2025},
  eprint={2505.05427},
  archivePrefix={arXiv},
  primaryClass={cs.CL}
}

@misc{ultra-fineweb-l1,
  title={Ultra-FineWeb-L1},
  author={Junshao Guo and Shuaikang Xue and Xiaofei Yang and Chuyue Zhou and Qiang Yin and Qingyang Yuan and Qiang Ma and Yuzhou Zhang and Jie Zhou and Chaojun Xiao and Yudong Wang and Zhiyuan Liu},
  year={2026},
  url={https://huggingface.co/datasets/openbmb/Ultra-FineWeb-L1},
  publisher={Hugging Face}
}
```

## πŸ“œ License

This project is licensed under the [Apache 2.0](https://www.apache.org/licenses/LICENSE-2.0) license. Because the corpus is derived from web content, users must also comply with the rights, licenses, and terms associated with the original sources.

**No unauthorized unchanged redistribution:** Without prior written permission from the original authors (or this organization), any institution, organization, or third-party platform is strictly prohibited from directly reposting, mirroring, re-hosting, or commercially repackaging and republishing any artifacts of this project in any form.