Exploring Variance Reduction in Importance Sampling for Efficient DNN Training
Takuro Kutsuna
TL;DR
This work tackles the challenge of quantifying variance reduction from importance sampling (IS) during DNN training without incurring prohibitive overhead. It develops a real-time variance-estimation framework based on traces of gradient-variance computed from IS minibatches, introduces an effective minibatch size (EMS) for automatic learning-rate adjustment, and a moving-statistics-based algorithm to estimate per-sample weights via an absolute efficiency metric $\mathcal{S}(W)$. A key innovation is the use of logit-gradient approximations to enable cheaper online estimation while preserving the essential variance characteristics; the EMAIS method then ties EMS to learning-rate scaling to preserve training dynamics. Empirical results on benchmark datasets demonstrate that EMAIS achieves lower gradient variance and higher accuracy than competing IS methods, with training times comparable to standard SGD approaches, and show compatibility with Adam. The approach offers practical benefits for variance-controlled training and suggests potential extensions to distributed settings with reduced communication overhead.
Abstract
Importance sampling is widely used to improve the efficiency of deep neural network (DNN) training by reducing the variance of gradient estimators. However, efficiently assessing the variance reduction relative to uniform sampling remains challenging due to computational overhead. This paper proposes a method for estimating variance reduction during DNN training using only minibatches sampled under importance sampling. By leveraging the proposed method, the paper also proposes an effective minibatch size to enable automatic learning rate adjustment. An absolute metric to quantify the efficiency of importance sampling is also introduced as well as an algorithm for real-time estimation of importance scores based on moving gradient statistics. Theoretical analysis and experiments on benchmark datasets demonstrated that the proposed algorithm consistently reduces variance, improves training efficiency, and enhances model accuracy compared with current importance-sampling approaches while maintaining minimal computational overhead.
