arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2311.15653cs.CL
收藏

MoDS:面向指令微调的模型导向数据选择

MoDS: Model-oriented Data Selection for Instruction Tuning

Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所);School of Artificial Intelligence, University of Chinese Academy of Sciences(中国科学院大学人工智能学院);Wuhan AI Research(武汉人工智能研究院)

Qianlong Du, Chengqing Zong, Jiajun Zhang

AI总结:

提出面向模型的数据选择方法MoDS,基于质量、覆盖率和必要性三个标准从大规模数据中筛选少量高质量指令对微调大模型,实验证明4000条精选数据优于214k全量数据。

摘要:

指令微调已成为赋予大语言模型(LLMs)遵循用户指令能力的既定方法。通常,使用数十万或数百万个指令遵循对来微调基础LLMs。最近,一些研究表明,少量高质量的指令数据就足够了。然而,如何为给定的LLM选择合适的指令数据仍然是一个开放问题。为了解决这个问题,本文提出了一种面向模型的数据选择(MoDS)方法,该方法基于考虑三个方面的新标准来选择指令数据:质量、覆盖率和必要性。首先,我们的方法利用质量评估模型从原始指令数据集中过滤出高质量子集,然后设计一种算法从高质量子集中进一步选择具有良好覆盖率的种子指令数据集。该种子数据集用于微调基础LLM,以获得初始指令遵循LLM。最后,我们开发了一个必要性评估模型,以找出在初始指令遵循LLM中表现不佳的指令数据,并将其视为进一步改进LLM的必要指令。通过这种方式,我们可以从原始指令数据集中获得一个小型、高质量、广泛覆盖且高必要性的子集。实验结果表明,使用我们的方法选择的4,000个指令对微调的模型,其性能优于使用包含214k指令数据的完整原始数据集微调的模型。

英文摘要:

Instruction tuning has become the de facto method to equip large language models (LLMs) with the ability of following user instructions. Usually, hundreds of thousands or millions of instruction-following pairs are employed to fine-tune the foundation LLMs. Recently, some studies show that a small number of high-quality instruction data is enough. However, how to select appropriate instruction data for a given LLM is still an open problem. To address this problem, in this paper we present a model-oriented data selection (MoDS) approach, which selects instruction data based on a new criteria considering three aspects: quality, coverage and necessity. First, our approach utilizes a quality evaluation model to filter out the high-quality subset from the original instruction dataset, and then designs an algorithm to further select from the high-quality subset a seed instruction dataset with good coverage. The seed dataset is applied to fine-tune the foundation LLM to obtain an initial instruction-following LLM. Finally, we develop a necessity evaluation model to find out the instruction data which are performed badly in the initial instruction-following LLM and consider them necessary instructions to further improve the LLMs. In this way, we can get a small high-quality, broad-coverage and high-necessity subset from the original instruction datasets. Experimental results show that, the model fine-tuned with 4,000 instruction pairs selected by our approach could perform better than the model fine-tuned with the full original dataset which includes 214k instruction data.

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

↑