Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

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

About

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.

Yongchan Kwon, Eric Wu, Kevin Wu, James Zou• 2023

Related benchmarks

TaskDatasetResultRank
Medical Question AnsweringPubMedQA Synthetic IID 1.0 (test)
Accuracy72.8
7
Algebraic Question AnsweringAQUA-RAT Synthetic NIID 1.0 (test)
Accuracy23.2
7
Molecular Science InstructionsMol-Instructions Synthetic IID 1.0 (test)
BertScore0.811
7
Algebraic Question AnsweringAQUA-RAT Synthetic IID 1.0 (test)
Accuracy22.4
7
Medical Question AnsweringPubMedQA Synthetic NIID 1.0 (test)
Accuracy67.5
7
Molecular Science InstructionsMol-Instructions Synthetic NIID 1.0 (test)
BertScore0.807
7
Financial Question AnsweringFIQA Synthetic IID 1.0 (test)
Win Rate45.7
6
Financial Question AnsweringFIQA Synthetic NIID 1.0 (test)
Win Rate46.4
6
Instruction FollowingFed-WildChat Real Dataset 1.0 (test)
MT-Bench Score4.443
6
Showing 9 of 9 rows

Other info

Follow for update