[Paper Review] A critique of the DeepSec Platform for Security Analysis of Deep Learning Models
This paper critically evaluates the DeepSec platform for adversarial robustness evaluation, exposing fundamental flaws in its experimental design, implementation, and analysis. It demonstrates that DeepSec's results are misleading due to incorrect attack/defense implementations, flawed statistical practices, and invalid evaluation protocols, rendering its conclusions unreliable for assessing adversarial robustness.
At IEEE S&P 2019, the paper "DeepSec: A Uniform Platform for Security Analysis of Deep Learning Model" aims to to "systematically evaluate the existing adversarial attack and defense methods." While the paper's goals are laudable, it fails to achieve them and presents results that are fundamentally flawed and misleading. We explain the flaws in the DeepSec work, along with how its analysis fails to meaningfully evaluate the various attacks and defenses. Specifically, DeepSec (1) evaluates each defense obliviously, using attacks crafted against undefended models; (2) evaluates attacks and defenses using incorrect implementations that greatly under-estimate their effectiveness; (3) evaluates the robustness of each defense as an average, not based on the most effective attack against that defense; (4) performs several statistical analyses incorrectly and fails to report variance; and, (5) as a result of these errors draws invalid conclusions and makes sweeping generalizations.
Motivation & Objective
- To identify and expose fundamental flaws in the DeepSec platform's methodology for evaluating adversarial attacks and defenses.
- To demonstrate that DeepSec's experimental design leads to misleading and invalid conclusions about the robustness of deep learning models.
- To highlight critical errors in implementation, statistical analysis, and threat model handling that undermine the credibility of DeepSec's reported results.
- To caution the research community against relying on DeepSec's findings for comparative studies of adversarial robustness.
Proposed method
- Conducted clean-room re-implementation of all attacks and defenses evaluated in DeepSec to verify correctness.
- Compared DeepSec's implementations against established, open-source implementations in CleverHans to identify discrepancies.
- Performed statistical analysis on attack success rates to quantify variance and assess significance of reported results.
- Evaluated the impact of incorrect hyperparameters, loss functions, and model architectures on adversarial training performance.
- Analyzed the effect of averaging robustness across threat models and incorrect distortion bounds on result validity.
- Identified and documented inconsistencies in attack success rates reported by DeepSec versus prior work and correct implementations.
Experimental results
Research questions
- RQ1To what extent do the attack and defense implementations in DeepSec accurately reflect the original methods and reported results in prior work?
- RQ2How do incorrect implementations of attacks and defenses in DeepSec affect the validity of its reported robustness metrics?
- RQ3Why is the use of average robustness instead of worst-case robustness fundamentally flawed in adversarial robustness evaluation?
- RQ4How do incorrect hyperparameters, model architectures, and loss functions in PGD adversarial training affect the evaluation of defenses?
- RQ5What are the implications of evaluating defenses across multiple threat models without respecting their original scope or distortion bounds?
Key findings
- DeepSec reports an FGSM attack success rate of 30.4% on MNIST with ℓ∞=0.3, but a correct re-implementation achieves 66%, indicating a significant underestimation of attack effectiveness.
- The JSMA attack is reported at 76% success rate by DeepSec, but the official CleverHans implementation achieves 95%, revealing a critical implementation flaw.
- DeepSec reports PGD attack success at 82.4% on CIFAR-10 with ℓ∞=0.2, contradicting prior work that reports 100% success, indicating a flawed implementation.
- DeepSec's PGD adversarial training implementation uses an incorrect loss function, smaller model capacity, and only 20 epochs instead of 83, leading to incorrect conclusions about its performance.
- The platform computes average robustness across threat models (ℓ∞, ℓ0, ℓ2), producing a meaningless metric that does not reflect real-world attack behavior.
- DeepSec's evaluation of defenses is invalid because it applies attacks not optimized for each defense’s threat model, and evaluates only a subset of samples for some attacks, making comparisons statistically meaningless.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.