On the Accuracy of Influence Functions for Measuring Group Effects

Pang Wei Koh, Kai-Siang Ang, Hubert H. K. Teo, Percy Liang

Abstract

Influence functions are a popular tool for estimating the impact of individual data points on model predictions without the need for retraining. However, their accuracy when removing large groups of data—where the "infinitesimal" assumption of the underlying Taylor approximation is violated—remains under-explored. This paper evaluates influence functions against actual retraining for large, coherent groups across diverse datasets. We find that while influence functions often underestimate the absolute magnitude of change, they maintain a remarkably high Spearman correlation (0.8–1.0) with actual effects, making them reliable for ranking group impact. We also demonstrate that a one-step Newton approximation significantly improves estimation accuracy by accounting for changes in model curvature.

Introduction

In "data debugging," researchers often need to quantify the impact of specific data cohorts: "If I removed all data from this specific hospital or crowdworker, how would my model change?" While the gold standard is to remove the data and retrain the model, this is computationally prohibitive for large-scale applications.

Influence functions offer a shortcut by using a first-order Taylor approximation to estimate the effect of data removal. Theoretically, these functions are only guaranteed to be accurate for infinitesimal changes. When removing a large group (e.g., 10% of the data), the "small perturbation" assumption breaks. This study investigates whether influence functions remain useful in this high-error regime.

Methods

The authors compare predicted effects via influence functions against the actual effects of retraining from scratch across six datasets (Diabetes, Enron, Dogfish, MNIST, CDR, and MultiNLI).

  1. Influence Calculation: The study uses standard first-order influence functions involving the gradient of the loss and the inverse Hessian of the model.
  2. Newton Approximation: They introduce a "one-step Newton approximation" as a middle ground. It is more computationally expensive than standard influence but cheaper than full retraining, as it accounts for how the model's curvature (the Hessian) changes when a group is removed.
  3. Group Construction: To stress-test the approximations, the authors constructed "coherent" groups designed to be influential, such as points sharing features, clusters in gradient space, or points the model already finds highly influential.

Key Results

Ranking Robustness and Underestimation

The most significant finding is that while influence functions are poor at predicting the exact magnitude of change in loss (absolute error), they are excellent at ranking groups. If the influence function indicates that Group A is more impactful than Group B, it is almost certainly correct. Across all datasets and group types, the Spearman correlation between predicted and actual effects ranged from 0.89 to 0.99.

Figure 1: Comparison of predicted influence vs. actual effect across various datasets and metrics. Note the high correlation despite the consistent underestimation of magnitude.

Furthermore, influence functions consistently underestimate the actual effect of removing data. The authors prove that under certain conditions, the influence function acts as a mathematical lower bound for the actual effect.

The Accuracy of Newton Approximations

The one-step Newton approximation proved to be strikingly accurate compared to standard influence functions. This suggests that the primary failure of standard influence functions in large-group regimes is not the complexity of the loss function itself, but rather the significant shift in the model's Hessian when large groups are removed.

Figure 2: The one-step Newton approximation significantly improves the accuracy of predicted effects compared to standard influence functions.

Discussion and Real-World Utility

In practical applications, these tools can identify problematic data sources. For instance, in the MultiNLI dataset, the authors identified that the most prolific crowdworker (contributing 35,000 examples) actually had a negative influence on the model's overall performance. This insight was gained using influence functions without the need for expensive retraining.

Limitations

While the results are promising, the theoretical analysis and experiments focused primarily on $L_2$-regularized logistic regression (convex models). The "striking correlation" found here may not hold as cleanly for the highly non-convex landscapes of deep neural networks. Additionally, while cheaper than retraining, calculating the inverse Hessian-vector product remains computationally demanding for very large models.

Summary updated

BibTeX
@inproceedings{koh2019accuracy,
  author = {Pang Wei Koh and Kai-Siang Ang and Hubert H. K. Teo and Percy Liang},
  title = {{On the Accuracy of Influence Functions for Measuring Group Effects}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2019},
}
Figure