Data Valuation using Neural Networks for Efficient Instruction Fine-Tuning
该论文提出了一种名为NN-CIFT的算法,通过使用小型神经网络来估计数据影响值,从而降低指令微调的数据评估成本,同时保持性能。
更新于 2026-11-14。作者:Ishika Agarwal、Dilek Hakkani-Tür。
中文摘要
影响函数为模型训练提供了关键见解,但现有方法存在计算成本高和泛化能力有限的问题。尤其是,最近的研究提出了各种指标和算法,使用语言模型来计算数据的影响,但这些方法在大型模型和数据集上的扩展性并不好。这是因为计算所需的昂贵的前向和后向传播,存储大型模型所需的大量内存,以及影响估计对新数据的泛化能力差。在本文中,我们探讨了使用小型神经网络(我们称之为影响网络)来估计影响值,实现了高达99%的成本降低。我们的评估表明,影响值可以使用规模仅为完整语言模型0.0027%的模型来估计(我们使用了7B和8B版本)。我们将我们估计影响值的算法(称为NN-CIFT:用于高效指令微调的神经网络)应用于下游任务,即针对通用指令微调的子集选择。在我们的研究中,我们包括了四种最先进的影响函数,并在NN-CIFT与原始影响函数之间表现出没有性能妥协的情况下实现了大幅加速。我们对NN-CIFT进行了深入的超参数分析。我们方法的相关代码可以在以下链接找到:https://github.com/agarwalishika/NN-CIFT。
英文摘要
Influence functions provide crucial insights into model training, but existing methods suffer from large computational costs and limited generalization. Particularly, recent works have proposed various metrics and algorithms to calculate the influence of data using language models, which do not scale well with large models and datasets. This is because of the expensive forward and backward passes required for computation, substantial memory requirements to store large models, and poor generalization of influence estimates to new data. In this paper, we explore the use of small neural networks -- which we refer to as the InfluenceNetwork -- to estimate influence values, achieving up to 99% cost reduction. Our evaluation demonstrates that influence values can be estimated with models just 0.0027% the size of full language models (we use 7B and 8B versions). We apply our algorithm of estimating influence values (called NN-CIFT: Neural Networks for effiCient Instruction Fine-Tuning) to the downstream task of subset selection for general instruction fine-tuning. In our study, we include four state-of-the-art influence functions and show no compromise in performance, despite large speedups, between NN-CIFT and the original influence functions. We provide an in-depth hyperparameter analyses of NN-CIFT. The code for our method can be found here: https://github.com/agarwalishika/NN-CIFT.
解读
一句话总结
该论文提出了一种名为NN-CIFT的算法,通过使用小型神经网络来估计数据影响值,从而降低指令微调的数据评估成本,同时保持性能。
问题1:这篇论文想要解决什么具体问题?
- 问题背景:现有的数据影响函数方法在计算成本和泛化能力上存在局限性,尤其是在大型模型和数据集上。
- 现有方案不足:现有的数据影响函数方法计算成本高,对大型模型和数据集的泛化能力有限。
- 研究目标:开发一种高效的数据影响函数估计方法,用于指令微调的数据选择。
问题2:论文的核心创新点是什么?
- 技术创新:提出了一种名为InfluenceNetwork的小型神经网络,用于估计数据影响值。
- 方法改进:通过使用小型神经网络,将计算成本降低了99%。
- 优势:与现有方法相比,NN-CIFT在性能上没有妥协,同时大幅降低了计算成本。
问题3:实验结果如何验证了方法的有效性?
- 关键实验:在MixInstruct和Alpaca数据集上进行了实验,使用Phi-3和Llama-8B模型。
- 性能提升:NN-CIFT在数据评估阶段的时间成本降低了77-99%。
- 对比结果:与原始影响函数相比,NN-CIFT的平均均方误差仅为0.067。
问题4:这个研究的实际应用价值是什么?
- 应用场景:指令微调的数据选择,尤其是在大型语言模型上。
- 实施建议:使用NN-CIFT算法可以显著降低指令微调的数据评估成本。
- 局限与展望:NN-CIFT依赖于数据影响函数,对于数据选择目标超越表示的领域可能不适用。未来研究将探索线性时间成本的影响值估计方法。
来源
机器可读索引:llms.txt