多样化与征服:采用迭代细化的以多样性为核心的数据选择方法
Diversify and Conquer: Diversity-Centric Data Selection with Iterative Refinement
AI总结:
针对大语言模型指令微调的数据选择问题,提出以多样性为核心、结合k-means聚类与主动学习启发的迭代细化方法,相比现有最优采样方法实现3.8%的性能提升。
摘要:
在指令数据上微调大语言模型(LLM)对于强化预训练知识、提升指令遵循能力至关重要。随着指令数据集数量激增,选择最优数据以实现高效训练变得愈发重要。本研究旨在解决如下问题:我们如何确定用于高效训练的最优数据子集?现有研究在子集选择时往往侧重实例质量等局部标准,而我们认为,聚焦数据多样性的全局方法更为关键。我们的方法采用k-means聚类,确保所选子集能有效代表完整数据集。我们受主动学习技术启发,提出一种迭代细化方法,用于从聚类中重采样实例,在每次训练迭代中重新评估每个聚类的重要性和采样权重。该方法可降低离群值的影响,并自动过滤掉包含低质量数据的聚类。我们在自然语言推理、通用世界知识、代码与数学推理任务上开展了广泛评估,并通过微调不同系列的模型进行验证,观察到性能持续提升:相比随机选择提升7%,相比当前最优采样方法提升3.8%。本研究凸显了在微调LLM时,以多样性为先的采样对于提升广泛评估任务性能的重要意义。我们的代码可在https://github.com/for-ai/iterative-data-selection获取。
英文摘要:
Finetuning large language models on instruction data is crucial for enhancing pre-trained knowledge and improving instruction-following capabilities. As instruction datasets proliferate, selecting optimal data for effective training becomes increasingly important. This work addresses the question: How can we determine the optimal subset of data for effective training? While existing research often emphasizes local criteria like instance quality for subset selection, we argue that a global approach focused on data diversity is more critical. Our method employs k-means clustering to ensure the selected subset effectively represents the full dataset. We propose an iterative refinement method inspired by active learning techniques to resample instances from clusters, reassessing each cluster's importance and sampling weight in every training iteration. This approach reduces the effect of outliers and automatically filters out clusters containing low-quality data. Through extensive evaluation across natural language reasoning, general world knowledge, code and math reasoning tasks, and by fine-tuning models from various families, we observe consistent improvements, achieving a 7% increase over random selection and a 3.8% improvement over state-of-the-art sampling methods. Our work highlights the significance of diversity-first sampling when finetuning LLMs to enhance performance across a broad array of evaluation tasks. Our code is available at https://github.com/for-ai/iterative-data-selection.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。