On Influence Functions, Classification Influence, Relative Influence, Memorization and Generalization

Michael Kounavis, Ousmane Dia, Ilqar RamazanliarXiv 2023 · DOI

Abstract

Influence functions are powerful tools for understanding how specific training examples affect a model's predictions. However, their application to modern, trillion-parameter models is hindered by the "Hessian bottleneck"—the computational impossibility of inverting massive second-order derivative matrices. This paper proposes a theoretical framework to make influence functions practical at scale. By introducing "Classification Influence," which focuses on the final classifier layer, and "Relative Influence," which utilizes sampled data subsets, the authors provide a mathematically rigorous way to analyze data impact, memorization, and generalization in large-scale machine learning systems.

Introduction

In the current landscape of artificial intelligence, models are routinely trained on billions of data points and contain trillions of parameters. When such models produce unexpected or erroneous outputs, identifying the specific training examples responsible is a critical debugging task. Standard influence functions offer a solution by quantifying the change in a model's parameters if a specific training point were removed.

The primary obstacle to using these functions is the requirement to calculate and invert the Hessian matrix. For a model with $P$ parameters, the Hessian contains $P^2$ elements. For trillion-parameter models, this leads to a quintillion-element matrix, far exceeding the capacity of modern hardware. This work addresses this challenge by simplifying the mathematical requirements for influence estimation.

Methodology

Classification Influence

The authors propose bypassing the full-model Hessian calculation by partitioning the neural network into two distinct components: a "heavyweight" featurizer ($\mathcal{F}$) and a "lightweight" classifier ($\mathcal{C}$).

The model is decomposed into a featurizer and a classifier to enable efficient influence computation.

Theorem 1 in the paper proves that computing influence functions solely on the parameters of the final classifier provides a high-quality approximation of the full model's influence. This approximation holds true provided that the classifier's eigenvalues are dominant, effectively reducing the dimensionality of the problem from the total parameter count to just the parameters of the final layer.

Relative Influence and LEP Subsets

To further reduce computational overhead, the authors introduce "Relative Influence." Instead of using the entire multi-billion point dataset to compute the Hessian, they propose using small, sampled subsets. They define a class of "Loss Estimate Preserving" (LEP) subsets that allow for relative influence calculations that preserve the core ranking of data impact without requiring the full dataset's Hessian.

Formalizing Memorization and Generalization

The framework provides a rigorous mathematical definition for distinguishing between data points that a model "memorizes" versus those it "generalizes" from. This distinction is based on the $L_1$ norm of their influence. "Memorizable" points are typically isolated in the data space; their inclusion causes significant shifts in the model's "dividing manifold" (the boundary between classes). In contrast, "generalizable" points exist in dense clusters and exert a more modest, collective influence on the decision boundary.

Key Theoretical Results

The paper establishes several foundational theorems:

  • Theorem 1 (Accuracy): Validates classification influence as a legitimate approximation of standard influence theory under specific eigenvalue conditions.
  • Theorem 2 (LEP): Identifies conditions under which a data subset can replace the full dataset for Hessian calculations while preserving the relative ranking of influential points.
  • Theorem 4 (Label Correlation): For a single linear layer classifier with binary cross-entropy loss, the sign of the influence value directly indicates whether a training point is "beneficial" or "harmful" to a specific test prediction based on their label alignment.

Discussion and Future Work

While the proposed framework offers a mathematically rigorous path toward scalable model debugging, it remains primarily theoretical. The authors acknowledge that the current analysis often focuses on simplified architectures, such as single linear layer classifiers. Future work is required to empirically validate these methods on real-world, large-scale systems and to extend the proofs to more complex multi-layer "heads" and diverse loss functions. Additionally, the sensitivity of these proofs to the non-convex landscapes typical of deep learning remains an open area for investigation.

Summary updated

BibTeX
@misc{kounavis2023influence,
  author = {Michael Kounavis and Ousmane Dia and Ilqar Ramazanli},
  title = {{On Influence Functions, Classification Influence, Relative Influence, Memorization and Generalization}},
  year = {2023},
  eprint = {2305.16094},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.16094},
}
Figure