CLJan 13, 2025

FinerWeb-10BT: Refining Web Data with LLM-Based Line-Level Filtering

arXiv:2501.07314v114 citationsh-index: 3NoDaLiDa/Baltic-HLT
Originality Incremental advance
AI Analysis

This addresses data quality issues for LLM training, though it is incremental as it builds on existing filtering approaches with a novel method.

The paper tackles the problem of low-quality training data for Large Language Models by introducing an LLM-based line-level filtering method, which when applied to a 10B-token subset of FineWeb resulted in GPT-2 models achieving higher accuracy on the HellaSwag benchmark and reaching performance targets faster with up to 25% less data.

Data quality is crucial for training Large Language Models (LLMs). Traditional heuristic filters often miss low-quality text or mistakenly remove valuable content. In this paper, we introduce an LLM-based line-level filtering method to enhance training data quality. We use GPT-4o mini to label a 20,000-document sample from FineWeb at the line level, allowing the model to create descriptive labels for low-quality lines. These labels are grouped into nine main categories, and we train a DeBERTa-v3 classifier to scale the filtering to a 10B-token subset of FineWeb. To test the impact of our filtering, we train GPT-2 models on both the original and the filtered datasets. The results show that models trained on the filtered data achieve higher accuracy on the HellaSwag benchmark and reach their performance targets faster, even with up to 25\% less data. This demonstrates that LLM-based line-level filtering can significantly improve data quality and training efficiency for LLMs. We release our quality-annotated dataset, FinerWeb-10BT, and the codebase to support further work in this area.

Code Implementations1 repo
Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes