arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.09969cs.LGcs.AIcs.CL
收藏

用于指令微调数据可学习且可扩展的影响估计的神经网络

Neural Networks for Learnable and Scalable Influence Estimation of Instruction Fine-Tuning Data

Department of Computer Science UIUC(计算机科学系 UIUC)

Ishika Agarwal, Dilek Hakkani-Tür

AI总结:

针对现有语言模型数据影响估计方法计算成本高、难扩展的问题,提出小型神经网络InfluenceNetwork及NN-CIFT算法,成本最高降99%且性能无损失,可用于指令微调数据子集选择。

摘要:

影响函数为模型训练提供了关键洞见,但现有方法存在计算成本高、泛化性有限的问题。尤其是近期研究提出了多种利用语言模型计算数据影响力的指标与算法,它们无法随大模型和数据集的规模扩展良好适配,原因在于计算所需的前向与反向传播开销高昂、存储大模型的内存需求巨大,且影响估计值对新数据的泛化性较差。\n本文探索了使用小型神经网络(我们称之为InfluenceNetwork)来估计影响值,成本降低幅度最高可达99%。我们的评估表明,仅用尺寸为完整语言模型0.0027%的模型(我们使用了7B和8B版本)就能估计出影响值。我们将这套估计影响值的算法(名为NN-CIFT:高效指令微调神经网络)应用于通用指令微调的子集选择下游任务。\n研究纳入了四种当前最优的影响函数,结果显示尽管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.

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

↑