Skip to content

Score-based black-box attacks: via adversarial-condition-guided diffusion modelsScore-based Black-box Attack via Adversarial Condition Guided Diffusion Model

arXiv: Adversarial Attacks, Backdoors & Poisoning· arXiv:2611.34564· Yuhang Chen, Chih-Hong Cheng, Kurt Debattista, Siddartha Khastgir, Xingyu ZhaoWMG, University of Warwick; University of Oldenburg; Chalmers University of Technology; Wuhan UniversityIndexed by this site · 3 days ago· Originally publishedAttacks· Its place in the scan record →

Quick read

Attacks

Based on the paper PDF (AI-generated); refer to the original

The authors introduce score-based black-box attacks into the diffusion reverse process; on ImageNet-Compatible, without a surrogate model, at Q=120 Latent-ZOsignSGD achieves an average accuracy of 12.1% and FID 59.6.

Threat modelThe attacker queries the victim classifier's output probabilities in a black-box, score-based manner, without accessing its gradients or using a surrogate; the goal is to generate unrestricted adversarial examples that cause the classifier to misclassify while preserving natural appearance and the original image's semantics. The victim system is an image classifier, the attack is performed in the diffusion latent space, and no final pixel-space Lp constraint is imposed.

Questions
Existing diffusion black-box attacks mostly rely on surrogate-model transfer, and their effectiveness is affected by differences between the surrogate and victim models; improving transferability may also alter semantics and reduce image quality. The authors aim to directly use the victim model’s output probabilities to generate natural adversarial images tailored to each victim model.
Methods
The authors transfer six score-based attacks into the Stable Diffusion latent space, updating the direction at each step of DDIM reverse denoising using probability estimates from the victim model; they additionally propose ATG, which uses the current runner-up class, and TSG, which searches for conditions near the original prompt embedding.
Experiments and results
On 11 ImageNet-Compatible classifiers, unguided Latent-ZOsignSGD at Q=120 achieves an average accuracy of 12.1% and FID 59.6, while APA-GC achieves 17.7% and 72.0. ATG further lowers accuracy but raises FID, and TSG changes image quality less; the authors also report comparisons with adversarially trained models and Latent-HSJA.
Limitations and future work
The paper does not specifically discuss limitations. The experiments use 1000 ImageNet-Compatible images, 11 regular models, and 4 adversarially trained models; Latent-HSJA is compared only on ResNet-50. The main tables do not report the number of repetitions; the appendix repeats only some Latent-ZOsignSGD settings with three seeds.
Experimental setupResNet-50、VGG19 et al. · ImageNet-Compatible Dataset · Top-1 accuracy、FID et al.
Evaluated models
ResNet-50VGG19MobV2IncV3ConvNeXtViT-B/16Swin-BDeiT-BDeiT-SMixer-BMixer-LInc-v3advInc-v3ens3Inc-v3ens4IncRes-v2ensMLP
Benchmarks
ImageNet-Compatible Dataset
Metrics
Top-1 accuracyFIDLPIPSSSIMPSNRMS-SSIMFSIMDISTSTOPIQ-FRNIQEBRISQUEvictim queries per imageattack time per image
AI summaryThe researchers adapt a score-based black-box attack to reverse diffusion, using only the victim model's output probabilities to guide latent updates. Adaptive target guidance uses the victim model's second-best class as the adversarial condition, steering denoising toward the decision boundary; target search guidance slightly perturbs the original condition embedding vector, achieving attack effectiveness comparable to the former with better image quality. On the ImageNet-Compatible dataset, the framework outperforms transfer-based baselines in both attack effectiveness and image quality.

The researchers adapt a score-based black-box attack to reverse diffusion, using only the victim model's output probabilities to guide latent updates. Adaptive target guidance uses the victim model's second-best class as the adversarial condition, steering denoising toward the decision boundary; target search guidance slightly perturbs the original condition embedding vector, achieving attack effectiveness comparable to the former with better image quality. On the ImageNet-Compatible dataset, the framework outperforms transfer-based baselines in both attack effectiveness and image quality.

Related events and news

