Online Batch Selection for Faster Training of Neural Networks

Ilya Loshchilov, Frank Hutter
11/19/2015
371 citations
cs.LGcs.NEmath.OC

Official code: Lasagne/Lasagne (3,854 stars, Python, last commit 2022-03-26).

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

Lasagne/LasagneOfficial100%

Lightweight library to build and train neural networks in Theano

3,854929PythonSep 11, 20144 years agoNOASSERTION
deep-learning-libraryneural-networkspythontheano

Similar Papers

Cite this paper

@article{loshchilov2015online,
  title  = {Online Batch Selection for Faster Training of Neural Networks},
  author = {Ilya Loshchilov and Frank Hutter},
  year   = {2015},
  eprint = {1511.06343},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1511.06343}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1511.06343.svg)](https://codeofpaper.com/paper/1511.06343)

Discussion