Abstract
Data Attribution (DA) identifies training examples that drive specific model predictions, but its linear scaling with dataset size makes it computationally prohibitive for large-scale applications. We present Generalized Group Data Attribution (GGDA), a framework that partitions data into meaningful groups to achieve up to 50x speedups. By generalizing popular attribution methods like Influence Functions, TracIn, and TRAK to work with group-based property functions, GGDA maintains high fidelity and often improves performance in downstream tasks like dataset pruning and noisy label detection.
Introduction
Modern machine learning models are often viewed as "black boxes," yet their behavior is fundamentally a product of their training data. Data Attribution (DA) seeks to demystify these models by answering: "Which specific training examples caused this specific prediction?" This capability is vital for model debugging, data selection, and identifying mislabeled examples.
However, traditional DA faces a significant "scaling problem." Most methods require computations that scale linearly with the number of training points ($n$). In the era of billion-point datasets, calculating individual influences is prohibitively expensive. Moreover, individual points in massive datasets often have negligible, "ill-defined" effects. GGDA addresses these challenges by shifting the focus from individual points to collective groups.
Methods
The GGDA framework introduces two primary innovations:
- Group Partitioning: The dataset is divided into $k$ groups ($k \ll n$). Strategies include Random partitioning, K-Means on raw features, Representation K-Means on model embeddings, and Gradient K-Means, which groups points with similar loss gradients.
- Property Functions: GGDA moves beyond single-point test loss to allow arbitrary functions of model parameters, such as aggregate accuracy or fairness metrics.
The authors mathematically generalized three core DA methods—Influence Functions, TracIn, and TRAK—to this group-based paradigm.
Key Insights and Results
A central finding is the effectiveness of Gradient K-Means. By grouping points that exert similar influence on the learning process, the attribution remains accurate even at large group sizes. Furthermore, GGDA leverages GPU batching optimizations, transforming $n$ individual gradient computations into $k$ efficient batched operations. This leads to massive real-world speedups without sacrificing the quality of the attribution.
Empirical evaluations across HELOC, MNIST, CIFAR-10, and QNLI datasets demonstrate that GGDA achieves 10x to 50x speedups over standard DA methods. Notably, in dataset pruning tasks on the HELOC dataset, GGDA-based pruning maintained significantly higher test accuracy than standard DA while being orders of magnitude faster.
Conclusion
GGDA represents a significant advancement in making data attribution practical for large-scale machine learning. While hardware limits and theoretical fidelity bounds remain areas for future exploration, the current results show that grouping is a powerful tool for efficient and effective model interpretation. Future work will focus on scaling these methods to truly massive "billion-parameter" models to see if these efficiency gains hold at the extreme edge of scale.
Summary updated