用预测能力选数据,300亿token训练效果用30亿就达成。
Predictive Data Selection: The Data That Predicts Is the Data That Teaches
- 用fastText快评文本预测力,筛出真正有用的训练数据。
- 300亿数据训练模型,用30亿预选数据就超了,算力省90%。
- 适合想高效训练大模型的研究者和工程团队。
语言模型预训练依赖海量语料,数据质量至关重要。本文提出预测性数据选择(PreSelect),直接估计数据在预训练中的贡献。受近期研究启发:不同模型对特定文本的压缩效率(归一化损失)与下游性能高度相关,当文本领域匹配下游评测时。基于此,我们假设:能预测下游能力的文本数据,其学习贡献也更有效。为此,设计轻量高效的PreSelect方法,仅需训练一个fastText评分器即可完成筛选。在10亿和30亿参数模型上实验表明,使用PreSelect从300亿词元中选出30亿词元训练的模型,性能超越全量300亿词元基线;且在30亿参数模型上,以100亿词元训练时,显著优于DCLM和FineWeb-Edu等现有基线。代码与数据集已开源。
原文摘要 · Abstract (English)
Language model pretraining involves training on extensive corpora, where data quality plays a pivotal role. In this work, we aim to directly estimate the contribution of data during pretraining and select pretraining data in an efficient manner. Specifically, we draw inspiration from recent findings showing that compression efficiency (i.e., the normalized loss) of diverse models on certain text correlates strongly with their downstream performance, when the text domain aligns with the downstream benchmarks(Huang et al., 2024). Building on this observation, we hypothesize that data on which model losses are predictive of downstream abilities also contribute effectively to learning, which shares similar intuition with Thrush et al.(2024). To leverage this insight, we introduce predictive data selection (PreSelect), a lightweight and efficient data selection method that requires training and deploying only a fastText-based scorer. Through comprehensive experiments with 1B and 3B parameter models, we demonstrate that models trained on 30B tokens selected with PreSelect surpass the performance of the vanilla baseline trained on 300B tokens, achieving a 10x reduction in compute requirements. Furthermore, PreSelect significantly outperforms other competitive data selection baselines, such as DCLM and FineWeb-Edu on a scale of 3B models trained on 100B tokens. We open-source our trained data selection scorer along with the curated datasets at https://github.com/hkust-nlp/PreSelect.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。