Understanding Data Influence with Differential Approximation

Haoru Tan, Sitong Wu, Xiuzhe Wu, Wang Wang, Bo Zhao, Zeke Xie, Gui-Song Xia, Xiaojuan QiarXiv 2025 · DOI

Abstract

Diff-In introduces a novel framework for data influence estimation, quantifying the impact of individual training samples on model performance. By reformulating influence as a cumulative sum of temporal differences and employing an efficient second-order approximation, Diff-In overcomes the limitations of traditional methods, such as the requirement for loss convexity. Experiments across image classification, large language models, and vision-language pre-training demonstrate that Diff-In achieves state-of-the-art accuracy in data cleaning and coreset selection while maintaining computational scalability.

Introduction

In modern machine learning, datasets are often massive and contain varying degrees of noise or redundancy. Data attribution, or influence analysis, seeks to quantify the contribution of specific training samples: "If I removed sample $z$ from my training set, how would the model's parameters or loss change?"

While "Leave-One-Out" (LOO) retraining is the gold standard for answering this question, it is computationally prohibitive for deep learning models. Existing approximations suffer from significant drawbacks. Influence Functions (IF) typically assume loss convexity, which rarely holds for neural networks. First-order methods like TracIn track gradients during training but often diverge from the actual LOO objective. Diff-In addresses these challenges by tracking influence dynamics throughout the training trajectory without restrictive geometric assumptions.

The Diff-In Framework

Diff-In reformulates influence as the cumulative sum of differences between successive training steps. Instead of analyzing only the final stationary point of a model, Diff-In captures how a sample's influence evolves over time.

Efficient Second-Order Approximation

To calculate these temporal differences accurately, the authors utilize a second-order Taylor expansion. To avoid the computational burden of calculating the Hessian matrix, Diff-In employs two key techniques:

  1. Hessian-Gradient Products: The method only requires the product of the Hessian and a gradient vector.
  2. Finite Differences: This product is approximated by calculating the difference between two gradients at slightly different parameter points, reducing complexity to $O(p)$, which is comparable to standard first-order methods.
Comparison of Diff-In properties against existing influence estimation methods.

To ensure scalability, the framework utilizes Checkpoint Sampling. Rather than calculating influence at every iteration, it samples a limited number of checkpoints (e.g., 5 to 50) across the training trajectory, balancing accuracy with storage and compute requirements.

Experimental Evaluation

The authors evaluated Diff-In across several diverse tasks:

  • Image Classification: Benchmarks on CIFAR-100, Tiny-ImageNet, and ImageNet-1K using ResNet architectures.
  • Large Language Models (LLMs): Fine-tuning Llama 3.1 8B on the GSM8K (Grade School Math) dataset.
  • Vision-Language Pre-training: Scaling to the CC12M dataset (12 million image-text pairs) for CLIP-style training.

Key Results

Correlation with Ground Truth

In ResNet experiments, Diff-In demonstrated a significantly higher Pearson correlation with actual LOO retraining results compared to both IF and TracIn. As shown in the correlation plots, Diff-In's estimates (represented by triangles) align closely with the diagonal, indicating high fidelity to the true influence.

Correlation between estimated influence and ground-truth Leave-One-Out (LOO) retraining across different experimental settings.

Data Cleaning and LLM Performance

Diff-In proved highly effective at identifying mislabeled data through "self-influence" signals. On Tiny-ImageNet with 20% noisy labels, it identified over 88% of erroneous samples. In the LLM domain, using Diff-In to "unlearn" noisy data in a Llama 3.1 model improved accuracy by 8.2% over the corrupted baseline, nearly matching the performance of an "Oracle" model trained on perfectly cleaned data.

Scalability in Coreset Selection

Diff-In successfully scaled to the 12-million-point CC12M dataset. In coreset selection tasks—where the goal is to identify the most valuable 60% of the data—Diff-In outperformed the standard CLIP-score method by up to 2.1 percentage points on downstream tasks.

Discussion and Limitations

Diff-In provides a robust, scalable alternative to traditional influence functions by focusing on training dynamics rather than static endpoints. However, some limitations remain. The theoretical error bound grows with the number of training iterations, though this is mitigated in practice as models converge. Additionally, the method requires storing multiple model checkpoints, which introduces a storage overhead compared to simpler first-order approximations. Future work may explore relaxing the additivity assumption, which assumes the influence of multiple samples is simply the sum of their individual influences.

Summary updated

BibTeX
@misc{tan2025understanding,
  author = {Haoru Tan and Sitong Wu and Xiuzhe Wu and Wang Wang and Bo Zhao and Zeke Xie and Gui-Song Xia and Xiaojuan Qi},
  title = {{Understanding Data Influence with Differential Approximation}},
  year = {2025},
  eprint = {2508.14648},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.14648},
}
Figure