NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Zeroth-Order Regularized Optimization (ZORO): Approximately Sparse Gradients and Adaptive Sampling

HanQin Cai, Daniel McKenzie, Wotao Yin, Zhenliang Zhang · DOI

TL;DR

This paper introduces ZORO, a novel zeroth-order optimization method that tackles high-dimensional problems by exploiting "gradient compressibility" – a property where the gradient's important components decay rapidly. ZORO achieves near-linear dependence on dimension in its query complexity, significantly outperforming existing methods on synthetic and real-world tasks.

What Problem Does This Paper Address?

Many real-world optimization problems involve objective functions that are "black boxes." We can query them to get a function value at a given point, but we can't directly compute their gradients. This is common in areas like hyperparameter tuning, reinforcement learning, and adversarial attacks. Traditional methods for these "zeroth-order" or "derivative-free" optimization problems often struggle with high dimensionality, requiring a number of function evaluations that scales linearly with the problem dimension ($d$). This becomes computationally prohibitive for large-scale problems. Existing methods that try to break this curse often rely on strong assumptions like exact gradient sparsity, which are not always met in practice.

Methods

The core of ZORO lies in two main innovations:

  1. Gradient Compressibility: Instead of assuming exact sparsity (where most gradient components are zero), ZORO leverages "gradient compressibility." This means the sorted gradient components decay rapidly, allowing us to approximate the gradient using only a few dominant components. This is a weaker and more realistic assumption than exact sparsity, as demonstrated by empirical evidence.
  2. Adaptive Randomized Gradient Estimator: ZORO uses a randomized gradient estimator based on finite differences and compressed sensing (specifically, CoSaMP). This estimator is designed to efficiently recover a sparse or compressible approximation of the gradient using a limited number of queries.
  3. Inexact Proximal-Gradient Descent: The optimization itself is performed using an inexact proximal-gradient descent scheme. The "inexact" part comes from the approximate gradient estimated in the previous step. The authors also provide novel theoretical analysis for this inexact scheme, which is crucial for ZORO's performance guarantees.
  4. AdaZORO: An adaptive version, AdaZORO, is also proposed. It dynamically adjusts the number of gradient components to consider, falling back to a simpler estimator when compressibility is low, thus ensuring it doesn't lose efficiency when the compressibility assumption doesn't hold strongly.

Datasets

The paper evaluates ZORO on:

  • Synthetic Datasets:
    • A diagonal matrix quadratic function ($f(x) = x^T A x / 2$) with both exactly sparse and compressible diagonal elements.
  • A "Max-s-squared-sum" function, which has sparse gradients and can achieve any support set.
  • A "Rotated sparse quadratic function" with a sparse ground truth, where gradients are empirically compressible.
  • Real-World Datasets:
    • Asset Risk Management: A portfolio optimization problem using data from 225 assets.
  • ImageNet Adversarial Attacks: Using the Inception-V3 model on ImageNet for per-image adversarial attacks, aiming to minimize attack loss and L0 norm of distortion.

Key Insights and Ideas

  • Gradient Compressibility is Ubiquitous: The paper provides strong empirical evidence (Figures 1 and 2) that gradient compressibility is a common property in real-world optimization problems, making ZORO's core assumption more practical than strict sparsity.
  • Compressibility vs. Sparsity: ZORO's ability to handle compressibility (not just sparsity) is a significant advantage, as it allows for dense gradients where only a few components are dominant.
  • Logarithmic Dependence on Dimension: The theoretical breakthrough is showing that ZORO's query complexity can depend logarithmically on the problem dimension ($d$), a substantial improvement over the linear dependence of many prior methods. This is achieved by effectively exploiting gradient compressibility.
  • Adaptive Sampling is Crucial: The AdaZORO variant highlights that dynamically adapting the sampling strategy is important, especially as gradients might become less compressible near the optimum.

Key Results

  • Theoretical Guarantees: ZORO achieves query complexity that is only logarithmically dependent on the dimension ($O(s \log(d)/\epsilon)$ for convex functions, where $s$ is related to sparsity/compressibility). This is a significant theoretical improvement.
  • Empirical Performance:
    • On synthetic datasets, ZORO (especially with a proximal operator for non-negativity) significantly outperforms FDSA, SPSA, and LASSO in terms of queries needed to reach a target accuracy.
  • In asset risk management, AdaZORO achieved better query efficiency than SPSA, FDSA, and LASSO, even outperforming LASSO by 20%.
  • For sparse adversarial attacks on ImageNet, ZORO achieved the highest attack success rate with the lowest average L0 and L2 distortion, though with slightly more queries than some other methods.

Limitations and Future Work

  • Oracle Noise: The theoretical results have a lower bound on achievable accuracy ($\epsilon > \epsilon_0$) due to non-zero oracle noise, which is unavoidable.
  • Bounded Iterates: Analyzing the boundedness of iterates in zeroth-order optimization is a known challenge, especially for non-compact level sets. ZORO addresses this using coercivity assumptions, but this is a complex area.
  • Adaptive Sampling: While AdaZORO is proposed, its theoretical guarantees are not fully explored in this paper.
  • Future Work: The authors suggest exploring ZORO with more general noise models and potentially developing more sophisticated adaptive sampling strategies. They also note that their theoretical results for the regularized case are primarily for sparse gradients, and extending them to compressible gradients would be valuable.

Summary updated

BibTeX
@article{cai2020zeroth,
  author = {HanQin Cai and Daniel McKenzie and Wotao Yin and Zhenliang Zhang},
  title = {{Zeroth-Order Regularized Optimization (ZORO): Approximately Sparse Gradients and Adaptive Sampling}},
  journal = {SIAM J. Optim.},
  year = {2020},
  doi = {10.1137/21m1392966},
}
Figure