arXiv 论文解析零阶优化中的裁剪机制为何提升微调效果
Understanding Clipping In Zeroth-Order Optimization
搞 LLM 微调省显存的可以看看:零阶优化不用反向传播,这篇论文讲清了加裁剪为啥反而涨测试准确率,还给出 η 和 c 的反比调参公式,代码开源在 GitHub,直接能复现。
arXiv 上新论文系统研究零阶优化中的 per-sample 裁剪现象。这一现象最初在运行 DPZero(隐私参数 ε 设得极大、几乎不施加隐私约束)时被意外发现:加裁剪反而提升了训练后模型的性能。
论文给出三项核心结论:最优学习率 η 与裁剪阈值 c 满足 ηc = 常数的反比关系;裁剪会让零阶优化收敛到测试准确率更高的不同解;该现象仅出现在 per-sample 裁剪的零阶优化中,其他同样能提供稳健梯度估计的零阶替代方法中没有。零阶优化本身通过两点估计只访问函数值而不算梯度,绕开了资源消耗大的反向传播,适合微调 LLM。
注入人工标签噪声的进一步分析表明,裁剪带来更稳健的预测,机制在于隐式下调了难以拟合的训练样本权重。代码已在 GitHub(SewoongLab/ClipZero)开源。
Understanding Clipping In Zeroth-Order Optimization
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 $ε$ (corresponding to very little privacy). In this paper, we systematically investigate this phenomenon and demonstrate that ($i$) the optimal choice of learning rate $η$ is inversely proportional to the clipping threshold $c$, satisfying $η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
本条情报归属 AITOP「论文」核心栏目,重点聚焦北美前沿实验室与硅谷科技巨头。在跨区域产业观察坐标中,该动态直接关联「AI 开发者工具链、Coding Agent 与工程化实践」研究主线,反映出当前技术演进与商业落地的最新风向。涉及核心实体与技术议题包括:零阶优化、LLM微调、差分隐私、SGD,读者可通过下方标签进入对应专题页查阅历史脉络与关联对比。
信源核验说明:本文原始线索采编自「arXiv cs.LG」(@Saket Gollapudi, Elisa Bertino, Sewoong Oh),经 AITOP 多维评分管线结构化提炼。