arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.04333cs.CLcs.AIcs.LG
收藏

LESS:为目标指令微调选择有影响力的数据

LESS: Selecting Influential Data for Targeted Instruction Tuning

Princeton University(普林斯顿大学);University of Washington(华盛顿大学)

Mengzhou Xia, Sadhika Malladi, Suchin Gururangan, Sanjeev Arora, Danqi Chen

AI总结:

本文提出 LESS 算法,通过适配 Adam 的低秩梯度相似度搜索选择目标指令数据,仅用 5% 数据即可常优于全量训练,并具备跨规模、跨模型家族的可迁移性。

摘要:

指令微调已释放大型语言模型(LLM)的强大能力,可有效利用组合数据集开发通用聊天机器人。然而,现实应用通常需要一组专门技能(例如推理)。挑战在于从这些大规模数据集中识别最相关的数据,以有效培养特定能力;我们将这一设定定义为目标指令微调。我们提出 LESS,这是一种感知优化器且实际高效的算法,可有效估计数据影响,并通过低秩梯度相似度搜索(Low-rank gradiEnt Similarity Search)进行指令数据选择。关键在于,LESS 调整了现有影响函数形式,使其能够配合 Adam 优化器和变长指令数据使用。LESS 首先利用低维梯度特征构建高度可复用、可迁移的梯度数据库,然后根据样本与体现特定能力的少样本示例之间的相似度选择数据。实验表明,在多种下游任务上,使用 LESS 选出的 5% 数据进行训练,往往能够优于使用完整数据集训练。此外,所选数据具有很强的可迁移性:可以利用较小模型为较大模型以及不同系列的模型选择有用数据。我们的定性分析表明,该方法不止依据表层形式线索,而是能够识别出展现目标下游应用所需推理技能的数据。

英文摘要:

Instruction tuning has unlocked powerful capabilities in large language models (LLMs), effectively using combined datasets to develop generalpurpose chatbots. However, real-world applications often require a specialized suite of skills (e.g., reasoning). The challenge lies in identifying the most relevant data from these extensive datasets to effectively develop specific capabilities, a setting we frame as targeted instruction tuning. We propose LESS, an optimizer-aware and practically efficient algorithm to effectively estimate data influences and perform Low-rank gradiEnt Similarity Search for instruction data selection. Crucially, LESS adapts existing influence formulations to work with the Adam optimizer and variable-length instruction data. LESS first constructs a highly reusable and transferable gradient datastore with low-dimensional gradient features and then selects examples based on their similarity to few-shot examples embodying a specific capability. Experiments show that training on a LESS-selected 5% of the data can often outperform training on the full dataset across diverse downstream tasks. Furthermore, the selected data is highly transferable: smaller models can be leveraged to select useful data for larger models and models from different families. Our qualitative analysis shows that our method goes beyond surface form cues to identify data that exemplifies the necessary reasoning skills for the intended downstream application.

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

↑