Table of Contents
Fetching ...

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

Junwei Deng, Ting-Wei Li, Shiyuan Zhang, Shixuan Liu, Yijun Pan, Hao Huang, Xinhe Wang, Pingbang Hu, Xingjian Zhang, Jiaqi W. Ma

TL;DR

An open-source data attribution library that provides a comprehensive and fair benchmark analysis across a wide range of data attribution methods, and implemented a variety of state-of-the-art efficient data attribution methods that can be applied to large-scale neural network models.

Abstract

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.

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

TL;DR

An open-source data attribution library that provides a comprehensive and fair benchmark analysis across a wide range of data attribution methods, and implemented a variety of state-of-the-art efficient data attribution methods that can be applied to large-scale neural network models.

Abstract

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 , an open-source data attribution library that addresses the above needs. Specifically, highlights three novel design features. Firstly, 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, 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, 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 library, we are able to perform a comprehensive and fair benchmark analysis across a wide range of data attribution methods. The source code of is available at https://github.com/TRAIS-Lab/dattri.
Paper Structure (44 sections, 9 equations, 15 figures, 4 tables)

This paper contains 44 sections, 9 equations, 15 figures, 4 tables.

Figures (15)

  • Figure 1: Architecture of dattri and the functionalities of each module in dattri serve.
  • Figure 2: LOO correlation of LR on MNIST-10.
  • Figure 3: LDS of LR on MNIST-10.
  • Figure 4: LOO correlation of MLP on MNIST-10.
  • Figure 5: LDS of MLP on MNIST-10.
  • ...and 10 more figures

Theorems & Definitions (1)

  • Definition B.1: Linear datamodeling score