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

New Insight of Variance reduce in Zero-Order Hard-Thresholding: Mitigating Gradient Error and Expansivity Contradictions

Xinzhe Yuan, William de Vazelhes, Bin Gu, Huan Xiong

Finding sparse solutions to optimization problems is a cornerstone of modern machine learning—whether it's selecting the most important features in a high-dimensional dataset or creating "invisible" adversarial attacks on image classifiers. However, when you lack access to the true gradients of your model (a "zeroth-order" setting), finding these sparse solutions becomes a mathematical tightrope walk.

A new paper from ICLR 2024, "New Insight of Variance Reduce in Zero-Order Hard-Thresholding," introduces a framework that makes this walk much steadier by mitigating a fundamental conflict between gradient noise and sparsity operators.

TL;DR

The authors propose a new framework for sparse optimization in "black-box" settings where gradients are unavailable. By integrating variance reduction techniques into zeroth-order hard-thresholding, they eliminate the strict, impractical constraints of previous methods. This leads to faster convergence and more robust performance in tasks like black-box adversarial attacks.

What Problem Does This Paper Address?

The primary goal is to solve $\ell_0$-constrained optimization problems. The $\ell_0$ "norm" simply counts the number of non-zero elements in a vector; keeping this number low ensures sparsity.

Because $\ell_0$ optimization is NP-hard, researchers typically use Hard-Thresholding ($H_k$). This operator keeps the $k$ largest elements of a vector and sets the rest to zero. While effective, $H_k$ has a nasty mathematical property: it is "expansive." Unlike standard projection methods, it can actually push the optimization further away from the optimal solution if the gradient step is even slightly off.

In Zeroth-Order (ZO) optimization, we don't have the true gradient. Instead, we estimate it by poking the function in $q$ random directions and observing how the output changes. This estimate is inherently noisy.

Conceptual diagram of the conflict between ZO estimation and hard-thresholding expansivity, mitigated by variance reduction.

The Conflict: Previous state-of-the-art methods (like SZOHT) required a massive number of random directions ($q$) to keep the gradient error low enough so that the "expansivity" of $H_k$ wouldn't cause the algorithm to diverge. In many real-world scenarios, requiring such a high $q$ is computationally impractical.

Methods: The pM-SZHT Framework

To solve this, the authors introduce the pM-SZHT (p-Memorization Stochastic Zeroth-Order Hard-Thresholding) framework. The key innovation is the strategic use of Variance Reduction (VR).

Instead of relying solely on a noisy "snapshot" of the gradient at each step, the algorithm uses historical gradient information to "anchor" the current estimate. This is achieved through three specific algorithmic variations:

  1. VR-SZHT: Based on the SVRG (Stochastic Variance Reduced Gradient) approach, which uses periodic full-batch gradient estimates.
  2. SAGA-SZHT: Based on SAGA, maintaining a table of the most recent gradients for every data point.
  3. SARAH-ZHT: Based on the SARAH recursive gradient estimator.

By reducing the variance of the gradient estimate, the authors prove that the algorithm can converge even with a very small number of random directions ($q$), effectively mitigating the conflict between noise and expansivity.

Datasets and Evaluation

The researchers evaluated their algorithms on two main tasks:

  • Synthetic Ridge Regression: A controlled environment to test convergence rates and the impact of the number of random directions.
  • CIFAR-10: Used for Black-box Universal Adversarial Attacks. The goal was to find a single, sparse perturbation (only 60 pixels out of 3,072) that, when added to any image of an "airplane," would trick a pre-trained neural network into misclassifying it.

Key Insights and Ideas

  • Variance as the Stabilizer: The core realization is that the instability of hard-thresholding isn't just about the size of the gradient error, but its variance. Reducing variance allows the algorithm to tolerate noisier individual estimates.
  • Independence of $q$: Theoretically, the new algorithms eliminate the lower bound on the number of random directions ($q$). You can now use a small $q$ and still guarantee convergence—a feat impossible with standard SZOHT.
  • Query Efficiency: The paper shows that VR-SZHT significantly reduces "query complexity"—the number of times you have to ask the black-box model for an output.

Key Results

  • Faster Convergence: In ridge regression tests, the variance-reduced methods reached lower objective values much faster than the standard SZOHT, demonstrating superior efficiency.
Convergence plot showing variance-reduced methods outperforming standard SZOHT.
  • Superior Attacks: In the CIFAR-10 adversarial attack experiment, SARAH-SZHT achieved the highest success rate, successfully attacking 7 out of 10 images with a very sparse noise mask.
  • Theoretical Robustness: The authors provided a generalized convergence analysis under standard "Restricted Strong Convexity" (RSC) and "Restricted Strong Smoothness" (RSS) assumptions, proving linear convergence to a neighborhood of the optimal solution.

Limitations and Future Work

  • Memory Overhead: Methods like SAGA-SZHT require storing a table of gradients, which can be memory-intensive for very large datasets (though the authors' p-memorization framework helps manage this).
  • Smoothing Radius: The accuracy of the final solution is still limited by the "smoothing radius" ($\mu$) used in the zeroth-order estimate. If $\mu$ is too large, it introduces bias; if it's too small, it causes numerical errors.
  • Beyond $\ell_0$: While the paper focuses on $\ell_0$ constraints, the authors suggest that this variance-reduction insight could potentially be applied to other non-convex, expansive operators in the future.

Summary updated

BibTeX
@inproceedings{yuan2024new,
  author = {Xinzhe Yuan and William de Vazelhes and Bin Gu and Huan Xiong},
  title = {{New Insight of Variance reduce in Zero-Order Hard-Thresholding: Mitigating Gradient Error and Expansivity Contradictions}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=fjf3YenThE},
}
Figure