WorksComputer Science
Mitigating Black-Box Score-Based Query Attacks via Gradient Confusion
Abstract
Score-based black-box adversarial attacks pose a serious threat to deployed machine learning systems by exploiting repeated model queries to craft adversarial examples, requiring neither access to model parameters nor architecture. Existing defenses predominantly rely on stochastic output perturbations, which fail to prevent determined attackers from recovering stable gradient estimates by increasing query budgets or averaging over randomness. In this work, we propose the Gradient Confusion Defense (GCD), a retraining-free, deterministic test-time wrapper that actively shapes the probability vector returned to querying adversaries. By solving a constrained optimization problem grounded in the model's Jacobian, GCD aligns the exposed logit-gradient with a target confusion direction that is maximally misaligned with the true adversarial loss gradient—increasing the query complexity of attacks without sacrificing predictive utility or top-1 accuracy. We provide rigorous theoretical analysis demonstrating that GCD provably slows gradient-estimation-based attacks and induces systematic accept/reject errors in random search-based attacks, with the confusion effect amplifying as the fraction of defended queries increases. Extensive experiments on CIFAR-10 and ImageNet across multiple architectures (ResNet-18, ResNet-50, ViT-B/16) and four state-of-the-art attacks confirm these predictions: GCD achieves state-of-the-art robustness, while incurring zero clean accuracy degradation. %Crucially, unlike randomization-based defenses, GCD's deterministic structure provides resilience against adaptive attacks that exploit stochasticity, making it well-suited for security-critical deployment settings.
Introduction
Modern machine learning systems are often deployed via remote interfaces (e.g., cloud APIs and online services), where users interact with models only through query access. In this setting, standard white-box threat assumptions [33, 14, 23, 6, 4, 21] are frequently unrealistic, yet query-based black-box attacks remain highly effective even without access to model parameters, gradients, or training data [18, 2, 3, 11, 15, 19, 28, 7, 8, 29] (Vo et al. 2024). By adaptively probing the model and observing outputs, adversaries can craft adversarial examples under practical query budgets, making black-box robustness a core requirement for secure and trustworthy deployment.
Query-based black-box attacks are commonly divided into decision-based attacks [11, 7, 8, 29], which rely only on predicted labels and search for the decision boundary, and score-based attacks [3, 2, 15, 19] (Vo et al. 2024), which use logits or class probabilities to estimate gradients via finite-difference or search-based strategies. In practice, score-based attacks are typically more query-efficient and achieve higher success rates, posing a serious risk to deployed classifiers that must return confidence scores. As a result, a large body of work (Qin et al., 2021; Xie et al., [38]; He et al., 2019; Chen et al., [10]; Aithal and Li, [1]; Dashtbani et al., [13]; Hung-Quang et al., [17]; Wang et al., [37] have proposed defenses, most of which introduce randomness into model responses (Qin et al., [26]; Aithal and Li, [1]; Dashtbani et al., [13]; Hung-Quang et al., [17]). While such methods can increase variance or slow optimization, they do not explicitly control the gradient signal exposed through outputs, allowing attackers to average over randomness (Athalye et al., [5]) or increase the query budget to recover stable estimates when meaningful scores must be preserved.
In this work, we revisit black-box defense from a different perspective and ask: What gradient signal should a model expose to an adversary? Instead of relying on stochastic perturbations, we propose to actively manipulate the gradient information inferred from model outputs. Our goal is not merely to add noise, but to deliberately bias the gradient estimates or search directions that score-based attacks attempt to recover, steering them away from directions that reduce the classification margin.
We study the problem of defending a fixed, pretrained target classifier against query-based black-box adversaries while preserving correct predictions and usable score outputs. We introduce a deterministic test-time response wrapper that modifies the returned probability vector without altering the classifier itself or its training procedure. The core idea is gradient confusion: we deliberately shape the output scores so that the induced adversarial loss gradient’s direction deviates from the true adversarial loss gradient that score-based attacks seek to estimate. Using the loss gradients and Jacobian of the model’s logits, we derive an analytic target direction that misaligns the attacker’s search direction or estimated gradient, thereby increasing the number of queries required for successful adversarial example generation.
Building on a target confusion direction, we introduce the Gradient Confusion Defense (GCD), which formulates a constrained optimization problem over output probabilities to explicitly control the gradient signal exposed to score-based black-box attackers. GCD enforces three principled constraints at test time: exact preservation of the top-1 prediction to maintain clean accuracy, a bounded distortion on the returned probability vector to preserve the utility of confidence scores, and alignment of the exposed logit-gradient with a target confusion direction rather than the true gradient.
The main contributions of this work are threefold.
We propose the Gradient Confusion Defense (GCD), a practical, retraining-free test-time defense that explicitly controls the gradient signal exposed through model outputs in the score-based black-box threat model.
We theoretically analyze how GCD forces the adversary to issue more queries to generate a successful adversarial example using gradient estimation-based and search-based attacks.
Extensive experiments show that GCD substantially reduces attack success rates while preserving clean accuracy, and further validate our theoretical analysis and demonstrate the effectiveness of our defense against several state-of-the-art query-based and adaptive attacks.
Related Works
Score-based query attacks. Query-based black-box adversarial attacks craft adversarial examples using only repeated queries to a deployed model, without access to parameters or gradients. These attacks are typically divided into score-based methods (Andriushchenko et al., [3]; Al-Dujaili and O’Reilly, [2]; Guo et al., [15]; Ilyas et al., [19]; Vo et al., 2024; Reza et al., [28]; Ilyas et al., [18]; Chen et al., [9]), which leverage logits or class probabilities, and decision-based methods (Cheng et al., [11]; Chen and Gu, 2020; Chen et al., [8]; Reza et al., [29]), which use only predicted labels and are often less query-efficient. Early score-based attacks estimated gradients via zero-order optimization and finite-difference style approximations (Chen et al., [9]; Ilyas et al., [18, 19]), while later work emphasized search-based strategies that can be highly query-efficient (Andriushchenko et al., [3]; Al-Dujaili and O’Reilly, [2]). Bandit-TD (Ilyas et al., [19]) frames gradient estimation as a bandit optimization problem and exploits temporal correlation of successive gradients and spatial structure in images. SquareAttack (Andriushchenko et al., [3]) performs randomized search using localized square-shaped perturbations, accepting only loss-decreasing proposals, yielding strong practical query efficiency. BruSLeAttack (Vo et al., 2024) targets sparse () perturbations by searching over a reduced set of pixel locations to replace with values from a fixed synthetic image, and uses a Bayesian strategy guided by historical pixel-manipulation outcomes to improve query efficiency.
Black-box defenses. A foundational line of defense is adversarial training (AT) (Tramèr et al., [34]; Salman et al., [31]; Rice et al., [30]), which empirically improves robustness by training on adversarially perturbed samples. Extensions incorporate data augmentation (Rebuffi et al., [27]), denoising (Salman et al., [32]), and ensembling (Liu et al., [20]), but AT often remains costly and can reduce clean accuracy; moreover, many such defenses primarily target white-box threats and can be brittle under obfuscated-gradient effects (Athalye et al., [4]). For query-based threats, defenses commonly aim to disrupt the attacker’s ability to recover stable gradients from outputs, typically via randomization or output/logit manipulation. AAA [10] explicitly optimizes returned logits to confound the attacker by wrapping the original loss with a surrogate that preserves similar degradation behavior while inducing opposite gradient slopes, thereby steering optimization toward incorrect directions. RLS [13] randomizes the effective scale of logits by multiplying them with a random coefficient, which empirically degrades gradient estimation and slows attacks. Boundary defense [1] injects noise into the model’s output to hinder convergence, and RND [26] injects noise at the input level, both aiming to increase the query complexity required for successful attacks.
Preliminaries
Let be the input space, and let denote the label set. A classifier outputs a probability vector , where denotes the logits and is the softmax function. Here, denotes the probability simplex. Let denote the true label of input . For simplicity, we denote .
Attacks and perturbations. An adversarial example for a sample with corresponding label is generated by adding a perturbation to . Typically, the norm of the perturbation is bounded so as not to change the ground-truth label of . Formally, an adversarial example is defined as , such that , where is the perturbation budget, and the classifier misclassifies (untargeted attack: ) or predicts a target class (targeted attack: ).
There are two strategies for generating adversarial examples in the black-box setting: transfer-based [25] and query-based [9]. In the query-based setting (our focus), the adversary can adaptively query the model up to a budget that bounds the number of query the adversary can perform. Each query returns either (i) a score or probability vector (score-based setting) or (ii) only the predicted label (decision-based setting). We focus on score-based black-box attacks, as they are generally stronger than decision-based attacks and harder to defend [18]. Query-based black-box attacks typically optimize an adversarial loss using only the model’s outputs.
Adversarial Loss. To attack the black-box target classifier , the following adversarial loss function has been widely used in score-based attacks [9, 18, 26]:
where and denote the indices of the largest and second-largest components of the probability vector , respectively. Decreasing encourages the top prediction (typically the correct label) to lose confidence relative to its strongest competitor. There are two common approaches for minimizing : gradient estimation (Zero-Order Optimization) and random search.
Gradient estimation (Zero-Order Optimization) The most prominent approach for generating adversarial examples is to update the input in the opposite direction of the gradient of the adversarial loss function with respect to the input, , so as to decrease the adversarial loss. Since the attacker cannot directly access the model’s parameters or the gradient , it instead estimates the gradient using only the model’s outputs. A gradient estimator that is widely used in score-based attacks [18, 24, 26] is given by
where and is a small smoothing parameter. In this setup, the adversary queries the model at points in a neighborhood around the input . As a result, they effectively observe a Gaussian-smoothed version of the loss function, denoted by . The attacker then performs Projected Gradient Descent (PGD) steps based on while respecting the input perturbation constraint:
where is step size at iteration t, and denotes projection onto the -ball of radius , i.e., . Each step of PGD requires one query to the target model. Increasing the number of steps required for PGD to converge increases the query complexity of the attack.
Random-search. Random search is an iterative method for minimizing the adversarial loss function. Let denote the step size (i.e., the perturbation magnitude used by the search rule). At iteration , given the current iterate , the attacker samples a search direction from a predefined distribution (e.g., Gaussian directions or structured perturbations), and evaluates the candidate . If this perturbation decreases the adversarial loss in (1), the attacker updates ; otherwise, . This type of random-search (hill-climbing) rule is commonly used in query-based black-box attacks [15, 3, 19]. Using the adversarial loss , the one-step improvement signal is defined as
If , then moving along decreases the loss and is therefore considered a useful attack direction. Accordingly, the accepted update is given by
where denotes the indicator function.
Gradient Confusion Defense (GCD)
In score-based black-box attacks, the adversary minimizes the loss in (1) using only the model output . Gradient Confusion Defense (GCD) disrupts this process by returning a modified output instead of , increasing the number of queries needed to succeed (potentially exceeding the budget ). GCD constructs from and while preserving utility by keeping small and ensuring . For analysis, we introduce a hypothetical model with , and drop the dependence on in notation.
Since the adversary only sees the output of the defended target model by the gradient confusion method, their adversarial loss function transforms to:
where and denote the indices of the largest and second-largest components of the probability vector , respectively. The gradient confusion solves the following minimization problem to compute :
where is the distortion budget. The GCD minimization problem addresses two objectives. (i) Confusion: Minimizing misaligns the adversary’s estimated gradient from the true gradient . This increases the query cost of gradient-estimation attacks and can mislead random-search attacks by flipping the sign of . Theorems 4.3 and 4.4 in § 4.1 provide theoretical support, and Section 5 validates GCD empirically. (ii) Utility: The constraint (equivalently ) keeps close to , preserving predictive performance. Section 4.2 details how we solve (7).
Theoretical Analysis
In this section, we theoretically show that solving the optimization problem in (7) increases the model’s resistance to score-based black-box attacks. To incorporate the crafted loss function , we define a randomized defended objective:
where is drawn independently for each query. This theoretical model allows us to formalize the effect of on the optimization problem faced by the adversary.
Under mild assumptions, we show that using increases the number of steps required by gradient-estimation-based attacks and misleads search-based attacks. Consequently, it confuses the adversary and increases the number of queries required to craft an adversarial input. Moreover, we argue that setting maximizes this confusion effect.
Assumption 4.1. The loss functions and are Lipschitz continuous with constants and , respectively.
Assumption 4.2. The loss functions and are smooth, meaning their gradients are Lipschitz continuous with constants and , respectively.
Gradient Estimation-Based Attacks
Gradient estimation-based attacks approximate gradients using function evaluations (e.g., (2)) and update the input via projected gradient descent (e.g., (3)). Thus, the adversary applies (projected) gradient descent to minimize the adversarial loss. The number of queries performed by the adversary is denoted by , which corresponds to the number of optimization steps. In theory, the adversary is considered to have succeeded in optimizing the adversarial loss function if the norm of its gradient is sufficiently small at the final iterate. Thus, to analyze the adversary’s optimization procedure, we need to bound the gradient norm. In our framework, using (8), the gradient estimator is driven by rather than .
Theorem 4.3. Suppose Assumption 4.1 holds. Consider zero-order optimization using the gradient estimator driven by , with smoothing parameter , for iterations and constant step size . If, for all , it holds that , where is a small constant, then the following bound holds:
Here, denotes the perturbation budget, is a small constant ensuring that is close to , and the expectation is taken over the randomness of the optimization process up to iteration .
The detailed proof of Theorem 4.3 is provided in Appendix B. This theorem shows that incorporating the function into the optimization process can effectively perturb the optimization landscape and mislead the gradient estimates. In particular, by optimizing the confusion term , we can increase the overall bound and thereby improve robustness against gradient estimation attacks.
Implications of Theorem 4.3. Let
be a constant depending on and . Rearranging the bound in (9) as:
For adversary to succeed in optimization, they need to minimize the right hand side of the inequality below a certain threshold by increasing which is the number of optimization steps. Thus the defender can increase the second term in the right hand side by optimizing the confusion term to be negative and large in magnitude. In other words, the defender needs to make the gradients of the two functions to be misaligned. This would force the attacker to use a larger number of optimization steps (queries) to achieve the desired threshold, thus increasing the attack cost.
Choosing $p \to 0. We can further increase the bound in (10) by choosing close to 0. When , the factor amplifies the contribution of the confusion term. Therefore, if the defender enforces to be negative and large in magnitude, the right-hand side of (10) can become arbitrarily large, effectively preventing the attacker from driving the average gradient norm below a fixed threshold within a limited number of iterations. This motivates choosing , i.e., relying entirely on in the optimization process.
Search-Based Attacks
Random-search score-based attacks propose a direction and accept or reject it based on the sign of the one-step improvement signal (cf. (4) and (5)). Under our switching defense, each query is answered using the randomized objective , which independently returns either or ; thus the two evaluations used to form the improvement from to may come from different objectives. Let denote the improvement signal computed from the defender’s returned values. Because can mix and across the two points, can disagree with , causing the attacker to accept harmful steps or reject helpful ones. The next result lower bounds the probability of such one-step sign errors via (i) a geometric term depending on the angle between and , and (ii) a smoothness correction scaling with (vanishing as under Assumption 4.2).
Theorem 4.4. Let Assumption 4.2 hold. Let and . Fix and . Define the true and defended one-step signals
Then
The proof of Theorem 4.4 is deferred to Appendix C. The event is exactly a one-step decision error: relative to the true objective , the attacker either rejects a truly improving direction or accepts a non-improving direction. Theorem 4.4 shows that this error probability is lower bounded by a misalignment term, proportional to the angle between and , up to a smoothness correction that decreases with the step size . Consequently, designing so that is strongly misaligned with forces random search to waste queries, degrading progress under a fixed budget. A discussion of the Gaussian direction model (and its relationship to isotropic samplers used in practice) is provided in Appendix C.3.
Conclusion. In summary, this subsection provides theoretical support that GCD increases the query cost of score-based black-box attacks. Theorem 4.3 shows that inducing a negative confusion term slows gradient-estimation-based optimization, while Theorem 4.4 shows that gradient misalignment causes accept/reject errors in search-based attacks. Together, these results justify designing to remain close to in value while being misaligned in gradient.
Solving the GCD Minimization Problem
GCD is a test-time output wrapper defense. It leaves the underlying target classifier unchanged, but modifies the probability vector returned to users. Concretely, for an input , the target model produces logits and probability vector . We suppose that GCD returns a perturbed distribution . We first focus on minimizing , and then incorporate the constraints and .
Based on the chain rule, we can write the inner product as follows:
Solving (12) exactly is difficult because appears inside the objective through and , so the optimal determines the gradient terms needed to optimize for (a circular chicken-and-egg dependency). Therefore, due to the constraint , we use a local approximation of by (i.e., ), which yields . Let , our objective will approximately become:
Our experiments show this surrogate delivers consistent improvements against query-based black-box attacks. The only derivative that is a function of is . Let denote the -th component of the perturbed logits vector . For the -th component of , we have
where (index of predicted class after defense), and (index of runner-up class after defense). Since we do not know the index of the predicted class and the runner-up class of before minimization, we use the index of the predicted class and the runner-up class of to construct . Hence, and .
The optimal solution for the minimization problem (13) with respect to is as follows:
where . In our experiments, we found that the norm of is not important for the success of GCD. Thus, we choose . Since we have and , we can compute . Because the equation with respect to is a nonlinear system, we cannot solve it directly to obtain . Moreover, the constraints and must also be considered.
To find , GCD employs a solution that (i) returns a valid probability vector , (ii) keeps close to to satisfy the utility constraint, and (iii) preserves the predicted label of the target model (). GCD solves the following minimization problem to obtain :
The inner product in (16) encourages to align with as much as possible, subject to the constraint . After solving the minimization problem in (16), the resulting is normalized by dividing by its sum to ensure that . GCD solves the minimization problem in (16) using a trust-region interior-point method [12], as implemented in the scipy package [35]. In rare cases, the index of the largest component of the resulting differs from that of , which reduces the accuracy of the target model. To address this issue, GCD manually adjusts . Let and . If , GCD adds to and subtracts it from . This guarantees that , thereby preserving the accuracy of the target model.
Experiments
Experimental Setup
Datasets and Models. We evaluate our proposed method, Gradient Confusion Defense across two standard benchmark datasets: CIFAR-10 and ImageNet. To ensure comprehensive assessment, we test on multiple model architectures. For CIFAR-10, we utilize pretrained ResNet-18 models. For ImageNet, we employ Torchvision pretrained ResNet-50 and Vision Transformer (ViT-B/16). All evaluations are performed on randomly sampled test images per dataset, ensuring statistical significance while maintaining computational efficiency.
Baseline Defenses. We compare GCD against five established defense methods implemented in our experimental framework: input Random Noise Defense (iRND) [26] applies Gaussian noise with to input images. Boundary Defense (oRND) [1] adds Gaussian noise with to output logits. Randomized Feature Defense (RFD) [17] injects noise into intermediate features. Random Logit Scaling (RLS) [13] multiplies logits by a uniformly sampled scale in . For Adaptive Attack on Attackers (AAA), we implement AAA-sine [10] with temperature 1, deviation 0.5, attractor interval 4, calibration weight 5, learning rate 0.1, and 100 inner iterations. We only test AAA-sine, following Chen et al. [10] which showed AAA-linear is vulnerable to adaptive attacks.
All hyperparameters were selected based on established literature or thorough validation to ensure a fair comparison. Our defense replaces the model output with the optimized probability vector obtained from (16), using an output distortion budget of . Since the dimension of is large for ImageNet and the trust-region interior-point method is a second-order optimizer, minimizing (16) incurs a moderate computational cost. Therefore, for ImageNet we select a subset of 20 indices of and optimize (16) only over these components, while fixing the remaining components of to their corresponding values in . To construct , we use and select the top-10 and bottom-10 components, which we found to have the largest effect on the objective in (16). As a result, for ImageNet the optimized differs from in only 20 components (before normalization).
Attacks Configuration. We evaluate defenses against four state-of-the-art score-based black-box attacks in untargeted settings: BanditAttack [19] ( and variants), BrusleAttack (Vo et al., 2024) ( variant),
| Model | Defense | Acc. Drop | Bandit- | Bandit- | Square- | Square- | Sign- | Brusle- |
| ResNet-18 | None | - | 82.68% / 545.68 | 98.03% / 186.16 | 87.76% / 466.29 | 99.38% / 112.46 | 98.97% / 230.05 | 79.78% / 234.82 |
| iRND | 1% | 11.63% / 333.97 | 41.47% / 186.49 | 24.92% / 290.21 | 80.52% / 178.96 | 66.49% / 233.48 | 82.9% / 220.76 | |
| oRND | 0.6% | 12.53% / 354.43 | 47.70% / 158.43 | 20.98% / 188.31 | 64.09% / 113.92 | 38.83% / 170.05 | 68.6% / 201.10 | |
| RLS | 0% | 04.15% / 345.9 | 25.11% / 23.96 | 12.76% / 268.69 | 47.31% / 90.88 | 21.06% / 111.41 | 51.77% / 316.57 | |
| AAA | 0.1% | 03.33% / 318 | 38.08% / 132.26 | 9.77% / 174.91 | 43.41% / 82.04 | 32.09% / 177.10 | 66.78% / 290.17 | |
| GCD | 0% | 0.94% / 131.66 | 28.12% / 99.37 | 4.15% / 20.95 | 30.71% / 11.10 | 14.53% / 72.14 | 38.59% / 269.82 |
Table 1. Black-box attack results on CIFAR-10. ASR and average number of queries are reported.
| Model | Defense | Acc. Drop | Bandit- | Bandit- | Square- | Square- | Sign- |
| ResNet-50 | None | - | 46.73% / 761.22 | 87.05% / 251.79 | 81.45% / 483.65 | 99.47% / 133.90 | 91.33% / 328.71 |
| iRND | 0.2% | 11.02% / 440.30 | 45.56% / 141.79 | 26.66% / 214.17 | 83.49% / 126.10 | 60.78% / 229.78 | |
| oRND | 1.7% | 51.47% / 229.94 | 75.95% / 103.83 | 59.84% / 208.49 | 83.52% / 96.91 | 69.47% / 182.20 | |
| RLS | 0% | 6.68% / 618.42 | 47.80% / 143.72 | 16.29% / 143.03 | 59.82% / 104.07 | 21.37% / 109.13 | |
| AAA | 0.3% | 11.80% / 356.96 | 37.94% / 85.10 | 15.69% / 32.05 | 47.06% / 33.59 | 23.6% / 109.37 | |
| GCD | 0% | 3.34% / 528.6 | 35.65% / 103.29 | 13.22% / 64.05 | 47.94% / 32.17 | 20.17% / 90.15 | |
| ViT-B/16 | None | - | 38.17% / 801.41 | 76.46% / 319.75 | 70.64% / 566.65 | 97.90% / 351.15 | 80.05% / 597.98 |
| iRND | 0.2% | 7.78% / 471.24 | 25.13% / 169.19 | 21.77% / 287.48 | 61.70% / 252.02 | 38% / 255.65 | |
| oRND | 1.8% | 46.71% / 266.73 | 69.17% / 191.07 | 58.88% / 291.56 | 97.32% / 84.39 | 81.44% / 313.67 | |
| RLS | 0% | 4.47% / 589.5 | 28.51% / 224.63 | 10.29% / 148.42 | 30.36% / 144.31 | 13.39% / 184.20 | |
| AAA | 0% | 8.17% / 300.13 | 22.28% / 102.86 | 10.9% / 43.72 | 26.74% / 92.46 | 15.1% / 236.60 | |
| GCD | 0% | 3.35% / 609 | 21.94% / 140.03 | 12.38% / 455.74 | 33.83% / 257.21 | 21.44% / 315.70 |
Table 2. Black-box attack results on ImageNet. ASR and average number of queries are reported.
SignAttack [2] ( variant), and SquareAttack [3] ( and variants). For CIFAR-10, inputs are scaled to [0, 255] with budget (0.05 normalized) and budget (1.0 normalized). For ImageNet, inputs are in [0, 1] with budget , and budgets follow the original implementations (Bandit: , Square: ). All attacks are constrained by a maximum query budget of queries per sample.
Metrics. We report three metrics for each (dataset, model, defense, attack) configuration: Attack Success Rate, the fraction of samples successfully attacked within the query budget; Average Queries, the mean queries per successful attack; and Clean Accuracy Drop for each defended model. Together, they capture robustness and utility, enabling evaluation of the defense–utility trade-off.
Results and Analysis
Overall Performance. Tables 1 and 2 summarize results on CIFAR-10 (ResNet-18) and ImageNet (ResNet-50, ViT-B/16). Across settings, GCD achieves a strong robustness–utility trade-off, preserving clean accuracy while reducing attack success rates. On CIFAR-10, GCD lowers Square- ASR from 87.76% (undefended) to 4.15%, and Sign- from 98.97% to 14.53%. This effectiveness transfers to ImageNet: for ResNet-50, GCD incurs no clean accuracy drop while maintaining strong robustness. Results on ViT-B/16 further confirm robustness; for example, Square- ASR decreases from 97.90% to 33.83%.
Comparison with Other Defenses. Tables 1 and 2 also show that on non-transformer models, GCD outperforms nearly all baselines. While randomized defenses (iRND, oRND, RLS) can reduce attack success, they often incur accuracy drops or weaker protection; iRND and oRND trade accuracy for limited robustness. AAA and RLS preserve accuracy and can be competitive, but are more vulnerable to adaptive attacks (Section 5.3). Table 3 reports deviations over 1000 ImageNet samples: GCD exhibits a larger shift, consistent with shaping scores to misalign the induced adversarial loss gradient rather than merely injecting noise.
| Defense | Min | Avg | Max |
| iRND | 0.00 | 0.11 | 1.03 |
| oRND | 0.00 | 0.26 | 1.77 |
| RLS | 0.00 | 0.33 | 1.74 |
| AAA | 0.00 | 0.28 | 1.60 |
| GCD | 0.07 | 0.58 | 1.25 |
Table 3. distance between the original output of the model and defense output for 1000 ImageNet samples.
Gradient Misalignment Evidence. Figure 1 shows , the deviation between the true loss gradient and the gradient implied by the defended score responses (i.e., the direction the attacker follows). GCD induces a systematic bias in this recovered direction, increasing the query cost of score-based attacks. In particular, GCD yields large deviations across queries (e.g., 24.5°–84.4°, many near ), whereas AAA concentrates at (nearly revealing the true direction). RLS shows mixed behavior, including near-zero angles that still provide a reliable descent direction and angles near 90°. We hypothesize this occurs because the RLS transform maps some target-model output probability vectors to one-hot vectors, making . As a result, GCD’s persistent misalignment compounds over iterations, increasing query complexity and reducing attack success, while defenses that often yield preserve a low-query path. These observations support our theoretical analysis.
Figure 1. Polar histograms of gradient direction misalignment. For 10 randomly selected samples from the ImageNet test set, we plot the angular deviation between the direction induced by the defended score responses (i.e., the direction the attacker would follow) and the true loss gradient . Each color corresponds to 200 square- attack iterations (200 queries used to generate adversarial example for a sample). Dashed rays and numeric labels indicate the mean deviation for each sample.
Figure 2 demonstrates trajectory-level analysis for 10 random CIFAR-10 samples over 100 Square Attack iterations: for each query iteration along the attack trajectory, we measure the angle between the direction exposed under the defense and the corresponding undefended direction. This is the operational quantity that matters to an iterative score-based attacker. Based on these results, AAA does exhibit occasional local reversals, but they are not persistent: after a brief transient, its mean angle quickly settles to a small range (about 8°–10° in our trace plot), and many sample traces remain near low angles. In contrast, GCD maintains substantially larger misalignment throughout the trajectory, with the mean staying around 25°–28°, and many samples remaining in the 30°–45° range over tens of queries. So the practical difference is not whether a defense can reverse a local slope at isolated points, but whether it sustains input-space misalignment along the whole optimization path. GCD does; AAA usually does not. This also explains the mechanism. AAA heuristically flips local slopes in output space, but it does not optimize the induced input-space direction after composition with the model Jacobian. GCD is Jacobian-aware: Eqs. (7), (15), and (16) explicitly optimize the exposed direction in input space. That is precisely the quantity that matters for score-based attacks. This interpretation is also consistent with our theory: Theorem 4.4 shows that larger angular misalignment increases the probability of accept/reject errors in search-based attacks, and when that larger angle is maintained across many iterations, those errors compound over the trajectory.
Figure 2. Angular deviation between defense-exposed and undefended gradient directions over 100 Square Attack iterations on 10 CIFAR-10 samples.
Adaptive Attack Evaluation
To assess defense resilience against adaptive adversaries, we evaluate GCD alongside AAA and RLS against two adaptive attacks: Expectation over Transformation (EOT) [5] and PendulumAttack [13]. For sample , EOT counteracts random-based defenses by averaging over independently randomized defense outputs to obtain an unbiased estimation of the . PendulumAttack employs iterative estimation and exploitation of defense patterns.
Table 4 reveals that GCD maintains performance even under adaptive settings. The primary result is reported in the Max column, which corresponds to a worst-case adaptive threat model in which the attacker uses the more successful of the two evaluated adaptive variants. Under this setting, GCD exhibits stronger robustness than both AAA and RLS.
| Defense | EOT | Pen-Square | Max(EOT,Pen) |
| AAA | 21.94% / 85.44 | 40.53% / 306.08 | 40.53% |
| RLS | 36.19% / 215.83 | 23.55% / 85.44 | 36.19% |
| GCD | 24.04% / 159.69 | 30.12% / 209.33 | 30.12% |
Table 4. Adaptive Attacks on GCD, RLS, and AAA. We incorporate two adaptive techniques—Expectation over Transformation (EOT) and Pendulum—into the Square Attack framework. For both adaptive variants, we set and evaluate performance on 1000 ImageNet samples using ViT-B/16.
Figure 2 provides a mechanism-level interpretation of this result. GCD introduces a deterministic bias into the exposed objective, whereas randomization-based defenses primarily introduce variance and AAA primarily creates local slope perturbations. Adaptive averaging is designed to reduce variance; it does not remove a deterministic directional bias. For a deterministic defense, the relevant question is therefore whether the exposed direction remains persistently displaced along the attack trajectory. Figure 2 shows that GCD maintains this displacement, while AAA realigns much more quickly.
This evidence helps explain the observed adaptive comparison, although it does not by itself establish causality. Adaptive attacks may smooth local irregularities or exploit predictable patterns, but they still optimize the systematically altered objective exposed by GCD. By contrast, AAA transforms the loss into a structured oscillatory surface. Pendulum-style attacks can exploit such structure by reversing the optimization direction when progress stalls, thereby escaping local minima and maxima. The trajectory plot therefore complements Table 4, it indicates that GCD’s effect is sustained across successive queries rather than being limited to isolated local slope changes.
Discussion and Conclusion
Our comprehensive evaluation across two datasets, multiple model architectures, four attack methods, and two threat models demonstrates that Gradient Confusion represents an effective new paradigm for black-box defense. By explicitly shaping the gradient information revealed to attackers, GCD Consistently lower attack success rates across all evaluated configurations. Besides, we do not degrade the clean accuracy. Also, GCD Maintains protection even against sophisticated adaptive attacks. These results establish GCD as a state-of-the-art defense against score-based black-box attacks, offering a principled alternative to randomization-based approaches. The method’s model-agnostic implementation and deterministic operation make it particularly suitable for deployment in security-critical applications where both robustness and reliable performance are paramount. However, one limitation warrants discussion. GCD requires Jacobian computations, adding computational overhead (approximately 15% inference time increase). Future work could explore alternative optimization methods and workarounds to address this obstacle.
Notations
Here one can find all notations and symbols used in the paper.
| Symbol | Description |
| General Model and Inputs | |
| Input space, | |
| Dimension of the input space | |
| Label set | |
| Classifier mapping | |
| Logits vector output by the model for input | |
| Softmax function | |
| Probability simplex | |
| Original probability vector output by the target model | |
| True label of input | |
| Jacobian of the model’s logits with respect to the input, | |
| Attacks and Optimization | |
| Adversarial example () | |
| Perturbation budget (radius of the allowed perturbation ball) | |
| Maximum query budget | |
| Adversarial loss function based on the original model output | |
| Indices of the largest and second-largest probability components | |
| Estimated gradient of the smoothed function | |
| Random search direction vector, | |
| Smoothing parameter (step size for finite differences) | |
| Gaussian-smoothed version of the loss function | |
| Step size (learning rate) at iteration | |
| Projection operator onto the -ball of radius | |
| One-step improvement signal in random search | |
| Gradient Confusion Defense (GCD) | |
| Modified/Defended probability vector returned to the user | |
| Perturbed logits corresponding to | |
| Adversarial loss function based on the modified output | |
| Distortion budget (constraint on distance between and ) | |
| Randomized defended objective function (theoretical model) | |
| Bernoulli random variable used in the theoretical switching defense | |
| Probability parameter for the Bernoulli distribution () | |
| Theoretical Analysis | |
| Lipschitz continuity constant of function | |
| Lipschitz constant of the gradient (smoothness constant) of | |
| Total number of optimization steps/queries | |
| Small constants bounding the difference between functions () | |
| Small constants bounding the difference between functions () | |
| Improvement signal computed from the defender’s returned values |
Table 5. Summary of Notations and Symbols used in the Gradient Confusion Defense (GCD) paper.
Theoretical Analysis of Gradient Confusion for Gradient Estimation-Based Attacks
In this appendix, we provide the theoretical analysis of Theorem 4.3. We show that by incorporating a second function , which is close to the original function but has misaligned gradients, we can increase the convergence bound of gradient-estimation-based attacks. This analysis provides insights into how optimizing a confusion term can enhance the robustness of models against such attacks. We first state preliminaries and lemmas used in the proof, and then present the detailed proof of Theorem 4.3.
Preliminaries
Definition B.1 (-Gaussian Smoothing). For a function , we define its -Gaussian smoothed version as:
Now, we define the gradient estimator as
where . Using the change of variables , we can show that the gradient of the smoothed function can be written as
Thus, we have the following lemma:
Lemma B.2. The gradient estimator is an unbiased estimator of the gradient of the smoothed function , i.e.,
We also use the following lemma on the smoothness of the Gaussian-smoothed function from Nesterov and Spokoiny [24]:
Lemma B.3. If is -Lipschitz continuous, then its smoothed version is differentiable and has a Lipschitz continuous gradient with constant
We also use the following lemma on the moments of Gaussian random variables, which follows from standard concentration properties of Gaussian distributions:
Lemma B.4. For , we have
and
Bias and variance of gradient estimator
Let and be two functions such that, for all , . We define a randomized objective as
where . Thus, the corresponding gradient estimator is given by
Thus, for the expectation of the gradient estimator, we have:
From lemma B.2 we have:
Now we need to compute the variance of the gradient estimator:
Now set , , and . Thus for we have:
Now using the bound , and Lipschitz continuity of and , we have:
Putting this into equation 26, we have:
Now taking expectation over , using lemma B.4 we have:
Descent Lemma
We now define the optimization process. Starting from , at each iteration we sample and , and compute the gradient estimator . We then update the iterate as
where denotes the step size at iteration . Consequently, each iterate is a random variable that depends on all previous samples . We define the history up to iteration as
Our goal is to analyze the convergence of this process in expectation over all sources of randomness. We assume the process is run for iterations.
Having access to the variance and bias of the gradient estimator, we can now use the standard descent lemma for zero order optimization.
Using equations 25 and 30, and taking expectation over , and we have:
Now taking expectation over the history , we have:
Let’s define new notations for simplicity:
Rewrite the inequality with new notations:
Rearranging the terms, we have:
Thus for different iterations , we have:
Summing all these inequalities, we have:
Here and is the expectation of the function value at the end of the optimization process. Let’s assume we use constant step size for all . Thus we have:
Taking average over iterations, we have:
Rearranging the terms, we have:
Now minimize the right hand side with respect to :
Thus we have:
From Lipschitz continuity of and , we know that and are also Lipschitz continuous with the same constants. Thus we can bound as:
Where is the radius of the ball for optimization budget. Thus we have the final convergence bound as:
From the definition of and lemma B.3 we have , therefore we have:
We also need to choose small enough to have . To have this bound, we choose as in Nesterov and Spokoiny [24]. Thus we can still simplify the bound as:
Let’s also plug this value in and rewrite that:
The input dimension usually dominates the constant 4 in , thus we can simplify the final bound as:
Plugging this into the final bound, we have:
This bound shows that optimizing the confusion term increases the bound and, consequently, increases the number of steps required by gradient estimation-based attacks.
Theoretical Analysis of Gradient Confusion for Search-Based Attacks
In this part, we provide the detailed proof of Theorem 4.4, which theoretically shows that GC can be effective against search-based attacks by misleading the acceptance/rejection signal . As a result, the adversary requires more steps (and thus more queries) to craft an adversarial example. We first present auxiliary lemmas used in the proof, and then provide the detailed proof of the theorem.
Auxiliary Lemmas
Lemma C.1. Let be -smooth, i.e.,
Then for any ,
where the remainder term satisfies
Equivalently,
Proof. Define for . By the fundamental theorem of calculus,
Subtracting the first-order term yields
Thus the remainder term is
Applying Cauchy–Schwarz and -smoothness,
Lemma C.2. Let in with , and let be fixed with . Then for any ,
Proof. Write where and . By rotational invariance of the standard Gaussian, and are independent, is uniform on the unit sphere, and . Let . Then
By rotation symmetry, , where is the first coordinate of a uniform random point on . Hence
For , has density on
Since , for any we have
Therefore,
Taking expectation over gives
By Cauchy–Schwarz, . Finally, using for all with ,
Combining gives
Lemma C.3. Let and let be nonzero vectors. Define to be the angle between and , i.e.
Then
Proof. Set and . Then is a centered bivariate Gaussian with
so the correlation is . A standard orthant probability identity gives
By symmetry,
Proof of Theorem 4.4
With the above lemmas in place, we now state the theorem and present a detailed proof.
Theorem C.4 (Theorem 4.4 (restated)). Under Assumption 4.2, for , , fixed , , and with per-query switching defense , the signals
satisfy the bound in (11).
Proof. Let
By definition, . Let be independent of , and write
Define . Conditioning on and keeping only the case gives
It remains to lower bound .
Define the linear parts
By Lemma C.1 applied to with and ,
Similarly, applying Lemma C.1 to with ,
Step 1: sign-stability events. If , then . Define
On , we have , hence ; similarly on , . Therefore,
Step 2: linear sign disagreement. By Lemma C.3 with and ,
Step 3: bound Taylor-failure probabilities. Using Lemma C.2 with and ,
Similarly,
Step 4: combine and multiply by . Combining Steps 1–3 yields
Multiplying by gives (11). □
Why Gaussian Directions?
We model the search direction as Gaussian because it is rotationally invariant and makes the analysis depend only on geometry. This is also a good approximation for many isotropic samplers used in practice: in high dimensions, one-dimensional projections (i.e., inner products with a random direction) of a broad class of high-dimensional random vectors are close to Gaussian under mild conditions, so Gaussian modeling captures the sign behavior of these projections well [22]. In the proof, the key quantity is the probability that the two linearized one-step signals induced by and disagree in sign, and rotational invariance implies this probability depends only on their relative orientation. This is exactly where the arccosine term in (11) comes from.
References
- [1]Aithal, M.B., Li, X., 2022. Boundary defense against black-box adversarial attacks, in: 26th International Conference on Pattern Recognition, ICPR 2022, Montreal, QC, Canada, August 21-25, 2022, IEEE. pp. 2349–2356.arxiv.org/abs/2201.13444
- [2]Al-Dujaili, A., O’Reilly, U., 2020. Sign bits are all you need for black-box attacks, in: 8th International Conference on Learning Representations, ICLR 2020, Addis Ababa, Ethiopia, April 26-30, 2020, OpenReview.net.
- [3]Andriushchenko, M., Croce, F., Flammarion, N., Hein, M., 2020. Square attack: A query-efficient black-box adversarial attack via random search, in: Vedaldi, A., Bischoff, H., Brox, T., Frahm, J. (Eds.), Computer Vision - ECCV 2020 - 16th European Conference, Glasgow, UK, August 23-28, 2020, Proceedings, Part XXIII, Springer. pp. 484–501.arxiv.org/abs/1912.00049
- [4]Athalye, A., Carlini, N., Wagner, D.A., 2018a. Obfuscated gradients give a false sense of security: Circumventing defenses to adversarial examples, in: Dy, J.G., Krause, A. (Eds.), Proceedings of the 35th International Conference on Machine Learning, ICML 2018, Stockholmmässan, Stockholm, Sweden, July 10-15, 2018, PMLR. pp. 274–283.arxiv.org/abs/1802.00420
- [5]Athalye, A., Engstrom, L., Ilyas, A., Kwok, K., 2018b. Synthesizing robust adversarial examples, in: Dy, J.G., Krause, A. (Eds.), Proceedings of the 35th International Conference on Machine Learning, ICML 2018, Stockholmmässan, Stockholm, Sweden, July 10-15, 2018, PMLR. pp. 284–293.
- [6]Carlini, N., Wagner, D.A., 2017. Towards evaluating the robustness of neural networks, in: 2017 IEEE Symposium on Security and Privacy, SP 2017, San Jose, CA, USA, May 22-26, 2017, IEEE Computer Society. pp. 39–57.arxiv.org/abs/1608.04644
- [7]Chen, J., Gu, Q., 2020. Rays: A ray searching method for hard-label adversarial attack, in: Gupta, R., Liu, Y., Tang, J., Prakash, B.A. (Eds.), KDD ’20: The 26th ACM SIGKDD Conference on Knowledge Discovery and Data Mining, Virtual Event, CA, USA, August 23-27, 2020, ACM. pp. 1739–1747.arxiv.org/abs/2006.12792
- [8]Chen, J., Jordan, M.I., Wainwright, M.J., 2020. Hopskipjumpattack: A query-efficient decision-based attack, in: 2020 IEEE Symposium on Security and Privacy, SP 2020, San Francisco, CA, USA, May 18-21, 2020, IEEE. pp. 1277–1294.arxiv.org/abs/1904.02144
- [9]Chen, P., Zhang, H., Sharma, Y., Yi, J., Hsieh, C., 2017. ZOO: zeroth order optimization based black-box attacks to deep neural networks without training substitute models, in: Thuraisingham, B., Biggio, B., Freeman, D.M., Miller, B., Sinha, A. (Eds.), Proceedings of the 10th ACM Workshop on Artificial Intelligence and Security, AISec@CCS 2017, Dallas, TX, USA, November 3, 2017, ACM. pp. 15–26.DOI
- [10]Chen, S., Huang, Z., Tao, Q., Wu, Y., Xie, C., Huang, X., 2022. Adversarial attack on attackers: Post-process to mitigate black-box score-based query attacks, in: Koyejo, S., Mohamed, S., Agarwal, A., Belgrave, D., Cho, K., Oh, A. (Eds.), Advances in Neural Information Processing Systems 35: Annual Conference on Neural Information Processing Systems 2022, NeurIPS 2022, New Orleans, LA, USA, November 28 - December 9, 2022.arxiv.org/abs/2205.12134
- [11]Cheng, M., Singh, S., Chen, P.H., Chen, P., Liu, S., Hsieh, C., 2020. Sign-opt: A query-efficient hard-label adversarial attack, in: 8th International Conference on Learning Representations, ICLR 2020, Addis Ababa, Ethiopia, April 26-30, 2020, OpenReview.net.
- [12]Conn, A.R., Gould, N.I.M., Toint, P.L., 2000. Trust Region Methods. MOS-SIAM Series on Optimization, SIAM.DOI
- [13]Dashtbani, H., Gandomani, M.D., Sadeghzadeh, A., 2026. Random logit scaling: Defending deep neural networks against black-box score-based adversarial example attacks. Transactions on Machine Learning Research 2026.arxiv.org/abs/2607.14921
- [14]Goodfellow, I.J., Shlens, J., Szegedy, C., 2015. Explaining and harnessing adversarial examples, in: Bengio, Y., LeCun, Y. (Eds.), 3rd International Conference on Learning Representations, ICLR 2015, San Diego, CA, USA, May 7-9, 2015, Conference Track Proceedings.DOI
- [15]Guo, C., Gardner, J.R., You, Y., Wilson, A.G., Weinberger, K.Q., 2019. Simple black-box adversarial attacks, in: Chaudhuri, K., Salakhutdinov, R. (Eds.), Proceedings of the 36th International Conference on Machine Learning, ICML 2019, 9-15 June 2019, Long Beach, California, USA, PMLR. pp. 2484–2493.arxiv.org/abs/1905.07121
- [17]Hung-Quang, N., Lao, Y., Pham, T., Wong, K., Doan, K.D., 2024. Understanding the robustness of randomized feature defense against query-based adversarial attacks, in: The Twelfth International Conference on Learning Representations, ICLR 2024, Vienna, Austria, May 7-11, 2024, OpenReview.net.arxiv.org/abs/2310.00567
- [18]Ilyas, A., Engstrom, L., Athalye, A., Lin, J., 2018. Black-box adversarial attacks with limited queries and information, in: Dy, J.G., Krause, A. (Eds.), Proceedings of the 35th International Conference on Machine Learning, ICML 2018, Stockholmssmässan, Stockholm, Sweden, July 10-15, 2018, PMLR. pp. 2142–2151.arxiv.org/abs/1804.08598
- [19]Ilyas, A., Engstrom, L., Madry, A., 2019. Prior convictions: Black-box adversarial attacks with bandits and priors, in: 7th International Conference on Learning Representations, ICLR 2019, New Orleans, LA, USA, May 6-9, 2019, OpenReview.net.arxiv.org/abs/1807.07978
- [20]Liu, X., Cheng, M., Zhang, H., Hsieh, C., 2018. Towards robust neural networks via random self-ensemble, in: Ferrari, V., Hebert, M., Sminchisescu, C., Weiss, Y. (Eds.), Computer Vision - ECCV 2018 - 15th European Conference, Munich, Germany, September 8-14, 2018, Proceedings, Part VII, Springer. pp. 381–397.arxiv.org/abs/1712.00673
- [21]Madry, A., Makelov, A., Schmidt, L., Tsipras, D., Vladu, A., 2018. Towards deep learning models resistant to adversarial attacks, in: 6th International Conference on Learning Representations, ICLR 2018, Vancouver, BC, Canada, April 30 - May 3, 2018, Conference Track Proceedings.arxiv.org/abs/1706.06083
- [22]Meckes, E., 2012. Approximation of projections of random vectors. Journal of Theoretical Probability 25, 333–352. doi:10.1007/s10959-010-0299-2.
- [23]Moosavi-Dezfooli, S., Fawzi, A., Frossard, P., 2016. Deepfool: A simple and accurate method to fool deep neural networks, in: 2016 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2016, Las Vegas, NV, USA, June 27-30, 2016, IEEE Computer Society. pp. 2574–2582.
- [24]Nesterov, Y.E., Spokoiny, V.G., 2017. Random gradient-free minimization of convex functions. Found. Comput. Math. 17, 527–566. URL: https://doi.org/10.1007/s10208-015-9296-2, doi:10.1007/s10208-015-9296-2.
- [25]Papernot, N., McDaniel, P.D., Goodfellow, I.J., Jha, S., Celik, Z.B., Swami, A., 2017. Practical black-box attacks against machine learning, in: Karri, R., Sinanoglu, O., Seghier, A., Yi, X. (Eds.), Proceedings of the 2017 ACM on Asia Conference on Computer and Communications Security, AsiaCCS 2017, Abu Dhabi, United Arab Emirates, April 2-6, 2017, ACM. pp. 506–519.arxiv.org/abs/1602.02697
- [26]Qin, Z., Fan, Y., Zha, H., Wu, B., 2021. Random noise defense against query-based black-box attacks, in: Ranzato, M., Beygelzimer, A., Dauphin, Y.N., Liang, P., Vaughan, J.W. (Eds.), Advances in Neural Information Processing Systems 34: Annual Conference on Neural Information Processing Systems 2021, NeurIPS 2021, December 6-14, 2021, virtual, pp. 7650–7663.arxiv.org/abs/2104.11470
- [27]Rebuffi, S., Gowal, S., Calian, D.A., Stimberg, F., Wiles, O., Mann, T.A., 2021. Data augmentation can improve robustness, in: Ranzato, M., Beygelzimer, A., Dauphin, Y.N., Liang, P., Vaughan, J.W. (Eds.), Advances in Neural Information Processing Systems 34: Annual Conference on Neural Information Processing Systems 2021, NeurIPS 2021, December 6-14, 2021, virtual, pp. 29935–29948.arxiv.org/abs/2111.05328
- [28]Reza, M.F., Jin, R., Wu, T., Dai, H., 2025. GSBAK: top-k geometric score-based black-box attack, in: The Thirteenth International Conference on Learning Representations, ICLR 2025, Singapore, April 24-28, 2025, OpenReview.net.arxiv.org/abs/2503.12827
- [29]Reza, M.F., Rahmati, A., Wu, T., Dai, H., 2023. CGBA: curvature-aware geometric black-box attack, in: IEEE/CVF International Conference on Computer Vision, ICCV 2023, Paris, France, October 1-6, 2023, IEEE. pp. 124–133.arxiv.org/abs/2308.03163
- [30]Rice, L., Wong, E., Kolter, J.Z., 2020. Overfitting in adversarially robust deep learning, in: Proceedings of the 37th International Conference on Machine Learning, ICML 2020, 13-18 July 2020, Virtual Event, PMLR. pp. 8093–8104.arxiv.org/abs/2002.11569
- [31]Salman, H., Li, J., Razenshteyn, I.P., Zhang, P., Zhang, H., Bubeck, S., Yang, G., 2019. Provably robust deep learning via adversarially trained smoothened classifiers, in: Wallach, H.M., Larochelle, H., Beygelzimer, A., d’Alché-Buc, F., Fox, E.B., Garnett, R. (Eds.), Advances in Neural Information Processing Systems 32: Annual Conference on Neural Information Processing Systems 2019, NeurIPS 2019, December 8-14, 2019, Vancouver, BC, Canada, pp. 11289–11300.
- [32]Salman, H., Sun, M., Yang, G., Kapoor, A., Kolter, J.Z., 2020. Denoised smoothing: A provable defense for pretrained classifiers, in: Larochelle, H., Ranzato, M., Hadsell, R., Balcan, M., Lin, H. (Eds.), Advances in Neural Information Processing Systems 33: Annual Conference on Neural Information Processing Systems 2020, NeurIPS 2020, December 6-12, 2020, virtual.arxiv.org/abs/2003.01908
- [33]Szegedy, C., Zaremba, W., Sutskever, I., Bruna, J., Erhan, D., Goodfellow, I.J., Fergus, R., 2014. Intriguing properties of neural networks, in: Bengio, Y., LeCun, Y. (Eds.), 2nd International Conference on Learning Representations, ICLR 2014, Banff, AB, Canada, April 14-16, 2014, Conference Track Proceedings.arxiv.org/abs/1312.6199
- [34]Tramèr, F., Kurakin, A., Papernot, N., Goodfellow, I.J., Boneh, D., McDaniel, P.D., 2018. Ensemble adversarial training: Attacks and defenses, in: 6th International Conference on Learning Representations, ICLR 2018, Vancouver, BC, Canada, April 30 - May 3, 2018, Conference Track Proceedings, OpenReview.net.arxiv.org/abs/1705.07204
- [35]Virtanen, P., Gommers, R., Oliphant, T.E., Haberland, M., Reddy, T., Cournapeau, D., Burovski, E., Peterson, P., Weckesser, W., Bright, J., van der Walt, S., Brett, M., Wilson, J., Millman, K.J., Mayorov, N., Nelson, A.R.J., Jones, E., Kern, R., Larson, E., Carey, C., Polat, I., Feng, Y., Moore, E.W., VanderPlas, J., Laxalde, D., Perktold, J., Cimmrman, R., Henriksen, I., Quintero, E.A., Harris, C.R., Archibald, A.M., Ribeiro, A.H., Pedregosa, F., van Mulbregt, P., SciPy, 2019. Scipy 1.0-fundamental algorithms for scientific computing in python. CoRR abs/1907.10121. arXiv:1907.10121.DOI
- [37]Wang, D., Ju, A., Shelhamer, E., Wagner, D.A., Darrell, T., 2021. Fighting gradients with gradients: Dynamic defenses against adversarial attacks. CoRR abs/2105.08714. arXiv:2105.08714.arxiv.org/abs/2105.08714
- [38]Xie, C., Wang, J., Zhang, Z., Ren, Z., Yuille, A.L., 2018. Mitigating adversarial effects through randomization, in: 6th International Conference on Learning Representations, ICLR 2018, Vancouver, BC, Canada, April 30 - May 3, 2018, Conference Track Proceedings, OpenReview.net.arxiv.org/abs/1711.01991

