Introduction
In the field of Explainable AI (XAI), research has traditionally focused on feature-based explanations—identifying what specific inputs (such as pixels in an image or words in a sentence) led to a model's prediction. However, a parallel and equally vital question is who: "Which specific training examples taught the model to make this decision?" This is the domain of sample-based explanations.
While several techniques exist to answer this question—including Influence Functions, Representer Point Selection, and TracIn—the field has lacked a cohesive theoretical foundation. These methods often appear as a collection of disparate mathematical heuristics. This paper addresses this gap by introducing generalized representers, a unified axiomatic framework that provides a theoretical bridge between existing methods and introduces a more scalable, high-performance approach to sample-based attribution.
The Generalized Representer Framework
The authors propose that the influence of a training point $x_i$ on a test prediction $x$ should be fundamentally decomposable into two components:
$$\text{Importance} = \alpha_i \times K(x_i, x)$$
- Global Importance ($\alpha_i$): A weight representing how much the model values a specific training point across all possible test cases.
- Local Similarity ($K(x_i, x)$): A kernel function measuring the relationship between the training point and the specific test point in question.
Axiomatic Foundations
To determine what constitutes a mathematically sound explanation, the researchers define six "fairness" axioms, including Efficiency, Self-Explanation, and Symmetry. The central theoretical contribution of the paper is the proof that generalized representers are the unique class of explanations that satisfy these axioms. This discovery transforms sample-based XAI from a "bag of tricks" into a rigorous mathematical discipline.
Computing Influence: From Theory to Practice
The framework allows for different methods of calculating the global weights ($\alpha$):
- RKHS Projection: Projecting the model into a Reproducing Kernel Hilbert Space to approximate influence.
- Target Derivative: Utilizing the derivative of the loss function as a proxy for importance.
- Tracking Representers: A novel method introduced by the authors that "tracks" the contribution of a sample to the model's improvement at every step of gradient descent.
Among these, the Tracking method is particularly notable. Unlike previous methods like TracIn, which require saving massive full-model checkpoints, Tracking monitors updates during the training loop, making it significantly more memory-efficient and scalable.
Empirical Evaluation
The authors evaluated the generalized representer framework across vision and language tasks using four primary datasets:
- Vision: MNIST (digits 1 vs. 5) and CIFAR-10 (airplanes vs. automobiles).
- Text: Toxicity (toxic comment detection) and AGnews (news classification).
To measure the quality of explanations, the study employed case deletion diagnostics. This process involves removing the training samples identified as "most influential" and observing the resulting change in the model's prediction. A significant change indicates that the method successfully identified the samples that truly drove the model's behavior.
Key Insights and Results
Superior Performance of Tracking
The Tracking method consistently outperformed or matched state-of-the-art methods across all datasets in "Case Deletion" tests (AUC-DEL-). For example, on the Toxicity dataset, the Tracking method achieved a score of 2.08, a stark improvement over the standard Influence Function's score of 0.26. This suggests that capturing the "journey" of a sample throughout the training process is more informative than simply analyzing the model's final state.
Unification of Existing Methods
The paper demonstrates that many popular existing methods are actually specific instances of generalized representers. For instance, Influence Functions can be viewed as a specific choice of kernel combined with a Target Derivative weight. This unification allows researchers to understand the trade-offs between different methods within a single theoretical context.
The Reliability of the NTK-Final Kernel
For language models, the authors found that using the Neural Tangent Kernel (NTK) at the final layer provided a highly dependable default choice. This kernel showed robust performance across both image and text data, offering a more stable alternative to traditional influence functions that often rely too heavily on the final layer's gradients.
Conclusion and Future Work
By providing the first axiomatic foundation for sample-based explanations, this work brings much-needed clarity to the field of XAI. The introduction of the Tracking method offers a practical, scalable solution for identifying influential data points in complex models.
While the current framework is optimized for supervised binary classification, it lays the groundwork for future expansions. Potential avenues for research include extending these axioms to multi-class problems, generative models (such as Large Language Models), and self-supervised or reinforcement learning contexts. As models grow in complexity, understanding the "who" behind the "why" will be essential for ensuring AI safety, fairness, and transparency.
Summary updated