Abstract
Reinforcement learning (RL) is recognized as lacking generalization and robustness under environmental perturbations, which excessively restricts its application for real-world robotics. Prior work claimed that adding regularization to the value function is equivalent to learning a robust policy under uncertain transitions. Although the regularization-robustness transformation is appealing for its simplicity and efficiency, it is still lacking in continuous control tasks. In this paper, we propose a new regularizer named Uncertainty Set Regularizer (USR), to formulate the uncertainty set on the parametric space of a transition function. To deal with unknown uncertainty sets, we further propose a novel adversarial approach to generate them based on the value function. We evaluate USR on the Real-world Reinforcement Learning (RWRL) benchmark and the Unitree A1 Robot, demonstrating improvements in the robust performance of perturbed testing environments and sim-to-real scenarios.
Introduction
Standard Reinforcement Learning (RL) algorithms typically operate under the assumption that the training and testing environments are identical. In real-world robotics, this assumption is frequently violated due to factors such as temperature-induced friction changes, biased system identification, or the inherent "sim-to-real gap." Consequently, a policy optimized for a simulator often fails when deployed on physical hardware.
Robust Markov Decision Processes (Robust MDPs) offer a theoretical framework to address this by solving a minimax problem—maximizing reward under the worst-case environment. However, these are traditionally NP-hard to solve and difficult to scale to the continuous state spaces typical of modern robotics. This research introduces Uncertainty Set Regularization (USR), a method that transforms the search for a robust policy into a tractable regularization term added to the RL value function.
Methodology
The core innovation lies in shifting the focus from abstract probability distributions to the parametric space of the environment's transition function (e.g., friction coefficients or mass).
Uncertainty Set Regularized Robust RL (USR-RRL)
Instead of an expensive inner-loop minimization to find the worst-case environment, USR-RRL utilizes the Legendre-Fenchel transform to derive a new Robust Bellman Equation. This allows for a regularizer that depends on the gradient of the transition model with respect to its physical parameters ($\nabla_w P$). This term essentially penalizes the agent for entering states where small physical perturbations would lead to drastically different outcomes.
Adversarial Uncertainty Set (Adv-USR)
In many scenarios, the exact bounds of parameter variation are unknown. The authors propose an adversarial approach to automatically generate an uncertainty set based on the value function. By identifying which parameters the agent is most sensitive to, the method expands the uncertainty range for those specific variables, creating a "pessimistic" training objective. This often results in elliptical uncertainty sets that prioritize robustness in the most critical physical dimensions.
Experimental Evaluation
The researchers integrated these methods into the Soft Actor-Critic (SAC) framework and evaluated them across several domains:
- RWRL Benchmark: A MuJoCo-based suite including tasks like Cartpole, Walker, and Quadruped.
- Unitree A1 Robot: A physical quadruped robot used to verify zero-shot sim-to-real performance.
- Bullet Simulator: The primary training environment for sim-to-real experiments.
Key Results and Insights
- Superior Robustness: The Adv-USR method consistently achieved the highest average rank across all RWRL tasks according to the "Robust-AUC" metric, which measures performance across a wide range of perturbations.
- Sim-to-Real Generalization: On the physical Unitree A1 robot, standard SAC agents failed to move effectively due to discrepancies in friction and motor dynamics. In contrast, the Adv-USR agent successfully stood and walked, demonstrating the practical utility of parametric regularization.
- Efficiency: Unlike Domain Randomization (DR), which requires training on thousands of simulated environments, USR can achieve comparable robustness by training on a single nominal environment while using the regularizer to simulate the impact of potential perturbations.
Conclusion and Future Work
USR provides a mathematically grounded and efficient way to improve the robustness of RL agents in continuous control tasks. While calculating gradients of the transition model adds some computational overhead, the gains in physical reliability are significant. Future work may explore automatically detecting critical variables in high-dimensional systems and combining USR with traditional domain randomization for even greater resilience.
Summary updated