arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.10670cs.LGcs.AIcs.CL
收藏

CoLoR-Filter:面向目标语言模型预训练的条件损失降低过滤方法

CoLoR-Filter: Conditional Loss Reduction Filtering for Targeted Language Model Pre-training

Kempner Institute at Harvard University(哈佛大学肯普纳研究所);Harvard University(哈佛大学);University of Oxford(牛津大学)

David Brandfonbrener, Hanlin Zhang, Andreas Kirsch, Jonathan Richard Schwarz, Sham Kakade

AI总结:

针对语言模型预训练高质量数据筛选难题,提出基于经验贝叶斯、利用双辅助模型相对损失的CoLoR-Filter方法,实现高效数据筛选,大幅降低训练数据量且性能相当。

摘要:

为语言模型预训练筛选高质量数据对塑造其下游任务表现至关重要。一大挑战在于识别这类最优子集,该问题通常被认为是难解的,因此需要可扩展且有效的启发式方法。本研究提出一种数据选择方法CoLoR-Filter(条件损失降低过滤),该方法借鉴经验贝叶斯的思路,基于两个辅助模型的相对损失值,推导出一种简单且计算高效的选择准则。\n除了建模原理之外,我们还在两项语言建模任务上对CoLoR-Filter进行了实证评估:(1)从C4数据集中筛选数据用于领域适配,在Books数据集上进行评估;(2)从C4数据集中筛选数据用于一系列下游多项选择题问答任务。我们证明,无论是在更激进地进行子筛选的场景下,还是使用小型辅助模型为大型目标模型筛选数据的场景下,该方法都展现出良好的缩放特性。一项核心结果显示,使用一对1.5亿参数的辅助模型筛选出的CoLoR-Filter数据,可训练出12亿参数的目标模型,其性能与在250亿随机选择token上训练的12亿参数模型相当,而在Books任务上所需数据量仅为后者的1/25,在下游任务上仅为1/11。\n代码:https://github.com/davidbrandfonbrener/color-filter-olmo\n筛选后数据:https://huggingface.co/datasets/davidbrandfonbrener/color-filtered-c4

英文摘要:

Selecting high-quality data for pre-training is crucial in shaping the downstream task performance of language models. A major challenge lies in identifying this optimal subset, a problem generally considered intractable, thus necessitating scalable and effective heuristics. In this work, we propose a data selection method, CoLoR-Filter (Conditional Loss Reduction Filtering), which leverages an empirical Bayes-inspired approach to derive a simple and computationally efficient selection criterion based on the relative loss values of two auxiliary models. In addition to the modeling rationale, we evaluate CoLoR-Filter empirically on two language modeling tasks: (1) selecting data from C4 for domain adaptation to evaluation on Books and (2) selecting data from C4 for a suite of downstream multiple-choice question answering tasks. We demonstrate favorable scaling both as we subselect more aggressively and using small auxiliary models to select data for large target models. As one headline result, CoLoR-Filter data selected using a pair of 150m parameter auxiliary models can train a 1.2b parameter target model to match a 1.2b parameter model trained on 25b randomly selected tokens with 25x less data for Books and 11x less data for the downstream tasks. Code: https://github.com/davidbrandfonbrener/color-filter-olmo Filtered data: https://huggingface.co/datasets/davidbrandfonbrener/color-filtered-c4

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

↑