Papers › Enhancing Training Data Attribution with Representational Optimization

Enhancing Training Data Attribution with Representational Optimization

24 May 2025arXiv:2505.18513archive 2025-07-28

Weiwei Sun, Haokun Liu, Nikhil Kandpal, Colin Raffel, Yiming Yang

Training data attribution (TDA) methods aim to measure how training data impacts a model's predictions. While gradient-based attribution methods, such as influence functions, offer theoretical grounding, their computational costs make them impractical for large-scale applications. Representation-based approaches are far more scalable, but typically rely on heuristic embeddings that are not optimized for attribution, limiting their fidelity. To address these challenges, we propose AirRep, a scalable, representation-based approach that closes this gap by learning task-specific and model-aligned representations optimized explicitly for TDA. AirRep introduces two key innovations: a trainable encoder tuned for attribution quality, and an attention-based pooling mechanism that enables accurate estimation of group-wise influence. We train AirRep using a ranking objective over automatically constructed training subsets labeled by their empirical effect on target predictions. Experiments on instruction-tuned LLMs demonstrate that AirRep achieves performance on par with state-of-the-art gradient-based approaches while being nearly two orders of magnitude more efficient at inference time. Further analysis highlights its robustness and generalization across tasks and models. Our code is available at https://github.com/sunnweiwei/AirRep.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2505.18513")

Code

Syntology Ran 7 of 13 code samples harvested from 2 repositories linked to this paper; 6 have no recorded run. Of those that ran: 3 ran · honoured contract; 4 ran · our draft was wrong.

By repository: official repository: 10 samples from 1 repository, 7 ran; found in paper text by Syntology: 2 samples from 1 repository, 0 ran; 1 identical to code first harvested elsewhere. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

sunnweiwei/airrep officialmentioned in papermentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

13 samples harvested; 7 ran; 3 honoured the contract we drafted; 6 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

3ran · honoured contract
4ran · our draft was wrong
6unverified

Licence: 13 of the 13 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 2 repositories linked to this paper, official or community; each sample names its own and says which. Some samples are identical code Syntology first harvested from another repository; for those, this paper's copy is not located and its licence is not recorded. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

build_example sunnweiwei/airrep/airrep/airrep_trainer.py official repository ran · honoured contract no licence file found · pointer only · 4cbf2a3e702145ea · report
format_item sunnweiwei/airrep/airrep/airrep_trainer.py official repository ran · our draft was wrong no licence file found · pointer only · 87218fb7bd794cee · report
format_item sunnweiwei/airrep/scripts/04_evaluate.py official repository ran · our draft was wrong no licence file found · pointer only · 8e52daac4a11eb62 · report
mean_pooling sunnweiwei/airrep/airrep/modeling_airrep.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · a9b8a52fdc139850 · report
ranknet_loss sunnweiwei/airrep/airrep/airrep_trainer.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · 22a29f584fb024de · report
softmax sunnweiwei/airrep/scripts/04_evaluate.py official repository ran · honoured contract fingerprinted no licence file found · pointer only · 6a445568164614eb · report
sum_agg sunnweiwei/airrep/scripts/04_evaluate.py official repository ran · honoured contract fingerprinted no licence file found · pointer only · 027e6b50c64d21a4 · report
AirRep sunnweiwei/airrep/airrep/modeling_airrep.py official repository unverified no licence file found · pointer only · 2b9144433f59b404 · report
AirRepConfig sunnweiwei/airrep/airrep/modeling_airrep.py official repository unverified no licence file found · pointer only · c7dcc915c5c6e960 · report
AirRepModel sunnweiwei/airrep/airrep/modeling_airrep.py official repository unverified no licence file found · pointer only · 56d047c7e748d0bd · report
_cached_ch_load MadryLab/DsDm/dsdm/selections.py found in paper text by Syntology unverified no licence file found · pointer only · 68a7adb31d4d8a0f · report
dsdm_select MadryLab/DsDm/dsdm/selections.py found in paper text by Syntology unverified no licence file found · pointer only · f3feea63a19be6bf · report
process_path identical code first harvested elsewhere unverified licence of this copy not recorded · 2c9490427848c4dc · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections