STBA: Towards Evaluating the Robustness of DNNs for Query-Limited Black-box Scenario

Renyang Liu, Kwok-Yan Lam, Wei Zhou, Sixing Wu, Jun Zhao, Dongting Hu, Mingming Gong · DOI

Introduction

Deep Neural Networks (DNNs) have demonstrated remarkable performance across various computer vision tasks, yet they remain vulnerable to adversarial attacks. While white-box attacks assume full access to model parameters, real-world scenarios typically involve "black-box" environments where attackers can only interact with the model through queries. Existing black-box attacks often suffer from two primary limitations: low query efficiency and poor perceptual naturalness. Traditional methods frequently rely on additive noise that creates grainy artifacts, which are easily detected by humans or neutralized by robust training techniques.

To address these challenges, we introduce the Spatial Transform Black-box Attack (STBA). STBA is a novel framework designed to generate adversarial examples by subtly shifting pixels in high-frequency regions rather than adding traditional noise. This approach achieves high attack success rates with minimal queries while maintaining superior visual quality.

Methodology

STBA departs from the standard "image + noise" paradigm by utilizing spatial transformations optimized through a query-efficient process.

Frequency Decomposition

The framework first decomposes the input image into low-frequency (smooth areas) and high-frequency (edges and textures) components using Gaussian blurring. By targeting transformations specifically at high-frequency regions, the attack exploits the human eye's relative insensitivity to minor structural shifts in detailed textures compared to flat color surfaces.

Flow Field Optimization

Instead of modifying pixel values directly, STBA calculates a "flow field"—a displacement map that dictates how pixels in the high-frequency component should be shifted. This preservation of local pixel values helps maintain the natural appearance of the image.

Gradient Estimation and Dynamic Budgeting

Since internal gradients are inaccessible in a black-box setting, STBA employs Natural Evolutionary Strategies (NES) to estimate the gradient of the loss function with respect to the flow field. The attack utilizes a dynamic budgeting strategy, starting with a minimal displacement and gradually increasing it until misclassification is achieved, ensuring the perturbation remains as small as possible.

Experimental Results

STBA was evaluated against standard benchmarks (CIFAR-10/100, STL-10, and ImageNet-1k) and commercial cloud APIs, including Google Cloud Vision, Tencent Cloud, and Baidu AI Cloud.

Visual comparison of STBA against various state-of-the-art black-box attacks. STBA maintains significantly higher visual fidelity to the benign image compared to methods like Square or ASH.

Performance Metrics

  • Attack Success Rate (ASR): STBA achieved near 100% ASR on normally trained models within a 1,000-query budget. Against robustly trained models, it maintained an ASR between 93% and 100% within 10,000 queries, significantly outperforming baseline attacks which often failed to exceed 70%.
  • Visual Quality: Using Structural Similarity (SSIM) and Learned Perceptual Image Patch Similarity (LPIPS), STBA consistently demonstrated superior performance. The distortions were often 10-20x less perceptible than those produced by competing methods.
  • Real-World Efficacy: The attack successfully fooled production-grade cloud classifiers. For instance, a building image correctly identified by Baidu AI was successfully perturbed to be misclassified as "Street" or "Modern Architecture."

Discussion and Conclusion

The effectiveness of STBA highlights a critical vulnerability in current DNNs: they are highly sensitive to spatial perturbations that do not fit the profile of standard additive noise. Because STBA shifts pixel locations rather than changing their values, many existing defenses designed to "clean" noise are ineffective.

While highly successful, the method can occasionally produce jagged aliasing artifacts if the flow field is not sufficiently smooth. Future work will explore optimization in alternative color spaces (e.g., YUV or LAB) to further enhance imperceptibility. Ultimately, STBA serves as a vital tool for evaluating the robustness of DNNs in realistic, query-limited black-box scenarios.

Summary updated

BibTeX
@article{liu2025stba,
  author = {Renyang Liu and Kwok-Yan Lam and Wei Zhou and Sixing Wu and Jun Zhao and Dongting Hu and Mingming Gong},
  title = {{STBA: Towards Evaluating the Robustness of DNNs for Query-Limited Black-box Scenario}},
  journal = {IEEE Trans. Multim. 2025},
  year = {2025},
  doi = {10.1109/tmm.2025.3535328},
}
Figure