arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2312.01898math.OCcs.LG
收藏

利用连续时间控制与摄动理论解锁最优批量大小调度

Unlocking optimal batch size schedules using continuous-time control and perturbation theory

Friedrich-Schiller-University Jena(耶拿弗里德里希·席勒大学)

Stefan Perko

AI总结:

本文通过随机微分方程近似和摄动展开,从理论上推导出SGD的最优批量大小调度,并在线性回归中验证了结果。

摘要:

随机梯度下降(SGD)及其变体几乎被普遍用于训练神经网络和拟合各种其他参数模型。在此背景下,一个重要的超参数是批量大小,它决定了在参数更新之前处理多少个样本。以往的研究已经证明了使用可变批量大小的好处。在本工作中,我们将从理论上为SGD及类似算法推导最优批量大小调度,其误差关于学习率是二次的。为实现这一目标,我们使用一族以学习率为指标参数的随机微分方程来近似参数更新的离散过程。为了更好地处理依赖状态的扩散系数,我们进一步将该族方程的解关于学习率展开为级数。利用这一框架,我们针对一大类扩散系数推导出连续时间最优批量大小调度,然后将结果应用于线性回归场景。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