Zeroth-Order Sharpness-Aware Learning with Exponential Tilting
Xuchen Gong, Tian Li
TL;DR
This work bridges zeroth-order optimization and sharpness-aware minimization by introducing ZEST, a gradient-free framework that uses exponential tilting to form a continuum of objectives between average and max loss. It derives unbiased zeroth-order gradient estimators for the tilted SAM objective, and develops ratio-of-expectations estimators with bias-corrected variants to enable practical updates with finite perturbations. Theoretical analysis characterizes the sharpness regularizer $R_t$ under Gaussian and ball perturbations, showing how larger $t$ concentrates penalties on large Hessian eigenvalues, promoting flatter minima. Empirically, ZEST demonstrates memory-efficient training and competitive or superior generalization relative to vanilla zeroth-order baselines and first-order SAM variants across classification, QA, and language-generation tasks. The results validate exponential tilting as an effective mechanism to blend average-case robustness with curvature-aware optimization in a gradient-free setting.
Abstract
Classic zeroth-order optimization approaches typically optimize for a smoothed version of the original function, i.e., the expected objective under randomly perturbed model parameters. This can be interpreted as encouraging the loss values in the perturbation set to be small on average. Popular sharpness-aware minimization (SAM) objectives, however, typically focus on the largest loss within the neighborhood to arrive at flat minima more effectively. In this work, we connect zeroth-order optimization (and its corresponding objectives) with SAM approaches explicitly, through an exponential tilting objective that provides a smooth transition between the average- and the max-loss formulations. We explore new zeroth-order algorithms to solve a soft SAM objective parameterized by a tilting parameter $t$. We provide precise characterizations of the sharpness notions of the tilted SAM framework. Practically, our approach can be used as a gradient-free and memory-efficient alternative to SAM variants, and it achieves better generalization compared to vanilla zeroth-order baselines on a wide range of downstream tasks, including classification, multiple choice QA, and language generation.
