Introduction
In the field of Adversarial Machine Learning (AML), evasion attacks represent a significant security threat. These attacks involve introducing human-imperceptible perturbations to input data—such as images—to cause a machine learning model to misclassify them. Traditionally, black-box evasion attacks, where the attacker only has access to the model's output, have been treated as stateless optimization problems. In this paradigm, every target image is approached as a new challenge, ignoring the potential for an attacker to learn from repeated interactions.
This research introduces a shift from stateless optimization to strategic learning. By framing adversarial attacking as a Reinforcement Learning (RL) problem, the authors demonstrate that an agent can learn generalizable strategies to exploit a victim model's vulnerabilities. This approach mirrors the behavior of an Advanced Persistent Threat (APT), where an attacker becomes increasingly efficient and effective over time through continuous interaction with the target system.
The RL Attack Framework
The authors formulate the attack process as a Markov Decision Process (MDP) and employ Proximal Policy Optimization (PPO) to train the adversarial agent. The framework consists of a closed loop between the RL Adversary and the Victim Model.
MDP Formulation
- State: Defined by the current version of the image, its ground-truth label, and the victim model’s current prediction probabilities.
- Action: The agent selects a subset of pixels (features) to perturb. To maintain tractability in high-dimensional image spaces, the agent modifies only $N$ features per step.
- Reward: Two distinct reward structures were tested: RL Max Loss, which encourages maximizing the model's error within a fixed distortion budget ($\epsilon$), and RL Min Norm, which rewards finding the minimum distortion required for a successful misclassification.
Iterative Distortion Process
Unlike one-shot attacks, the RL agent builds the adversarial perturbation iteratively. At each step $k$, the agent observes the current state and applies a distortion, moving from the original image $s_0$ toward a final adversarial state $s_T$ that triggers a misclassification.
Experimental Results
The agents were evaluated on the CIFAR-10 and SVHN datasets against several victim architectures, including ResNet-50, VGG-16, and ViT-B/16. The results highlight three major advantages of the RL-based approach:
- Superior Success Rates: On unseen test data, the RL agent achieved up to a 17% higher attack success rate compared to established baselines like Square Attack and HSJA.
- Increased Query Efficiency: In black-box settings, queries are often limited or monitored. The RL agent proved significantly more stealthy, requiring up to 31% fewer queries to achieve a successful attack by applying learned strategies rather than brute-force optimization.
- Generalization: A key finding is that the agents do not merely memorize specific images. Instead, they learn a policy that generalizes to entirely new, unseen data, maintaining high performance without additional training on the test set.
Conclusion and Future Directions
This work demonstrates that adversarial attacking is a learnable skill. By transitioning from optimization to strategy, RL agents can outperform traditional methods in both effectiveness and efficiency. While currently limited by action space complexity (perturbing 5 features at a time), future research may scale these agents to higher-dimensional spaces or develop "universal" agents capable of attacking multiple model architectures. For defenders, this research underscores the need for robust countermeasures against adaptive, learning-based threats.
Summary updated