Skip to main content
QUICK REVIEW

[Paper Review] Small Input Noise is Enough to Defend Against Query-based Black-box Attacks

Junyoung Byun, Hyojun Go|arXiv (Cornell University)|May 4, 2021
Adversarial Robustness in Machine LearningComputer Science21 references7 citations
TL;DR

This paper proposes Small Noise Defense (SND), a simple yet effective defense that adds minimal input noise at inference to disrupt query-based black-box attacks. By breaking the assumption that model outputs exactly match query inputs, SND severely hinders gradient estimation and local search in attacks, achieving strong robustness with near-zero accuracy drop and minimal computational overhead on CIFAR-10 and ImageNet.

ABSTRACT

While deep neural networks show unprecedented performance in various tasks, the vulnerability to adversarial examples hinders their deployment in safety-critical systems. Many studies have shown that attacks are also possible even in a black-box setting where an adversary cannot access the target model's internal information. Most black-box attacks are based on queries, each of which obtains the target model's output for an input, and many recent studies focus on reducing the number of required queries. In this paper, we pay attention to an implicit assumption of these attacks that the target model's output exactly corresponds to the query input. If some randomness is introduced into the model to break this assumption, query-based attacks may have tremendous difficulty in both gradient estimation and local search, which are the core of their attack process. From this motivation, we observe even a small additive input noise can neutralize most query-based attacks and name this simple yet effective approach Small Noise Defense (SND). We analyze how SND can defend against query-based black-box attacks and demonstrate its effectiveness against eight different state-of-the-art attacks with CIFAR-10 and ImageNet datasets. Even with strong defense ability, SND almost maintains the original clean accuracy and computational speed. SND is readily applicable to pre-trained models by adding only one line of code at the inference stage, so we hope that it will be used as a baseline of defense against query-based black-box attacks in the future.

Motivation & Objective

  • To address the vulnerability of deep neural networks to query-based black-box adversarial attacks in safety-critical applications.
  • To challenge the implicit assumption in query-based attacks that model outputs precisely reflect input queries.
  • To develop a lightweight, practical defense that maintains high clean accuracy and inference efficiency.
  • To demonstrate the robustness of the defense against a wide range of state-of-the-art query-based attacks on standard benchmarks.

Proposed method

  • Introduces Small Noise Defense (SND), which adds small, random additive noise to inputs during inference.
  • Leverages the inherent randomness in model responses to break the deterministic correspondence between input queries and outputs.
  • Disrupts gradient estimation in attacks by making the model's output less predictable across similar inputs.
  • Disrupts local search in attacks by introducing noise that obscures the true loss landscape around adversarial examples.
  • Applies noise only at inference time, requiring only one line of code to integrate into pre-trained models.
  • Maintains high clean accuracy and computational speed by using minimal noise that does not alter the model's primary behavior.

Experimental results

Research questions

  • RQ1Can a small amount of input noise effectively disrupt the core mechanisms of query-based black-box attacks?
  • RQ2How does introducing randomness in model responses affect the feasibility of gradient estimation and local search in black-box attacks?
  • RQ3To what extent does SND preserve clean accuracy and inference speed while defending against diverse query-based attacks?
  • RQ4Can SND serve as a practical, out-of-the-box defense baseline for pre-trained models?

Key findings

  • SND effectively neutralizes eight state-of-the-art query-based black-box attacks on both CIFAR-10 and ImageNet datasets.
  • The defense maintains nearly identical clean accuracy to the original model, with negligible performance degradation.
  • SND incurs no significant computational overhead, preserving the original inference speed.
  • The defense works by disrupting the assumption of deterministic input-output mapping, which underpins most query-based attacks.
  • SND is highly practical, requiring only a single line of code to deploy on any pre-trained model.
  • The defense is robust across diverse attack strategies, including those relying on gradient estimation and local search.

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.