GraSS: Scalable Data Attribution with Gradient Sparsification and Sparse Projection

Ping-Bang Hu, Joseph Melkonian, Weijing Tang, Han Zhao, Jiaqi W. Ma
5/1/2025
13 citations

Official code: TRAIS-Lab/GraSS (9 stars).

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

TRAIS-Lab/GraSSOfficial25%

Official implementation of the paper "GraSS: Scalable Data Attribution with Gradient Sparsification and Sparse Projection" (NeurIPS2025)

90

Similar Papers

Cite this paper

@article{hu2025grass,
  title  = {GraSS: Scalable Data Attribution with Gradient Sparsification and Sparse Projection},
  author = {Ping-Bang Hu and Joseph Melkonian and Weijing Tang and Han Zhao and Jiaqi W. Ma},
  year   = {2025},
  eprint = {2505.18976},
  archivePrefix = {arXiv},
  doi    = {10.52202/085713-1464},
  url    = {https://doi.org/10.52202/085713-1464},
  journal = {Neural Information Processing Systems}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2505.18976.svg)](https://codeofpaper.com/paper/2505.18976)

Discussion