Skip to content

GREAT Score: a framework for evaluating global robustness to adversarial perturbations based on generative modelsGREAT Score: Global Robustness Evaluation of Adversarial Perturbation using Generative Models

arXiv· arXiv:2304.09875· Zaitang Li, Pin-Yu Chen, Tsung-Yi HoThe Chinese University of Hong Kong; IBM ResearchIndexed by this site · 27 days ago· Originally publishedEvaluation

Quick read

Evaluation and benchmarks

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

The authors propose the GREAT Score for evaluating the global adversarial robustness of classifiers using generative models; they report that on CIFAR-10 the Spearman correlation coefficient with RobustBench rankings reaches 0.8971 after calibration, and that computational cost is reduced by up to 2000×.

Questions
Existing adversarial robustness evaluations aggregate local results on a limited set of test samples; the samples may not represent the true data distribution, leading to unstable model rankings; and many methods require white-box access and are computationally expensive.
Methods
The authors propose GREAT Score: using off-the-shelf generative models (GAN/DM) as a proxy for the real data distribution, taking the mean of the local certified perturbation lower bounds of a classifier on generated samples as a global robustness statistic, requiring only forward inference, and providing a probabilistic guarantee for finite samples.
Experiments and results
On CIFAR-10 (17 models) and ImageNet (5 models), the authors claim that the model rankings of GREAT Score are highly consistent with RobustBench (Spearman coefficient 0.8971 after calibration), and that the per-sample runtime is about 800-2000 times faster than Auto-Attack; it is also used to evaluate the group robustness of 6 online face recognition APIs.
Limitations and future work
The authors point out that the framework centers on L2-norm perturbations, and extending to other Lp norms requires generalizing Stein's Lemma; the method depends on the quality of the generative model's approximation of the real distribution, and the class ambiguity problem is beyond the scope of this paper. Experiments cover only 22 classifiers on CIFAR-10 and ImageNet and 6 online face APIs.
Experimental setupRebuffi_extra、Gowal_extra et al. · CIFAR-10、ImageNet-1K et al. · GREAT Score、Spearman's rank correlation coefficient et al.
Threat model
The evaluator only needs access to the classifier's output prediction confidence for each class (black-box setting), without model parameters or gradients; evaluation targets L2-norm bounded input perturbations, using synthetic data sampled from generative models (GAN/DM) to approximate the real data distribution, without real data.
Evaluated models
Rebuffi_extraGowal_extraRebuffi_70_ddpmRebuffi_28_ddpmAugustin_WRN_extraSehwagAugustin_WRNRadeRebuffi_R18GowalSehwag_R18Wu2020AdversarialAugustin2020AdversarialEngstrom2019RobustnessRice2020OverfittingRony2019DecouplingDing2020MMATrans1Trans2LIBRARY
Benchmarks
CIFAR-10ImageNet-1KRobustBenchCelebA-HQCelebA
Metrics
GREAT ScoreSpearman's rank correlation coefficientRobust Accuracy (RA)
AI summaryGREAT Score is the first framework to evaluate the global robustness to adversarial perturbations using generative models; the score represents the average certified level of attack-resistant perturbation for samples drawn by the generative model. The evaluation requires no running of adversarial attacks, can scale to large models, and on RobustBench is highly correlated with attack-based model rankings while having significantly lower computational cost. The framework can also remotely audit privacy-sensitive black-box models and has been demonstrated on multiple online face recognition services.

