Second-Order Group Influence Functions for Black-Box Predictions

Samyadeep Basu, Xuchen You, Soheil FeiziarXiv 2019

TL;DR

This paper introduces second-order group influence functions, a new method for identifying which groups of training samples most heavily impact a specific black-box model prediction. By moving beyond standard first-order approximations, the authors better capture the large model shifts that occur when multiple data points are removed at once, significantly improving the accuracy of these explanations for linear models.

What Problem Does This Paper Address?

In high-stakes fields like medicine or finance, we need to know why a machine learning model made a specific prediction. One powerful way to explain a prediction is to trace it back to the training data—identifying the "influential" samples that shaped the model's decision.

Existing techniques, like the popular first-order influence functions proposed by Koh & Liang (2017), work well for individual points. However, they often fail when we look at groups of samples. Removing a large group of data points causes a significant perturbation to the model, violating the "small change" assumption that first-order Taylor expansions rely on. Furthermore, first-order methods treat samples as independent, ignoring the cross-correlations between similar data points in a group. This paper aims to fix these inaccuracies by incorporating second-order information.

Methods

The authors derive a second-order approximation for group influence by expanding the model's optimal parameters using perturbation theory.

  • The Second-Order Term: The proposed function, $I^{(2)}(U)$, consists of the standard first-order term plus a new term, $I'(U)$, which captures informative cross-dependencies among samples in the group. This term uses both the gradient vectors and the Hessian matrix (the second derivative of the loss).
  • Group Selection Optimization: Since group influence is no longer just the sum of individual influences, you can't just pick the top $k$ points greedily. The authors propose a quadratic optimization problem to select the most influential group of size $k$, which they solve efficiently using an $L_1$ relaxation and projected gradient descent.
  • Computational Efficiency: To avoid the massive cost of inverting the Hessian matrix $H$ (which is $O(n^3)$), the authors use conjugate gradients and Hessian-vector products. This allows the second-order influence to be computed with only one additional Hessian-vector product step compared to the first-order method.

Datasets

The researchers evaluated their method using:

  • Synthetic Datasets: Gaussian distributions (10,000 samples, 5 features) and isotropic Gaussian blobs (20,000 samples) to test group selection.
  • MNIST: The classic handwritten digits database, used for logistic regression and simple neural networks.
  • Iris: A small, standard dataset used for additional validation of the correlation improvements.

Key Insights and Ideas

  • Large Perturbations Require Higher Orders: When you remove a large chunk of data (e.g., 30-50% of the training set), the model changes drastically. A linear (first-order) approximation simply cannot track this "jump" in the parameter space.
  • Coherent vs. Random Groups: The benefit of second-order influence is most pronounced when removing "coherent" groups—samples that share properties, like belonging to the same class. Removing a coherent group shifts the model parameters significantly in a specific direction, whereas random groups often have effects that partially cancel each other out.
  • Capturing Cross-Correlations: By including the Hessian in the group influence calculation, the method accounts for how samples within a group interact. This is the "aha moment": the influence of a group is not merely the sum of its parts.

Key Results

The authors measured success by calculating the Pearson correlation between their influence estimates and the "ground truth" (actually retraining the model without the group, known as leave-k-out retraining).

  • Significant Correlation Gains: On MNIST logistic regression, when removing more than 36% of the training samples, the second-order method improved correlation with the ground truth by over 40% compared to first-order methods.
  • Coherent Group Accuracy: For coherent groups in MNIST, the second-order approximation consistently outperformed the first-order one by at least 15% across all group sizes.
  • Visualizing the Fit: As seen in the synthetic data experiments, the second-order estimates (red dots) stay much closer to the $y=x$ ground-truth line than first-order estimates (blue dots), especially as the group size $|U|$ increases.
Figure 1. Comparison of first-order and second-order group influences in case of synthetic dataset with 10,000 samples using logistic regression for a mis-classified test point. Across different sizes of groups which were randomly selected, it can be observed that the second-order influence values are more correlated with the ground truth than that of the first-order ones. The green line highlights the y = x line.

Limitations and Future Work

  • Deep Neural Networks (DNNs): The results for DNNs were less impressive. Both first and second-order methods showed non-significant correlations with the ground truth. The authors attribute this to the non-convexity of the loss surface and the fact that the Hessian is not positive semi-definite in deep learning.
  • Local Approximation Limits: Even with second-order terms, these are still local approximations. If the model change is extremely violent, even higher-order terms or different approaches may be needed.
  • Future Directions: The authors suggest that developing specialized influence functions for neural networks and extending these methods to transfer learning are critical next steps for the field.

Summary updated

BibTeX
@misc{basu2019second,
  author = {Samyadeep Basu and Xuchen You and Soheil Feizi},
  title = {{Second-Order Group Influence Functions for Black-Box Predictions}},
  year = {2019},
  eprint = {1911.00418},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1911.00418},
}
Figure