Gradient Structure Estimation under Label-Only Oracles via Spectral Sensitivity
Jun Liu, Leo Yu Zhang, Fengpeng Li, Isao Echizen, Jiantao Zhou
TL;DR
The paper tackles the challenge of gradient estimation in hard-label black-box attacks by uncovering a theoretical bridge between discrete sign-search methods and gradient sign recovery. It introduces DPAttack, a two-stage framework that (i) uses a frequency-domain prior via Block-DCT sensitivity to obtain a zero-query, structured initialization and (ii) applies Pattern-Driven Optimization to preserve spatial coherence and accelerate convergence. The authors provide theoretical guarantees showing that RayS-style discrete searches can approximate FGSM under certain regimes, and they prove per-query sign-alignment advantages for the pattern-driven tree over naive dyadic searches. Empirically, DPAttack achieves superior attack success rates and markedly lower query costs across CIFAR-10, ImageNet, CLIP, and commercial APIs, while also bypassing defenses like Blacklight and generalizing to dense prediction tasks. The work offers significant implications for evaluating and improving robustness of real-world systems against efficient hard-label adversaries.
Abstract
Hard-label black-box settings, where only top-1 predicted labels are observable, pose a fundamentally constrained yet practically important feedback model for understanding model behavior. A central challenge in this regime is whether meaningful gradient information can be recovered from such discrete responses. In this work, we develop a unified theoretical perspective showing that a wide range of existing sign-flipping hard-label attacks can be interpreted as implicitly approximating the sign of the true loss gradient. This observation reframes hard-label attacks from heuristic search procedures into instances of gradient sign recovery under extremely limited feedback. Motivated by this first-principles understanding, we propose a new attack framework that combines a zero-query frequency-domain initialization with a Pattern-Driven Optimization (PDO) strategy. We establish theoretical guarantees demonstrating that, under mild assumptions, our initialization achieves higher expected cosine similarity to the true gradient sign compared to random baselines, while the proposed PDO procedure attains substantially lower query complexity than existing structured search approaches. We empirically validate our framework through extensive experiments on CIFAR-10, ImageNet, and ObjectNet, covering standard and adversarially trained models, commercial APIs, and CLIP-based models. The results show that our method consistently surpasses SOTA hard-label attacks in both attack success rate and query efficiency, particularly in low-query regimes. Beyond image classification, our approach generalizes effectively to corrupted data, biomedical datasets, and dense prediction tasks. Notably, it also successfully circumvents Blacklight, a SOTA stateful defense, resulting in a $0\%$ detection rate. Our code will be released publicly soon at https://github.com/csjunjun/DPAttack.git.
