跳到正文
arXiv (AI + Vision + Imaging)· Saket Gollapudi, Elisa Bertino, Sewoong Oh·· 1 天前AI 评分15

解析零阶优化中的梯度裁剪现象

Understanding Clipping In Zeroth-Order Optimization

AI 导读

研究系统分析了零阶优化中逐样本裁剪提升模型性能的现象:最优学习率η与裁剪阈值c成反比(ηc为常数),裁剪使零阶优化收敛到测试精度更高的不同解,且该现象仅在逐样本裁剪的零阶优化中出现。人工注入标签噪声的实验表明,裁剪通过对难拟合训练样本的隐式降权带来更鲁棒的预测。

正文 · 原文

arXiv:2611.33062v1 Announce Type: new Abstract: Zeroth-order optimization has emerged as a resource-efficient alternative to Stochastic Gradient Descent (SGD) when fine-tuning LLMs, thanks to the inherent low dimensionality of the loss landscape. It relies on a two-point estimate of the gradient that only accesses the function value and not the gradient, bypassing the resource-heavy backpropagation. Recently, it was accidentally discovered that per-sample clipping can improve the performance of the trained model, while running a differentially private version of zeroth-order optimization \cite{zhang2024dpzero} with a very large privacy parameter $\epsilon$ (corresponding to very little privacy). In this paper, we systematically investigate this phenomenon and demonstrate that ($i$) the optimal choice of learning rate $\eta$ is inversely proportional to the clipping threshold $c$, satisfying $\eta c =$ constant; ($ii$) clipping drives the zeroth-order optimization to a different solution with higher test accuracy; and ($iii$) this phenomenon is only observed with per-sample clipped zeroth-order optimization and not other zeroth-order alternatives that also provide robust estimates of the gradient. Further analyses with artificially injected label noise reveals that clipping leads to more robust predictions, which stems from the implicit down weighting of hard-to-fit training examples. Our code is available at https://github.com/SewoongLab/ClipZero

来源:arXiv (AI + Vision + Imaging) · arxiv.org