Introduction
In the field of Reinforcement Learning (RL), "robustness" has traditionally been synonymous with preparing for the absolute worst-case scenario. Researchers typically frame defense as a minimax problem: the agent seeks to maximize its reward while an imaginary "optimal" attacker works to minimize it. However, this obsession with the worst case often leads to overly cautious agents that perform poorly in normal, attack-free environments. Real-world attacks are rarely optimal; they may be weak, intermittent, or entirely absent.
A new framework introduced at ICLR 2024, PROTECTED (Pre-training non-dominated policies towards online adaptation), addresses this fundamental trade-off. Instead of relying on a single, static, and paranoid policy, PROTECTED utilizes a small "portfolio" of policies and learns to switch between them dynamically based on the observed environment conditions.
The Problem: The Conservatism of Minimax
Standard robust RL methods, such as ATLA or WocaR, focus heavily on the minimax objective. This approach is analogous to a soccer goalie who only prepares for world-class strikers; by focusing exclusively on complex trick shots, they may fail to stop a simple, slow-rolling ball.
In practice, a minimax-optimized policy often sacrifices "natural" performance for a level of protection that may never be required. Furthermore, a static policy lacks the flexibility to adapt if an attacker changes their strategy mid-episode. The authors identify a critical gap in current research: the need for a system that maintains worst-case robustness while excelling in normal conditions and adapting to non-worst-case threats.
The PROTECTED Framework
The authors propose a two-phase approach to bridge this gap:
1. Training Time: Iterative Discovery
The goal during training is to identify a small, finite set of policies ($\tilde{\Pi}$) that are "non-dominated." A policy is considered non-dominated if there exists at least one attacker strategy against which it performs better than any other mixture of existing policies. PROTECTED uses a novel iterative algorithm to expand this set, finding policies that fill specific gaps in the reward landscape.
2. Test Time: Online Adaptation
Instead of deploying a single fixed policy, the agent maintains the set $\tilde{\Pi}$. At the start of each episode, the agent employs an adversarial bandit subroutine—specifically the EXP3 algorithm—to select which policy to deploy. This selection is based on the rewards received in previous episodes, allowing the agent to effectively "sense" the current attack intensity and select the most appropriate defense strategy.
Theoretically, the authors demonstrate that while achieving sublinear regret over a continuous policy space is computationally intensive, it becomes efficient and effective when the search is narrowed to a small, high-quality finite set of non-dominated policies.
Experimental Evaluation
The framework was evaluated using standard continuous control benchmarks in the MuJoCo environment, including Hopper, Walker2d, Halfcheetah, and Ant. These environments were subjected to various attack models, ranging from random noise to state-of-the-art adversarial attacks like SA-RL and PA-AD.
Key Insights
- The Power of a Portfolio: The research found that a set of just 3 to 5 non-dominated policies is often sufficient to outperform specialized state-of-the-art static models across all levels of attack intensity.
- Superior Natural Performance: In attack-free environments, PROTECTED significantly outperformed minimax baselines. In the Walker2d environment, for instance, PROTECTED achieved a reward of approximately 6319, compared to the 4178 achieved by the best baseline (PA-ATLA).
- Robustness and Adaptability: PROTECTED matched or exceeded the performance of the best robust baselines even under the strongest known attacks (PA-AD). When faced with "switching" attacks—where the attacker toggles on and off—the EXP3-based adaptation quickly identified the change and swapped to the optimal policy, whereas static policies remained trapped in sub-optimal, conservative modes.
- Theoretical Hardness: The paper establishes that test-time adaptation is intrinsically difficult without refining the policy class. One cannot simply "learn to be robust" on the fly against a general continuous policy class without significant performance penalties.
Limitations and Future Work
While PROTECTED offers a significant advancement in robust RL, it is not without limitations. The iterative discovery process is computationally expensive, roughly doubling the training time compared to standard robust RL methods. Additionally, while the MuJoCo experiments were successful with small policy sets, theoretical results suggest that for some complex Markov Decision Processes (MDPs), the required size of the non-dominated policy set could grow exponentially.
Future research may explore bypassing these hardness results by assuming "locally smooth" (Lipschitz continuous) environment dynamics and rewards, which could lead to further theoretical and practical refinements in adaptive defense.
Summary updated