Introduction
While the "Chinchilla scaling laws" once suggested a strict ratio of parameters to training data, recent frontier models have demonstrated that "over-training" on massive datasets (12T–15T tokens) yields superior performance. However, the highest-quality datasets of this scale remain proprietary.
Existing open-source datasets face a strict "quality vs. quantity" dilemma. Aggressive filtering produces high-quality data but results in datasets too small for training massive models. Conversely, larger datasets often suffer from noise that degrades model performance. To bridge this gap, researchers introduce GneissWeb, a new open-source dataset of approximately 10 trillion tokens. By utilizing a sophisticated recipe of sharded exact substring deduplication and novel category-aware quality filters, GneissWeb maintains a high signal-to-noise ratio, outperforming existing state-of-the-art open datasets like FineWeb.
The GneissWeb Recipe
The authors developed a specialized pipeline to refine the 15-trillion-token FineWeb-V1.1.0 corpus into a higher-quality 10-trillion-token subset. Key innovations include:
- Sharded Exact Substring Deduplication: Instead of merely removing duplicate documents, the team adapted suffix array techniques to remove verbatim repeated substrings across the entire corpus at scale.
- Category-Aware Readability Filtering: Standard readability scores often penalize complex but high-value text, such as scientific papers. GneissWeb uses document classifiers to apply different, more lenient thresholds for educational and technical domains, ensuring high-quality niche data is retained.
- Extreme-Tokenized Document Removal: Some low-quality documents pass linguistic filters but produce an abnormal number of tokens per character (e.g., long lists of random strings or repetitive code). A novel filter was developed to catch these "tokenization outliers."
- Judicious Ensemble Filtering: Rather than relying on a single filter, the recipe uses a logical ensemble combining FastText classifiers, readability metrics, and tokenization density.
Key Insights and Scaling Efficiency
A major takeaway from GneissWeb is that the "one-size-fits-all" filter is a myth. By recognizing that different domains require different readability profiles, the authors retained 5 trillion more tokens than aggressive filters while actually increasing model performance. Furthermore, analyzing the "post-tokenization" stage revealed garbage data that standard linguistic filters missed, proving that how a model "sees" the text is as important as the text itself.
This refined data pipeline translates directly to compute efficiency. Models trained on GneissWeb demonstrate a steeper scaling law than competitors, reaching the same performance level as those trained on FineWeb using 27% fewer FLOPs.
Key Results
GneissWeb was evaluated across 31 benchmarks, categorized into High-Signal Tasks (11 tasks like ARC-Easy and HellaSwag) and Extended Tasks (20 tasks including MMLU).
- 7B Parameter Models: Models trained on GneissWeb outperformed FineWeb-V1.1.0 by 2.73 percentage points on high-signal benchmarks, achieving this with a highly favorable balance of token quantity (~10T tokens).
- Downstream Adaptability: After supervised fine-tuning (SFT), GneissWeb-based models achieved 25.69% accuracy on the IFEval benchmark, outperforming models based on FineWeb-Edu-Score-2 (23.84%).
- Safety: Evaluations on Winogender and RealToxicityPrompts confirmed that GneissWeb does not introduce disproportionate risks regarding bias or toxicity compared to other open datasets.
Limitations and Future Work
The current GneissWeb recipe focuses primarily on English data, and further work is needed to adapt these filters for multilingual datasets. Additionally, while strong in general knowledge, the dataset could be improved by augmenting it with specialized code and mathematics data. Finally, because the extreme-tokenized filter relies on the StarCoder tokenizer, future research should explore how different tokenization strategies interact with this filtering approach.
Summary updated