2025/05/25 by Pengyan Hu, Hu, Pingbang, Melkonian, Joseph +6 · 2 citations
Computer Science · #Artificial Intelligence (cs.AI) #Computer Graphics and Visualization Techniques #FOS: Computer and information sciences #Machine Learning (cs.LG)
paper · pdf · doi:10.48550/arxiv.2505.18976
openalex publication_date 2025/05/25 · openalex created_date 2025/09/28 · openalex updated_date 2026/08/03
Gradient-based data attribution methods, such as influence functions, are critical for understanding the impact of individual training samples without requiring repeated model retraining. However, their scalability is often limited by the high computational and memory costs associated with per-sample gradient computation. In this work, we propose GraSS, a novel gradient compression algorithm and its variants FactGraSS for linear layers specifically, that explicitly leverage the inherent sparsity of per-sample gradients to achieve sub-linear space and time complexity. Extensive experiments demonstrate the effectiveness of our approach, achieving substantial speedups while preserving data influence fidelity. In particular, FactGraSS achieves up to 165% faster throughput on billion-scale models compared to the previous state-of-the-art baselines. Our code is publicly available at https://github.com/TRAIS-Lab/GraSS.
dattri: A Library for Efficient Data Attribution