Unlocking optimal batch size schedules using continuous-time control and perturbation theory
Author:
Preprint
Abstract
Stochastic Gradient Descent (SGD) and its variants are almost universally used to train neural networks and to fit a variety of other parametric models. An important hyperparameter in this context is the batch size, which determines how many samples are processed before an update of the parameters occurs. Previous studies have demonstrated the benefits of using variable batch sizes. In this work, we will theoretically derive optimal batch size schedules for SGD and similar algorithms, up to an error that is quadratic in the learning rate. To achieve this, we approximate the discrete process of parameter updates using a family of stochastic differential equations indexed by the learning rate. To better handle the state-dependent diffusion coefficient, we further expand the solution of this family into a series with respect to the learning rate. Using this setup, we derive a continuous-time optimal batch size schedule for a large family of diffusion coefficients and then apply the results in the setting of linear regression.Keywords
All Related Versions
This publication has 7 references indexed in Scilit:
- Causal optimal transport and its links to enlargement of filtrations and continuous-time stochastic optimizationStochastic Processes and their Applications, 2020
- Three Algorithms for Solving High-Dimensional Fully Coupled FBSDEs Through Deep LearningIEEE Intelligent Systems, 2020
- A Continuous-Time Analysis of Distributed Stochastic GradientNeural Computation, 2020
- Optimization Methods for Large-Scale Machine LearningSIAM Review, 2018
- Sample size selection in optimization methods for machine learningMathematical Programming, 2012
- Hybrid Deterministic-Stochastic Methods for Data FittingSIAM Journal on Scientific Computing, 2012
- Continuous-time Stochastic Control and Optimization with Financial Applications2009