Skip to main content
QUICK REVIEW

[Paper Review] Rethinking Model Ensemble in Transfer-based Adversarial Attacks

Huanran Chen, Yichi Zhang|arXiv (Cornell University)|Mar 16, 2023
Adversarial Robustness in Machine LearningComputer Science6 citations
TL;DR

This paper proposes Common Weakness Attack (CWA), a novel method to enhance transfer-based adversarial attacks by targeting the flatness of the loss landscape and proximity to local optima across an ensemble of surrogate models. By integrating Sharpness Aware Minimization and Cosine Similarity Encourager, CWA generates more transferable adversarial examples, achieving a 30% higher success rate than MI with logits ensemble on adversarially trained models.

ABSTRACT

It is widely recognized that deep learning models lack robustness to adversarial examples. An intriguing property of adversarial examples is that they can transfer across different models, which enables black-box attacks without any knowledge of the victim model. An effective strategy to improve the transferability is attacking an ensemble of models. However, previous works simply average the outputs of different models, lacking an in-depth analysis on how and why model ensemble methods can strongly improve the transferability. In this paper, we rethink the ensemble in adversarial attacks and define the common weakness of model ensemble with two properties: 1) the flatness of loss landscape; and 2) the closeness to the local optimum of each model. We empirically and theoretically show that both properties are strongly correlated with the transferability and propose a Common Weakness Attack (CWA) to generate more transferable adversarial examples by promoting these two properties. Experimental results on both image classification and object detection tasks validate the effectiveness of our approach to improving the adversarial transferability, especially when attacking adversarially trained models. We also successfully apply our method to attack a black-box large vision-language model -- Google's Bard, showing the practical effectiveness. Code is available at \url{https://github.com/huanranchen/AdversarialAttacks}.

Motivation & Objective

  • To understand why model ensembles improve transferability in black-box adversarial attacks beyond simple averaging.
  • To identify the underlying properties—flat loss landscape and closeness to local optima—that make ensemble attacks more effective.
  • To develop a principled method that explicitly optimizes for these shared weaknesses across multiple models.
  • To improve transferability, especially against adversarially trained models, without relying on query access or high computational cost.

Proposed method

  • The method formulates the ensemble objective using a quadratic approximation, revealing that transferability depends on the Hessian's Frobenius norm (flatness) and the squared L2 distance to each model’s local optimum.
  • It introduces Sharpness Aware Minimization (SAM) to promote flat loss landscapes by minimizing a combined objective of loss and sharpness.
  • It applies a Cosine Similarity Encourager (CSE) to align gradients across models, encouraging convergence near common local optima.
  • The approach is orthogonal to existing optimization methods like MI, TI, and Adam, allowing seamless integration for further performance gains.
  • The method is validated on image classification and object detection, including universal adversarial patch generation for detectors.
  • CWA is computationally efficient, outperforming baselines even with minimal iterations (T=5), indicating intrinsic effectiveness beyond iteration count.

Experimental results

Research questions

  • RQ1Why does model ensemble improve transferability in black-box adversarial attacks, beyond simple averaging of model outputs?
  • RQ2How do the geometric properties of the loss landscape—specifically flatness and proximity to local optima—relate to adversarial transferability?
  • RQ3Can we explicitly optimize for a shared 'common weakness' across multiple models to generate more transferable adversarial examples?
  • RQ4To what extent do the Hessian matrix norm and distance to local optima predict transferability in ensemble attacks?
  • RQ5Can the proposed method be effectively combined with existing attack algorithms to further improve performance?

Key findings

  • MI-CWA achieves a 30% higher attack success rate than MI with logits ensemble on 24 adversarially trained models, demonstrating superior transferability.
  • The loss landscapes around adversarial examples generated by CWA are flatter than those from MI, as confirmed by visualization on multiple defense models.
  • CWA significantly increases the cosine similarity of gradients between surrogate and black-box models, indicating better alignment with shared weaknesses.
  • Even with only T=5 iterations, CWA outperforms other methods, proving its effectiveness is not due to high computational cost.
  • In object detection, Adam-CWA generates a universal adversarial patch achieving an mAP of 9.85 across 8 modern detectors, surpassing prior work.
  • Ablation studies confirm that both flatness and proximity to local optima are critical components, and removing either degrades performance.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.