用困惑度相关性筛选数据,无需训练就能选好预训练语料。
Improving Pretraining Data Using Perplexity Correlations
- 基于语言模型困惑度与下游性能的相关性选择数据
- 在160M参数下8个基准测试均优于DSIR,媲美人工设计分类器
- 适用于想低成本提升预训练数据质量的研究者
高质量预训练数据被认为是高性能语言模型的关键。然而,由于数据选择实验需要昂贵的预训练运行,相关研究进展缓慢。本文提出一种无需自身训练大模型即可筛选高质量预训练数据的框架。核心观察是:许多预训练文本的语言模型损失值与下游任务表现存在相关性,高相关性文档更适合作为预训练数据。我们构建了以困惑度-基准相关性估计为核心的统计框架,利用来自Open LLM Leaderboard的90个模型,在数万个网页域的文本上进行数据选择。在160M参数规模、8个基准上的受控预训练实验中,该方法在所有任务上均优于DSIR,性能接近DataComp-LM中的人工设计的二元词频分类器。此外,通过预注册实验,在22个基准聚合数据集上扩展至1.4B参数规模,结果表明随着模型规模增大,本方法的优势持续提升。完整代码与文档可访问GitHub链接获取。
原文摘要 · Abstract (English)
Quality pretraining data is often seen as the key to high-performance language models. However, progress in understanding pretraining data has been slow due to the costly pretraining runs required for data selection experiments. We present a framework that avoids these costs and selects high-quality pretraining data without any LLM training of our own. Our work is based on a simple observation: LLM losses on many pretraining texts are correlated with downstream benchmark performance, and selecting high-correlation documents is an effective pretraining data selection method. We build a new statistical framework for data selection centered around estimates of perplexity-benchmark correlations and perform data selection using a sample of 90 LLMs taken from the Open LLM Leaderboard on texts from tens of thousands of web domains. In controlled pretraining experiments at the 160M parameter scale on 8 benchmarks, our approach outperforms DSIR on every benchmark, while matching the best data selector found in DataComp-LM, a hand-engineered bigram classifier. We have now also updated this paper to include results from preregistered experiments with new pretraining data on an aggregation of 22 benchmarks up to the 1.4B scale, showing increasing improvements of our method over others with more scale. A pip package with full documentation can be found here: https://github.com/TristanThrush/perplexity-correlations.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。