Efficient Gradient Estimation via Adaptive and Importance Sampling

corentin salaun, Xingchang Huang, Iliyan Georgiev, Niloy Mitra, Gurprit SinghOpenReview 2024 · Submission to ICLR 2024 · Rejected

Abstract

Classification tasks in machine learning heavily depend on stochastic gradient descent~(SGD) for optimization. The efficiency of SGD hinges on accurate gradient estimation from a mini-batch of data samples. Adaptive or importance sampling, as opposed to the popular uniform sampling, diminishes gradient-estimation noise by constructing mini-batches that emphasize crucial data points. Prior work has shown that data points should be chosen with probability ideally proportional to the magnitude of their gradient. However, computing these magnitudes for each sample incurs a heavy computational overhead. We propose a simplified importance function that depends \textit{only} on the output layer's loss gradient. We analytically derive this loss gradient for classification problems and establish an upper bound on the loss gradient. Leveraging the proposed gradient estimation, we report enhanced convergence in various classification tasks with minimal computational overhead. We demonstrate the effectiveness of our importance-sampling strategy on image and point-cloud datasets.
BibTeX
@misc{salaun2024efficient,
  author = {corentin salaun and Xingchang Huang and Iliyan Georgiev and Niloy Mitra and Gurprit Singh},
  title = {{Efficient Gradient Estimation via Adaptive and Importance Sampling}},
  year = {2024},
  url = {https://openreview.net/forum?id=L7gQWBcFxK},
  howpublished = {OpenReview},
  note = {Submitted to ICLR 2024},
}
Figure