ZO-AdaMM: Zeroth-Order Adaptive Momentum Method for Black-Box Optimization
Xiangyi Chen, Sijia Liu, Kaidi Xu, Xingguo Li, Xue Lin, Mingyi Hong, David Cox
Introduction
The development of gradient-free optimization methods has become increasingly important to solve many machine learning problems in which explicit expressions of the gradients are expensive or infeasible to obtain . Zeroth-Order (ZO) optimization methods, one type of gradient-free optimization methods, mimic first-order (FO) methods but approximate the full gradient (or stochastic gradient) through random gradient estimates, given by the difference of function values at random query points . Compared to Bayesian optimization, derivative-free trust region methods, genetic algorithms and other types of gradient-free methods , ZO optimization has two main advantages: a) ease of implementation, via slight modification of commonly-used gradient-based algorithms, and b) comparable convergence rates to first-order algorithms.
Due to the stochastic nature of ZO optimization, which arises from both data sampling and random gradient estimation, existing ZO methods suffer from large variance of the noisy gradient compared to FO stochastic methods . In practice, this causes poor convergence performance and/or function query efficiency. To partially mitigate these issues, ZO sign-based SGD (ZO-signSGD) was proposed by with the rationale that taking the sign of random gradient estimates (i.e., normalizing gradient estimates elementwise) as the descent direction improves the robustness of gradient estimators to stochastic noise. Although ZO-signSGD has faster convergence speed than many existing ZO algorithms, it is only guaranteed to converge to a neighborhood of a solution. In the FO setting, taking the sign of a stochastic gradient as the descent direction gives rise to signSGD . The use of sign of stochastic gradients also appears in adaptive momentum methods (AdaMM) such as Adam , RMSProp , AMSGrad , Padam , and AdaFom . Indeed, it has been suggested by that AdaMM enjoy dual advantages of sign descent and variance adaption.
Considering the motivation of ZO-signSGD and the success of AdaMM in FO optimization, one question arises: Can we generalize AdaMM to the ZO regime? To answer this question, we develop the zeroth-order adaptive momentum method (ZO-AdaMM) and analyze its convergence properties in both convex and nonconvex settings for constrained optimization.
Theoretically, for both convex and nonconvex optimization, we show that ZO-AdaMM is roughly a factor of worse than that of the FO AdaMM algorithm, where is the number of optimization variables. We also show that the Euclidean projection based AdaMM-type methods could suffer non-convergence issues for constrained optimization. This highlights the necessity of Mahalanobis distance based projection. And we establish the Mahalanobis distance based convergence analysis, which makes the first step toward understanding adaptive learning rate methods for nonconvex constrained optimization.
Practically, we formalize the experimental comparison of ZO-AdaMM with state-of-the-art ZO algorithms in the application of black-box adversarial attacks to generate both per-image and universal adversarial perturbations. Our proposal could provide an experimental benchmark for future studies on ZO optimization. Code to reproduce experiments is released at the anonymous link https://github.com/KaidiXu/ZO-AdaMM.
Related work
Many types of ZO algorithms have been developed, and their convergence rates have been rigorously studied under different problem settings. We highlight some recent works as below. For unconstrained stochastic optimization, ZO stochastic gradient descent (ZO-SGD) and ZO stochastic coordinate descent (ZO-SCD) were proposed, which have convergence rate, where is the number of iterations. Compared to FO stochastic algorithms, ZO optimization suffers a slowdown dependent on the variable dimension , e.g., for ZO-SGD and ZO-SCD. In , the tightness of the dimension-dependent factor has been proved in the framework of ZO stochastic mirror descent (ZO-SMD). In order to further improve the iteration complexity of ZO algorithms, the technique of variance reduction was applied to ZO-SGD and ZO-SCD, leading to ZO stochastic variance reduced algorithms with an improved convergence rate in , namely, . This improvement is aligned with ZO gradient descent (ZO-GD) for deterministic nonconvex programming . Moreover, ZO versions of proximal SGD (ProxSGD) , Frank-Wolfe (FW) , and online alternating direction method of multipliers (OADMM) have been developed for constrained optimization. Aside from the recent works on ZO algorithms mentioned before, there is rich literature in derivative-free optimization (DFO). Traditional DFO methods can be classified into direct search-based methods and model-based methods. Both the two type of methods are mostly iterative methods. The difference is that direct search-based methods refines its search direction based on the queried function values directly, while a model-based method builds a model that approximates the function to be optimized and updates the search direction based on the model. Representative methods of developed in DFO literature include NOMAD , PSWarm , Cobyla , and BOBYQA . More comprehensive discussion on DFO methods can be found in .
Preliminaries: Gradient Estimation via ZO Oracle
The ZO gradient estimate of a function is constructed by the forward difference of two function values at a random unit direction:
where is a random vector drawn uniformly from the sphere of a unit ball, and is a small step size, known as the smoothing parameter. In many existing work such as , the random direction vector was drawn from the standard Gaussian distribution. Here the use of uniform distribution ensures that the ZO gradient estimate (1) is defined in a bounded space rather than the whole real space required for Gaussian. As will be evident later, the boundedness of random gradient estimates is one of important conditions in the convergence analysis of ZO-AdaMM.
The rationale behind the ZO gradient estimate (1) is that although it is a biased approximation to the true gradient of , it is unbiased to the gradient of the randomized smoothing version of with parameter , i.e.,
AdaMM from First to Zeroth Order
Consider a stochastic optimization problem of the generic form
We specify the algorithmic framework of AdaMM by AMSGrad , a modified version of Adam with convergence guarantees for both convex and nonconvex optimization. In the algorithm, the descent direction is given by an exponential moving average of the past gradients. The learning rate is adaptively penalized by a square root of exponential moving averages of squared past gradients. It has been proved in that AdaMM can reach In the paper, we could omit in Big notation. convergence rate. Here we omit its possible dependency on for simplicity, but more accurate analysis will be provided later in Section 4 and 5.
Here we assume that , and by convention, and let by (1) with .
Why is ZO-AdaMM difficult to analyze?
The convergence analysis of ZO-AdaMM becomes significantly more challenging than existing ZO methods due to the involved coupling among stochastic sampling, ZO gradinet estimation, momentum, adaptive learning rate, and projection operation. In particular, the use of Mahalanobis distance in projection step plays a key role on convergence guarantees. And the conventional variance bound on ZO gradient estimates is insufficient to analyze the convergence of ZO-AdaMM due to the use of adaptive learning rate. In the next sections, we will carefully study the convergence of ZO-AdaMM under different settings.
Convergence Analysis of ZO-AdaMM for Nonconvex Optimization
In this section, we begin by providing a deep understanding on the importance of Mahalanobis distance used in ZO-AdaMM (Algorithm 1), and then introduce the Mahalanobis distance based convergence analysis for both unconstrained and constrained nonconvex optimization. Our analysis makes the first step toward understanding adaptive learning rate methods for nonconvex constrained optimization. Throughout the section, we make the following assumptions.
A1: has -Lipschitz continuous gradient, where .
A2: has -bounded stochastic gradient .
then Algorithm 1, initialized by , using the Euclidean projection converges to a fixed point rather than a stationary point of (6).
Proof: The proof investigates a special case of Algorithm 1, projected signSGD; See Appendix 2.1.
Proposition 1 indicates that replacing the Mahalanobis distance based projection in Algorithm 1 with Euclidean projection will lead to a divergent algorithm, highlighting the importance of using Mahalanobis distance. However, the use of Mahalanobis distance based projection complicates the convergence analysis, especially in constrained optimization. Accordingly, we define a Mahalanobis based convergence measure that can simplify the analysis and can be converted into the traditional convergence measure.
Let , , , and , the projection step of Algorithm 1 can be written in the generic form
The gradient mapping yields a natural interpretation: a projected version of at the point given the learning rate , yielding . We note that different from , the gradient mapping in (8) is defined on the projection under the Mahalanobis distance rather than the Euclidean distance.
With the aid of (8), we propose the Mahalanobis distance based convergence measure for ZO-AdaMM:
which corresponds to the squared Euclidean norm of gradient in a linearly transformed coordinate system . As will be evident later, the measure (10) can be transformed to the conventional measure for unconstrained optimization.
2 Unconstrained nonconvex optimization
We next demonstrate the convergence analysis of ZO-AdaMM for unconstrained nonconvex optimization. In Proposition 2, we begin by exploring the relationship between the convergence measure (10) and ZO gradient estimates; See Appendix 2.2 for proof.
where is picked uniformly randomly from , and by (1).
A3: is -Lipschitz continuous.
Under A3, , and given , then with probability at least ,
Suppose that A1 and A3 hold. Given parameter settings in Proposition 2 and 3, then with probability at least , ZO-AdaMM yields
3 Constrained nonconvex optimization
To analyze ZO-AdaMM in a general constrained case, one needs to handle the coupling effects from all three factors: momentum, adaptive learning rate, and projection operation. Here we focus on addressing the coupling issue in the last two factors, which yields our results on ZO-AdaMM at . This is equivalent to the ZO version of RMSProp with Reddi’s convergence fix in . When the momentum factor comes into play, the scenario becomes much more complicated. We leave the answer to the general case for future research. Even for SGD with momentum, we are not aware of any successful convergence analysis for stochastic constrained nonconvex optimization.
It is known from SGD that the presence of projection induces a stochastic bias (independent of iteration number ) for constrained nonconvex optimization. In Theorem 2, we show that the same challenge holds for ZO-AdaMM. Thus, one has to adopt the variance reduced gradient estimator, which induces higher querying complexity than the estimator (1); See Appendix 2.5 for proof.
Suppose that A1-A2 hold, , , , , and in Algorithm 1, then the convergence rate of ZO-AdaMM under (9) satisfies
where is picked uniformly randomly from , has been defined in (9), and is the smoothing function of defined in (2).
where is a mini-batch containing stocahstic samples at time , and are random direction vectors at time . We present the variance of (15) in Lemma 1, whose proof is induced from [14, Proposition 2] by using in A2.
Suppose that A1-A2 hold, then for , the variance of (15) yields
Extended Analysis of ZO-AdaMM
Suppose that , with , , and has bounded diameter , then ZO-AdaMM for convex optimization yields
where denotes the smoothing function of defined by (2), denotes the th element of the vector defined in Algorithm 1, and .
We remark that Proposition 4 would reduce to [18, Theorem 4] by replacing ZO gradient estimates and with FO gradients and . However, it was recently shown by that the proof of [18, Theorem 4] is problematic. To address the proof issue, in Proposition 4 we present a simpler fix than [39, Theorem 4.1] and show that the conclusion of [18, Theorem 4] keeps correct. In the FO setting, the rate of AdaMM under A2 for constrained convex optimization is given by [19, Corollary 4.4]. Here A2 provides the direct -upper bound on and , and we consider worst-case rate analysis without imposing extra assumptions like sparse gradientsThe work showed the lack of sparsity in gradients while generating adversarial examples.. In the ZO setting, we need further bound and and link to , where the former is achieved by Proposition 3 and the latter is achieved by the relationship between and its smoothing function shown in Lemma A1-(a), yielding . Thus, given and assuming conditions in Proposition 3 hold, then the rate of ZO-AdaMM becomes , which is worse than the AdaMM.
Comparison with other ZO methods
Since the existing convergence analysis for different ZO methods is built on different problem settings and assumptions. The direct comparison over the convergence rates might not be fair enough. Thus, in Table 1 we compare ZO-AdaMM with others ZO methods from perspectives: a) the type of gradient estimator, b) the setting of smoothing parameter , c) convergence rate, and d) function query complexity.
Table 1 shows that for unconstrained nonconvex optimization, the convergence of ZO-AdaMM achieves worse dependency on than ZO-SGD , ZO-SCD and ZO-signSGD . However, it has milder choice of than ZO-SGD, less query complexity than ZO-SCD, and no -independent convergence bias compared to ZO-signSGD. Also, for constrained nonconvex optimization, ZO-AdaMM yields the similar rate to ZO-ProxSGD , which also implies ZO projected SGD (ZO-PSGD). For constrained convex optimization, the rate of ZO-AdaMM is worse than ZO-SMD but ours has the significantly improved dimension-dependency in . We also highlight that at the first glance, ZO-AdaMM has a worse -dependency (regardless of choice of ) than ZO-SGD. However, even in the FO setting, AdaMM has an extra dependency in the worst case due to the effect of (coordinate-wise) gradient normalization when bounding the distance of two consecutive updates. Thus, in addition to comparing with different ZO methods, Table 1 also summarizes the convergence performance of FO AdaMM. Note that our rate yields slowdown compared to FO AdaMM though bounding ZO gradient estimate norm requires stricter assumption.
Applications to Black-Box Adversarial Attacks
In this section, we demonstrate the effectiveness of ZO-AdaMM by experiments on generating black-box adversarial examples. Our experiments will be performed on Inception V3 using ImageNet . Here we focus on two types of black-box adversarial attacks: per-image adversarial perturbation and universal adversarial perturbation against multiple images . For each type of attack, we allow both constrained and unconstrained optimization problem settings. We compare our propos ed ZO-AdaMM method with existing ZO algorithms: ZO-SGD, ZO-SCD and ZO-signSGD for unconstrained optimization, and ZO-PSGD, ZO-SMD and ZO-NES for constrained optimization. The first methods have been summarized in Table 1, and ZO-NES refers to the black-box attack generation method in , which applies a projected version of ZO-signSGD using natural evolution strategy (NES) based random gradient estimator. In our experiments, every method takes the same number of queries per iteration. Accordingly, the total query complexity is consistent with the number of iterations. We refer to Appendix 4 for details on experiment setups.
Universal adversarial perturbation
Conclusion
In this paper, we propose ZO-AdaMM, the first effort to integrate adaptive momentum methods with ZO optimization. In theory, we show that ZO-AdaMM has convergence guarantees for both convex and nonconvex constrained optimization. Compared with (first-order) AdaMM, it suffers a slowdown factor of . Particularly, we establish a new Mahalanobis distance based convergence measure whose necessity and importance are provided in characterizing the convergence behavior of ZO-AdaMM on nonconvex constrained problems. To demonstrate the utility of the algorithm, we show the superior performance of ZO-AdaMM for designing adversarial examples from black-box neural networks. Compared with state-of-the-art ZO methods, ZO-AdaMM has the fastest empirical convergence to strong black-box adversarial attacks that require the minimum distortion strength.
References
Appendix
Smoothing Function and Random Gradient Estimate
If has -Lipschitz continuous gradient, then
Proof: We refer readers to [30, Lemma 4.1] for the detailed proof of a)-b) except the Lipschitz continuity of and (18). Suppose that is -Lipschitz continuous, based on the definition of in (2), we obtain
where the first equality holds due to (2), Jensen’s inequality and Lipschitz continuity of , and the last equality holds since [30, Lemma 6.3.a].
In Lemma A1, it is clear from (20) and (21) that the ZO gradient estimate (1) becomes unbiased to the true gradient only when . However, if is too small, then the difference of empirical function values is also too small to represent the function differential . Thus, the tolerance on the smoothing parameter is an important factor to indicate the convergence performance of ZO optimization methods. It is also known from (22) that regardless of the value of , the variance of the ZO gradient estimate is always proportional to the dimension . This is one of reasons for the dimension-dependent slowdown in convergence of ZO optimization methods. This also introduces technical difficulties for analyzing the effect of adaptive learning rate on the convergence of ZO-AdaMM in nonconvex optimization.
Proof for Nonconvex Optimization
Let us consider a special case of Algorithm 1 with the average ZO gradient estimate under , and . The conditions of enables Algorithm 1 to reduce to ZO-signSGD in , and the conditions of and makes the ZO gradient estimate unbiased to and its variance close to [14, Proposition 2]. As a result, we obtain , and Algorithm 1 becomes signSGD ,
Let in (6). We then run (23) at , which yields
where encodes the constraint .
It is clear that the updating rule (24) will converge to regardless of the choice of . The remaining question is whether or not it is a stationary point. Recall that a point is a stationary point if it satisfies the following conditions:
Since the gradient at is , and the inequality (25) at does not hold, given by . This implies that is not a stationary point of problem (6).
Next, we apply the Mhalanobis distance to (23),
Similar to (23), we then consider the impact of fixed point on (26). By the definition of projection operator, we have
The optimality condition of (27) is given by
It thus means that is a stationary point by (25).
2 Proof of Proposition 2
Before proving the main result Proposition 2, we first prove a few auxiliary lemmas.
Given from Algorithm 1, consider the sequence
Proof of Lemma 2.1: The proof follows from Lemma 6.1 in by setting .
Proof of Lemma 2.2: By smoothness of function , we can have
Summing from to and take expectation, we get
Assume and , By ZO-AdaMM update rule, we have
Proof of Lemma 2.3: By Lemma 2.1, we have
The upper bound on can be proved by a simple induction. Recall that , suppose , we have
Then since , we have , which completes the induction.
Sum from 1 to and take expectation over randomness of , we have
where the last inequality follows from following facts.
1. Since , we know is non-decreasing. Given the fact that is non-increasing (by our choice), we have . Thus, following inequality holds.
Assume , ZO-AdaMM yields
Comment:This is an important lemma for ZO-AdaMM, it shows the squared update quantity is not dependent on size of stochastic gradient, thus giving a tighter dependency on compared with .
Proof of Lemma 2.4: By the update rule, we have
where the second inequality is due to Cauchy-Schwarz and .
Proof of Proposition 2: Substitute (41) and (2.3) into (30), we get
Rearrange and assume , we get
Set and divide both sides by , uniformly randomly pick from 1 to ,
Since . By Lemma A1, we have
Substituting into finishes the proof.
3 Proof of Proposition 3
Let , and by the assumption of we have . Thus, we obtain from (46) that
Recall that the ZO gradient estimate is given by the form
By Lipschitz of under A2, the th coordinate of the ZO gradient estimate (48) is upper bounded by . Since is drawn uniformly randomly from a unit sphere, by (47) we have
Also, since , based on (49) we obtain that
Substituting into (50), we have
Then by the union bound and (51), we have
which implies the inequality (12).
4 Proof of Theorem 1
The idea is to prove a similar result as Proposition 2 conditioned on the event in Proposition 3 (). Thus, the proof follows the same flow as Proposition 2. The difference is that (40) does not hold conditioned on the event and more efforts are need to bound the corresponding term in (40). Denote the event that to be , we need to upper bound
By Proposition 3, we know and using the fact that for any event and its complimentary event , we have
where the first inequality is due to and , the second inequality is due to (1) and Lipschitz continuity of .
Replacing (40) with (2.4) and going through the rest of the proof of Proposition (2), one can finally get
Since in the event of , we have
Substituting the above inequality into (2.4), we get the desired result.
5 Proof of Theorem 2
To proceed into proof of Theorem 2, we give a few technical lemmas for the properties of (8).
For any symmetric , we have
Proof of Lemma 2.5: By definition of , the optimality condition of (7) is
Let and be given by (7) with replaced by and , with , we have
where is the minimum eigenvalue of .
Proof of Lemma 2.6: By definition of , the optimality condition of (7) is
Summing up the above two inequalities, we get
Further, by (60) and Cauchy-Schwarz, we also have
which gives (59). This completes the proof.
The following lemma characterizes the difference between projected points if different distance matrices are used in ZO-AdaMM.
Assume , ZO-AdaMM yields
Proof of Lemma 2.7: Recall the optimality condition of (7) is
which implies (by using Cauchy-Swartz on the left hand side and then squaring both sides)
where (a) is due to and (b) is due to Lemma 2.6 by treating . Substituting (8) into LHS of the above inequality and rearrange, we get (61). This completes the proof.
Now we are ready to prove our main theorem.
We start with standard decent lemma in nonconvex optimization. By Lipschitz smoothness of , we have
We need to upper bound RHS of the above inequality and split out a descent quantity.
where the inequality is by Lemma (2.5) and some simple substitutions.
Further, for the last term in RHS of (2.5) we have
Next, we bound the three terms in RHS of (2.5).
Let’s bound term first, with the assumption , by Lemma 2.6, (8) and Cauchy-Schwartz inequality, we have:
Substituting the above bounds for A and C, into (2.5) and (2.5), using Young’s inequality on term B, we have
What remains is to bound the term which is given by Lemma 2.7.
where the second inequality is by (8) and Lemma (2.6)
Summing over from 1 to , setting , and dividing both sides by , we get
where the last inequality holds since .
Uniformly randomly picking from to and substituting (2.5) into (2.5) finishes the proof.
Proof for Convex Optimization
We follow the analytic framework in [18, Theorem 4] Based on Lemma A1, we obtain that defined in (2) (with respect to ) is convex. The convexity of yields
Further, recall that , where for ease of notation, let denote the Euclidean norm. Applying [18, Lemma 4] to ZO-AdaMM, we obtain that
Rearranging the above inequality, and using the Cauchy-Schwarz inequality for , we obtain
Taking the sum over for (3.1), we obtain
where we have used the facts that and .
We next bound term in (3.1). Based on (4), we can directly apply [18, Lemma 2] to obtain that
Furthermore, we bound term in (3.1). Based on (4), we obtain that
where we have used the fact that given in Algorithm 1. The last term in (3.1) can be further derived via (4),
where the first inequality holds due to Cauchy-Schwarz inequality and for , the second inequality holds due to , and the third inequality holds due to and . Based on (3.1), we then applies the proof of [18, Lemma 2], which yields
Substituting (83) and (86) into (3.1), we obtain that
We remark that it was shown in that the proof in to bound the term is problematic. Compared to , we propose a simpler fix to bound when . We rewrite in (3.1) as
Further, the first term in RHS of (3.1) can be bounded as
where the inequality (a) holds since and , and the inequality (b) holds due to and . Substituting (3.1) into (3.1), we obtain that
where the last inequality holds since and .
We highlight that although the proof on bounding in [18, Theorem 4] is problematic, the conclusion of [18, Theorem 4] keeps correct.
Substituting and into (3.1), we obtain that
In (3.1), since is a concave function, the Jensen’s inequality yields
Substituting (93) into (3.1) and (79), we complete the proof.
Supplementary Material of Experiments
It is known that DNN-based image classifiers are vulnerable to adversarial examples—one can carefully craft images with imperceptible perturbations (a.k.a. adversarial perturbations or adversarial attacks) that can fool image classifiers even under a black box threat model, where details of the model are unknown to the attacker .
We focus on two problem settings of black-box adversarial attacks: per-image adversarial perturbation and universal adversarial perturbation. Let () denote a legitimate image with the true label , where is the total number of image classes. And let denote an adversarial example, where is the adversarial perturbation. Our goal is to design for a single image or multiple images . Spurred by , we consider the optimization problem
In problem (96), if , then it becomes our first task to find per-image adversarial perturbations. If , then the problem corresponds to the task of finding universarial adversarial perturbations to images. Problem (96) yields a constrained formulation for the design of black-box adversarial attacks. Since some ZO algorithms are designed only for unconstrained optimization (see Table 1), we also consider the unconstrained version of problem (96) ,
The experiments of generating black-box adversarial examples will be performed on Inception V3 under the dataset ImageNet . We will compare the proposed ZO-AdaMM method with existing ZO algorithms, ZO-SGD , ZO-SCD and ZO-signSGD for unconstrained optimization, and ZO-PSGD , ZO-SMD and ZO-NES for constrained optimization. The first methods have been summarized in Table 1, and ZO-NES refers to the black-box attack generation method in , which applies a projected version of ZO-signSGD using natural evolution strategy (NES) based random gradient estimator. In all the aforementioned ZO algorithms, we adopt the random gradient estimator (15) and set and so that every method takes the same query cost per iteration. Accordingly, the total query complexity is consistent with the number of iterations.
In Fig. A1, we show the influence of exponential averaging parameters and on the convergence of ZO-AdaMM, in terms of the converged total loss while designing the per-image (ID in ImageNet) and universal adversarial attack. As we can see, the typical choice of is no longer the empirically optimal choice in the ZO setting. In all of our experiments, we find that the choice of and performs well in practice. In Table A1 and A2, we present the best learning rate parameter founded by greedy search at each experiment, in the sense that the smallest objective function (corresponding to the successful attack) is achieved given the maximum number of iterations .
2 Per-image black-box adversarial attack
We consider the task of per-image adversarial perturbation by solving problems (96) and (99), where and . In ZO-AdaMM (Algorithm 1), we set , , , and . Here the exponential moving average parameters are exhaustively searched over ; see Fig. A1-(a) & (b) in Appendix 4 as an example. In ZO-AdaMM, we also choose a decaying learning rate with . For fair comparison, we use the decaying strategy for all other ZO algorithms, and we determine the best choice of by greedy search over the interval ; see Table A1 in Appendix 4 for more results on selecting .
3 Universal black-box adversarial attack
In this experiment, we solve the constrained problem (96) for designing a universal adversarial perturbation , where we attack images with the true class label ‘brambling’ and we set in (96). The setting of algorithmic parameters is similar to Appendix 4.2 except . For ZO-AdaMM, we choose , , and , where the sensitivity of exponential moving average parameters is shown in Fig. A1-(c). For the other ZO algorithms, we greedily search over and choose the value that achieves the best convergence accuracy as shown in Table A2.
In Fig. A2, we visualize the pattern of universal adversarial perturbation obtained from different methods. As we can see, the resulting universal perturbation pattern identifies the most discriminative image regions corresponding to the true label ‘brambling’. We also observe that although each method successfully generates the black-box adversarial example, ZO-AdaMM yields the strongest attack that requires the least distortion strength.