2025-03-04 · 进阶 · 机器学习 · 自然语言处理

Large-Scale Data Selection for Instruction Tuning

本文研究了在大规模数据集中进行数据选择的方法,特别是在指令微调语言模型时,提出了一种基于表示的数据选择(RDS+)方法,该方法在性能和计算效率方面优于其他方法。

更新于 2025-03-05。作者:Hamish Ivison、Muru Zhang、Faeze Brahman、Pang Wei Koh、Pradeep Dasigi。

中文摘要

从更大的数据池中选择高质量的训练数据是进行指令调整语言模型的关键步骤,因为精心挑选的数据集往往能训练出优于那些在大规模、噪声数据集上训练的模型。对于指令调整的自动数据选择方法通常通过从小数据池(大约10k个样本)中选择小数据集(100-200k个样本)来测试。然而,流行的部署指令调整模型通常在数十万到数百万个样本上进行训练,这些样本是从更大的数据池中抽样的。我们进行了一项系统性的研究,探讨了数据选择方法在这些设置中的扩展能力,从最多5.8M个样本的数据池中选择了多达2.5M个样本,并在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.

解读

一句话总结

本文研究了在大规模数据集中进行数据选择的方法,特别是在指令微调语言模型时,提出了一种基于表示的数据选择(RDS+)方法,该方法在性能和计算效率方面优于其他方法。

问题1:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源

机器可读索引:llms.txt