NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

A geometry-inspired decision-based attack

Yujia Liu, Seyed-Mohsen Moosavi-Dezfooli, Pascal FrossardICCV 2019

Abstract

Deep neural networks have recently achieved tremendous success in image classification. Recent studies have however shown that they are easily misled into incorrect classification decisions by adversarial examples. Adversaries can even craft attacks by querying the model in black-box settings, where no information about the model is released except its final decision. Such decision-based attacks usually require lots of queries, while real-world image recognition systems might actually restrict the number of queries. In this paper, we propose qFool, a novel decision-based attack algorithm that can generate adversarial examples using a small number of queries. The qFool method can drastically reduce the number of queries compared to previous decision-based attacks while reaching the same quality of adversarial examples. We also enhance our method by constraining adversarial perturbations in low-frequency subspace, which can make qFool even more computationally efficient. Altogether, we manage to fool commercial image recognition systems with a small number of queries, which demonstrates the actual effectiveness of our new algorithm in practice.

Introduction

Adversarial attacks—inputs designed to trick AI into making mistakes—are well-documented in "white-box" settings where the attacker has full access to the model's parameters. However, real-world systems are typically "black-boxes." The most restrictive and realistic black-box scenario is the decision-based setting, where an attacker only receives the final classification label (e.g., "This is a cat") without any probability scores or gradients.

Previous decision-based attacks, such as the "Boundary Attack," are effective but notoriously query-intensive, often requiring tens of thousands of requests to find a subtle perturbation. This high query cost makes them easy to detect and expensive to execute against commercial APIs. The challenge addressed by this research is: can we find high-quality adversarial examples within a much smaller query budget?

Methodology: Exploiting Local Flatness

The core insight of the qFool algorithm is the observation that decision boundaries of deep neural networks are locally flat. This geometric property allows for a linear approximation of the boundary, which significantly simplifies the search for adversarial directions.

Geometric illustration of the qFool attack steps: (1) initial point discovery, (2) gradient estimation via sampling, and (3) directional search.

The algorithm follows a three-step iterative process:

  1. Initial Point Discovery: A starting point on the decision boundary is found via binary search between the original image and a noisy version (or a target image).
  2. Gradient Estimation: Instead of calculating a true gradient, qFool estimates the normal direction ($\xi$) by sampling $n$ small random perturbations around the boundary point. By observing which perturbations flip the label, the algorithm approximates the boundary's normal vector.
  3. Directional Search: The algorithm then searches along this estimated direction to find a new adversarial example that is closer to the original image.

The Subspace Trick and Parallelism

To further boost efficiency, the authors propose searching for perturbations within a low-frequency subspace using the Discrete Cosine Transform (DCT). Because adversarial vulnerabilities are often concentrated in low-frequency components, restricting the search space allows the gradient estimation to converge much faster. Additionally, unlike sequential attacks, qFool’s gradient estimation step is highly parallelizable; all $n$ queries for a single estimation step can be sent simultaneously, drastically reducing execution time.

Empirical Evaluation and Results

The researchers evaluated qFool using 250 images from the ImageNet validation set across three major architectures: VGG-19, ResNet-50, and Inception-v3.

Comparison of qFool (fullspace and subspace) against the Boundary Attack across different architectures. qFool achieves lower MSE with significantly fewer queries.

Key Findings

  • Superior Efficiency: In non-targeted attacks, qFool reached a significantly lower Mean Squared Error (MSE) than the Boundary Attack at the 10,000-query mark. For example, on VGG-19, qFool achieved an MSE of $1.16 \times 10^{-5}$ compared to the Boundary Attack’s $4.61 \times 10^{-4}$.
  • Targeted Success: qFool also outperformed existing methods in targeted attacks, where the goal is to force a specific incorrect label, by converging much faster in the initial stages.
  • Real-World Impact: The authors successfully fooled Google Cloud Vision. They transformed an image of a dog (labeled "dog-like mammal") into "hair" using only 1,500 queries, and an image of a flag into "sky" using just 500 queries. These perturbations remained virtually imperceptible to the human eye.

Conclusion

qFool demonstrates that geometric insights can make black-box attacks practical even under strict query limits. By exploiting local flatness and frequency-domain vulnerabilities, qFool provides a more efficient path to generating adversarial examples. Future work may involve adaptive subspace selection to further optimize performance against diverse model architectures.

Summary updated

BibTeX
@inproceedings{liu2019geometry,
  author = {Yujia Liu and Seyed-Mohsen Moosavi-Dezfooli and Pascal Frossard},
  title = {{A geometry-inspired decision-based attack}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2019},
  url = {https://openreview.net/forum?id=EqiluujfVh},
}
Figure