Understanding Clipping In Zeroth-Order Optimization
Saket Gollapudi, Elisa Bertino, Sewoong Oh
Key points
From the paper's conclusion- 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).
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
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- AutoClip-DPZO: Practical Private Clipping Selection for Differentially Private Zeroth-Order LLM Fine-TuningarXiv · 2026
- Sample-Adaptive Zeroth-Order Post-TrainingarXiv · 2026
- TeZO: Empowering the Low-Rankness on the Temporal Dimension in the Zeroth-Order Optimization for Fine-Tuning LLMs.IEEE transactions on pattern analysis and machine intelligence · 2026
- The Cost of Mismatch: Noise Amplification in Zeroth-Order Reinforcement LearningarXiv · 2026
- An Educated Guess: Deriving Statistically Aligned Gradient Estimates for Zeroth-Order OptimisationarXiv · 2026
- PAMS: Preconditioned Activation-Metric Subspace for Zeroth-Order LLM Fine-tuningarXiv · 2026