NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Daunce: Data Attribution through Uncertainty Estimation

Xingyuan Pan, Chenlu Ye, Joseph Melkonian, Jiaqi W. Ma, Tong Zhang

TL;DR

DAUNCE (Data Attribution through Uncertainty Estimation) is a novel, highly scalable method that identifies which training examples most heavily influence a machine learning model's specific predictions. By training a collection of slightly perturbed models and computing the covariance of per-example losses, DAUNCE bypasses expensive second-order gradient calculations, outperforming existing methods and enabling data attribution on black-box proprietary LLMs (like OpenAI's GPT models) for the first time.

What Problem Does This Paper Address?

Machine learning models are entirely shaped by their training data, but understanding which specific training examples caused a model to make a particular prediction remains a difficult challenge. This field, known as Training Data Attribution (TDA), is vital for data debugging, curation, and data valuation.

Traditional TDA methods like Influence Functions are mathematically elegant but computationally nightmarish: they require calculating and inverting a massive second-order Hessian matrix, making them impossible to scale to Large Language Models (LLMs). While approximation methods (like TRAK or LoGra) improve scalability by projecting gradients into lower dimensions, they sacrifice significant attribution accuracy. Furthermore, virtually all existing TDA methods require "white-box" access to the model's internal gradients and architecture, rendering them useless for commercial, proprietary models accessed via APIs.

Methods

DAUNCE re-imagines data attribution through the lens of uncertainty estimation. Instead of explicitly calculating the inverse Hessian matrix, the authors leverage a mathematical connection showing that influence can be approximated by the covariance of losses across a population of slightly randomized models.

The core algorithm proceeds as follows:

  1. Subsample & Perturb: Create $K$ different training configurations by randomly subsampling the training dataset and adding a random perturbation variable ($\xi$) to the training objective.
  2. Train: Fine-tune $K$ separate models on these perturbed objectives. To keep this efficient at scale, the authors use Parameter-Efficient Fine-Tuning (LoRA) for white-box LLMs.
  3. Compute Covariance/Correlation: The attribution score between a training point $x_i$ and a query point $x_j$ is computed as the empirical covariance of their losses across all $K$ models.

To tackle the black-box setting where gradients are unavailable, the authors introduce a simplified objective that drops the gradient-dependent perturbation term entirely. For strict black-box access, they use black-box prompt optimization (BDPL) to adapt the models, and for API-based access, they simply use standard fine-tuning endpoints.

Datasets

The authors evaluated DAUNCE across several distinct tasks and modalities:

  • Vision: CIFAR-10 using a ResNet-9 backbone to compute Linear Datamodeling Scores (LDS).
  • Math Reasoning: Qwen2.5-7B fine-tuned on 20,000 examples from the NuminaMath-CoT dataset and evaluated on the MATH benchmark.
  • Instruction Following: Llama-3.1-8B fine-tuned on 20,000 examples from the AutoIF dataset and evaluated on the IFEval benchmark.
  • Proprietary LLM Backdoor Detection: Subsets of the MMLU dataset injected with 500 poisoned "backdoor" examples, evaluated on OpenAI's gpt-4.1-nano, gpt-4.1-mini, and gpt-4o-mini.

Key Insights and Ideas

  • The Uncertainty-Influence Connection: The most profound insight is that tracking how much two data points' losses move together under model perturbations perfectly mirrors the classical gradient-based influence function.
  • Correlation over Covariance: The authors discovered that replacing covariance with correlation yields better results. This is because correlation implicitly unit-normalizes the gradients, mitigating the outsized, distorting impact of outlier training examples that happen to have massive gradient magnitudes.
  • The First-Order Term is Negligible: In the black-box setting, dropping the explicit gradient perturbation term from the objective has surprisingly minimal impact on attribution quality. When a model is already near a local optimum, the standard empirical risk gradients dominate, allowing simple data subsampling to suffice for perturbation.

Key Results

DAUNCE consistently outperformed popular TDA baselines across both vision and language tasks:

  • Linear Datamodeling Score (LDS): On CIFAR-10, DAUNCE achieved an LDS of 0.130, significantly higher than projection-based methods like TRAK (0.063) and LoGra (0.069), and even beating high-fidelity white-box methods like EKFAC (0.109).
Figure 1: LDS results for our method variants and baselines. (a) Comparison in the white-box setting. (b) Results under API-based black-box access.
  • Most Influential Subset Removal: When progressively removing the most influential training examples to degrade model performance intentionally, DAUNCE identified influential data far more accurately than LoGra on both the MATH and IFEval benchmarks.
Figure 2: Most Influential Subset Removal results on MATH and IFEval benchmarks, comparing DAUNCE with LoGra. A higher score indicates more accurate identification of influential examples.
  • Black-Box Attribution: Applied to proprietary OpenAI GPT models, DAUNCE successfully pinpointed the exact poisoned backdoor training examples responsible for triggering malicious refusal behaviors at inference time.

Limitations and Future Work

While DAUNCE scales beautifully compared to Hessian-based methods, it still requires training an ensemble of $K$ models (typically $K=200$ to $300$ for optimal performance). Though parameter-efficient methods like LoRA and prompt tuning make this manageable, it remains computationally demanding. Additionally, the authors noted an exponential scaling law where marginal attribution gains diminish at larger values of $K$, leaving open the theoretical question of whether there is an absolute upper bound on data attribution quality.

Summary updated

BibTeX
@misc{pan2025daunce,
  author = {Xingyuan Pan and Chenlu Ye and Joseph Melkonian and Jiaqi W. Ma and Tong Zhang},
  title = {{Daunce: Data Attribution through Uncertainty Estimation}},
  year = {2025},
  eprint = {2505.23223},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.23223},
}
Figure