Joint Selection for Large-Scale Pre-Training Data via Policy Gradient-based Mask Learning
Not on the map. Why?
Abstract (arXiv)
A fine-grained data recipe is crucial for pre-training large language models, as it can significantly enhance training efficiency and model performance. One important ingredient in the recipe is to select samples based on scores produced by defined rules, LLM judgment, or statistical information in embeddings, which can be roughly categorized into quality and diversity metrics. Due to the high computational cost when applied to trillion-scale token pre-training datasets such as FineWeb and DCLM, these two or more types of metrics are rarely considered jointly in a single selection process. However, in our empirical study, selecting samples based on quality metrics exhibit severe diminishing returns during long-term pre-training, while selecting on diversity metrics removes too many valuable high-quality samples, both of which limit pre-trained LLMs' capabilities. Therefore, we introduce DATAMASK, a novel and efficient joint learning framework designed for large-scale pre-training data selection that can simultaneously optimize multiple types of metrics in a unified process, with this study focusing specifically on quality and diversity metrics. DATAMASK approaches the selection process as a mask learning problem, involving iterative sampling of data masks, computation of policy gradients based on predefined objectives with sampled masks, and updating of mask sampling logits. Through policy gradient-based optimization and various acceleration enhancements, it significantly reduces selection time by 98.9% compared to greedy algorithm, enabling our study to explore joint learning within trillion-scale tokens. With DATAMASK, we select a subset of about 10% from the 15 trillion-token FineWeb dataset, termed FineWeb-Mask. Evaluated across 12 diverse tasks, we achieves significant improvements of 3.2% on a 1.5B dense model and 1.9% on a 7B MoE model.
Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Builds on 29 of its 43 references that are in the map. First posted on arXiv 30 Dec 2025.
Builds on
29 of 43 references.
References · 29
- 2023GPT-4 Technical Reportcited by 18,132
- 2024The Llama 3 Herd of Modelscited by 14,192
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2025Qwen3 Technical Reportcited by 8,195
- 2020Measuring Massive Multitask Language Understandingcited by 7,768
- 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,146
- 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,710
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,018
- 2022Training Compute-Optimal Large Language Modelscited by 2,927
- 2017TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehensioncited by 2,895
- 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,818
17 more
- 2018Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answeringcited by 2,114
- 2024Qwen2 Technical Reportcited by 2,076
- 2022Text Embeddings by Weakly-Supervised Contrastive Pre-trainingcited by 1,216
- 2024The FineWeb Datasets: Decanting the Web for the Finest Text Data at Scalecited by 1,104
- 2017RACE: Large-scale ReAding Comprehension Dataset From Examinationscited by 851
- 2024DataComp-LM: In search of the next generation of training sets for language modelscited by 381
- 2023SemDeDup: Data-efficient learning at web-scale through semantic deduplicationcited by 295
- 2025Seed1.5-Thinking: Advancing Superb Reasoning Models with Reinforcement Learningcited by 159
- 2024QuRating: Selecting High-Quality Data for Training Language Modelscited by 153
- 2014A Proximal Stochastic Gradient Method with Progressive Variance Reductioncited by 78
- 2025Organize the Web: Constructing Domains Enhances Pre-Training Data Curationcited by 73
- 2024Arctic-Embed: Scalable, Efficient, and Accurate Text Embedding Modelscited by 60
- 2024Programming Every Example: Lifting Pre-training Data Quality Like Experts at Scalecited by 37
- 2025Ultra-FineWeb: Efficient Data Filtering and Verification for High-Quality LLM Training Datacited by 35
- 2021Combinatorial Optimization for Panoptic Segmentation: A Fully Differentiable Approachcited by 10
- 2025GneissWeb: Preparing High Quality Data for LLMs at Scalecited by 6
- 2025Combatting Dimensional Collapse in LLM Pre-Training Data via Diversified File Selectioncited by 4
Built on by
Citing papers per year: 2026: 4.
4 papers.
- 2026One Algorithm, Two Goals: Dual Scoring for Parameter and Data Selection in LLM Fine-Tuningcited by 0
- 2026SimReg: Achieving Higher Performance in the Pretraining via Embedding Similarity Regularizationcited by 0
- 2026Spokes: Optimizing for Diverse Pretraining Data Selectioncited by 0
- 2026Towards Scalable Data Diversification for Language Model Pretraining via Leverage Score Samplingcited by 0
- 2026Towards Scalable Data Diversification for Language Model Pretraining via Leverage Score Sampling26 Sep 2026
- 2026Spokes: Optimizing for Diverse Pretraining Data Selection13 Jun 2026
- 2026SimReg: Achieving Higher Performance in the Pretraining via Embedding Similarity Regularization9 May 2026
- 2026One Algorithm, Two Goals: Dual Scoring for Parameter and Data Selection in LLM Fine-Tuning7 May 2026
Similar, not cited
Close in wording, no citation either way
- 2024How to Train Data-Efficient LLMs
- 2024Rethinking Data Selection at Scale: Random Selection is Almost All You Need
- 2025LLM4FS: Leveraging Large Language Models for Feature Selection
- 2025Learning from the Best, Differently: A Diversity-Driven Rethinking on Data Selection
- 2024Your Vision-Language Model Itself Is a Strong Filter: Towards High-Quality Instruction Tuning with Data Selection
- 2026Aligning the Query Space: Greedy Information Projection for Language Model Data Selection
- 2026Data-Constrained Language Model Pretraining: Improved Regularization and Scaling Laws
- 2024Take the essence and discard the dross: A Rethinking on Data Selection for Fine-Tuning Large Language Models