GneissWeb: Preparing High Quality Data for LLMs at Scale

Hajar Emami Gohari, Swanand Ravindra Kadhe, Yousaf Shah, Constantin M Adam, Abdulhamid Adebayo, Praneet Adusumilli, Farhan Ahmed, Nathalie Baracaldo, Santosh Subhashrao Borse, Yuan-Chi Chang, Xuan-Hong Dang, Nirmit Desai, Revital Eres, Ran Iwamoto, Alexei A. Karve, Yan Koyfman, Wei-Han Lee, Changchang Liu, Boris Lublinsky, Takuya Ohko, Pablo Pesce, Maroun Touma, Shiqiang Wang, Shalisha Witherspooon, Herbert Woisetschläger, David Wood, Kun-Lung Wu, Issei Yoshida, Syed Zawad, Petros Zerfos, Yi Zhou, Bishwaranjan Bhattacharjee

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.

Scaling performance of 1.4B models on high-signal benchmarks

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).

Performance comparison of 7B models showing GneissWeb's 2.73% gain over FineWeb
  • 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

BibTeX
@inproceedings{gohari2026gneissweb,
  author = {Hajar Emami Gohari and Swanand Ravindra Kadhe and Yousaf Shah and Constantin M Adam and Abdulhamid Adebayo and Praneet Adusumilli and Farhan Ahmed and Nathalie Baracaldo and Santosh Subhashrao Borse and Yuan-Chi Chang and Xuan-Hong Dang and Nirmit Desai and Revital Eres and Ran Iwamoto and Alexei A. Karve and Yan Koyfman and Wei-Han Lee and Changchang Liu and Boris Lublinsky and Takuya Ohko and Pablo Pesce and Maroun Touma and Shiqiang Wang and Shalisha Witherspooon and Herbert Woisetschläger and David Wood and Kun-Lung Wu and Issei Yoshida and Syed Zawad and Petros Zerfos and Yi Zhou and Bishwaranjan Bhattacharjee},
  title = {{GneissWeb: Preparing High Quality Data for LLMs at Scale}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=NRWUAo075J},
}
Figure