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

面向指令微调的大规模数据选择

Large-Scale Data Selection for Instruction Tuning

University of Washington(华盛顿大学);Allen Institute for AI(人工智能研究院);USC(南加州大学)

Hamish Ivison, Muru Zhang, Faeze Brahman, Pang Wei Koh, Pradeep Dasigi

AI总结:

本研究系统评估了指令微调中数据选择方法在大规模数据池(高达580万样本)下的扩展性,发现许多新方法不如随机选择,而基于表示的RDS+方法在7个任务上表现最优且计算高效。

摘要:

从更大的数据池中选择高质量的训练数据,是对语言模型进行指令微调时的关键步骤,因为精心策划的数据集往往能产生优于在更大但更嘈杂的数据集上训练的模型。针对指令微调的自动化数据选择方法,通常是在从小型数据池(10万-20万样本)中选择小型数据集(约1万样本)的场景下进行测试。然而,实际部署的指令微调模型通常会在数十万到数百万个样本上进行训练,这些样本是从更大的数据池中二次抽样得到的。我们针对数据选择方法在这些场景下的扩展性进行了系统性研究,从多达580万样本的数据池中选择多达250万样本,并在7个不同任务上进行评估。我们发现,许多最近提出的方法在此场景下表现不如随机选择(同时消耗更多计算资源),甚至在获得更大的数据池时性能还会下降。然而,我们发现一种基于表示的数据选择变体(RDS+),它使用预训练语言模型隐藏状态的加权平均池化,在所有测试设置中始终优于更复杂的方法,同时计算效率更高。我们的发现强调,应更仔细地审视所提出的自动化选择方法的扩展特性。我们在https://github.com/hamishivi/automated-instruction-selection发布了我们的代码、数据和模型。

英文摘要:

Selecting high-quality training data from a larger pool is a crucial step when instruction-tuning language models, as carefully curated datasets often produce models that outperform those trained on much larger, noisier datasets. Automated data selection approaches for instruction-tuning are typically tested by selecting small datasets (roughly 10k samples) from small pools (100-200k samples). However, popular deployed instruction-tuned models often train on hundreds of thousands to millions of samples, subsampled from even larger data pools. We present a systematic study of how well data selection methods scale to these settings, selecting up to 2.5M samples from pools of up to 5.8M samples and evaluating across 7 diverse tasks. We show that many recently proposed methods fall short of random selection in this setting (while using more compute), and even decline in performance when given access to larger pools of data to select over. However, we find that a variant of representation-based data selection (RDS+), which uses weighted mean pooling of pretrained LM hidden states, consistently outperforms more complex methods across all settings tested -- all whilst being more compute-efficient. Our findings highlight that the scaling properties of proposed automated selection methods should be more closely examined. We release our code, data, and models at https://github.com/hamishivi/automated-instruction-selection.

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

↑