On the Feasibility of In-Context Probing for Data Attribution

Cathy Jiao, Gary Gao, Aditi Raghunathan, Chenyan Xiong
7/17/2024
cs.CL

No official code found. Best implementation: cxcscmu/InContextDataAttribution (1 star, last commit 2024-10-23).

Abstract

Data attribution methods are used to measure the contribution of training data towards model outputs, and have several important applications in areas such as dataset curation and model interpretability. However, many standard data attribution methods, such as influence functions, utilize model gradients and are computationally expensive. In our paper, we show in-context probing (ICP) -- prompting a LLM -- can serve as a fast proxy for gradient-based data attribution for data selection under conditions contingent on data similarity. We study this connection empirically on standard NLP tasks, and show that ICP and gradient-based data attribution are well-correlated in identifying influential training data for tasks that share similar task type and content as the training data. Additionally, fine-tuning models on influential data selected by both methods achieves comparable downstream performance, further emphasizing their similarities. We also examine the connection between ICP and gradient-based data attribution using synthetic data on linear regression tasks. Our synthetic data experiments show similar results with those from NLP tasks, suggesting that this connection can be isolated in simpler settings, which offers a pathway to bridging their differences.

View on arXivView PDF

Code Implementations(1)

10Shell, PythonJun 25, 20241 years ago

Similar Papers

Cite this paper

@article{jiao2024feasibility,
  title  = {On the Feasibility of In-Context Probing for Data Attribution},
  author = {Cathy Jiao and Gary Gao and Aditi Raghunathan and Chenyan Xiong},
  year   = {2024},
  eprint = {2407.12259},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2407.12259v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2407.12259.svg)](https://codeofpaper.com/paper/2407.12259)

Discussion