arXiv:2411.04425cs.CL2024-11ICLR被引 19

用智能选数据让大模型微调更省资源,效果不降反升。

DELIFT: Data Efficient Language model Instruction Fine Tuning

  • 基于配对效用度量,动态筛选高价值训练数据。
  • 在多个任务上减少70%数据量,性能保持不变。
  • 适合需要高效微调的大模型应用开发者。

大语言模型微调对提升特定任务表现至关重要,但常因冗余或无信息数据导致资源浪费。为此,我们提出DELIFT(数据高效语言模型指令微调)算法,系统优化微调三个关键阶段的数据选择:(1) 指令微调,(2) 任务特定微调(如推理、问答),(3) 持续微调(如引入新数据版本)。不同于仅优化单阶段或依赖高成本梯度计算的方法,DELIFT在全阶段高效运行。核心是基于配对效用度量,量化样本对其他样本的改进价值,衡量其相对于模型当前能力的信息增益。通过在该度量上应用不同子模函数,选取跨阶段多样且最优的数据子集。在多种任务和模型规模上的实验表明,DELIFT可将微调数据量减少高达70%,性能不受影响,显著降低计算开销,并在效率与效果上优于现有方法。

原文摘要 · Abstract (English)

Fine-tuning large language models (LLMs) is essential for enhancing their performance on specific tasks but is often resource-intensive due to redundant or uninformative data. To address this inefficiency, we introduce DELIFT (Data Efficient Language model Instruction Fine-Tuning), a novel algorithm that systematically optimizes data selection across the three key stages of fine-tuning: (1) instruction tuning, (2) task-specific fine-tuning (e.g., reasoning, question-answering), and (3) continual fine-tuning (e.g., incorporating new data versions). Unlike existing methods that focus on single-stage optimization or rely on computationally intensive gradient calculations, DELIFT operates efficiently across all stages. Central to our approach is a pairwise utility metric that quantifies how beneficial a data sample is for improving the model's responses to other samples, effectively measuring the informational value relative to the model's current capabilities. By leveraging different submodular functions applied to this metric, DELIFT selects diverse and optimal subsets that are useful across all stages of fine-tuning. Experiments across various tasks and model scales demonstrate that DELIFT can reduce the fine-tuning data size by up to 70% without compromising performance, offering significant computational savings and outperforming existing methods in both efficiency and efficacy.

大模型微调数据效率指令学习

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。