Skip to main content
QUICK REVIEW

[Paper Review] Improving Query Efficiency of Black-box Adversarial Attack

Yang Bai, Yuyuan Zeng|arXiv (Cornell University)|Sep 24, 2020
Adversarial Robustness in Machine LearningComputer Science34 references7 citations
TL;DR

This paper proposes NP-Attack, a query-efficient black-box adversarial attack that leverages Neural Processes to model adversarial distributions using image structure information. By incorporating both local (deterministic) and global (latent) representations, NP-Attack reduces query counts by up to 40% compared to prior distribution-based methods like ℒ-Attack, achieving 100% attack success rate on CIFAR-10 with only 185 average queries on ResNet18.

ABSTRACT

Deep neural networks (DNNs) have demonstrated excellent performance on various tasks, however they are under the risk of adversarial examples that can be easily generated when the target model is accessible to an attacker (white-box setting). As plenty of machine learning models have been deployed via online services that only provide query outputs from inaccessible models (e.g. Google Cloud Vision API2), black-box adversarial attacks (inaccessible target model) are of critical security concerns in practice rather than white-box ones. However, existing query-based black-box adversarial attacks often require excessive model queries to maintain a high attack success rate. Therefore, in order to improve query efficiency, we explore the distribution of adversarial examples around benign inputs with the help of image structure information characterized by a Neural Process, and propose a Neural Process based black-box adversarial attack (NP-Attack) in this paper. Extensive experiments show that NP-Attack could greatly decrease the query counts under the black-box setting.

Motivation & Objective

  • Address the high query complexity of existing query-based black-box adversarial attacks, which limits practical applicability despite high success rates.
  • Improve query efficiency by modeling the distribution of adversarial examples using structural information from images, rather than relying on simple pixel-wise transformations.
  • Leverage Neural Processes (NPs) to jointly model local and global image structures, enabling more effective and efficient adversarial example generation.
  • Achieve higher attack success rates with significantly fewer queries compared to state-of-the-art methods like ℒ-Attack and ZOO.
  • Demonstrate generalization across diverse architectures and datasets, including ImageNet, under strict perturbation constraints.

Proposed method

  • Use a Neural Process (NP) to model the distribution of adversarial examples, where the encoder captures global context and the decoder reconstructs local image patches.
  • Pre-train the NP on benign images to learn a prior over image structures, then fine-tune it during attack generation using query feedback.
  • Optimize the NP's latent variable (global context) and deterministic variable (local structure) separately or jointly to generate adversarial perturbations.
  • Apply Natural Evolution Strategy (NES) for gradient-free optimization of the latent and deterministic variables, enabling efficient query-based updates.
  • Integrate a multi-scale reconstruction head that processes 32×32×3 patches, allowing localized yet structurally coherent perturbations.
  • Use a differentiable decoder with residual connections and ReLU activations to reconstruct adversarial examples from latent codes under L∞-bounded perturbations.

Experimental results

Research questions

  • RQ1Can modeling adversarial distributions using structured image priors (via Neural Processes) significantly reduce query complexity in black-box attacks?
  • RQ2How does incorporating both local and global image structure information improve the efficiency and effectiveness of query-based adversarial attacks?
  • RQ3Does the proposed NP-Attack outperform existing distribution-based methods like ℒ-Attack in terms of query efficiency and attack success rate across multiple datasets and architectures?
  • RQ4How do different optimization strategies (e.g., optimizing only latent, only deterministic, or both) affect the quality and query efficiency of generated adversarial examples?
  • RQ5Can NP-Attack generalize to high-resolution datasets like ImageNet under strict L∞ perturbation bounds?

Key findings

  • NP-Attack achieves 100% attack success rate on ResNet18, VGG16, and WideResNet on CIFAR-10 with only 185, 294, and 196 average queries, respectively, outperforming ℒ-Attack which requires 311, 430, and 335 queries.
  • On MNIST, NP-Attack reduces the number of queries needed to generate 90% of adversarial examples by over 50% compared to ℒ-Attack under the same L∞ constraint.
  • The variant NP-Attack-RZ, which optimizes both latent and deterministic variables, generates more natural-looking perturbations that are spatially balanced between object centers and background.
  • Adversarial examples generated by NP-Attack-R on ImageNet remain imperceptible under L∞ = 0.05, with successful untargeted attacks confirmed on real-world images.
  • The use of Neural Processes enables more efficient distribution modeling than pixel-wise functions in ℒ-Attack, reducing query complexity by up to 40% while maintaining or improving attack success.
  • The ablation study confirms that optimizing the latent variable (global context) yields better performance than optimizing only the deterministic (local) path, and joint optimization (NP-Attack-RZ) provides a robust trade-off.

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.