arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2310.00902cs.LGstat.ML
收藏

DataInf:高效估计LoRA微调大语言模型与扩散模型中的数据影响

DataInf: Efficiently Estimating Data Influence in LoRA-tuned LLMs and Diffusion Models

Columbia University(哥伦比亚大学);Stanford University(斯坦福大学)

Yongchan Kwon, Eric Wu, Kevin Wu, James Zou

AI总结:

提出DataInf,一种基于闭式表达式的高效影响近似方法,适用于LoRA微调的大语言模型和扩散模型,在保持准确性的同时显著提升计算与内存效率,并能有效识别关键微调样本和错误标注数据。

摘要:

量化训练数据点的影响对于理解机器学习模型的输出以及提高AI管道的透明度至关重要。影响函数是一种原理严谨且广泛使用的数据归因方法,但其计算成本往往使其难以应用。在大语言模型和文本到图像模型的场景中,这一问题变得更加突出。在本工作中,我们提出了DataInf,一种高效的影响近似方法,适用于大规模生成式AI模型。利用易于计算的闭式表达式,DataInf在计算和内存效率上优于现有影响计算算法。我们的理论分析表明,DataInf特别适用于参数高效微调技术,如LoRA。通过系统的实证评估,我们表明DataInf能够准确近似影响分数,并且比现有方法快数个数量级。在RoBERTa-large、Llama-2-13B-chat和stable-diffusion-v1.5模型的应用中,DataInf比其他近似影响分数更有效地识别出最具影响力的微调示例。此外,它还能帮助识别哪些数据点被错误标注。

英文摘要:

Quantifying the impact of training data points is crucial for understanding the outputs of machine learning models and for improving the transparency of the AI pipeline. The influence function is a principled and popular data attribution method, but its computational cost often makes it challenging to use. This issue becomes more pronounced in the setting of large language models and text-to-image models. In this work, we propose DataInf, an efficient influence approximation method that is practical for large-scale generative AI models. Leveraging an easy-to-compute closed-form expression, DataInf outperforms existing influence computation algorithms in terms of computational and memory efficiency. Our theoretical analysis shows that DataInf is particularly well-suited for parameter-efficient fine-tuning techniques such as LoRA. Through systematic empirical evaluations, we show that DataInf accurately approximates influence scores and is orders of magnitude faster than existing methods. In applications to RoBERTa-large, Llama-2-13B-chat, and stable-diffusion-v1.5 models, DataInf effectively identifies the most influential fine-tuning examples better than other approximate influence scores. Moreover, it can help to identify which data points are mislabeled.

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

↑