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 · Submission to ICLR 2026 · Rejected

TL;DR

DAUNCE (Data Attribution through Uncertainty Estimation) reformulates training data attribution—traditionally an expensive process requiring gradient and Hessian computation—as an uncertainty estimation problem. By fine-tuning an ensemble of slightly perturbed models and measuring the loss covariance across them, DAUNCE matches or exceeds classical influence function baselines without explicit second-order matrix inversions. Crucially, the method adapts cleanly to black-box settings, achieving the first demonstrated training data attribution on proprietary LLMs like OpenAI’s GPT models.

What Problem Does This Paper Address?

Training Data Attribution (TDA) seeks to answer: Which training examples caused the model to produce this specific prediction? Knowing this enables data debugging, data valuation, and dataset curation.

Existing approaches fall into two main camps, each with severe trade-offs:

  1. Gradient-based methods (e.g., Influence Functions) compute leave-one-out effects via gradients and the inverse Hessian matrix ($H^{-1}$). Inverting this matrix at scale is computationally prohibitive, and dimensionality reduction approximations (like random projections in TRAK or LoGra) often degrade attribution quality.
  2. Retraining-based methods (e.g., Datamodels, Data Shapley) retrain models across combinatorial data subsets, making them infeasible for modern architectures.

Furthermore, almost all existing TDA methods require complete white-box access (gradients, parameter weights, architecture). They cannot attribute predictions from closed-source, proprietary APIs.

Methods

DAUNCE bridges influence functions and bootstrap uncertainty estimation. In linear regression, the influence function between two samples simplifies to an uncertainty projection ($\frac{1}{n} \epsilon_i \epsilon_j x_i^\top \Sigma_n^{-1} x_j$), which can be approximated by computing output variance across subsampled models.

DAUNCE generalizes this intuition to nonlinear neural networks:

  • Perturbed Model Collection: The algorithm trains $K$ lightweight perturbed models $\theta^k$. For each run $k$, it samples a data subset $D^k \subset D_{\text{tr}}$ with ratio $r$, draws random variables $\xi_i^k \sim \text{Uniform}(0, 1)$, and optimizes a perturbed objective derived from the second-order Taylor expansion of the empirical loss.
  • Loss Covariance / Correlation: Once the $K$ models are collected, the attribution score between a training sample $x_i$ and a query $x_j$ is simply the empirical covariance of their per-example losses: $$I(x_i, x_j) = \frac{1}{K - 1} \sum_{k=1}^K (L_i(\theta^k) - \bar{L}_i)(L_j(\theta^k) - \bar{L}_j)$$ Normalizing the covariance into Pearson correlation is theoretically equivalent to using unit-normalized gradients (mitigating the impact of outlier training examples).

  • Variants: The authors formulate variants corresponding to different second-order structures: standard Hessian (DAUNCE), empirical Fisher (DAUNCE-E), and margin-based Fisher (DAUNCE-T).

  • Black-Box Extension: In strict black-box (prompt-based via BDPL) or API fine-tuning settings, gradients cannot be computed for the perturbation term. Because models are typically near a local minimum where gradients are small, DAUNCE drops the first-order perturbation term and perturbs strictly via data subsampling and API fine-tuning or discrete prompt optimization.
       Training Data (Subsampled & Perturbed)
                       │
       ┌───────────────┼───────────────┐
       ▼               ▼               ▼
   Model θ¹        Model θ²        Model θᴷ
       │               │               │
  Compute Losses  Compute Losses  Compute Losses
       └───────────────┬───────────────┘
                       ▼
       Empirical Covariance / Correlation
                       │
                       ▼
              Attribution Score

Datasets

  • CIFAR-10: Evaluated with a ResNet-9 backbone for Linear Datamodeling Score (LDS).
  • NuminaMath-CoT & MATH: 20,000 training examples sampled from NuminaMath-CoT to fine-tune Qwen2.5-7B, evaluated against 2,000 correctly solved MATH benchmark test questions.
  • AutoIF & IFEval: 20,000 training examples from AutoIF to fine-tune Llama-3.1-8B, evaluated on 200 verifiable test questions from IFEval.
  • MMLU (Backdoor Study): 5,000 examples sampled for fine-tuning OpenAI models, with 500 examples injected with a backdoor trigger word ("BlackMagic") paired with a refusal string ("Sorry, I can't assist with that.").

Key Insights and Ideas

  • Implicit Hessian Inversion via Sampling: Instead of wrestling with memory-intensive Kronecker-factored approximations (EKFAC) or lossy gradient sketches, loss variation across randomly perturbed checkpoints mathematically mimics the inverted Fisher/Hessian metric in expectation.
  • Correlation Outperforms Covariance: Replacing covariance with correlation explicitly normalizes gradient vectors into a unit ball, eliminating noise from outlier data points that possess disproportionately huge gradient magnitudes.
  • The First-Order Perturbation is Negligible: When fine-tuning an already-converged checkpoint, the empirical risk dominates the loss landscape while the gradient-based perturbation is orders of magnitude smaller. This allows the removal of explicit gradient terms, paving the way for zero-gradient, black-box attribution.

Key Results

  • Linear Datamodeling Score (CIFAR-10 / ResNet-9):
  • White-Box: DAUNCE achieved an LDS of 0.130, surpassing TRAK (0.063), LoGra (0.069), and even high-fidelity EKFAC Influence Functions (0.109).
  • Black-Box: DAUNCE maintained strong fidelity with an LDS of 0.111.
  • LLM Influential Subset Removal:
  • On Qwen2.5-7B (MATH), sequentially removing training examples identified by DAUNCE degraded accuracy faster than LoGra across all removal intervals (from 500 to 3,000 samples).
  • On Llama-3.1-8B (IFEval), DAUNCE significantly outperformed LoGra when removing larger subsets (e.g., $\ge 7,500$ examples).
  • Proprietary LLMs (GPT-4.1 nano/mini, GPT-4o mini):
  • Under both API fine-tuning and strict black-box prompt tuning, DAUNCE accurately retrieved backdoored training examples as the top contributors responsible for the forced refusal response.

Limitations and Future Work

  • Computational Cost of Perturbed Models: While DAUNCE uses parameter-efficient fine-tuning (LoRA) for only 30 steps per run, training $K \ge 50\text{--}200$ models still demands noticeable compute.
  • Diminishing Returns with Scaling $K$: LDS performance follows an exponential curve ($y = -0.16 \cdot e^{-0.085K} + 0.16$), saturating beyond a few hundred models. The theoretical upper bound of uncertainty-based attribution remains an open question.
  • Local Convexity Assumption: The theoretical justification relies on a second-order Taylor expansion around a local minimum where $\hat{\theta} - \theta_0$ is small. Its behavior in pre-training regimes or highly non-convex trajectories warrants further investigation.

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