GraSS: Scalable Influence Function with Sparse Gradient Compression
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.
Code (1)
Similar Papers 제목 키워드 기반
Grass: Compute Efficient Low-Memory LLM Training with Structured Sparse Gradients
Large language model (LLM) training and finetuning are often bottlenecked by limited GPU memory. While existing projection-based optimization methods address this by projecting gradients into a lower-dimensional subspace…
GPULanguage ModelingLanguage ModellingLarge Language ModelOn the usefulness of a minimalistic model to study tree-grass biomass distributions along biogeographic gradients in the savanna biome
We present and analyze a model aiming at recovering as dynamical outcomes of tree-grass interactions the wide range of vegetation physiognomies observable in the savanna biome along rainfall gradients at regional/contine…
Riemannian stochastic variance reduced gradient on Grassmann manifold
Stochastic variance reduction algorithms have recently become popular for minimizing the average of a large, but finite, number of loss functions. In this paper, we propose a novel Riemannian extension of the Euclidean s…
Low-Rank Matrix CompletionMatrix CompletionRiemannian optimizationTranslationEffect of rainfall and fire frequency on tree--grass dynamics: Capturing the forest--savanna distributions along biogeographic gradients
In this work, we improve a previous minimalistic tree-grass savanna model by taking into account water availability, in addition to fire, since both factors are known to be important for shaping savanna physiognomies alo…
Recursive Frechet Mean Computation on the Grassmannian and its Applications to Computer Vision
In the past decade, Grassmann manifolds (Grassmannian) have been commonly used in mathematical formulations of many Computer Vision tasks. Averaging points on a Grassmann manifold is a very common operation in many appli…
Action RecognitionFace RecognitionTemporal Action Localization