Manuscript Offprint

arXiv:2611.07512

RLGPA: A Reinforcement Learning-Guided Granularity Planning Attack for Decision-Based Sparse Adversarial Examples

Chao Zhou, Shenghua He, Jiaxin Mo, Qiangguo Yu, Fengchuang Xing

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Chao Zhou, Shenghua He, Jiaxin Mo, Qiangguo Yu, Fengchuang Xing

Abstract—Decision-based sparse attacks must reduce perturbation support using only the victim's predicted label. The best restoration strategy varies as support contracts: coarse removal works early, while tail states need finer, history-aware tests. We propose RLGPA, an online reinforcement learning method that schedules support-reduction executors and their granularity under a hard query budget. A masked Dueling Double DQN selects among seven stable policy-scale actions; each action produces support-relative restoration groups that are rebuilt after every macro decision. A feasibility-preserving executor commits only adversarial restorations and feeds support gain and query cost back to the planner. Under the matched top-1-label oracle, RLGPA reaches 61% targeted ASR at sparsity 0.01 on CIFAR-10 (vs. 25% SparseEvo, 0% Pointwise), and 75.5%/73.0% on ResNet50/ViT at sparsity 0.005 (vs. 29.0%/15.5%). A fixed-probe test reduces median L0L_0 from 165 to 23 after 40 images without any update. State-blind and state-shuffled controls degrade significantly, confirming that the learned policy uses attack state; the main gains come from state-conditioned executor scheduling and dynamic repartition. The source code is publicly available at https://github.com/Acui001/RLGPA.git.

Index Terms—Adversarial examples, Decision-based black-box attacks, Sparse attacks, Online reinforcement learning, Granularity planning.

I. INTRODUCTION

Deep neural networks achieve strong performance across a wide range of perception tasks, yet their vulnerability to adversarial examples, which are inputs crafted by adding small, often human-imperceptible perturbations that cause incorrect predictions, introduces significant security risks to deep learning-based visual detection tasks [1, 2, 3, 4]. This vulnerability has motivated a large body of work on adversarial attacks [5, 6, 7, 8], which differ in the threat model they assume and in the constraints they place on the perturbation. Among these, sparse adversarial attacks are particularly relevant to security-critical settings, because they modify only a limited number of input dimensions and therefore correspond more closely to the practical constraint that an attacker can manipulate only a small part of the input.

Sparse adversarial attacks seek an adversarial input whose perturbation involves only a small subset of image pixels. The underlying minimum- L0L_{0} adversarial problem is NP-hard [9]. In a decision-based black-box setting, the attacker observes only the top-1 predicted label and cannot access gradients, logits, or confidence scores. As a result, exact support minimization, i.e., minimizing the set of modified pixels, becomes a query-bounded combinatorial search. Starting from a feasible adversarial point, Pointwise attack [10] and SparseEvo attack [9] approach this problem through perturbation erasure: they ask which active coordinates can be restored to the original image without losing adversarial feasibility. Pointwise greedily tests restorations, whereas SparseEvo evolves binary support masks. Their results show that support erasure is central to decision-based sparse attacks, but they also expose a scheduling problem: the best restoration ordering and group size need not remain fixed throughout an attack.

This scheduling problem arises because the search has a pronounced stage dependence. Large groups can remove support quickly when many perturbed coordinates are redundant. However, as the support shrinks, the same removals cross the decision boundary more often, and the attack benefits from finer groups or from empirical knowledge about previous restoration outcomes. A fixed schedule cannot condition on current progress, stalls, acceptance rate, or remaining budget. Conversely, directly assigning reinforcement-learning actions to temporary pixel groups is ill posed: dynamic repartition changes the coordinates represented by an action index, making replay transitions semantically unstable.

To address this problem, we propose RLGPA, a reinforcement learning-guided granularity planning attack, where reinforcement learning (RL) schedules the executor policy and granularity. Instead of selecting a pixel-group index, the agent selects a stable macro-action that composes an executor policy with a relative scale. The executor instantiated that action on the current support, tests a bounded number of restorations, and commits only adversarial candidates. The next macro decision is therefore made after observing an actual support reduction and query cost. Because Primary, Safe, and Memory retain their meanings after repartition and across images, transitions can be reused by an online Dueling Double DQN.

RLGPA uses support-relative granularity. If LtL_{t} coordinates remain perturbed, an action selects a group size proportional to LtL_{t} rather than to the original image dimension. This produces the same seven action semantics on CIFAR-10 and ImageNet despite their very different resolutions. Dynamic repartition then rebuilds groups around the newly committed adversarial point. The DQN observes the optimization phase, current granularity, recent gains and acceptances, stall counts, remaining budget, recent action identity, action-specific effectiveness, and

