pith. sign in

arxiv: 1806.07353 · v1 · pith:Q3XLJWX2new · submitted 2018-06-19 · 💻 cs.LG · stat.ML

Faster SGD training by minibatch persistency

classification 💻 cs.LG stat.ML
keywords minibatchlargeminibatchespersistencyconvergencegeneralizationapproachbetter
0
0 comments X
read the original abstract

It is well known that, for most datasets, the use of large-size minibatches for Stochastic Gradient Descent (SGD) typically leads to slow convergence and poor generalization. On the other hand, large minibatches are of great practical interest as they allow for a better exploitation of modern GPUs. Previous literature on the subject concentrated on how to adjust the main SGD parameters (in particular, the learning rate) when using large minibatches. In this work we introduce an additional feature, that we call minibatch persistency, that consists in reusing the same minibatch for K consecutive SGD iterations. The computational conjecture here is that a large minibatch contains a significant sample of the training set, so one can afford to slightly overfitting it without worsening generalization too much. The approach is intended to speedup SGD convergence, and also has the advantage of reducing the overhead related to data loading on the internal GPU memory. We present computational results on CIFAR-10 with an AlexNet architecture, showing that even small persistency values (K=2 or 5) already lead to a significantly faster convergence and to a comparable (or even better) generalization than the standard "disposable minibatch" approach (K=1), in particular when large minibatches are used. The lesson learned is that minibatch persistency can be a simple yet effective way to deal with large minibatches.

This paper has not been read by Pith yet.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.

Forward citations

Cited by 1 Pith paper

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score.

  1. Generative Modeling by Minimizing the Wasserstein-2 Loss

    stat.ML 2024-06 unverdicted novelty 7.0

    Minimizing the W2 loss through a distribution-dependent ODE whose time-marginals form an exponentially convergent gradient flow, discretized via Euler scheme with persistent training that outperforms WGANs in experiments.