Introduction
Adversarial attacks involve introducing subtle, imperceptible perturbations to images to deceive Deep Neural Networks (DNNs). While highly effective in white-box settings where model parameters are known, real-world applications often present black-box scenarios. To overcome this, researchers rely on adversarial transferability: crafting attacks on surrogate models that can successfully fool unknown target models. A prevalent strategy involves attacking an ensemble of surrogate models simultaneously, under the assumption that shared vulnerabilities across multiple models will generalize to the target.
The Challenge: High Gradient Variance
Existing ensemble attacks typically average the outputs or gradients of the constituent models. However, because different DNN architectures possess distinct internal structures, their gradient directions—the paths toward successful deception—often vary significantly. This high variance acts as noise during optimization, causing attacks to overfit to the specific quirks of the surrogate ensemble and get trapped in poor local optima.
As shown in the heatmap above, the cosine similarity between gradients of different models is remarkably low. This empirical evidence supports the insight that simple averaging is an inefficient way to find a robust, transferable perturbation.
Proposed Method: Stochastic Variance Reduced Ensemble (SVRE)
To address this, the Stochastic Variance Reduced Ensemble (SVRE) attack treats the ensemble of models as a mini-dataset and applies stochastic variance reduction techniques inspired by the SVRG optimization algorithm. The method utilizes a nested loop structure:
- Outer Loop: Computes the average gradient across the entire ensemble to establish a stable "anchor" or reference point.
- Inner Loop: Performs multiple iterations ($M$) where a single model is randomly sampled. The gradient for this specific model is then "tuned" using the anchor from the outer loop to reduce variance.
By stabilizing the optimization path, SVRE prevents the attack from being pulled toward directions that only work for individual models, instead capturing the shared vulnerabilities of the entire ensemble.
Experimental Evaluation
The SVRE method was evaluated using the NIPS 2017 ImageNet-compatible dataset (1,000 images) against a diverse set of targets, including normally trained models (e.g., Inception-v3, ResNet-101), adversarially trained models, and nine state-of-the-art defense mechanisms.
Key Results
SVRE consistently outperformed standard ensemble methods across all test cases:
- Success Rate Gains: For the standard I-FGSM attack, SVRE improved the average success rate on normally trained models from 62.83% to 79.02%.
- Hardened Targets: When combined with advanced techniques like SI-TI-DIM, SVRE achieved a 93.59% success rate against models with advanced defenses, compared to 89.82% for vanilla ensembles.
- Hyperparameter Sensitivity: The performance of SVRE is influenced by the internal update frequency $M$. As shown below, increasing $M$ generally improves the attack success rate across various base attack methods (I-FGSM, MI-FGSM, and SI-TI-DIM) before plateauing.
Conclusion
By reframing ensemble attacking as a stochastic optimization problem, SVRE significantly enhances the transferability of adversarial examples. While the method increases computational cost—requiring approximately nine times more gradient calculations in these tests—the substantial boost in success rates against both standard and hardened models makes it a powerful tool for evaluating the robustness of deep learning systems.
Summary updated