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

Not All Samples Are Created Equal: Deep Learning with Importance Sampling

About

Deep neural network training spends most of the computation on examples that are properly handled, and could be ignored. We propose to mitigate this phenomenon with a principled importance sampling scheme that focuses computation on "informative" examples, and reduces the variance of the stochastic gradients during training. Our contribution is twofold: first, we derive a tractable upper bound to the per-sample gradient norm, and second we derive an estimator of the variance reduction achieved with importance sampling, which enables us to switch it on when it will result in an actual speedup. The resulting scheme can be used by changing a few lines of code in a standard SGD procedure, and we demonstrate experimentally, on image classification, CNN fine-tuning, and RNN training, that for a fixed wall-clock time budget, it provides a reduction of the train losses of up to an order of magnitude and a relative improvement of test errors between 5% and 17%.

Angelos Katharopoulos, Fran\c{c}ois Fleuret• 2018

Related benchmarks

TaskDatasetResultRank
Mathematical ReasoningMATH
Accuracy15.1
882
Mathematical ReasoningSVAMP
Accuracy85.3
403
Mathematical ReasoningMathematics
Accuracy38
46
Mathematical ReasoningSIMULEQ
Accuracy65.7
30
Mathematical ReasoningNUMGLUE
Accuracy64.1
30
Mathematical ReasoningMATH
Accuracy36.1
26
Mathematical ReasoningMATHINSTRUCT Evaluation Suite In-domain and Out-of-domain
GSM8K Accuracy52.3
11
Natural Language UnderstandingSuperGLUE
Accuracy (SST2)87.94
6
Showing 8 of 8 rows

Other info

Follow for update