Achieving sparse learning in high-dimensional machine learning tasks is typically handled via $\ell_0$ constrained optimization, with Hard-Thresholding Gradient Descent serving as the dominant technique. However, a significant challenge arises in "black-box" settings where first-order gradients are unavailable or computationally prohibitive to calculate.
While Zeroth-Order (ZO) optimization—which estimates gradients by perturbing inputs in random directions—is a standard surrogate, combining it with hard-thresholding has remained a long-standing puzzle. This paper introduces SZOHT (Stochastic Zeroth-Order Hard-Thresholding), demonstrating that ZO gradient estimates can indeed be successfully combined with $\ell_0$ constraints. Crucially, the authors prove that under certain conditions, the algorithm can bypass the "curse of dimensionality."
The Challenge: Gradient Error vs. Expansivity
In standard hard-thresholding, the algorithm alternates between taking a gradient descent step and applying a "truncation" operator that keeps only the $k$ largest values to enforce sparsity.
When gradients are unavailable, ZO optimization estimates them using random perturbations. These estimates are inherently noisy. The core problem is that the hard-thresholding operator is "expansive"—it can aggressively magnify small errors present in the ZO gradient estimate, potentially causing the algorithm to diverge.
Until this work, it was unclear if the noisy ZO gradient estimates could ever be accurate enough to survive the expansivity of the hard-thresholding operator.
Methodology: SZOHT
To solve this, the authors propose the SZOHT algorithm, which relies on two primary components:
- Random Support Sampling: Instead of sampling random directions from the entire $d$-dimensional space (which is prohibitively slow for large $d$), the algorithm samples a random subset of coordinates (a "support") and estimates the gradient only within that specific subset.
- The SZOHT Iteration:
- Sample a mini-batch of data.
- Estimate the gradient using $q$ random directions within the sampled support.
- Take a descent step.
- Apply the Hard-Thresholding operator to truncate the vector to its $k$ largest components.
The paper provides a rigorous theoretical analysis of the "conflict" between the error of the ZO estimator and the expansivity of the thresholding operator, deriving the theoretical minimum number of random directions ($q$) required to guarantee convergence.
Theoretical Insights: Dimension Independence
The most significant theoretical finding is that SZOHT can achieve query complexity that is independent of the total dimensionality $d$.
As shown in the theoretical comparison, in the "smooth" case, the query complexity of SZOHT is $\mathcal{O}(k \kappa^2 \log(1/\epsilon))$. Because $d$ is absent from this bound, the algorithm's speed depends primarily on the sparsity of the solution ($k$), rather than the size of the entire search space. Furthermore, by replacing convex feasible sets with the non-convex $\ell_0$ ball, the authors successfully bypass traditional "impossibility results" that usually force ZO methods to scale linearly with dimension $d$.
Experimental Validation
The authors evaluated SZOHT across three distinct domains, demonstrating its practical utility and scaling capabilities:
- Synthetic Data: Tested on a sparse quadratic function in 5,000 dimensions to validate sensitivity to the number of random directions ($q$).
- Portfolio Optimization: Applied to the OR-library (port3, port4, port5) to discover sparse, low-risk investment portfolios.
- Black-Box Adversarial Attacks: Used to generate few-pixel attacks on pre-trained models across MNIST, CIFAR-10, and ImageNet. The ImageNet task is particularly notable, as it involves optimizing over 268,000 dimensions—a scale where SZOHT successfully found sparse perturbations while competing methods struggled.
Unlike some competing methods (such as ZORO), SZOHT proved robust by not requiring the true gradient to be sparse to work effectively; it only requires the iterates to be sparse.
Limitations and Future Work
While SZOHT represents a major step forward for black-box sparse learning, it has limitations:
- Hyperparameter Sensitivity: The algorithm requires careful tuning of the number of random directions ($q$) and the sparsity level ($k$). If $q$ is set too low, the algorithm will diverge due to the expansivity conflict.
- Theoretical Assumptions: The convergence guarantees rely on Restricted Strong Convexity (RSC) and Restricted Strong Smoothness (RSS), which may not strictly hold for all highly non-convex deep learning loss landscapes.
Future research directions include exploring adaptive learning rates, integrating acceleration techniques like Nesterov momentum, and applying variance reduction to further improve query efficiency. Extending this framework to other sparse structures, such as low-rank matrices, also presents an exciting avenue for future work.
Summary updated