Introduction
The performance of Large Language Models (LLMs) is fundamentally tied to the quality of their pretraining data. While English-centric datasets like FineWeb and C4 have established high-quality benchmarks, Traditional Chinese (zhtw) remains underrepresented and difficult to curate. Traditional Chinese presents unique linguistic challenges, including the lack of word spacing, a distinct character set from Simplified Chinese, and specific cultural nuances. Furthermore, the volume of Traditional Chinese on the web is significantly smaller—approximately 40 times less than English. FineWeb-zhtw addresses this "data drought" by adapting the rigorous FineWeb pipeline to extract high-quality Traditional Chinese text from massive web crawls.
The FineWeb-zhtw Curation Pipeline
The authors developed a scalable pipeline using the datatrove library, implementing a multi-stage "distillation" process to refine raw web data into a high-quality corpus.
- Extraction & Pre-filtering: Text was extracted from Common Crawl (CC-MAIN-2024-26) using
trafilatura. A "fuzzy" pre-filter discarded documents lacking at least five consecutive Traditional Chinese characters to optimize compute. - Custom Language Identification: To distinguish Traditional from Simplified Chinese—a task where standard tools like
fasttextoften struggle—a custom filter was designed using specific character and phrase checks aligned with Taiwanese usage. - Heuristic Quality Filters: Standard Gopher rules (length, symbol-to-word ratios) and C4 rules (removing code snippets, boilerplate, and excessive punctuation) were applied.
- FineWeb Quality Filters: Line-level analysis removed fragmented lines, repetitive text, and ensured proper punctuation ratios.
- Deduplication: Minhash deduplication removed near-duplicate documents and repetitive headers/footers.
As shown in Figure 1, the filtering process is extremely selective. Only about 0.5% of the initial data reserve survived the full quality pipeline, resulting in a final dataset of 14.04 GB.
Evaluation and Results
To quantify the impact of the pipeline, the researchers used an "LLM-as-a-judge" approach. GPT-3.5 was employed to score 1,000 documents sampled from different stages of the pipeline on metrics such as "Naturalness" and "Educational Value."
The results demonstrate a significant improvement in data quality. On a 5-point scale, the final FineWeb-zhtw dataset achieved:
- Naturalness: 2.42 (up from 1.72 after basic filtering).
- Educational Value: 2.04 (up from 1.54).
- Total Score: 9.17 (up from 7.53).
Statistical analysis via t-tests confirmed that these improvements were significant. Notably, the "Sensitive Content" scores also improved, indicating that the quality filters effectively removed low-quality or potentially harmful web noise.
Discussion and Future Work
The 14.04 GB FineWeb-zhtw corpus represents a high-quality foundation for Traditional Chinese LLM training. However, the researchers noted that even processing the entire Common Crawl might not yield enough data to satisfy Chinchilla scaling laws for very large models (e.g., 70B parameters) due to the low retention rate (~0.5%). This suggests that web-crawling alone is insufficient for non-English languages, necessitating the inclusion of more diverse sources like books, legal documents, and academic papers.
Future efforts will focus on expanding data sources, refining evaluation metrics to reduce model bias, and empirically testing the impact of this curated data on the downstream performance of frontier models.
Summary updated