Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

Online Batch Selection for Faster Training of Neural Networks

About

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.

Ilya Loshchilov, Frank Hutter• 2015

Related benchmarks

TaskDatasetResultRank
Mathematical ReasoningMATH500 (test)--
922
Multi-task Language UnderstandingMMLU
MMLU Accuracy62.68
456
Multitask Language UnderstandingMMLU--
263
Mathematical ReasoningGSM8K (test)
Accuracy (ACC)77.78
76
Mathematical ReasoningAMC23 (test)
Pass@123.89
68
Science Question AnsweringScienceQA
Accuracy94.92
39
Code GenerationHumanEval
Pass@141.34
14
Multitask Language UnderstandingMMLU
Accuracy54.51
14
Science Question AnsweringScienceQA
Accuracy93.05
14
Skill-based adaptationSkill sequence (Current-stage tasks)
Current Stage Performance61.9
7
Showing 10 of 14 rows

Other info

Follow for update