cs.LGNov 24, 2026

Understanding Clipping In Zeroth-Order Optimization

Authors: Saket Gollapudi, Elisa Bertino, Sewoong Oh

Organizations: University of Washington, Seattle · Purdue University

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 εε (corresponding to very little privacy). In this paper, we systematically investigate this phenomenon and demonstrate that (ii) the optimal choice of learning rate ηη is inversely proportional to the clipping threshold cc, satisfying ηc=ηc = constant; (iiii) clipping drives the zeroth-order optimization to a different solution with higher test accuracy; and (iiiiii) 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

Figures & tables

Appendix figures & tables33 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. AutoClip-DPZO: Practical Private Clipping Selection for Differentially Private Zeroth-Order LLM Fine-Tuning

    Nov 23, 2026Xinghe Chen, Haichao Sha, Zihao Wang +3Differential PrivacyPrivacy-Preserving Language Models

  2. Noise-Aware Shrinkage for Differentially Private Zeroth-Order Fine-Tuning of Large Language Models

    Aug 4, 2026Lele Zheng, Weifeng Kong, Xinyi Zhang +3Memory-Efficient Fine-TuningPrivacy-Preserving Language Models

  3. Efficient DP-SGD for LLMs with Randomized Clipping

    May 24, 2026Enayat Ullah, Sai Aparna Aketi, Devansh Gupta +2Privacy-Preserving Language ModelsDifferentially Private Stochastic Gradient Descent