Introduction
In machine learning, understanding which training samples drive a model's predictions is critical for debugging, data cleaning, and interpretability. Traditionally, "influence functions" (IF) have served as the standard tool for this task. However, existing methods are largely static, typically requiring models to have reached convergence and assuming convex loss functions—conditions rarely met in modern deep learning.
This paper introduces the Dynamic Influence Tracker (DIT), a framework designed to measure how individual training samples affect a model's behavior at any point during the training process. By capturing these temporal dynamics, DIT reveals how a model's "priorities" shift as it learns, enabling more precise data diagnostics even in complex, non-convex architectures like Vision Transformers.
Methodology
DIT is a query-based framework that estimates the "counterfactual" impact of a sample: specifically, how the model's parameters would have differed if a particular sample $z_j$ had been excluded from the training set.
To achieve this without costly retraining, DIT employs several key technical components:
- Recursive Parameter Estimation: Using a first-order Taylor expansion and an approximate Hessian matrix, DIT propagates sample influence through arbitrary time windows. This allows it to function on non-converged models.
- Query-Based Projection: To handle high-dimensional parameter changes, DIT projects these updates onto specific "query vectors" (e.g., the gradient of the test loss) to interpret how a sample affects specific performance metrics.
- Efficiency via Checkpoints: To manage the memory requirements of tracking trajectories, the authors implement a checkpoint-based system that reconstructs training updates on the fly.
Characterizing Influence Dynamics
A central finding of this work is that learning occurs in distinct phases, and a sample's importance is rarely constant. The authors identify four primary patterns of influence:
- Early Influencers: Samples that provide critical signals early in training but become redundant as the model matures.
- Late Bloomers: Samples that only exert significant influence as the model nears convergence.
- Stable Influencers: Samples that remain consistently important throughout the training trajectory.
- Highly Fluctuating Influencers: Samples whose impact on the model swings wildly between epochs.
Interestingly, there is a weak temporal correlation between early-stage and late-stage influence, confirming that deep learning models undergo fundamental shifts in learning priorities. These patterns appear to be dataset-driven rather than model-driven, as influence profiles for specific data remain consistent across different architectures.
Experimental Results and Fidelity
The authors evaluated DIT across diverse domains, including image (MNIST, ImageNet), tabular (Adult), and text (20Newsgroups) datasets, using models ranging from Logistic Regression to Vision Transformers (ViT-B/16).
High Fidelity to Ground Truth
DIT demonstrates remarkable accuracy in estimating influence. When compared against the "ground truth" of Leave-One-Out (LOO) retraining, DIT achieves correlations as high as 0.99. In contrast, traditional static Influence Functions often struggle with non-convex models, with correlations sometimes dropping as low as 0.25.
Data Corruption Detection
DIT's dynamic insights prove highly effective for data cleaning. In label-flipping experiments on ImageNet-1K, DIT achieved over 98% accuracy in identifying corrupted samples using only a single epoch of fine-tuning data. The research suggests that the "convergence window" (the middle to end of training) is the most effective period for identifying mislabeled or harmful data.
Conclusion
Dynamic Influence Tracker (DIT) provides a robust, high-fidelity method for tracking sample importance throughout the training process. By moving beyond static assumptions, it offers a more nuanced view of how models learn from data. While the method introduces some computational overhead due to trajectory tracking, its superior performance in non-convex settings and high accuracy in corruption detection make it a powerful tool for modern deep learning. Future applications may include automated data pruning and the development of more efficient curriculum learning strategies.
Summary updated