NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

GRAD-MATCH: Gradient Matching based Data Subset Selection for Efficient Deep Model Training

KrishnaTeja Killamsetty, Durga Sivasubramanian, Ganesh Ramakrishnan, Abir De, Rishabh K. Iyer

TL;DR

GRAD-MATCH is a novel data subset selection framework that speeds up deep learning by training models on a small, carefully chosen fraction of the data. By selecting samples whose gradients closely match the gradient of the full dataset (or a validation set), it achieves up to a 7x speedup with negligible loss in accuracy, outperforming previous state-of-the-art selection methods.

What Problem Does This Paper Address?

Modern deep learning is "data-hungry" and computationally expensive. Training on massive datasets like ImageNet requires significant GPU resources, leading to high financial costs and a large carbon footprint.

One way to solve this is data subset selection: finding a small "coreset" that represents the whole dataset. However, existing methods often rely on simple heuristics (like random sampling), expensive proxy models, or loose approximations of error. The challenge is finding a subset that provides rigorous theoretical guarantees for convergence while remaining computationally efficient enough that the selection process doesn't negate the training speedup.

Methods

The authors introduce GRAD-MATCH, which treats subset selection as an optimization problem. The core idea is simple: a model's learning is driven by gradients. Therefore, a perfect subset is one where the weighted sum of its gradients matches the gradient of the full dataset.

Key Technical Components:

  • Gradient Matching Error: They define a "matching error" term and prove that the convergence of the model is directly tied to minimizing this error.
  • Orthogonal Matching Pursuit (OMP): Since finding the absolute best subset is a hard combinatorial problem, they use OMP—a greedy algorithm—to efficiently pick the most informative samples one by one.
  • Adaptive Selection: Instead of picking a subset once at the start, GRAD-MATCH periodically refreshes the subset (e.g., every 20 epochs) to adapt to the model's current state.
Adaptive selection process in GRAD-MATCH
  • GRAD-MATCHPB (Per-Batch): To scale to massive datasets, they propose a version that selects entire mini-batches rather than individual points, providing a massive boost in selection speed.
  • Efficiency Tricks: They use "last-layer gradients" as a proxy for the whole model, significantly reducing the dimensionality of the optimization problem without sacrificing much performance.

Datasets

The authors evaluated GRAD-MATCH across a diverse range of standard benchmarks:

  • Image Classification: CIFAR-10, CIFAR-100, MNIST, SVHN, and the massive ImageNet-2012 (1.4 million instances).
  • Imbalanced Scenarios: Modified versions of CIFAR-10 and MNIST to test how the algorithm handles class imbalance.

Key Insights and Ideas

  • Matching the Validation Set: If you have a small, clean validation set, you can match the subset's gradient to the validation gradient instead of the training gradient. This allows the model to automatically ignore noisy or imbalanced data in the training set.
  • Theoretical Tightness: Unlike previous methods like CRAIG, which minimize an upper bound of the gradient error, GRAD-MATCH minimizes the error exactly. This leads to tighter convergence bounds and better empirical performance.
  • The "Warm-Start" Effect: The authors found that running a few initial epochs on the full dataset ("warm-starting") helps the selection algorithm find much better subsets later on.
  • Submodularity: They prove that their objective function is "weakly submodular," which provides the mathematical justification for why their greedy OMP approach works so well.

Key Results

GRAD-MATCH consistently achieves the best accuracy-efficiency trade-off compared to baselines like random sampling, CRAIG, and GLISTER.

Speedup, Energy Ratio, and Relative Test Error across datasets
  • Speedups: On ImageNet, CIFAR-10, and CIFAR-100, they observed roughly a 3x efficiency improvement with only a ~1% drop in accuracy using a 30% subset.
  • Extreme Compression: With a 10% subset, they achieved a 7x speedup on CIFAR-10 with a 2.8% accuracy drop.
  • Matching Full Accuracy: By training for slightly more epochs on a 30% subset, they could match the full-dataset accuracy while still being 2.5x faster overall.
  • Robustness: In class-imbalanced settings, GRAD-MATCH (matching to a validation set) significantly outperformed full training, effectively "filtering" the dataset to focus on underrepresented classes.

Limitations and Future Work

  • Validation Set Dependency: For the best results in imbalanced or noisy settings, the method assumes access to a small, clean validation set, which may not always be available.
  • OMP Overhead: While OMP is efficient, it still adds a computational cost every $R$ epochs. While the authors show this is negligible for deep models, it might be more significant for very small, shallow models.
  • Future Directions: The authors suggest exploring more complex data augmentations within the subset selection framework and applying the method to other domains like Natural Language Processing (NLP).

Summary updated

BibTeX
@inproceedings{killamsetty2021grad,
  author = {KrishnaTeja Killamsetty and Durga Sivasubramanian and Ganesh Ramakrishnan and Abir De and Rishabh K. Iyer},
  title = {{GRAD-MATCH: Gradient Matching based Data Subset Selection for Efficient Deep Model Training}},
  booktitle = {International Conference on Machine Learning},
  year = {2021},
  url = {https://openreview.net/forum?id=-lvGXaS7cK},
}
Figure