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

再探梯度裁剪:随机偏差与紧收敛保证

Revisiting Gradient Clipping: Stochastic bias and tight convergence guarantees

EPFL(洛桑联邦理工学院);Inria Grenoble(法国国家信息与自动化研究所格勒诺布尔研究中心);CISPA Helmholtz Center for Information Security(CISPA亥姆霍兹信息安全中心)

Anastasia Koloskova, Hadrien Hendrikx, Sebastian U. Stich

AI总结:

该研究针对梯度裁剪收敛保证依赖特定阈值与强噪声假设的问题,推导了其与任意裁剪阈值相关的紧收敛界,证明随机场景下标准假设无法保证收敛到最优解,并通过实验验证了理论结果。

摘要:

梯度裁剪是对标准(随机)梯度下降的一种常用改进,它在每次迭代中将梯度范数限制在某个大于0的取值$c$以内。该方法被广泛应用于诸多场景,例如稳定深度学习模型的训练(Goodfellow等人,2016),或是实现差分隐私(Abadi等人,2016)。尽管裁剪机制应用广泛且原理简单,但其收敛保证往往需要特定的$c$取值以及较强的噪声假设。\n在本文中,我们给出了收敛保证,清晰呈现了收敛性与任意裁剪阈值$c$的精确依赖关系,并且证明我们的保证在确定性梯度和随机梯度场景下均是紧的。具体而言,我们证明:(i)对于确定性梯度下降,裁剪阈值仅影响收敛的高阶项;(ii)在随机场景下,即使采用任意小的步长,在标准噪声假设下也无法保证收敛到真实最优解。我们给出了运行裁剪版SGD时梯度范数收敛的匹配上下界,并通过实验验证了这些结果。

英文摘要:

Gradient clipping is a popular modification to standard (stochastic) gradient descent, at every iteration limiting the gradient norm to a certain value $c >0$. It is widely used for example for stabilizing the training of deep learning models (Goodfellow et al., 2016), or for enforcing differential privacy (Abadi et al., 2016). Despite popularity and simplicity of the clipping mechanism, its convergence guarantees often require specific values of $c$ and strong noise assumptions. In this paper, we give convergence guarantees that show precise dependence on arbitrary clipping thresholds $c$ and show that our guarantees are tight with both deterministic and stochastic gradients. In particular, we show that (i) for deterministic gradient descent, the clipping threshold only affects the higher-order terms of convergence, (ii) in the stochastic setting convergence to the true optimum cannot be guaranteed under the standard noise assumption, even under arbitrary small step-sizes. We give matching upper and lower bounds for convergence of the gradient norm when running clipped SGD, and illustrate these results with experiments.

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

↑