Towards Scalable Data Diversification for Language Model Pretraining via Leverage Score Sampling
Zailin Ma, Quzhe Huang, Yujun Li, Congyuan Rao, Yaodong Yang
Abstract
Data selection for language model pretraining faces a fundamental tension between quality and diversity. While quality filtering is empirically effective, it often induces diversity collapse: by favoring texts similar to high-quality reference corpora (e.g., educational or QA-style data), it systematically excludes valuable data from underrepresented domains. In contrast, diversified selection preserves domain balance and encourages robust downstream performance, yet existing methods either focus on coverage-oriented objectives that indirectly enhance diversity, or directly optimize for diversity via costly covariance matrix recomputation that limits scalability. To address these issues, we introduce \textbf{Leverage Score Sampling (Lev)}, which iteratively selects samples that maximally expand the determinantal volume of the embedded data via leverage scores, a computationally efficient criterion that eliminates matrix recomputation and enables scalable selection. Empirically, Lev delivers up to speedup and improves dataset diversity, measured by the Vendi score, by over the strong diversification baseline \textbf{DiSF}. On CommonCrawl (CC) web data selection, Lev improves accuracy across seven downstream tasks by up to over existing baselines. For domains where robust quality criteria are inherently difficult to define (e.g., code), Lev serves as an effective unsupervised curation alternative: on StarCoderData, the selected subset reduces bits-per-byte by over DiSF. Notably, we uncover a cross-domain collapse of quality filtering: CC data filtered by DCLM-fastText fail to retain sufficient code-related content, yielding inferior code performance relative to Lev-selected data. These findings advocate for integrating diversity-aware practices into quality filtering for more effective data curation in language model pretraining.
Create a lesson
Related papers
Small data machine learning: the trilemma of low-sample tabular regimes
Shared title terminologycs.AIIlya Emelyanov, Dmitrii Dobrydin, Muhammad Hamza et al.
Large Language Models for Structured Clinical Data Analysis: Dual-Agent Grounding and Validation
Shared title terminologycs.AIErfan D. Dehkalani, Seetha Shankaran, Abbot R. Laptook et al.
EHRAdapt: Adapting Pretrained Language Models to Electronic Health Records with Semantic Priors for Rare Clinical Events
Shared title terminologycs.AIAndre R Goncalves, Vincent Liu, Priyadip Ray
Scalable and Data-Driven Decision Support in the Maintenance, Repair, and Overhaul Process
Shared title terminologycs.AIHoukun Zhu, Helena Ebel, Dominik Scheinert et al.
SciFig2Data: A Workflow for Recovering Structured Data from Scientific Figures
Shared title terminologycs.AIXinhe Wu, Yicheng Ye, Yadong Jin
LimoBench: How Street Smart Are Large Language Models?
Shared title terminologycs.AIGautam Choudhary, Jack Peng, Udesh Kumarasinghe et al.