Chao Zhou, Jiaxin Mo, Qiangguo Yu are with the School of Electronic Information, Huzhou College, Huzhou, 313000, China (e-mail: zhouchaodzkd@e.gzhu.edu.cn; zjhzumojiaxin@zjhzu.edu.cn; yuqg@zjhzu.edu.cn).

Shenghua He is with the School of Electronic Science and Engineering, South China Normal University, Foshan, 528225, China (e-mail: heshenghua@m.scnu.edu.cn).

Fengchuang Xing is with the School of Physics and Information Engineering, Guangdong University of Education, Guangzhou, 510303, China (e-mail: xfchuang@e.gzhu.edu.cn).

Shenghua He and Chao Zhou are equally contributed to this work.

Corresponding author: Shenghua He.

the valid-action mask.

Our contributions are as follows:

• We formulate decision-based sparse attack refinement as online reinforcement learning over stable policy–granularity macro-actions. This abstraction avoids attaching persistent Q-values to temporary support groups and makes cross-decision and cross-image replay meaningful.

  • We develop a support-relative, dynamically repartitioned executor that integrates three complementary restoration policies: perturbation-ascending, magnitude-aware, and outcome-memory. Through hard-label verification and a commit-or-rollback execution scheme, this executor monotonically reduces the support while strictly preserving adversarial feasibility.

  • We provide matched causal evidence for the learning component. Frozen fixed-probe evaluation, state-blind and state-shuffled controls, random and fixed schedulers, lifecycle controls, and component ablations distinguish learned state-conditioned scheduling from executor strength and favorable initialization.

  • We evaluate targeted and untargeted attacks on CIFAR-10 and ImageNet with ResNet50 and Vision Transformer (ViT) victims. Under an oracle-matched top-1-label protocol, RLGPA achieves improved Query-Sparsity and ASR-Sparsity performance relative to comparable decision-based sparse attacks.

References (40)

  • Fpad: Fuzzy-prototype-guided adversarial attack and defense for deep cross-modal hashing
  • Retouchuaa: Unconstrained adversarial attack via realistic image retouching
  • Intriguing properties of neural networks
  • Object-attentional untargeted adversarial attack
  • Adaguard: Location-aware adaptive defense against adversarial patch attacks in vision transformers
  • Gradient perturbation guidance for boosting sparse adversarial attack transferability
  • Lp-norm distortion-efficient adversarial attack
  • Query-efficient hard-label black-box attack against vision transformers
  • Query efficient decision based sparse attacks against black-box deep learning models
  • Towards the first adversarially robust neural network model on mnist
  • Decision-based adversarial attacks: Reliable attacks against black-box machine learning models
  • Hop-skipjumpattack: A query-efficient decision-based attack
  • Policy-driven attack: Learning to query for hard-label black-box adver-sarial examples
  • Black-box adversarial attacks with limited queries and information
  • Query-efficient hard-label black-box attack: an optimization-based approach
  • Sign-opt: a query-efficient hard-label adversarial attack
  • Sign-opt+: An improved sign optimization adversarial attack
  • Sparse-rs: A versatile framework for query-efficient sparse black-box adversarial attacks
  • Brusleattack: A query-efficient score-based black-box sparse adversarial attack
  • Black-box sparse adversarial attack via multi-objective optimisation cvpr proceedings
  • Prior convictions: Black-box adversarial attacks with bandits and priors
  • Black-box adversarial attacks using evolution strategies (opens arXiv in a new tab)
  • Simple black-box adversarial attacks
  • Square attack: A query-efficient black-box adversarial attack via random search
  • One pixel attack for fooling deep neural networks
  • Sparse and imperceivable adversarial attacks
  • $\sigma$-zero: Gradient-based optimization of $l_{0}$-norm adversarial examples
  • Explaining and harnessing adversarial examples
  • The limitations of deep learning in adversarial settings
  • Deepfool: A simple and accurate method to fool deep neural networks
  • Towards evaluating the robustness of neural networks
  • Towards Deep Learning Models Resistant to Adversarial Attacks
  • Delving into transferable adversarial examples and black-box attacks (opens arXiv in a new tab)
  • Simultaneously optimizing perturbations and positions for black-box adversarial patch attacks
  • Autozoom: Autoencoder-based zeroth order optimization method for attacking black-box neural networks
  • Human-level control through deep reinforcement learning
  • Deep reinforcement learning with double q-learning
  • Dueling network architectures for deep reinforcement learning
  • Mastering diverse control tasks through world models
  • Imp-marl: A suite of environments for large-scale infrastructure management planning via marl