Zeroth-Order Optimization on High-Res Images (ZO-high)
- The paper introduces ZO-high as derivative-free optimization for high-res images, tackling black-box objectives and extreme dimensionality challenges.
- It outlines specialized gradient estimators—including two-point, one-point multi-direction, and block-coordinate methods—to manage bias, variance, and high query costs.
- The design space spans hierarchical training, compressed-sensing techniques, and adaptive variance-aware updates, offering efficient strategies for deep CNNs and adversarial image attacks.
Searching arXiv for the cited papers and topic-specific context. Zeroth-order optimization on high-resolution images, often abbreviated ZO-high, denotes derivative-free optimization in image spaces whose dimensionality is determined by large spatial resolutions, typically with variables and ambient dimension . The setting is motivated by black-box objectives, non-differentiable pipelines, and regimes in which backpropagation is inaccessible or unaffordable. Its central difficulty is not merely the absence of gradients, but the interaction between image resolution, network depth, estimator variance, and query budget: coordinate-wise finite differences scale with spatial extent, random-direction estimators incur variance that grows with , and conventional layer-by-layer zeroth-order training of deep networks exhibits quadratic dependence on depth (Cao et al., 11 Feb 2026, Shu et al., 3 Feb 2025, Jin et al., 22 Oct 2025).
1. Problem class and scaling bottlenecks
The canonical zeroth-order problem is
where only function values are observable (Cai et al., 2021). In the image setting, can be very large even before any transform-domain lifting, and the effective dimension may become larger still in wavelet or continuous-wavelet representations; one reported audio-wavelet configuration reaches , while an ImageNet discrete-wavelet configuration is reported with (Cai et al., 2021).
Two scaling bottlenecks dominate ZO-high. First, high-resolution CNNs produce large feature maps , so estimating gradients for all spatial positions in standard zeroth-order schemes would require forward queries per layer (Cao et al., 11 Feb 2026). Second, in random-direction estimators the variance grows linearly in the ambient dimension. For the one-point multi-direction estimator used in R-AdaZO, the coordinate-wise variance bound is
which decreases with the number of directions 0 and increases as 1 becomes small (Shu et al., 3 Feb 2025). This creates the standard bias-variance-query trade-off: larger 2 reduces estimator variance but increases query cost, while smaller 3 reduces smoothing bias but amplifies numerical sensitivity and stochastic noise.
Depth introduces an additional, distinct obstacle. In non-hierarchical activation-space ZO for deep networks of depth 4 and average width 5, repeated long forward paths induce 6 query complexity (Cao et al., 11 Feb 2026). In high-resolution models, the depth and resolution effects compound: the optimization variable is large, the intermediate activations are spatially extensive, and the cost of each function evaluation itself scales with the input size.
2. Gradient estimators and objective formulations
A standard reference point in ZO-high is the two-point estimator
7
which estimates the gradient of a smoothed objective and is widely used in black-box optimization (Cao et al., 11 Feb 2026). R-AdaZO instead develops its theory around a one-point, multi-direction estimator with directions sampled uniformly from the sphere:
8
for which
9
The latter inequality makes explicit that smoothing bias scales with both 0 and 1 (Shu et al., 3 Feb 2025).
Coordinate and block estimators form the main alternative to random-direction methods. In the constrained block framework of ZOB-GDA and ZOB-SGDA, for a block 2 of size 3 and coordinate unit vector 4, one-sided finite differences are defined by
5
with the block estimator
6
Under this model, a single gradient step requires 7 shifted queries plus, at most, a single base evaluation, so the per-step query cost is 8 (Jin et al., 22 Oct 2025).
ZO-high objectives are often written either directly in image space or in a transform domain. A standard adversarial formulation is
9
with projection onto an 0 ball and clipping to valid pixel bounds (Shu et al., 3 Feb 2025). In the wavelet-domain attack studied with ZO-BCD, the objective is written as
1
optionally replacing the 2 term by an 3 or 4 constraint (Cai et al., 2021). These formulations are structurally different but share the same ZO constraint: the optimizer receives values, not gradients.
3. Hierarchical zeroth-order training for deep image models
Hierarchical Zeroth-Order optimization (HZO) addresses the depth bottleneck by decomposing the composite network along depth rather than perturbing the full parameter vector or propagating finite differences layer by layer. Writing
5
and, for a subnetwork,
6
HZO bisects the interval 7 at 8, computes the intermediate activation 9, estimates the Jacobian of the right subnetwork by symmetric coordinate perturbations,
0
and propagates the target signal via
1
At the leaves, it applies the local delta rule
2
The recursion reconstructs the chain rule over depth using Jacobian-target products rather than backpropagated gradients (Cao et al., 11 Feb 2026).
The main complexity result is a reduction from
3
where 4 is depth and 5 is average width. The argument is based on a balanced binary recursion over depth: at recursion level 6, the right-side path length shrinks by 7 while the number of subproblems grows as 8, leaving per-level work constant at 9 and total work 0 (Cao et al., 11 Feb 2026). This is a structural reduction in query complexity, not a mere constant-factor engineering improvement.
The stability analysis is tied to the layer-wise Lipschitz factor 1. Under 2-Lipschitz continuity and 3-smoothness, the recursive HZO error satisfies
4
Near the unitary limit, 5,
6
so cumulative error scales linearly rather than exponentially in depth (Cao et al., 11 Feb 2026). The paper associates this regime with residual connections or orthogonal or normalized initialization, and reports that HZO maintains high gradient cosine similarity, approximately 7 to 8, in deep ResNets.
For CNNs on large images, HZO adds Spatial Parallel Perturbation (SPP). If 9 is the effective receptive field in the next layer and 0 is chosen so that
1
then perturbations at those positions are independent with respect to the next layer. The reported consequence is a reduction of per-layer spatial query complexity from 2 to 3, making ZO-high effectively resolution-independent in the number of queries, although the cost of each forward pass still scales with 4 and 5 (Cao et al., 11 Feb 2026).
The empirical profile reported for HZO is training on CIFAR-10 to 6 test accuracy in 7 hours on a single NVIDIA A100 GPU, compared with a DeepZero baseline at 8 in 9 hours on 0V100, together with 1 top-1 accuracy on ImageNet-10 and gradient cosine similarity greater than 2 throughout training (Cao et al., 11 Feb 2026). The implementation notes further state that float32 is the minimum recommended precision for deep networks, float64 improves stability at increased cost, float16 leads to instability due to subtractive cancellation in finite differences, and GELU yields higher cosine similarity than ReLU.
4. Huge-scale block-coordinate and compressed-sensing methods
ZO-BCD targets the “huge-scale” regime, explicitly described as 3, where even basic vector operations on the decision variable are infeasible (Cai et al., 2021). Its starting point is that full-dimensional zeroth-order estimators are impractical: coordinatewise finite differences require 4 queries per gradient and 5 memory per iteration, while compressed-sensing full-gradient schemes still incur at least 6 memory and FLOPs in the sparse regime.
The algorithm partitions 7 into 8 blocks and updates one randomly selected block per iteration. For a chosen block 9, it uses one-sided finite differences with 0 sensing directions 1,
2
stacks them as 3, and recovers a sparse block gradient through
4
implemented via CoSaMP (Cai et al., 2021). The paper distinguishes ZO-BCD-R, which uses i.i.d. Rademacher directions, from ZO-BCD-RC, which uses rows of a circulant matrix generated by a single Rademacher seed vector. Under the stated assumptions, the total query complexity to attain an 5-optimal solution is 6 for both variants.
The block strategy is paired with an “almost equisparse” effect: if blocks are assigned by a random permutation and are equal-sized, then with high probability each block has sparsity approximately
7
which reduces per-iteration query count by approximately 8 (Cai et al., 2021). The per-iteration computational profile is then reported as 9 FLOPs and memory for ZO-BCD-R, versus 0 FLOPs and 1 memory for ZO-BCD-RC.
The circulant construction is central for ZO-high because it compresses both storage and matrix-vector multiply costs. Rather than storing a dense sensing matrix of size 2, ZO-BCD-RC stores only the seed vector and the row index set, reducing storage from 3 to 4, and it exploits FFT-based circular convolutions to accelerate the CoSaMP inner loop (Cai et al., 2021).
The image-specific results are reported in transform space. On ImageNet with Inception-v3 in a three-level Daubechies “db45” DWT domain, ZO-BCD-R achieves attack success rate 5, mean 6 distortion 7, and mean queries to first success 8; ZO-BCD-RC achieves 9, 00, and 01; and a large-coefficients-only variant with approximately 02 dimension reduction achieves 03, 04, and 05 (Cai et al., 2021). The same paper reports untargeted baselines ZO-SCD at 06 ASR with 07 distortion 08 and 09 queries, ZO-SGD at 10, 11, and 12, ZO-AdaMM at 13, 14, and 15, and ZORO at 16, 17, and 18. In targeted audio attacks using a Morse CWT representation with 19 frequencies, ZO-BCD is reported to achieve attack success rate 20, mean relative loudness 21 dB, and mean queries approximately 22 (Cai et al., 2021).
5. Adaptive variance-aware optimization in image-scale dimensions
R-AdaZO addresses a different failure mode of ZO-high: the underutilization of moment information in adaptive zeroth-order methods (Shu et al., 3 Feb 2025). Its first update is the momentum recursion
23
with no bias correction, specifically to preserve the variance-reduction effect of the first moment. The paper’s variance bound is
24
so the first moment reduces variance by the factor 25 relative to the raw ZO estimator (Shu et al., 3 Feb 2025).
The second update departs from ZO-AdaMM by replacing 26 with 27:
28
The update is then
29
The paper’s interpretation is that the refined second moment better approximates the variance-free ideal than the conventional choice based on 30, because the variance contribution to 31 is reduced from 32 to 33 (Shu et al., 3 Feb 2025). This is the basis for its variance-aware convergence framework.
The convergence statement is given for non-convex objectives under bounded value, coordinate-wise Lipschitz smoothness, and bounded evaluation variance. The final bound takes the form
34
with explicit dependence on 35, the smoothed-gradient bias, and the moment statistics (Shu et al., 3 Feb 2025). The paper states that this is the first variance-aware convergence framework for adaptive ZO methods and that R-AdaZO converges faster than ZO-AdaMM, with a speedup proportional to
36
in the variance-dominant regime.
For high-resolution images, the method retains the query profile of standard direction-based ZO: 37 function evaluations per iteration for the one-point estimator, or 38 for a two-point symmetric estimator (Shu et al., 3 Feb 2025). The reported practical guidance is to use 39, 40, small 41, and task-dependent 42; for high-dimensional images, the paper recommends 43 in 44, 45 in 46, small 47 or 48 such as 49 to 50, and structured directions such as patch-wise perturbations or block-coordinate sampling. On MNIST adversarial attacks, the reported mean iterations to success are 51k 52k for ZO-AdaMM, 53k 54k for AdaZO, and 55k 56k for R-AdaZO, corresponding to an approximately 57 speedup (Shu et al., 3 Feb 2025). Although MNIST is not high-resolution, the paper explicitly frames the method as suitable for large-58 image settings because the variance term scales with 59.
6. Constrained block ZO and the structure of query efficiency
Query-efficient constrained ZO on high-resolution images is represented by ZOB-GDA and ZOB-SGDA, which solve
60
with compact dual set
61
(Jin et al., 22 Oct 2025). The stationarity measure is built from the primal gradient and projected dual ascent:
62
and an 63-stationary point satisfies
64
The two algorithms differ in their smoothing mechanism. ZOB-GDA applies block coordinate descent-ascent directly to 65, while ZOB-SGDA introduces
66
updates 67 using the block estimator of 68, updates 69 by projected ascent on 70, and evolves the auxiliary variable by
71
The reported rates are
72
for ZOB-GDA and
73
for ZOB-SGDA (Jin et al., 22 Oct 2025). These imply overall query complexities 74 and 75 respectively.
A frequent misunderstanding in ZO-high is to treat small block size as eliminating dimension dependence. The explicit statement of the block theory is narrower: if 76, then a single step uses 77 queries, but the overall query complexity of ZOB-SGDA remains 78 because 79 still appears in the convergence rate (Jin et al., 22 Oct 2025). A related misunderstanding concerns “resolution independence.” In HZO with Spatial Parallel Perturbation, the number of Jacobian queries can become effectively independent of 80, but the cost of each forward pass still scales with 81 and 82 (Cao et al., 11 Feb 2026).
For image applications, the reported practical instantiations use contiguous patches or channel groups as blocks, for example 83 or 84, one-sided finite differences with 85 for 86, and box or 87 projections by clipping (Jin et al., 22 Oct 2025). The same source notes that if constraints such as 88 or total variation are analytic, then their block finite differences can be computed without additional black-box queries. The stated limitations are equally structural: the theory assumes smoothness and a compact dual set, random block selection is analyzed under uniform sampling rather than semantically structured patches, and variance increases when the constraints themselves are black-box and noisy (Jin et al., 22 Oct 2025).
Taken together, the current ZO-high literature separates into several complementary lines. HZO reduces depth-induced recomputation in trainable deep networks; ZO-BCD exploits sparsity and transform-domain structure in huge-scale black-box optimization; R-AdaZO improves variance handling in adaptive random-direction methods; and ZOB-SGDA formalizes the trade-off between blockwise single-step efficiency and optimal overall constrained query complexity (Cao et al., 11 Feb 2026, Cai et al., 2021, Shu et al., 3 Feb 2025, Jin et al., 22 Oct 2025). This suggests that ZO-high is best understood not as a single algorithmic family, but as a design space organized around three axes: estimator structure, geometric decomposition, and the source of scalability bottlenecks.