曲率缩放的锐度感知最小化:超越平滑性的收敛性
Curvature-Scaled Sharpness-Aware Minimization: Convergence Beyond Smoothness
AI总结:
针对SAM类方法收敛性依赖平滑性的问题,提出曲率缩放的CS-SAM,证明其在两类平滑性下的收敛速率,实验显示其变体在计算机视觉任务中表现优于调优后的SAM与USAM。
摘要:
锐度感知最小化(SAM)已成为训练深度神经网络的广泛应用方法。尽管其应用广泛,现有SAM类方法的收敛性保证仍依赖于平滑性这一限制性假设。广义平滑性条件近期在梯度方法分析中被提出,但针对SAM的探索仍不充分。为分析广义平滑性下SAM扰动的影响,我们采用相对梯度失真来量化锐度感知方向与原始梯度的偏离程度。在$(L_0,L_1)$-平滑性下,我们证明对于SAM,该失真在平稳点附近可无界;对于其未归一化变体(USAM),该失真在大梯度处可无界,且存在SAM循环、USAM发散的示例。随后,我们建立了沿梯度的扰动实现一致失真控制的必要条件,其中扰动的非负乘数仅依赖于梯度范数。受该条件启发,我们提出曲率缩放的SAM(CS-SAM),其通过合适的曲率上界同时缩放扰动和下降步长,并证明该方法可一致地约束失真。在$(L_0,L_1)$-和$(H_0,H_1)$-平滑性下,我们针对非凸目标的最佳平方梯度范数建立确定性$\tilde{O}(1/T)$速率,针对带极小值点的凸目标的函数间隙建立最后迭代$\tilde{O}(1/T)$速率,且在Polyak-Lojasiewicz条件下实现线性收敛。当扰动为零时,我们的保证可恢复基于$(L_0,L_1)$或$(H_0,H_1)$步长的梯度下降速率。在计算机视觉任务上的小批量实验表明,CS-SAM的两种变体均具有竞争力,其中$(H_0,H_1)$变体在所有四种设置中,相较于调优后的SAM和采用常数及余弦退火调度的USAM,取得了最高的平均最佳测试准确率。
英文摘要:
Sharpness-Aware Minimization (SAM) has established itself as a widely used method for training deep neural networks. Despite its popularity, existing convergence guarantees for SAM-type methods require smoothness, a restrictive assumption. Generalized smoothness conditions have recently been proposed in the analysis of gradient methods but remain underexplored for SAM. To analyze the effect of SAM's perturbation under generalized smoothness, we use relative gradient distortion to quantify how the sharpness-aware direction departs from the original gradient. Under $(L_0,L_1)$-smoothness, we show that this distortion can become unbounded near stationarity for SAM and at large gradients for its unnormalized variant (USAM), with examples where SAM cycles and USAM diverges. We then establish a necessary condition for uniform distortion control among perturbations along the gradient whose nonnegative multipliers depend only on its norm. Motivated by this condition, we propose Curvature-Scaled SAM (CS-SAM), which scales both the perturbation and the descent step by suitable curvature upper bounds, and prove that it uniformly bounds the distortion. Under both $(L_0,L_1)$- and $(H_0,H_1)$-smoothness, we establish deterministic $\mathcal{O}(1/T)$ rates for the best squared gradient norm on nonconvex objectives, last-iterate $\mathcal{O}(1/T)$ rates for the function gap on convex objectives with a minimizer, and linear convergence under the Polyak-Lojasiewicz condition. With zero perturbation, our guarantees recover the rates for gradient descent with $(L_0,L_1)$- or $(H_0,H_1)$-based step-sizes. Minibatch experiments on computer vision tasks demonstrate competitive performance for both variants, with the $(H_0,H_1)$ variant achieving the highest mean best-test accuracy in all four settings against tuned SAM and USAM with constant and cosine annealing schedules.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。