Skip to main content
QUICK REVIEW

[Paper Review] Towards Lightweight Black-Box Attacks against Deep Neural Networks

Chenghao Sun, Yonggang Zhang|arXiv (Cornell University)|Sep 29, 2022
Adversarial Robustness in Machine LearningComputer Science5 citations
TL;DR

This paper introduces lightweight black-box attacks that successfully generate adversarial examples using only one image per class, by exploiting shallow layers of DNNs trained on minimal data. It proposes Error TransFormer (ETF), which transforms parameter-space approximation errors into feature-space perturbations, achieving 97% of the attack success rate of full-data black-box attacks with just one sample per class.

ABSTRACT

Black-box attacks can generate adversarial examples without accessing the parameters of target model, largely exacerbating the threats of deployed deep neural networks (DNNs). However, previous works state that black-box attacks fail to mislead target models when their training data and outputs are inaccessible. In this work, we argue that black-box attacks can pose practical attacks in this extremely restrictive scenario where only several test samples are available. Specifically, we find that attacking the shallow layers of DNNs trained on a few test samples can generate powerful adversarial examples. As only a few samples are required, we refer to these attacks as lightweight black-box attacks. The main challenge to promoting lightweight attacks is to mitigate the adverse impact caused by the approximation error of shallow layers. As it is hard to mitigate the approximation error with few available samples, we propose Error TransFormer (ETF) for lightweight attacks. Namely, ETF transforms the approximation error in the parameter space into a perturbation in the feature space and alleviates the error by disturbing features. In experiments, lightweight black-box attacks with the proposed ETF achieve surprising results. For example, even if only 1 sample per category available, the attack success rate in lightweight black-box attacks is only about 3% lower than that of the black-box attacks with complete training data.

Motivation & Objective

  • To investigate whether black-box attacks are feasible in the no-box setting, where neither training data nor model outputs are accessible.
  • To address the challenge of high approximation error in surrogate models trained on minimal data, particularly in shallow layers of DNNs.
  • To develop a method that mitigates the impact of limited data on attack effectiveness by transforming parameter-space errors into feature-space perturbations.
  • To demonstrate that lightweight black-box attacks can achieve near-parity with full-data black-box attacks in real-world scenarios.

Proposed method

  • Leverages shallow layers of DNNs, which remain stable and generalizable even when trained on only a few samples, to construct lightweight surrogate models.
  • Proposes Error TransFormer (ETF), a min-max framework that maps approximation errors in the parameter space to worst-case feature-space perturbations.
  • Uses a feature-space optimization scheme to generate adversarial examples that maximize fooling under the worst-case feature perturbations.
  • Employs contrastive learning and self-supervised pretraining to train surrogate models on unlabeled or out-of-distribution data when supervision is unavailable.
  • Applies the ETF framework to both supervised and unsupervised settings, including OOD data, to maintain high attack success rates.
  • Employs a min-max formulation to generate adversarial examples robust to the worst-case feature perturbations induced by model approximation errors.

Experimental results

Research questions

  • RQ1Can black-box attacks be effective in the no-box setting, where only a few test samples are available and neither training data nor model outputs are accessible?
  • RQ2Why are shallow layers of DNNs suitable for lightweight black-box attacks despite limited training data?
  • RQ3How can approximation errors in surrogate models trained on minimal data be effectively mitigated to improve attack success rates?
  • RQ4Can the proposed ETF method maintain high attack performance under unsupervised or OOD (out-of-distribution) data settings?
  • RQ5To what extent can lightweight black-box attacks match the performance of full-data black-box attacks with only one sample per class?

Key findings

  • Lightweight black-box attacks achieve an attack success rate only 3% lower than full-data black-box attacks when using just one image per class.
  • The proposed Error TransFormer (ETF) method effectively mitigates approximation errors in surrogate models trained on minimal data by transforming them into feature-space perturbations.
  • ETF maintains strong performance even under unsupervised settings, achieving comparable attack success rates with and without supervision information.
  • The method remains effective when using models pre-trained on out-of-distribution data (e.g., STL-10), demonstrating robustness to distribution shift.
  • Experiments on seven ImageNet models confirm that lightweight attacks with ETF significantly outperform existing black-box attack methods under the no-box setting.
  • The attack success rate remains high across diverse architectures, including VGG19, ResNet-152, DenseNet, and MobileNet, even with minimal data.

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.