$\texttt{dattri}$: A Library for Efficient Data Attribution

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Deng, Junwei, Li, Ting-Wei, Zhang, Shiyuan, Liu, Shixuan, Pan, Yijun, Huang, Hao, Wang, Xinhe, Hu, Pingbang, Zhang, Xingjian, Ma, Jiaqi W.
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866917796088119296
author Deng, Junwei
Li, Ting-Wei
Zhang, Shiyuan
Liu, Shixuan
Pan, Yijun
Huang, Hao
Wang, Xinhe
Hu, Pingbang
Zhang, Xingjian
Ma, Jiaqi W.
author_facet Deng, Junwei
Li, Ting-Wei
Zhang, Shiyuan
Liu, Shixuan
Pan, Yijun
Huang, Hao
Wang, Xinhe
Hu, Pingbang
Zhang, Xingjian
Ma, Jiaqi W.
contents Data attribution methods aim to quantify the influence of individual training samples on the prediction of artificial intelligence (AI) models. As training data plays an increasingly crucial role in the modern development of large-scale AI models, data attribution has found broad applications in improving AI performance and safety. However, despite a surge of new data attribution methods being developed recently, there lacks a comprehensive library that facilitates the development, benchmarking, and deployment of different data attribution methods. In this work, we introduce $\texttt{dattri}$, an open-source data attribution library that addresses the above needs. Specifically, $\texttt{dattri}$ highlights three novel design features. Firstly, $\texttt{dattri}$ proposes a unified and easy-to-use API, allowing users to integrate different data attribution methods into their PyTorch-based machine learning pipeline with a few lines of code changed. Secondly, $\texttt{dattri}$ modularizes low-level utility functions that are commonly used in data attribution methods, such as Hessian-vector product, inverse-Hessian-vector product or random projection, making it easier for researchers to develop new data attribution methods. Thirdly, $\texttt{dattri}$ provides a comprehensive benchmark framework with pre-trained models and ground truth annotations for a variety of benchmark settings, including generative AI settings. We have implemented a variety of state-of-the-art efficient data attribution methods that can be applied to large-scale neural network models, and will continuously update the library in the future. Using the developed $\texttt{dattri}$ library, we are able to perform a comprehensive and fair benchmark analysis across a wide range of data attribution methods. The source code of $\texttt{dattri}$ is available at https://github.com/TRAIS-Lab/dattri.
format Preprint
id arxiv_https___arxiv_org_abs_2410_04555
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle $\texttt{dattri}$: A Library for Efficient Data Attribution
Deng, Junwei
Li, Ting-Wei
Zhang, Shiyuan
Liu, Shixuan
Pan, Yijun
Huang, Hao
Wang, Xinhe
Hu, Pingbang
Zhang, Xingjian
Ma, Jiaqi W.
Machine Learning
Computers and Society
Data attribution methods aim to quantify the influence of individual training samples on the prediction of artificial intelligence (AI) models. As training data plays an increasingly crucial role in the modern development of large-scale AI models, data attribution has found broad applications in improving AI performance and safety. However, despite a surge of new data attribution methods being developed recently, there lacks a comprehensive library that facilitates the development, benchmarking, and deployment of different data attribution methods. In this work, we introduce $\texttt{dattri}$, an open-source data attribution library that addresses the above needs. Specifically, $\texttt{dattri}$ highlights three novel design features. Firstly, $\texttt{dattri}$ proposes a unified and easy-to-use API, allowing users to integrate different data attribution methods into their PyTorch-based machine learning pipeline with a few lines of code changed. Secondly, $\texttt{dattri}$ modularizes low-level utility functions that are commonly used in data attribution methods, such as Hessian-vector product, inverse-Hessian-vector product or random projection, making it easier for researchers to develop new data attribution methods. Thirdly, $\texttt{dattri}$ provides a comprehensive benchmark framework with pre-trained models and ground truth annotations for a variety of benchmark settings, including generative AI settings. We have implemented a variety of state-of-the-art efficient data attribution methods that can be applied to large-scale neural network models, and will continuously update the library in the future. Using the developed $\texttt{dattri}$ library, we are able to perform a comprehensive and fair benchmark analysis across a wide range of data attribution methods. The source code of $\texttt{dattri}$ is available at https://github.com/TRAIS-Lab/dattri.
title $\texttt{dattri}$: A Library for Efficient Data Attribution
topic Machine Learning
Computers and Society
url https://arxiv.org/abs/2410.04555