arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.02701math.OCcs.LGstat.ML
收藏

通过逐样本裁剪实现鲁棒且快速的训练

Robust and Fast Training via Per-Sample Clipping

Department of Mathematics University of Vienna(维也纳大学数学系);University of Vienna(维也纳大学);RICAM Austrian Academy of Sciences(奥地利科学院RICAM)

Davide Nobile, Philipp Grohs

AI总结:

提出基于逐样本梯度裁剪的鲁棒梯度估计器PS-Clip-SGD,在重尾梯度噪声下达到非凸优化的最优期望收敛率,并给出高概率收敛保证。实验表明在CIFAR-100上训练AlexNet时优于SGD和标准裁剪,且微批裁剪可提升性能而不增加计算成本。

摘要:

我们提出了一种基于逐样本梯度裁剪的鲁棒梯度估计器,并从理论和实验两方面分析了其性质。我们表明,所得到的方法——逐样本裁剪SGD(PS-Clip-SGD)——在重尾梯度噪声下,对于非凸优化问题实现了最优的期望收敛率。此外,我们建立了高概率收敛保证,该保证与期望收敛率在失败概率的多对数因子内相匹配。我们通过多个数值实验补充了理论结果。特别地,我们证明,在CIFAR-100数据集上训练AlexNet时,即使考虑了逐样本裁剪带来的额外计算时间,PS-Clip-SGD也优于带动量的普通SGD和标准梯度裁剪。我们还实验表明,在存在梯度累积的情况下,在微批级别应用裁剪可以改善训练性能,同时几乎不增加额外计算成本。这一发现尤其有趣,因为它与仅在完成所有累积步骤后才应用裁剪的常见做法相矛盾。

英文摘要:

We propose a robust gradient estimator based on per-sample gradient clipping and analyze its properties both theoretically and empirically. We show that the resulting method, per-sample clipped SGD (PS-Clip-SGD), achieves optimal in-expectation convergence rates for non-convex optimization problems under heavy-tailed gradient noise. Moreover, we establish high-probability convergence guarantees that match the in-expectation rates up to polylogarithmic factors in the failure probability. We complement our theoretical results with multiple numerical experiments. In particular, we demonstrate that PS-Clip-SGD outperforms both vanilla SGD with momentum and standard gradient clipping when training AlexNet on the CIFAR-100 dataset, even after accounting for the additional computational time caused by per-sample clipping. We also empirically show that, in the presence of gradient accumulation, applying clipping at the mini-batch level can improve training performance while incurring virtually no additional computational cost. This finding is particularly interesting, as it contradicts the common practice of applying clipping only after all accumulation steps have been completed.

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

↑