arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2505.08306cs.LGmath.OCstat.ML
收藏

随机凸优化中多遍随机梯度下降的快速过拟合

Rapid Overfitting of Multi-Pass Stochastic Gradient Descent in Stochastic Convex Optimization

Blavatnik School of Computer Science and AI, Tel Aviv University(塔尔塔尔大学Blavatnik计算机科学与人工智能学院);Blavatnik School of Computer Science and AI, Tel Aviv University, Google Research(塔尔塔尔大学Blavatnik计算机科学与人工智能学院,Google研究);School of Electrical & Computer Engineering, Tel Aviv University(塔尔塔尔大学电气与计算机工程学院)

Shira Vansover-Hager, Tomer Koren, Roi Livni

AI总结:

本文研究随机凸优化中多遍SGD的样本外表现,证明非光滑情形下仅增加一遍就可能严重过拟合,并给出第二遍起的损失界、有放回SGD扩展及单遍泛化间隙下界。

摘要:

我们在基础的随机凸优化(SCO)模型中研究多遍随机梯度下降(SGD)的样本外性能。已知给定大小为$n$的样本时,单遍SGD可达到最优的$Θ(1/\sqrt{n})$超额总体损失,但人们对实践中广泛使用的多遍版本算法仍知之甚少。有些令人惊讶的是,我们表明在SCO的一般非光滑情形中,仅几个epoch的SGD就已会显著损害其样本外性能并导致过拟合。具体而言,使用步长$η=Θ(1/\sqrt{n})$(该步长在单遍后给出最优速率)在仅再增加一遍后就可能导致高达$Ω(1)$的总体损失。更一般地,我们表明从第二遍起,总体损失处于$Θ(1/(ηT)+η\sqrt{T})$的量级,其中$T$是总步数。这些结果揭示了首个epoch之后SGD样本外行为中的某种相变,以及SCO光滑与非光滑情形下过拟合速率之间的鲜明分离。此外,我们将结果扩展到有放回SGD,证明在$O(n\log n)$步后同样的渐近界成立。最后,我们还证明了在维度$d=\widetilde{O}(n)$下单遍SGD的泛化间隙存在$Ω(η\sqrt{n})$的下界,改进了Koren等人(2022)和Schliserman等人(2024)近期的结果。

英文摘要:

We study the out-of-sample performance of multi-pass stochastic gradient descent (SGD) in the fundamental stochastic convex optimization (SCO) model. While one-pass SGD is known to achieve an optimal $Θ(1/\sqrt{n})$ excess population loss given a sample of size $n$, much less is understood about the multi-pass version of the algorithm which is widely used in practice. Somewhat surprisingly, we show that in the general non-smooth case of SCO, just a few epochs of SGD can already hurt its out-of-sample performance significantly and lead to overfitting. In particular, using a step size $η= Θ(1/\sqrt{n})$, which gives the optimal rate after one pass, can lead to population loss as large as $Ω(1)$ after just one additional pass. More generally, we show that the population loss from the second pass onward is of the order $Θ(1/(ηT) + η\sqrt{T})$, where $T$ is the total number of steps. These results reveal a certain phase-transition in the out-of-sample behavior of SGD after the first epoch, as well as a sharp separation between the rates of overfitting in the smooth and non-smooth cases of SCO. Additionally, we extend our results to with-replacement SGD, proving that the same asymptotic bounds hold after $O(n \log n)$ steps. Finally, we also prove a lower bound of $Ω(η\sqrt{n})$ on the generalization gap of one-pass SGD in dimension $d = \smash{\widetilde O}(n)$, improving on recent results of Koren et al.(2022) and Schliserman et al.(2024).

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

↑