Online Batch Selection for Faster Training of Neural Networks
Ilya Loshchilov, Frank Hutter
TL;DR
The paper introduces online batch selection for stochastic gradient methods in deep learning, ranking datapoints by their latest loss and sampling batches with exponentially decaying probabilities to bias toward hard examples. This non-uniform batching is integrated with AdaDelta and Adam and evaluated on MNIST, where it yields about a fivefold speedup in training time while improving validation performance. The authors provide an analysis of computational overhead, explore hyperparameter optimization with CMA-ES, and extend the idea to related non-convex and CRF tasks, demonstrating both promise and limitations. Overall, the work suggests that simple, loss-rank-based batch selection can substantially accelerate training and invites further study on broader datasets and more sophisticated selection criteria.
Abstract
Deep neural networks are commonly trained using stochastic non-convex optimization procedures, which are driven by gradient information estimated on fractions (batches) of the dataset. While it is commonly accepted that batch size is an important parameter for offline tuning, the benefits of online selection of batches remain poorly understood. We investigate online batch selection strategies for two state-of-the-art methods of stochastic gradient-based optimization, AdaDelta and Adam. As the loss function to be minimized for the whole dataset is an aggregation of loss functions of individual datapoints, intuitively, datapoints with the greatest loss should be considered (selected in a batch) more frequently. However, the limitations of this intuition and the proper control of the selection pressure over time are open questions. We propose a simple strategy where all datapoints are ranked w.r.t. their latest known loss value and the probability to be selected decays exponentially as a function of rank. Our experimental results on the MNIST dataset suggest that selecting batches speeds up both AdaDelta and Adam by a factor of about 5.
