Abstract
Traditional Automated Machine Learning (AutoML) pipelines primarily optimize for accuracy on benign data, often leaving models vulnerable to adversarial perturbations. This paper introduces Robusta, the first RL-based framework designed to automate feature selection with an explicit focus on adversarial robustness. Robusta employs a Deep Q-Network (DQN) agent to navigate the combinatorial search space of feature subsets, guided by a "0-1 robust loss" and Integrated Gradients (IG) to identify and remove "weak link" features. Experimental results across diverse domains—including text, audio, and images—demonstrate that Robusta can enhance model resilience by up to 22% without compromising standard performance.
Introduction
As machine learning is increasingly deployed in safety-critical domains like autonomous driving and financial services, the threat of adversarial examples—inputs subtly modified to deceive models—becomes a primary concern. Existing feature selection methods, such as LASSO or Concrete Auto-encoders, are generally "robustness-blind," focusing solely on predictive power. Even "stable" feature selection methods, which ensure consistency under random noise, fail to address targeted adversarial attacks because stability and robustness are often orthogonal. Robusta addresses this gap by providing an automated mechanism to select feature subsets that balance high performance with strong resistance to attacks.
Methodology
Robusta treats feature selection as a combinatorial search problem solved via Reinforcement Learning.
The RL Agent and Feature Queues
To manage high-dimensional feature spaces, Robusta utilizes a DQN agent that selects features from pre-sorted "queues." These queues are ordered by various scoring metrics (e.g., Mutual Information, IG), allowing the agent to efficiently explore the most promising candidates while avoiding the exponential complexity of the full search space.
Robustness Metrics and Reward Shaping
The framework introduces two critical components for robustness:
- Integrated Gradients (IG): Used to quantify the contribution of each feature to a model's prediction change under attack. High IG attribution identifies features that act as primary vulnerabilities.
- 0-1 Robust Loss: The agent's reward is derived from a loss function combining natural error (on clean data) and boundary error (vulnerability). An attack-agnostic Gaussian error serves as a tractable proxy for the robust radius.
To overcome the sparse reward problem inherent in combinatorial search, Robusta employs reward shaping, providing the agent with incremental feedback as it constructs the feature set.
Key Insights
Stability vs. Robustness
A core finding of this research is that feature stability—consistency across data samples—does not guarantee robustness. A feature can be highly stable and important for clean accuracy while simultaneously being the easiest point of exploitation for an attacker.
IG as a Vulnerability Map
Integrated Gradients provide a powerful lens for identifying model weaknesses. The authors experimentally demonstrate that IG scores correlate strongly with adversarial vulnerability.
As shown in Figure 6, selecting features with the highest IG scores (a) rapidly increases model vulnerability compared to random selection (b) or selecting low-IG features (c). Conversely, removing just the top 40 high-IG features can revert approximately 90% of adversarial examples back to correct classifications.
Results and Discussion
Robusta consistently outperforms state-of-the-art (SOTA) methods, including LASSO and Stable Feature Selection, across diverse datasets:
- Robustness Gains: On SpamBase, Robusta improved PGD-attack accuracy by over 12% compared to the next best method. On MNIST, it achieved 83.19% robust accuracy, significantly higher than LASSO (~77%).
- Performance Trade-off: The framework maintains benign accuracy within 1-3% of non-robust SOTA methods, offering a superior trade-off ratio between clean and robust performance.
- Efficiency: The RL agent often identifies highly sparse feature sets (e.g., only 4 features for SpamBase) that provide both high accuracy and robustness. While the search can take 1 to 4 hours, it remains competitive with other complex differentiable methods.
Conclusion
Robusta represents a significant step toward integrating security into the AutoML pipeline. By leveraging RL and attribution-based metrics like IG, it automates the discovery of feature subsets that are not only predictive but also resilient. Future work will focus on improving computational efficiency and developing transferable RL policies that can generalize across different data domains.
Summary updated