Fully Zeroth-Order Bilevel Programming via Gaussian Smoothing

Alireza Aghasi, Saeed Ghadimi

TL;DR

This paper introduces the first fully zeroth-order stochastic algorithm for solving bilevel optimization problems where you only have access to noisy function evaluations—no gradients allowed. By leveraging Gaussian smoothing and Stein’s identity, the authors establish the first-ever non-asymptotic convergence rates and sample complexity bounds for this challenging "black-box" setting.

What Problem Does This Paper Address?

Bilevel Programming (BLP) is a hierarchical optimization framework where one optimization problem (the "outer" loop) contains another optimization problem (the "inner" loop) as a constraint. This structure is fundamental to modern AI, appearing in meta-learning, hyperparameter tuning, and neural architecture search.

The catch? Solving BLPs is notoriously difficult because the gradient of the outer objective depends on the solution—and the second-order derivatives (Hessians)—of the inner objective. Most existing methods assume you can at least calculate gradients. However, in many real-world scenarios, such as adversarial attacks on black-box models or complex engineering simulations, we only have access to noisy function outputs (zeroth-order information).

Until now, there was a lack of a "fully" zeroth-order stochastic algorithm with proven theoretical guarantees on how many samples are needed to reach a solution.

Methods

The authors propose the Zeroth-order Double-loop Stochastic Bilevel Approximation (ZDSBA) method. Its core machinery relies on two clever mathematical pillars:

  1. Gaussian Smoothing & Stein’s Identity: To estimate gradients and Hessians without actually differentiating, the authors "blur" the functions by convolving them with a Gaussian distribution. They use a generalized version of Stein’s identity to transform simple function evaluations into unbiased estimates of first- and second-order partial derivatives.
  2. SZHIA (Stochastic Zeroth-order Hessian Inverse Approximation): A major bottleneck in bilevel optimization is calculating the inverse of the inner problem's Hessian. Instead of costly matrix inversion, the authors treat this as a separate stochastic optimization sub-problem, solving it using a zeroth-order version of Stochastic Gradient Descent (SGD).

The algorithm follows a double-loop structure: the inner loop approximates the optimal follower variable ($y$), while the outer loop updates the leader variable ($x$) using the estimated "hypergradient."

Datasets

Not discussed in the paper. This is a theoretical mathematical optimization paper focused on proving convergence rates and sample complexity. It does not include empirical evaluations on specific machine learning datasets.

Key Insights and Ideas

  • Two-Block Smoothing: Unlike standard zeroth-order methods that use a single smoothing parameter, this paper generalizes Gaussian convolution to functions with two independent blocks of variables ($x$ and $y$). This allows for fine-tuned control over the "blurring" effect for the leader and follower variables separately.
  • Hessian-Inverse via SGD: The authors show that you can approximate the product of a Hessian inverse and a gradient (the most expensive part of a bilevel gradient) using only function queries by reformulating the task as a strongly convex quadratic minimization problem.
  • Bridging the Gap: The paper successfully bridges the gap between zeroth-order optimization and bilevel programming, providing a rigorous proof that these complex problems can be solved even when the "black box" is completely opaque.

Key Results

The paper provides the first sample complexity bounds for this setting. To reach an $\epsilon$-optimal solution, the number of noisy function evaluations required is:

  • For the Outer Objective ($f$): $O\left(\frac{(n+m)^3}{\epsilon^2} \log(\frac{n+m}{\epsilon})\right)$ queries.
  • For the Inner Objective ($g$): $O\left(\frac{(n+m)^4}{\epsilon^3} \log(\frac{n+m}{\epsilon})\right)$ queries (for nonconvex outer problems).
  • Dimension Dependency: The complexity scales with the dimensions of the leader ($n$) and follower ($m$) variables, specifically around $(n+m)^3$ or $(n+m)^4$. While high, this is the first time such a bound has been established.

Limitations and Future Work

  • High Dimensionality: The current complexity bounds scale significantly with the problem dimension. The authors note that exploring alternative approaches with a "smaller share of dimensionality" is a key future research direction.
  • Query Efficiency: The number of queries required to reach high accuracy ($\epsilon$) is quite large. Future work could look into variance reduction techniques to improve the dependency on $\epsilon$.
  • Hybrid Settings: The authors suggest investigating "semi-zeroth-order" cases where first-order information might be available for only one of the two levels (e.g., you know the gradient of the outer loop but not the inner).

Summary updated

BibTeX
@article{aghasi2025fully,
  author = {Alireza Aghasi and Saeed Ghadimi},
  title = {{Fully Zeroth-Order Bilevel Programming via Gaussian Smoothing}},
  journal = {J. Optim. Theory Appl.},
  year = {2025},
  doi = {10.1007/s10957-025-02647-y},
}
Figure