arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.24316cs.LG
收藏

从单次SGD到数据重用:草图线性回归中的小批量缩放定律

Scaling Laws for Dynamic Mini-Batch SGD in Sketched Linear Regression

The University of Sydney(悉尼大学)

Ziyan Chen, Zhongzhu Zhou, Ding-Xuan Zhou

AI总结:

本文通过分析单次批量SGD、有放回多次批量SGD和无放回多次批量SGD在幂律协方差谱下的风险分解,推导了草图线性回归中小批量大小的缩放定律,揭示了小批量对优化偏差、方差和波动项的影响。

摘要:

缩放定律提供了预测误差如何随计算量、模型大小和数据变化的简洁描述,但现有理论主要处理单样本SGD或完全数据重用,未明确小批量的作用。我们研究了在幂律协方差谱和目标参数源条件下的草图线性回归的批量缩放定律。我们分析了单次批量SGD、有放回多次批量SGD和无放回多次批量SGD。我们的第一个结果是风险分解:所有三种过程共享相同的不可约项和逼近项,而它们的随机项取决于采样协议。单次批量SGD分解为偏差和方差,而两种多次批量方法分解为GD偏差、GD方差和围绕公共GD参考轨迹的波动项。然后我们证明了单次和多次小批量方法的源条件缩放定律。对于单次批量SGD,小批量保留了逼近和优化偏差指数,而方差按$O(\min(M,(T_{\mathrm{eff}}γ)^{1/a})/(B T_{\mathrm{eff}}))$缩放。因此,在固定更新次数$T$下,通常的$1/B$协方差减少成立,但在单次机制中$T=N/B$,它被更短的优化视野部分抵消。对于多次批量SGD,有放回和无放回采样具有相同的逼近和GD偏差/方差项;它们仅在波动协方差前因子不同,有放回时为$1/B$,无放回时为$ρ_{N,B}=(N-B)/(B(N-1))$。因此,对于$B>1$,无放回采样噪声更小,当$B=N$时波动消失,恢复确定性梯度下降。这些结果将批量大小与计算量、数据和模型维度置于草图线性回归中相同的理论基础上。

英文摘要:

Mini-batching is central to large-scale optimization, yet its role in statistical scaling laws remains limited. We study one-pass and multi-pass batch SGD for sketched linear regression under power-law spectral and source conditions. Our analysis reveals a two-horizon phenomenon induced by warmup--stable--decay schedules: deterministic learning is governed by the full optimization trajectory, while stochastic error retains only a shorter terminal memory. For dynamic batch schedules, the individual batch sizes enter through influence-weighted summaries that measure how strongly each update affects the final risk. Consequently, batching leaves the approximation and optimization-bias laws unchanged at a fixed update horizon, but controls the one-pass variance and the multi-pass fluctuation around full-batch gradient descent. We obtain matching one-pass variance bounds and nearly matching multi-pass fluctuation bounds, recover static-batch and full-batch behavior as special cases, and derive an oracle square-root rule for allocating a fixed iteration budget. These results identify WSD horizon separation and final-risk influence as the mechanisms governing dynamic mini-batch scaling.

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

↑