On the Optimal Construction of Unbiased Gradient Estimators for Zeroth-Order Optimization
Shaocong Ma, Heng Huang
TL;DR
The paper solves a long-standing bias issue in zeroth-order optimization by constructing unbiased gradient estimators that rely solely on function evaluations. It achieves this through a telescoping-series representation of directional derivatives and a carefully designed sampling scheme over perturbation indices, yielding four concrete estimators that trade off function-query cost and variance. The authors prove unbiasedness, characterize variance bounds, and identify optimal choices for perturbation sequences and sampling distributions, showing that SGD with these estimators attains the optimal $\mathcal{O}(d/\epsilon^4)$ complexity for smooth non-convex objectives. Empirically, the approach yields lower gradient-estimation error and faster convergence in synthetic tasks and language-model fine-tuning compared with standard two-point estimators, highlighting practical impact in high-dimensional or budget-constrained ZOO problems.
Abstract
Zeroth-order optimization (ZOO) is an important framework for stochastic optimization when gradients are unavailable or expensive to compute. A potential limitation of existing ZOO methods is the bias inherent in most gradient estimators unless the perturbation stepsize vanishes. In this paper, we overcome this biasedness issue by proposing a novel family of unbiased gradient estimators based solely on function evaluations. By reformulating directional derivatives as a telescoping series and sampling from carefully designed distributions, we construct estimators that eliminate bias while maintaining favorable variance. We analyze their theoretical properties, derive optimal scaling distributions and perturbation stepsizes of four specific constructions, and prove that SGD using the proposed estimators achieves optimal complexity for smooth non-convex objectives. Experiments on synthetic tasks and language model fine-tuning confirm the superior accuracy and convergence of our approach compared to standard methods.