GREAT Score is the first framework to evaluate the global robustness to adversarial perturbations using generative models; the score represents the average certified level of attack-resistant perturbation for samples drawn by the generative model. The evaluation requires no running of adversarial attacks, can scale to large models, and on RobustBench is highly correlated with attack-based model rankings while having significantly lower computational cost. The framework can also remotely audit privacy-sensitive black-box models and has been demonstrated on multiple online face recognition services.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Existing adversarial robustness evaluation only performs local aggregation on finite samples and requires white-box access; the authors propose using generative models for global, black-box, low-overhead robustness evaluation.

    Core problem: how to efficiently evaluate a classifier's global (distribution-level) robustness to adversarial perturbations without knowing the real data distribution and with only black-box access to the model.

    • Local aggregation does not represent global: the authors point out that current research mainly ranks models by aggregating local robustness results on a set of test samples, but sampling may be biased and cannot represent the true global robustness of the underlying data distribution. The example given by the authors: using AutoAttack to rank ImageNet models with 100 independent trials on 10000 random samples (the default setting), compared with the ranking using all 50000 test samples, the ranking coefficient is only 0.907±0.0256; based on this, the authors argue that AutoAttack's model ranking under undersampling exhibits notable fluctuation.
    • Other shortcomings of existing methods: the authors claim that many attack-independent methods are limited to the white-box setting and require model parameters, input gradients, or internal representations; both attack-dependent and attack-independent state-of-the-art methods are difficult to scale to large models and large data volumes due to overheads such as iterative gradient computation and layer-by-layer interval bound propagation.
    • Core idea: use off-the-shelf generative models (GAN or diffusion models) as a proxy for the unknown real data distribution, and define and estimate global robustness on their sampling distribution; evaluation uses only synthetic data, so it is also applicable to privacy-sensitive remote auditing.
    • Paper outputs: proposes the GREAT Score framework, provides two theoretical guarantees (certified lower bound, finite-sample probabilistic guarantee), verifies ranking consistency on RobustBench's CIFAR-10/ImageNet models, and demonstrates black-box auditing of online face recognition APIs.
    • Evaluation setting (as set by the authors):
      • Evaluator knowledge: black-box, can only see the model's output prediction confidence for each class;
      • Perturbation model: L2-norm bounded input perturbations;
      • Data: synthetic samples sampled from generative models, no real data used;
      • Victim systems: K classifiers, including models on RobustBench and online APIs that only return prediction probabilities.
  2. What related research exists?

    Related work is divided into four groups: adversarial attacks and defenses, generative models, local robustness certification/estimation, and other global robustness studies; the authors position this paper as a global metric complementary to attack-based evaluations.

    Adversarial attacks and defenses

    • PGD (Madry et al.) and Auto-Attack (Croce & Hein, 2020): the former formulates the adversarial perturbation search as a constrained optimization, and the latter is a state-of-the-art attack integrating white-box and black-box attacks, and is the object of the ranking comparison in this paper.
    • Adversarial training (Madry et al.) and RobustBench (Croce et al., 2020/2021): the latter is the largest standardized benchmark that ranks models by robust accuracy under Auto-Attack, and this paper conducts experiments on its CIFAR-10/ImageNet models.
    • Other robustness measures: adversarial sparsity (Olivier & Raj, 2023), probabilistic robustness (Robey et al., 2022), adversarial hypervolume (Guo et al., 2024), which measure robustness from the perspectives of the number of perturbations, the average/worst-case trade-off, and the volume under different perturbation strengths, respectively.

    Generative models

    • GAN (Goodfellow et al., 2014/2020) and conditional GAN: learn the data distribution via a two-player zero-sum game, with the generator taking z ∼ N(0, I) as input.
    • Diffusion models (e.g., DDPM, Ho et al., 2020): forward noise addition, and reverse sampling by solving a stochastic differential equation. This paper directly uses publicly available off-the-shelf GANs/DMs.

    Local robustness certification and estimation

    • The concept of certified radius (Hein & Andriushchenko, 2017): the top-1 prediction remains unchanged within the certified radius, and the certified radius is a lower bound on the minimum perturbation.
    • CLEVER (Weng et al., 2018): the authors explicitly call it the work closest to this paper; it uses extreme value theory to estimate the local Lipschitz constant to obtain a local robustness score. The paper points out two differences: this paper focuses on global robustness, and GREAT Score is the mean of the certified radius over the generative model's sampling distribution; and the local estimate for each generated sample in this paper is itself a certified radius (CLEVER's score is not a certified radius).
    • Other attack-independent methods: neural network verification (Wong & Kolter, 2018; Zhang et al., 2018), randomized smoothing (Cohen et al., 2019), local Lipschitz constant estimation (Weng et al., 2018).

    Other "global robustness" studies (Appendix B.1)

    • Ruan et al. (2018): defines global robustness as the expectation of the maximum certified radius in L0 norm over the test set; the paper points out that this paper is not limited to the test set, but defines global robustness from the perspective of the entire data distribution using generative models.
    • The global Lipschitz constant route (Leino et al., 2021; Fazlyab et al., 2019): uses SDP to compute the classifier's global Lipschitz constant as a global certificate; the paper points out that SDP computation is expensive and hard to scale, whereas this paper only requires forward propagation.

    Baselines and benchmarks: the baselines for the ranking comparison are RobustBench Accuracy (RA of Auto-Attack on the test set) and AutoAttack Accuracy (RA of Auto-Attack on generated samples); the local perturbation comparison uses CW attack (Carlini & Wagner, 2017); the face API validation uses square attack (Andriushchenko et al., 2020). The authors position GREAT Score as a computationally efficient global metric complementary to attack-based evaluations, not a replacement.

  3. How does the paper address this problem?

    GREAT Score averages the certified lower bound of the local classification margin over the sampling distribution of a generative model as a certified estimate of global robustness, requiring only forward passes.

    Overall approach: use an off-the-shelf conditional generative model G to approximate the true data distribution, take the expectation of the local certified perturbation lower bound over its sampling distribution to obtain a global robustness statistic, the GREAT Score; computation requires only three steps: sampling, generation and forward inference.

    Problem Formalization

    • Let K-class classifier f : [0,1]^d → [0,1]^K, and let ∆min(x) be the minimum perturbation required to change the top-1 prediction; if the model already predicts incorrectly on x, define ∆min(x) = 0.
    • True global robustness is defined as Ω(f) = 𝔼x∼ P[Δmin(x)], i.e., the expectation of the minimum perturbation over the true distribution P; since P is unknown, this value cannot be computed directly and can only be estimated.
    • If a local statistic g(x) satisfies g(x) ≤ ∆min(x) for all x, then its expectation is a certified lower bound on true global robustness.

    Local Score and Certified Lower Bound (Theorem 1)

    • For a generated sample G(z) (z ∼ N(0, I)), the local robustness score is defined as g(G(z)) = √(π/2) · max{fc(G(z)) − maxk ≠ c fk(G(z)), 0}, i.e., the difference (margin) between the confidence of the correct class and that of the highest other class multiplied by a constant, taking 0 when the prediction is incorrect.
    • Theorem 1: Ω̂(f) = E_z[g(G(z))] is a certified lower bound on the true global robustness of f under L2-norm perturbations relative to G. The proof (Appendix C) combines the local certification formula of [59] with Stein's Lemma: after Gaussian smoothing, the margin function has a closed-form global Lipschitz constant of √(2/π) under the L2 norm, thereby avoiding pointwise estimation of local Lipschitz constants.

    Finite-Sample Guarantee (Theorem 2)

    • In practice, the sample mean Ω̂_S(f) = (1/n)Σ g(G(z_i|y_i)) is used to estimate Ω̂(f), with samples generated by the conditional generator G(·|y) according to random classes.
    • Theorem 2: for any ϵ, δ > 0, if the sample size n ≥ 32e·log(2/δ)/ϵ², then with probability at least 1−δ, |Ω̂_S(f) − Ω̂(f)| ≤ ϵ; the proof is based on the concentration inequality of [40] and requires the classifier outputs to be bounded (which can be satisfied with softmax or sigmoid).

    Algorithm and Computational Complexity

    • Algorithm 1: loop N_S times—randomly select class y, sample z ∼ N(0, I) to generate G(z|y), pass forward through f to obtain the predictions for each class, and record the local score; finally take the sample mean.
    • Complexity grows linearly with the number of samples, and each sample requires only one generation and one forward pass, so it is applicable to black-box classifiers; Appendix E notes for comparison that the complexity of CW attack is O(N_S·T_g·T_b·B) (T_g is typically 1000, T_b is 9), far higher than GREAT Score.

    Calibration (Calibrated GREAT Score)

    • When successful perturbations given by an attack (an upper bound on the minimum perturbation, such as CW attack) are available, calibration can be performed in the model-ranking setting: compute GREAT Score for M models on a common set of generated samples, and try four output-layer designs (sigmoid/softmax with temperature and their two combinations), grid-searching the temperature to maximize the Spearman correlation coefficient with CW perturbation rankings.
    • The authors report that the fourth (softmax(sigmoid(·|T1=1)|T2), i.e., sigmoid followed by softmax with temperature) performs best and adopt it as the default calibration setting (Appendix F, Table 7).
  4. What experiments did the paper conduct?

    Validates ranking consistency and runtime efficiency on 17 CIFAR-10 models and 5 ImageNet models from RobustBench, and audits 6 online face recognition APIs.

    Experimental Setup

    • Models under test: all models on RobustBench with nonzero RA under L2 norm at perturbation level 0.5—17 in total on CIFAR-10 (Rebuffi_extra, Gowal_extra, Rebuffi_70_ddpm, Rebuffi_28_ddpm, Augustin_WRN_extra, Sehwag, Augustin_WRN, Rade, Rebuffi_R18, Gowal, Sehwag_R18, Wu2020Adversarial, Augustin2020Adversarial, Engstrom2019Robustness, Rice2020Overfitting, Rony2019Decoupling, Ding2020MMA), and 5 on ImageNet (Trans1, Trans2, LIBRARY, Fast, Trans3; ImageNet has no L2 benchmark, so the authors used the L∞ benchmark).
    • Generative models: by default, the StyleGAN2 with the highest IS in StudioGAN (CIFAR-10, IS=10.477) and BigGAN (ImageNet, IS=99.705); ablations used LSGAN, GGAN, SAGAN, SNGAN, DDPM, StyleGAN2; the face experiments used InterFaceGAN trained on CelebA-HQ.
    • Sample size: 500 generated samples per setting; 500 face images per group for the face APIs (Old/Young/With/Without Eyeglasses), with gender labels annotated by the FAN classifier.
    • Baselines and metrics: RobustBench Accuracy (test-set Auto-Attack RA), AutoAttack Accuracy (Auto-Attack RA on generated samples, L2=0.5); ranking consistency measured with Spearman's rank correlation coefficient; local comparison used CW attack (learning rate 0.005, 200 iterations).
    • Implementation details: CIFAR-10 classifier logits passed through sigmoid, ImageNet (1000 classes) through softmax; calibration temperature grid-searched in [0,2] at intervals of 0.00001; all experiments run on a single GTX 2080 Ti (12GB).
    • Number of repetitions: the paper does not report the number of repetitions for each experiment (the AutoAttack ranking stability experiment in the introduction used 100 independent trials).

    Main Results

    Rank correlation coefficients of the 17 models on CIFAR-10 (according to Table 2):

    Ranking comparisonUncalibratedCalibrated
    GREAT Score vs. RobustBench0.66180.8971
    GREAT Score vs. AutoAttack0.36900.6941
    RobustBench vs. AutoAttack0.72960.7296

    For the 5 models on ImageNet (according to Table 3): the Spearman coefficient between GREAT Score and RobustBench is written as 0.8 in the main text and 0.9 in the table note; that between Auto-Attack and RobustBench is written as 0.6 in the main text and 0.872 in the table note (the two figures are inconsistent; both are copied as written).

    • The authors note that the correlation coefficient between RobustBench and AutoAttack is itself only 0.7296, indicating that Auto-Attack's rankings become inconsistent when the data samples change; moreover, AutoAttack's rank correlation coefficient on 10000 CIFAR-10 test images at ϵ=0.3 and ϵ=0.7 is also only 0.9485. The authors therefore consider GREAT Score (which measures classification margin) and AutoAttack (which measures accuracy under a fixed budget) to be complementary metrics that need not fully agree.
    • Table 1 shows that, across the 17 models, the calibrated GREAT Score (0.909–1.216) is consistently greater than the uncalibrated value (0.112–0.583), and still lower than the average perturbation of the CW attack (1.084–1.943); the authors state that this verifies that GREAT Score is a certified lower bound on true global robustness and that calibration narrows the gap with the CW perturbation.
    • The authors state that on ImageNet the ranking consistency between GREAT Score and RobustBench is higher than that between Auto-Attack and RobustBench, and consider GREAT Score a useful margin-based robustness metric.

    Local Certification and Cumulative RA Validation

    • What was tested: 20 randomly generated CIFAR-10 images, using the Rebuffi_extra model, comparing the local GREAT Score with the perturbation found by CW attack (Figure 1).
    • Results: the authors state that the local GREAT Score is lower than the CW attack perturbation sample by sample, i.e., CW gives an upper bound on the minimum perturbation and GREAT Score gives a lower bound, with the true ∆min lying between the two (the figure is a per-sample curve; no readable values are available in the converted text).
    • Cumulative RA (Figure 2, 500 samples, Auto-Attack's L2 from 0 to 1 in steps of 0.05): the authors state that the trend of GREAT Score's certified RA curve is similar to Auto-Attack's empirical RA curve; the authors also note that the gap between the two curves does not mean GREAT Score is worse, since there may be undiscovered adversarial examples at higher perturbation radii, and the certified curve is a more conservative but guaranteed estimate.

    Online Face API Audit

    • What was tested: 6 black-box gender classification APIs (BetaFace, Inferdo, ARSA-Technology, DEEPFACE, Baidu, Luxand), with 500 InterFaceGAN-generated face images per group, computing group-wise and overall GREAT Score (Table 4).
    • Results: overall GREAT Score ranges from 0.580 for Inferdo to 1.048 for Baidu; for all APIs, the With Eyeglasses group scores lower than the Without Eyeglasses group (e.g., BetaFace 0.547 vs 0.973), and the authors suggest that eyeglasses may be a common spurious feature affecting group robustness in gender classification; BetaFace, Inferdo and DEEPFACE show large differences between the Old and Young groups.
    • Validation (Table 5): on DEEPFACE, using square attack (ϵ=2, 100 queries) for comparison, the group with the higher GREAT Score also has higher robust accuracy in all four groups (e.g., Without Eyeglasses: GREAT Score 0.969 corresponds to RA 89.00%, With Eyeglasses: 0.763 corresponds to 65.80%); the authors state that the two are consistent on both attributes.

    Other Ablations and Analyses

    • Generative model quality (Figure 3, CIFAR-10, 5 GANs + DDPM): the authors state that the higher the IS of the generative model, the better the ranking consistency between GREAT Score and RobustBench.
    • Runtime (Figure 4 / Table 8, 500 generated CIFAR-10 images): GREAT Score takes 0.007–0.038s per sample, Auto-Attack takes 3.5776–61.3362s per sample; the authors state this is roughly an 800–2000× speedup.
    • Sample complexity (Figure 7/8, Rebuffi_extra, CIFAR-10): within the sample size range of 50–10000, the mean and standard deviation of GREAT Score are stable; the authors state that ≥500 is sufficient.
    • Comparison with real test set (Table 9, Appendix K): GREAT Score on 500 original CIFAR-10 test samples (0.08–0.525) is close to the values on generated samples.
    • Scalability (Table 10, Appendix N): ResNet50/101/152, 500–2000 images; computation time grows linearly with data scale and model complexity (e.g., ResNet152 from 9149ms to 36588ms).
  5. What are some points that can be further explored?

    The authors explicitly state that the framework is limited to L2-norm perturbations and depends on the quality of the generative model; the experiments cover 22 classifiers and 6 online APIs.

    Limitations and future directions pointed out by the authors

    • L2 norm only (Section 5 Limitations): the authors write that the framework is "centered on L2-norm based perturbations", and point out that if Stein's Lemma can be generalized to other Lp norms, this limitation can be resolved.
    • Depends on generative model quality (Section 4.4 Limitations and Further Analysis): the authors acknowledge that the performance of GREAT Score depends on the generative model's ability to produce valid samples belonging to the conditional class, and that the assumption that "generative models can well approximate the real data distribution" is key; the authors cite GAN convergence research and emphasize that the generative model must be carefully selected in application.
    • Class ambiguity beyond scope (Section 4.4): the authors acknowledge that class ambiguity may exist in some cases, but point out that their method targets robustness evaluation of classifiers with clear labels, and the label ambiguity problem is beyond the scope of this paper's method.
    • Future work (Section 4.4): the authors state that the above considerations "highlight areas for potential future work", without listing more specific plans.

    Experimental coverage

    • A total of 22 classifiers under test: 17 on CIFAR-10 and 5 on ImageNet from RobustBench (all models with nonzero RA under L2=0.5; ImageNet uses the L∞ benchmark), plus ResNet50/101/152 in Appendix N for scalability testing.
    • Generative models cover StyleGAN2, BigGAN, LSGAN, GGAN, SAGAN, SNGAN, DDPM (ablation), and InterFaceGAN (faces).
    • Each main experimental condition uses 500 generated samples; each face API group uses 500 images; local validation uses 20 images; the paper does not report the number of repetitions of the main experiments or confidence intervals for the ranking correlation coefficients.
    • Attack validation includes CW attack (CIFAR-10) and square attack (only one API, DEEPFACE, ϵ=2, 100 queries).
    • The face experiments test only the gender classification attribute, with four attribute groups; the paper does not report the accuracy of FAN's annotated gender labels or manual verification.
  6. Summarize the main content of the paper

    GREAT Score measures global robustness by the mean of certified perturbation lower bounds over the generative model's sampling distribution; the authors claim its rankings are consistent with RobustBench and its overhead is several orders of magnitude lower.

    This is an adversarial robustness evaluation method paper (NeurIPS 2024) that proposes the GREAT Score—an attack-independent framework that uses off-the-shelf generative models to approximate the true data distribution and evaluate the global adversarial robustness of classifiers.

    • Problem addressed: existing evaluations aggregate local robustness on a limited set of test samples; when the samples do not represent the true distribution, rankings are unstable (the authors report that AutoAttack's ranking coefficient over 100 trials on 10000 samples is only 0.907±0.0256); many methods also require white-box access and are computationally expensive.
    • Method highlights: the local score is the margin between the correct class and the highest other class multiplied by √(π/2) (0 when the prediction is incorrect), averaged over the generative model's sampling distribution; Theorem 1 proves it is a certified lower bound on true global robustness under L2 perturbations, and Theorem 2 gives a sample complexity guarantee of n ≥ 32e·log(2/δ)/ϵ²; computation requires only one forward pass per sample, applies to black-box classifiers, and uses only synthetic data, making it suitable for privacy-sensitive remote audits.
    • Main results:
      • On 17 CIFAR-10 models, the Spearman coefficient between GREAT Score and RobustBench rankings is 0.6618 uncalibrated and 0.8971 calibrated (Table 2);
      • On 5 ImageNet models, the coefficient between the two is written as 0.8 in the main text and 0.9 in the table note (Table 3; the two are inconsistent);
      • Per-sample runtime is 0.007–0.038s, which the authors state is about 800–2000× faster than Auto-Attack (Figure 4/Table 8);
      • The overall GREAT Score of 6 online gender classification APIs ranges from 0.580 to 1.048, and for all APIs the With Eyeglasses group scores lower than the Without Eyeglasses group (Table 4);
      • The higher the IS of the generative model, the better the ranking consistency (Figure 3).
    • Authors' conclusion: the authors consider GREAT Score a computationally efficient global robustness metric complementary to attack-based evaluations, usable in model audit scenarios; they also acknowledge that the framework is limited to L2-norm perturbations and depends on the quality of the generative model's approximation of the true distribution.
Read originalarxiv.org