Skip to main content
QUICK REVIEW

[Paper Review] Making Substitute Models More Bayesian Can Enhance Transferability of Adversarial Examples

Qizhang Li, Yiwen Guo|ArXiv.org|Feb 10, 2023
Adversarial Robustness in Machine LearningComputer Science5 citations
TL;DR

This paper proposes a Bayesian fine-tuning approach for substitute models to enhance the transferability of adversarial examples in black-box attacks. By modeling model weights as probability distributions and optimizing for the posterior mean, the method generates more transferable perturbations, achieving a 19% absolute increase in attack success rate on ImageNet and outperforming state-of-the-art methods by large margins, especially when combined with existing techniques.

ABSTRACT

The transferability of adversarial examples across deep neural networks (DNNs) is the crux of many black-box attacks. Many prior efforts have been devoted to improving the transferability via increasing the diversity in inputs of some substitute models. In this paper, by contrast, we opt for the diversity in substitute models and advocate to attack a Bayesian model for achieving desirable transferability. Deriving from the Bayesian formulation, we develop a principled strategy for possible finetuning, which can be combined with many off-the-shelf Gaussian posterior approximations over DNN parameters. Extensive experiments have been conducted to verify the effectiveness of our method, on common benchmark datasets, and the results demonstrate that our method outperforms recent state-of-the-arts by large margins (roughly 19% absolute increase in average attack success rate on ImageNet), and, by combining with these recent methods, further performance gain can be obtained. Our code: https://github.com/qizhangli/MoreBayesian-attack.

Motivation & Objective

  • To improve the transferability of adversarial examples in black-box attacks by increasing diversity in substitute models.
  • To address the limited attention given to substitute model training/fine-tuning in prior work, which has largely focused on input diversity and backpropagation.
  • To develop a principled Bayesian framework for substitute model training that enables effective ensemble-like attack generation.
  • To demonstrate that Bayesian modeling of model parameters enhances adversarial transferability across diverse victim models, including robust and vision transformer architectures.

Proposed method

  • The method models the weights and biases of the substitute model as random variables with a Gaussian posterior distribution, enabling uncertainty-aware training.
  • It formulates the attack as maximizing the expected adversarial loss over the posterior distribution of the substitute model, effectively attacking an ensemble of models.
  • A principled fine-tuning strategy is developed based on Bayesian inference, compatible with off-the-shelf Gaussian posterior approximations for DNNs.
  • The approach is implemented via stochastic optimization over the posterior, maintaining computational efficiency comparable to standard training.
  • The method is compatible with existing transfer-based attack techniques and can be combined with them for further performance gains.
  • The Bayesian substitute model is trained using variational inference, with the posterior distribution over weights approximated via isotropic or full-covariance Gaussians.

Experimental results

Research questions

  • RQ1Can improving the diversity of substitute models through Bayesian parameter uncertainty enhance the transferability of adversarial examples?
  • RQ2Does Bayesian fine-tuning of substitute models lead to more robust and transferable adversarial examples compared to standard deterministic training?
  • RQ3How does the proposed method compare to state-of-the-art transfer-based attacks in terms of success rate across diverse victim models, including vision transformers and robust models?
  • RQ4Can the Bayesian substitute model be effectively combined with existing attack techniques to further improve transferability?

Key findings

  • The proposed method achieves a 19% absolute increase in average attack success rate on ImageNet compared to state-of-the-art methods, with a success rate of 94.65% when combined with ILA++.
  • On vision transformers such as ViT-B and DeiT-B, the method achieves success rates of 21.66% and 43.53%, respectively, significantly outperforming I-FGSM (4.70% and 5.92%) and ILA++ (9.48% and 21.34%).
  • When attacking a certified robust model (smoothed ResNet-50), the method achieves a 29.25% success rate under ℓ∞=16/255, compared to 9.74% for I-FGSM and 17.64% for LGV.
  • The method maintains strong performance across diverse architectures, including ResNet, VGG, DenseNet, MobileNet, and PNASNet, with average success rates exceeding 92% when combined with existing methods.
  • The method is effective even when the substitute model is a standard ResNet-50, demonstrating that Bayesian fine-tuning alone can significantly boost transferability.
  • Combining the method with ILA++ yields the highest average success rate of 94.65%, with a worst-case success rate of 84.44% on PNASNet, showing robustness across models.

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.