1 events · 0 news mentions

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    The authors aim to address the problems that diffusion black-box attacks rely on surrogate transfer, are prone to semantic distortion, and do not exploit conditional priors.

    Core question: how to generate non-targeted adversarial examples that preserve natural appearance and the original image's semantics during the diffusion reverse process by querying only the victim classifier's output probabilities.

    • Problem setting: the authors focus on unrestricted adversarial examples (UAEs), i.e., using generative priors to produce semantically plausible images that mislead classifiers, rather than only optimizing Lp perturbations in pixel space. The authors argue that such samples are closer to human perception and may evade defenses.
    • Shortcomings of existing methods: the authors state that existing black-box diffusion attacks mostly craft samples on a white-box surrogate, and effectiveness fluctuates with architectural differences between surrogate and victim; to improve transferability they may also introduce the visual semantics of the target class. Retaining the null token or the original label as the condition also fails to use the diffusion conditional prior to guide denoising toward the victim model's decision boundary.
    • Core observation: score queries to the victim model can directly steer latent variable updates toward its own decision boundary; the diffusion model's conditional prior can also provide class-related guidance directions that complement latent variable attack updates.
    • Proposed content: the authors transfer six score-based attacks—NES, ZOsignSGD, Square, SimBA, SignHunter, and Bandits—into the diffusion latent space, and propose two kinds of conditional guidance: adaptive-target guidance (ATG) and target-search guidance (TSG).
    • Threat model:
      • Goal: non-targeted attack, making the victim classifier predict any non-original class while preserving image naturalness and semantics as much as possible.
      • Knowledge: black-box, score-based; only the victim model's output probabilities are available, and its gradients cannot be accessed.
      • Capability: query the victim model and control the diffusion latent variable and conditional embedding; no surrogate is needed, and no final pixel-space Lp constraint is imposed.
      • Victim system: ImageNet image classifiers, including standard models and separately tested adversarially trained models.
  2. What related research exists?

    Related work is divided into white-box diffusion attacks, transfer attacks, and query attacks; this paper differs from all three by directly querying the victim model.

    White-box diffusion attacks

    • AdvDiffuser, DiffPGD: add gradient-based perturbations during denoising; AdvDiff adds adversarial classifier guidance to the reverse process, and Zhang et al. sample from the product of the victim distribution and a distance distribution.
    • Difference from this paper: the paper points out that these methods require gradients of the victim model, whereas this paper uses queried probabilities to guide latent variable updates.

    Transfer-based attacks

    • MI-FGSM, DI-FGSM, TI-FGSM, PI-FGSM, S2I-FGSM: improve transferability through designs such as momentum, input transformation and translation invariance, and spectrum augmentation, respectively.
    • NCF, DiffAttack, ACA, APA, NatADiff: for unrestricted attacks, add designs such as natural color search, attention disruption, latent variable optimization on the natural image manifold, cross-diffusion-step gradient aggregation, or class boundary guidance.
    • The paper's criticism: the authors state that the effectiveness of these attacks depends on surrogate–victim alignment, and that adversarial training may also reduce transferability; this paper instead directly queries the victim model while guiding both the latent variable and the condition.

    Query-based attacks

    • NES, Bandits, ZOsignSGD, SignHunter, SimBA, Square: use output probabilities to estimate gradients or their signs, or accept random updates based on scores; the paper points out that they usually perturb within an Lp ball in pixel space and may require thousands of queries per image.
    • Latent-HSJA, AdvDiffEdit, AdvFlow: respectively run HopSkipJumpAttack in the GAN latent space, perform decision-only editing with a diffusion model, and apply NES in the normalizing flow latent space.
    • Difference from this paper: the authors state that this paper updates the diffusion latent variable across continuous denoising steps, uses victim model probabilities rather than only decision labels, and does not impose a final pixel-space Lp constraint.

    Comparison baselines and benchmarks: experiments compare PI-FGSM, S2I-FGSM, NCF, DiffAttack, ACA, APA-SG, APA-GC, and NatADiff on the ImageNet-Compatible Dataset; decision-based Latent-HSJA is additionally compared separately on ResNet-50. The authors position this paper as a score-based diffusion attack framework that requires no surrogate and customizes UAEs per victim model.

  3. How does the paper address this problem?

    The framework alternates conditional guidance denoising and score-based latent variable updates at each DDIM step, with ATG and TSG providing two kinds of conditional guidance.

    The overall idea is to embed victim-model queries into the diffusion reverse process: each denoising step first forms a condition-guided latent, which is then updated by a score-based attack according to the victim model’s probabilities. The authors state that this is the first framework they propose that integrates a score-based black-box attack into reverse diffusion.

    Problem Setting and Theoretical Motivation

    • For the original image xori and class yori, the attack does not presuppose a target class; ytar can be any non-original class; optimization balances distance from the original image and classification loss.
    • Following the adversarial distribution perspective, the authors combine the distribution of the victim model’s preference for the target class with the distribution that preserves distance from the original image, then replace the distance distribution with a diffusion model and spread the victim model’s effect across denoising steps.
    • The core score is S(x)=log pf(ytar∣ x); the attack increases the target-class log-probability through queries; if the current prediction is still the original class, ytar is the highest-probability other class, otherwise it is the current predicted class.

    Latent-Space Score-Based Attack

    • Uses the Stable Diffusion v2.0 base model and DDIM; first performs DDIM Inversion on the original image latent and optimizes the unconditional embedding to reconstruct the original image, following DiffAttack.
    • Each reverse step obtains a noise prediction with the original condition cori and classifier-free guidance scale w, then performs a deterministic DDIM update.
    • It then calls attack A to obtain the update: xt−1← xt−1+δt−1,  δt−1=A(xt−1,S,ε,Q); each call makes at most Q queries and returns a perturbation satisfying L∞ radius ε.
    • The six adapted attacks include gradient-estimation NES and ZOsignSGD, sign-estimation SignHunter and Bandits with priors, and random-search SimBA and Square. Later steps query the decoded intermediate latent directly, as a lower-cost way than evaluating through the clean estimate; when a candidate is already misclassified, that attack call stops and denoising continues.

    ATG and TSG Conditional Guidance

    • ATG: in addition to the original reconstruction guidance, adds the noise difference conditioned on the current runner-up class, with weight s; each step uses one additional victim-model query to select ytar, while the guidance itself is provided by the diffusion model.
    • Design trade-off: the authors state that ATG strengthens the attack under tight query budgets, but a larger guidance scale may introduce competing-class features.
    • TSG: searches for a condition within the range where the L∞ distance between c and cori does not exceed ηc, estimates the condition gradient using Qc forward differences of ZOsignSGD, then performs one sign-ascent update, replacing cori with cadv.
    • Design trade-off: TSG uses additional queries for condition search; the authors state that it can strengthen the attack while limiting semantic change.

    Algorithm Flow and Overhead

    • Algorithm 1 first updates the inverted xT, then from t=T to 1 selects unguided, ATG, or TSG in turn, performs the DDIM update and latent-space attack, and finally decodes x0 to xadv.
    • Hyperparameters are T, ε, Q, and w, ATG’s s or TSG’s Qc; the unguided version makes at most (T+1)Q victim-model queries per image.
    • ATG adds T noise predictions and at most T queries; TSG adds T(Qc+1) queries and O(TQc) noise predictions.
    • The default implementation uses 20 DDIM steps, w=2.5, enables the attack in the last T=5 inverted steps, with ε=0.1; the remaining hyperparameters of each attack follow BlackboxBench and are listed in Appendix Table 11.
  4. What experiments did the paper conduct?

    Experiments cover 11 standard classifiers and 4 adversarially trained models, comparing attack accuracy, image quality, query cost, and various ablations.

    Experimental Setup

    • Data and models: 1000 ImageNet validation images from the ImageNet-Compatible Dataset; the 11 victim models are ResNet-50, VGG19, MobV2, IncV3, ConvNeXt, ViT-B, Swin-B, DeiT-B, DeiT-S, Mixer-B, and Mixer-L, and Table 3 additionally tests Inc-v3adv, Inc-v3ens3, Inc-v3ens4, and IncRes-v2ens.
    • Attack variants: six Latent score-based attacks are each tested without guidance, with ATG s=1.5/2.5, and with TSG Qc=60; the main tables use Q=60 or 120, with default T=5 and ε=0.1.
    • Baselines: PI-FGSM, S2I-FGSM, NCF, DiffAttack, ACA, APA-SG, APA-GC, NatADiff; for transfer attacks, results for each victim model are averaged over results where other models serve as surrogates. Latent-HSJA is compared separately only on ResNet-50.
    • Metrics: victim model top-1 accuracy, where lower indicates a stronger attack; FID uses DiffAttack's reference statistics, and this paper's attacks are averaged over 11 victim-specific runs. The appendix additionally measures LPIPS, SSIM, PSNR, MS-SSIM, FSIM, DISTS, TOPIQ-FR, NIQE, and BRISQUE.
    • Query accounting: without guidance, at most (T+1)Q queries per image, so Q=60 and 120 correspond to 360 and 720 queries; ATG adds one query per step, and TSG adds Qc condition queries and one scoring query per step.
    • Repetition and determination: the main tables do not report the number of repetitions; Appendix D repeats some settings of Latent-ZOsignSGD with seeds 0, 1, and 2. Attack success is determined by the victim model's top-1 prediction no longer being the original class, with no human or LLM review.

    Main Results

    The table below is based on Table 1 and gives the average top-1 accuracy and FID over the 11 victim models; full per-model results are in the original table.

    Swipe horizontally to read the table

    AttackQGuidanceAvg. Acc. (%) ↓FID ↓
    Clean——89.457.8
    ACA——38.664.8
    APA-SG——28.065.2
    APA-GC——17.772.0
    Latent-ZOsignSGD60—21.359.4
    Latent-ZOsignSGD120—12.159.6
    Latent-ZOsignSGD120ATG 2.56.167.4
    Latent-ZOsignSGD60TSG 6015.460.1
    • Results without guidance: the authors report that the FID of the six unguided attacks all range from 57.6 to 62.7, lower than ACA, which has the lowest FID among the baselines; at Q=120, the average accuracy of NES, ZOsignSGD, SignHunter, and Bandits is all lower than that of APA-GC.
    • Differences among attacks: dense update strategies perform better; Square achieves average accuracy of 37.7% and 24.1% at Q=60 and 120, and SimBA achieves 79.6% and 70.8%, on which basis the authors conclude that local or sparse updates lag under the tested budgets.
    • Guidance trade-offs: ATG lowers average accuracy for all six attacks at both budgets but increases FID; TSG lowers average accuracy by 5.9–24.6 percentage points at Q=60, with FID increasing by at most 0.7.

    Comparison with decision-based Latent-HSJA

    • Setup and results: Table 2 compares on ResNet-50; Latent-ZOsignSGD achieves accuracy of 20.8% and 10.3% at 360 and 720 queries, with FID of 59.6 in both cases; Latent-HSJA achieves 37.9% and FID 67.5 at 360 queries.
    • Budget exception: Latent-HSJA achieves accuracy of 45.2% and FID 60.9 at 7200 queries; the authors explain that its samples lie on the decision boundary and that many revert to the original class after being saved as 8-bit images, with more queries bringing them closer to the original image.
    • Condition differences: Latent-HSJA observes only predicted labels and does not constrain latent variable perturbations; the authors report that even when its query budget reaches ten times, Latent-ZOsignSGD still has lower accuracy and FID.

    Adversarially Trained Models and Image Quality Extensions

    • Adversarially trained models: in Table 3, unguided Latent-ZOsignSGD achieves average accuracy of 15.5% and 9.6% on the four models at Q=60 and 120, with FID of 59.2 in both cases; at Q=120 with ATG s=2.5 it is 5.5% with FID 67.8, and at TSG Qc=60 with Q=60 it is 10.4% with FID 59.7.
    • Per-image quality metrics: Appendix Table 10 reports that unguided Latent-NES, ZOsignSGD, Square, and SimBA outperform all transfer baselines on all seven full-reference metrics; unguided attacks have DISTS of 0.085–0.148, while transfer attacks have 0.155–0.410.
    • Effect of guidance: ATG s=1.5 and 2.5 increase LPIPS by 0.019–0.028 and 0.043–0.060, respectively, and TSG changes LPIPS by at most 0.012; on this basis the authors conclude that ATG trades some fidelity for a stronger attack.

    Other Ablations and Analyses

    • Component ablation (Table 4): with Latent-ZOsignSGD at Q=60, latent variable attack alone gives ResNet-50/ViT-B accuracy of 20.8%/24.0%; ATG alone gives 85.2%/88.8%, and TSG alone gives 67.9%/76.7%.
    • ATG+TSG (Appendix Table 5): at Q=60, Qc=60, and s=1.5, the combination gives 9.6%/14.1% on ResNet-50/ViT-B, with FID 64.0/64.5 and 670 queries per image.
    • Parameter analysis (Figure 4): unguided Latent-ZOsignSGD, with results averaged over ResNet-50 and ViT-B; as ε goes from 0.02 to 0.1, accuracy goes from 78.9% to 22.4%, and FID from 57.7 to 59.9.
    • Steps and queries (Figure 4): as T goes from 1 to 9, accuracy goes from 45.8% to 18.3%; as Q goes from 30 to 240, it goes from 53.9% to 7.4%.
    • Alternating update efficiency (Appendix Tables 6–7): the authors report that alternating takes about 1/4.9 and 1/4.5 of the time of fixed-step at similar accuracy; at the same budget, fixed-step has FID lower by at most 2.1.
    • Seeds and simplified example (Appendix D, G): across three seeds, the standard deviation of single-model accuracy is at most 1.2 percentage points, and the mean differs by at most 0.3 percentage points; among 100 clean samples in the three-Gaussian example, transfer, unguided, ATG, and TSG deceive the victim model by 29%, 10%, 100%, and 49%, respectively.
  5. What are some points that can be further explored?

    The paper does not specifically discuss limitations; what can be checked is the coverage of its data, models, query budgets, and repeated experiments.

    Limitations and Future Directions Noted by the Authors

    The paper does not specifically discuss limitations. The Conclusion summarizes the method and results and does not explicitly propose future research directions; the appendix extends compositional guidance, update methods, efficiency, seeds, and image-quality evaluation, and also does not list separate Limitations or Future Work.

    Experimental Coverage

    • Data and victim models: the main experiments use 1000 validation images from the ImageNet-Compatible Dataset, covering 5 CNNs, 4 vision Transformers, and 2 MLP-Mixers; Table 3 additionally covers 4 adversarially trained models.
    • Attack and defense comparisons: compares 8 transfer baselines and decision-based Latent-HSJA; the main comparison with Latent-HSJA is conducted only on ResNet-50. Adversarial training is a property of the victim models themselves; this paper queries these models directly, and the paper does not report evaluation of other defenses.
    • Query and parameter ranges: main tables use Q=60, 120, with default T=5, ε=0.1; Figure 4 additionally tests ε=0.02–0.14, T=1–9, Q=30–240, Qc=0–120.
    • Repeated experiments: Appendix D repeats only Latent-ZOsignSGD’s Q=60 unguided, ATG s=1.5, TSG Qc=60, and Q=120 unguided settings on the 11 victim models with seeds 0, 1, 2; other attacks in Table 1 do not report the number of repetitions.
    • Evaluation method and runtime environment: success is determined by top-1 prediction, and image quality is compared using automatic metrics and qualitative figures; the paper does not report human perceptual evaluation. Timings are measured on an NVIDIA L40 or RTX Pro 6000 Blackwell GPU, with the device used noted separately for different tables.
  6. Summarize the main content of the paper

    The authors propose a diffusion latent space attack that directly queries the victim model, and use two forms of conditional guidance to trade off attack strength against image quality.

    This is a study of score-based black-box attacks against image classifiers, aiming to generate UAEs that are natural and preserve the original image's semantics without accessing victim model gradients or relying on a surrogate.

    • Problem to solve: the authors argue that transfer-based diffusion attacks are affected by surrogate–victim differences, and that improving transferability may harm semantics; existing conditional settings also fail to fully exploit the diffusion model's conditional prior.
    • Method highlights: six score-based attacks are embedded in the DDIM reverse process, updating the latent variable at each step based on the victim model's output probabilities. ATG adds conditional guidance from the current runner-up class, while TSG searches for a more favorable new condition near the original conditional embedding.
    • Main results: in Table 1, unguided Latent-ZOsignSGD at Q=120 achieves average accuracy of 12.1% and FID 59.6 on the 11 victim models; the strongest transfer baseline, APA-GC, achieves 17.7% and 72.0.
    • Two kinds of guidance: at Q=120 with ATG s=2.5, Latent-ZOsignSGD's average accuracy drops to 6.1% with FID 67.4; at Q=60 with TSG Qc=60, it is 15.4% with FID 60.1. The authors state that ATG yields a stronger attack, while TSG improves effectiveness with almost unchanged image quality.
    • Supplementary evidence: in Table 3, on the four adversarially trained models, the average accuracy at Q=120 with ATG s=2.5 is 5.5%; in Table 2, on ResNet-50, Latent-ZOsignSGD reaches 20.8% with 360 queries, while Latent-HSJA at the same budget is 37.9%.
    • Authors' conclusion: direct victim model queries can align perturbations with its decision boundary, and the remaining denoising steps refine the latent variable perturbation into natural image content; the authors consider the framework superior to the compared transfer baselines in both attack effectiveness and image quality.
Read originalarxiv.org