Abstract
Data Attribution (DA) is an emerging approach in the field of eXplainable Artificial Intelligence (XAI), aiming to identify influential training datapoints which determine model outputs. It seeks to provide transparency about the model and individual predictions, e.g. for model debugging, identifying data-related causes of suboptimal performance. However, existing DA approaches suffer from prohibitively high computational costs and memory demands when applied to even medium-scale datasets and models, forcing practitioners to resort to approximations that may fail to capture the true inference process of the underlying model. Additionally, current attribution methods exhibit low sparsity, resulting in non-negligible attribution scores across a high number of training examples, hindering the discovery of decisive patterns in the data. In this work, we introduce DualXDA, a framework for sparse, efficient and explainable DA, comprised of two interlinked approaches, Dual Data Attribution (DualDA) and eXplainable Data Attribution (XDA): With DualDA, we propose a novel approach for efficient and effective DA, leveraging Support Vector Machine theory to provide fast and naturally sparse data attributions for AI predictions. In extensive quantitative analyses, we demonstrate that DualDA achieves high attribution quality, excels at solving a series of evaluated downstream tasks, while at the same time improving explanation time by a factor of up to 4,100,000 x compared to the original Influence Functions method, and up to 11,000 x compared to the method's most efficient approximation from literature to date. We further introduce XDA, a method for enhancing Data Attribution with capabilities from feature attribution methods to explain why training samples are relevant for the prediction of a test sample in terms of impactful features, which we showcase and verify qualitatively in detail. Taken together, our contributions in DualXDA ultimately point towards a future of eXplainable AI applied at unprecedented scale, enabling transparent, efficient and novel analysis of even the largest neural architectures -- such as Large Language Models -- and fostering a new generation of interpretable and accountable AI systems.
Introduction
Deep learning models are often criticized as "black boxes," but the field of eXplainable AI (XAI) is working to open them. While most XAI tools focus on feature attribution (identifying which pixels in an image led to a specific prediction), a newer sub-field called Data Attribution (DA) asks: "Which specific training examples taught the model to make this prediction?"
In their recent work, researchers from the Fraunhofer Heinrich Hertz Institute and BIFOLD introduce DualXDA, a framework that solves the two biggest hurdles in data attribution: extreme computational cost and "noisy," non-sparse results.
The Challenge of Data Attribution
Data Attribution is incredibly useful for debugging models, detecting mislabeled training data, or identifying "backdoor" attacks. However, it has historically been a "rich researcher's tool." The gold standard, Influence Functions, requires calculating the inverse of a massive Hessian matrix, which is computationally ruinous for large models. Furthermore, most existing methods produce "dense" scores—they assign a tiny bit of importance to almost every training sample, making it nearly impossible for a human to find the truly decisive patterns. Finally, knowing which training sample was important doesn't tell you why it was important.
The DualXDA Framework
The authors propose a two-part framework to address these limitations: DualDA and XDA.
DualDA: Sparse and Efficient Attribution
Instead of wrestling with the complex internals of a deep neural network, DualDA replaces the final linear layer of a pre-trained model with a multiclass kernel SVM surrogate.
In SVM theory, the model's weights are mathematically equivalent to a linear combination of a small subset of the training data called support vectors. By solving the SVM's "dual problem," the researchers get "naturally sparse" attributions for free. If a training point isn't a support vector, its influence is exactly zero. This aligns the mathematics with the empirical reality that only a few training points truly drive a local prediction.
XDA: Explaining the Influence
XDA is the first method to unify data and feature attribution. It takes the influence score from DualDA and uses Layer-wise Relevance Propagation (LRP) to backpropagate that score all the way to the input pixels.
This creates a pair of concurrent heatmaps: one for the test image and one for the influential training image. These maps show exactly which shared features (like a specific shape or texture) created the link between them, allowing researchers to unmask confounders or biases in the training set.
Key Results and Impact
The framework was rigorously evaluated using vision datasets (MNIST, CIFAR-10, AwA2, ImageNet) and language tasks (AG News with Llama-3.2-1B).
- Massive Speedups: DualDA is up to 4,100,000× faster than the original Influence Functions and 11,000× faster than the most efficient current approximations (like EK-FAC) on standard benchmarks.
- Memory Efficiency: It reduces the required "cache" size (the data needed to store to generate explanations) by up to 1,750×.
- LLM Scalability: In preliminary tests on a Llama-3.2-1B model, DualDA achieved a 108,000× speedup in explanation time per sample compared to state-of-the-art methods, making real-time data attribution for Large Language Models a tangible possibility.
- Downstream Performance: Despite the speed, it outperformed or matched competitors on tasks like detecting mislabeled data and identifying "shortcut" learning.
Conclusion
DualXDA represents a significant step toward making deep learning models accountable at scale. By moving from dense, computationally expensive approximations to sparse, efficient, and feature-grounded explanations, it enables a new generation of interpretable AI systems where we can see exactly from whom and what a model has learned.
Summary updated