D3:面向样本高效大语言模型指令微调的多样性、难度与可靠性感知数据选择方法
D3: Diversity, Difficulty, and Dependability-Aware Data Selection for Sample-Efficient LLM Instruction Tuning
AI总结:
针对大语言模型指令微调的数据选择难题,提出兼顾多样性、难度与可靠性的D3方法,通过打分-迭代选择机制筛选高价值子集,仅用10%以内数据即可实现媲美甚至超越全量数据的微调效果,已在公开数据集与淘宝直播场景验证有效。
摘要:
大语言模型(LLM)指令微调的最新研究进展表明,小规模高质量数据集能显著赋予LLM指令遵循能力,其效果优于常受质量与冗余问题困扰的大规模数据集。但当前挑战在于如何从大规模数据集中自动识别有价值的子集,以同时提升指令微调的效果与效率。本文首先从数据价值的三个不同维度——多样性、难度与可靠性——确立数据选择准则,随后提出包含打分与选择两个核心步骤的D3方法。具体而言,在打分步骤中,我们定义多样性函数衡量样本独特性,引入基于不确定性的预测难度,通过缓解上下文导向生成多样性的干扰来评估样本难度,同时集成外部LLM开展可靠性评估。在选择步骤中,我们构建D3加权核心集目标,联合优化数据价值的三个维度以求解最有价值的子集。D3的两个步骤可多轮迭代,结合反馈自适应调整选择侧重点。在公开数据集与真实场景淘宝直播应用上的实验表明,D3仅使用不到全数据集10%的数据,就能让LLM具备具备竞争力甚至更优的指令遵循能力。
英文摘要:
Recent advancements in instruction tuning for large language models (LLMs) suggest that a small, high-quality dataset can significantly equip LLMs with instruction-following capabilities, outperforming large datasets often burdened by quality and redundancy issues. However, the challenge lies in automatically identifying valuable subsets from large datasets to boost both the effectiveness and efficiency of instruction tuning. In this paper, we first establish data selection criteria based on three distinct aspects of data value: diversity, difficulty, and dependability, and then propose the D3 method comprising two key steps of scoring and selection. Specifically, in the scoring step, we define the diversity function to measure sample distinctiveness and introduce the uncertainty-based prediction difficulty to evaluate sample difficulty by mitigating the interference of context-oriented generation diversity. Additionally, we integrate an external LLM for dependability assessment. In the selection step, we formulate the D3 weighted coreset objective, which jointly optimizes three aspects of data value to solve for the most valuable subset. The two steps of D3 can iterate multiple rounds, incorporating feedback to refine the selection focus adaptively. Experiments on both public datasets and the real-world Taobao Live application demonstrate the effectiveness of D3 in endowing LLMs with competitive or even superior instruction-following capabilities using less than 10\% of the entire dataset.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。