Manuscript Offprint

arXiv:2610.32932

STROKE: Simple Sparse Structural Occlusions for Black-Box Adversarial Attacks

Ankit Gupta, Akshat Pandya, Paul Lin, Christoph Adami, Emily Dolson

Abstract

We introduce STROKE, a query-efficient score-based black-box adversarial attack that constructs perturbations from simple oriented rectangular occlusions. STROKE optimizes these perturbations through a lightweight greedy add-and-refine procedure. Across diverse image classifiers, STROKE achieves high attack success with low query counts at nominal 1–2% area settings, showing favorable performance relative to existing patch-based attacks in several configurations. Matched comparisons further demonstrate substantial reductions in wall-clock attack time, while ablation studies examine the key design choices and effectiveness across structural primitives. These findings suggest that simple structural occlusions offer an effective and computationally efficient search space for black-box adversarial attacks.

Figure

Patch-RS Croce et al. (2022)

IMPACT Yang et al. (2025)

STROKE (ours)

Figure 1: Representative adversarial perturbations produced by different black-box attacks. STROKE produces sparse structural occlusions that visually resemble simple markings or scratches. We compare their attack success, query efficiency, and runtime against the evaluated patch-based methods at the evaluated nominal area settings. (see Tabs. 1 and 2).

1 Introduction

Deep neural networks have become the default backbone for visual recognition, enabling rapid progress on large-scale benchmarks such as ImageNet Krizhevsky et al. (2012); Russakovsky et al. (2015). However, their remarkable accuracy can mask brittle failure modes: carefully crafted perturbations can cause confident misclassification even when inputs remain visually plausible Szegedy et al. (2013); Goodfellow et al. (2014). This gap between nominal performance and worst-case behavior has motivated a large literature on adversarial robustness, spanning both attack development and defenses such as adversarial training Madry et al. (2018).

While many early attacks assumed white-box access, realistic threat models often restrict the attacker to query-only interaction with a deployed model (e.g., cloud APIs or locked-down inference services). In this black-box setting, the central challenge is query efficiency: each model evaluation incurs latency, monetary cost, and potential rate limits. A range of query-based attacks have therefore been proposed, including gradient-estimation, random-search strategies, and arbitrary sparse pixel perturbations Chen et al. (2017); Guo et al. (2019); Ilyas et al. (2018); Andriushchenko et al. (2020); Vo et al. (2024).

Beyond imperceptible perturbations, adversarial attacks can also operate through visible, spatially constrained modifications such as patches and occlusions (Brown et al., 2017; Eykholt et al., 2018). These settings impose explicit perturbation-area constraints, often alongside limited model-query budgets. Attack methods must therefore balance success rate, query efficiency, and computational overhead. We focus on this budgeted black-box setting, studying whether simple structural parameterizations can provide an efficient alternative to more elaborate patch optimization procedures.

Recent work has taken important steps toward query-efficient patch-style attacks under explicit area budgets. Random-search frameworks such as Sparse-RS demonstrate that carefully designed sampling and acceptance rules can be highly effective for sparse black-box attacks Croce et al. (2022). More recently, IMPACT proposed a flexible formulation that jointly optimizes patch mask and content using a two-phase, gradient-free procedure, achieving strong performance under strict pixel-budget constraints Yang et al. (2025). The method relies on evolutionary search to optimize irregular and multi-component patches. Despite these advances, a practical gap remains: increased patch expressivity and multi-factor optimization often introduce substantial computational overhead, making these methods difficult to scale across models, budgets, and evaluation settings.

In this paper we introduce STROKE: Simple Sparse Structural Occlusions for Black-Box Adversarial Attacks, a query-based adversarial attack designed for coverage-regulated black-box optimization. STROKE represents perturbations as a composition of simple strokes—oriented filled rectangular occlusions with controllable length, width, location, and (optionally) color—and searches this space using a greedy add-and-refine strategy.

The attack proceeds in two stages: it first adds strokes to reduce confidence in the clean prediction (or increase confidence in a target class), and then refines existing strokes by resampling their parameters while holding the remaining perturbation fixed. This decomposition supports efficient batched optimization while maintaining a compact structural representation. The resulting perturbations are visually sparse and may resemble simple markings or scratches, although their physical realizability is not assumed by the attack formulation.

At corresponding nominal area settings and query limits, we compare STROKE with IMPACT and Patch-RS and observe favorable candidate-discovery efficiency and substantial wall-clock speedups in the evaluated implementations (see Tab. 1, 2, and Figs. 2, 3).

Contributions. We summarize our main contributions as follows:

• Stroke-based parameterization for sparse black-box attacks. We introduce STROKE, a query-based adversarial attack that represents perturbations as a composition of simple oriented rectangular occlusions. This structured representation defines a compact search space for sparse perturbations, while remaining expressive enough to induce high-confidence misclassifications at the evaluated pixel-coverage settings.

• Greedy add-and-refine optimization. We propose a lightweight two-stage search strategy that progresses from adding new strokes to refining existing ones. This decomposition enables efficient exploration at the evaluated coverage settings and query limits.

• Strong candidate-discovery efficiency. At the evaluated nominal area settings, STROKE achieves a strong success-query trade-off across ImageNet models, with particularly large gains on VGG-16 and ViT-B/16, and competitive performance on ResNet-50, including in the targeted setting.

• Substantial wall-clock efficiency in matched reruns. In matched reruns with identical hardware, batching, and query accounting, STROKE substantially reduces wall-clock attack time while maintaining strong attack effectiveness.

• Extensive empirical evaluation. We evaluate across diverse CNN and transformer architectures, multiple coverage settings and query limits, and additional datasets (CIFAR-10/100), and provide ablations that isolate the impact of occlusion geometry, per-occlusion proposal budget, and occlusion color.

References (38)