arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2512.24265cs.CLcs.LG
收藏

通过基于策略梯度的掩码学习进行大规模预训练数据的联合选择

Joint Selection for Large-Scale Pre-Training Data via Policy Gradient-based Mask Learning

Shanghai Jiao Tong University(上海交通大学);University of Sydney(悉尼大学);Sun Yat-sen University Shenzhen Campus(中山大学深圳校区)

Ziqing Fan, Yuqiao Xian, Yan Sun, Li Shen

AI总结:

DATAMASK通过联合学习优化质量和多样性度量,显著提升大规模预训练数据选择效率和模型性能

摘要:

细粒度的数据配方对于预训练大型语言模型至关重要,因为其可以显著提高训练效率和模型性能。该配方中的一个重要成分是根据由定义规则、LLM判断或嵌入中统计信息生成的评分来选择样本,这些可以大致分为质量和多样性度量。由于在应用于如FineWeb和DCLM这样的万亿级标记预训练数据集时计算成本很高,因此这两种或更多种度量在单个选择过程中很少被同时考虑。然而,在我们的实证研究中,基于质量度量的样本选择在长期预训练中表现出严重的边际收益递减,而基于多样性度量的选择会排除太多有价值的高质量样本,这两种情况都限制了预训练LLM的能力。因此,我们引入DATAMASK,一种新的高效联合学习框架,用于大规模预训练数据选择,可以在统一过程中同时优化多种度量,本研究专门针对质量和多样性度量。DATAMASK将选择过程视为掩码学习问题,包括数据掩码的迭代采样、基于预定义目标的采样掩码计算策略梯度以及掩码采样日志的更新。通过基于策略梯度的优化和各种加速增强,它显著将选择时间减少了98.9%,相比贪心算法,使我们的研究能够探索万亿级标记中的联合学习。使用DATAMASK,我们从15万亿标记的FineWeb数据集中选择约10%的子集,称为FineWeb-Mask。在12种多样任务上评估,我们实现了1.5B密集模型的3.2%和7B MoE模型的1.9%的显著提升。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