ZOO: Zeroth Order Optimization Based Black-box Attacks to Deep Neural Networks without Training Substitute Models
Pin-Yu ChenHuan ZhangYash SharmaJinfeng YiCho-Jui Hsieh
Proposes a zeroth-order optimization method that directly estimates gradients from output prediction scores to generate black-box adversarial attacks on deep neural networks, achieving white-box level attack success without requiring substitute models.
Deep neural networks are increasingly deployed in mission-critical applications such as autonomous driving and malware prevention, yet they remain highly vulnerable to adversarial examples—minor, imperceptible input modifications that cause systems to fail. Evaluating model security typically relies on either white-box testing, which requires full access to internal parameters, or black-box testing that trains approximate substitute models. However, substitute models suffer from severe transferability loss and do not scale to complex, real-world networks.
The article evaluates a black-box attack method called Zeroth Order Optimization (ZOO), designed to generate targeted and untargeted adversarial examples against deep learning image classifiers by observing only input images and output confidence scores, completely removing the need to train substitute models.
The researchers formulated the attack as an optimization problem using a modified loss function and estimated numerical gradients directly from target queries using finite differences. To scale the approach to large models, they employed stochastic coordinate descent combined with three acceleration techniques: attack-space dimension reduction, hierarchical attacks that scale resolution dynamically, and importance sampling to prioritize key image regions. The approach was validated across standard benchmark datasets (MNIST and CIFAR10) and a full-scale ImageNet model (Inception-v3).
The evaluation revealed several critical findings. First, the proposed method achieves attack success rates close to 100% on standard datasets (MNIST and CIFAR10), matching the effectiveness of state-of-the-art white-box methods (Carlini & Wagner) and vastly outperforming substitute-model black-box baselines, which achieved as low as 5% to 27% on targeted tasks. Second, the added noise distortions were minimal and visually imperceptible, closely matching white-box distortion levels. Third, the method successfully scaled to the complex Inception-v3 ImageNet model, yielding an 88.9% untargeted success rate within 1,500 iterations and achieving a successful targeted attack that flipped model confidence from 97% to below 1% for the correct class while boosting the target class by over 1,000 times.
These findings demonstrate that concealing model parameters and internal architectures provides false security. Practical black-box systems exposed via public query interfaces (such as cloud prediction APIs or mobile applications) face vulnerability levels comparable to fully exposed white-box models. Organizations relying on deep neural networks in safety-critical deployments must reassess their security posture and assume that access to classification outputs is sufficient for adversaries to execute precise, highly effective attacks.
Organizations should incorporate derivative-free black-box evaluations into robust adversarial testing pipelines, use black-box attack generation to inform adversarial retraining defenses, and extend robustness verification to other data modalities, such as speech, text, and time series. While the proposed approach requires more queries and computation time than direct white-box attacks, the experimental evidence firmly demonstrates that model obscurity alone fails to protect deep neural networks from imperceptible adversarial manipulation.
- Paper: Practical Black-Box Attacks against Machine Learning, Nicolas Papernot et al. (2017). Reading this foundational study on black-box attacks via substitute models provides essential context for understanding the motivation behind replacing substitutes with zeroth-order optimization.
- Paper: Towards Deep Learning Models Resistant to Adversarial Attacks, A. Ma̧dry et al. (2017). Understanding projected gradient descent and optimization landscapes is crucial for grasping how zeroth-order optimization estimates gradients directly from model outputs.
- Paper: Reliable evaluation of adversarial robustness with an ensemble of diverse parameter-free attacks, Francesco Croce et al. (2020). This work builds on foundational attack methodologies by introducing an ensemble of parameter-free attacks to reliably evaluate adversarial robustness across diverse architectures.
