Abstract
Model-Based Reinforcement Learning (MBRL) offers a sample-efficient approach to policy optimization by learning a world model for planning. However, the performance of MBRL is often hindered by the "sim-to-real gap," where inaccuracies in the learned model or environmental noise lead to catastrophic failure during deployment. This paper presents $L_1$-MBRL, a framework that augments standard MBRL algorithms with an $L_1$ adaptive control layer. By decoupling high-level planning from low-level robust adaptation, $L_1$-MBRL compensates for both epistemic and aleatoric uncertainties in real-time. Experimental evaluations on MuJoCo benchmarks demonstrate that this approach significantly enhances robustness to observation and action noise, providing a plug-and-play solution for bridging the gap between simulation and real-world application.
Introduction
Reinforcement Learning (RL) has achieved remarkable success in controlled simulations, yet transitioning these policies to physical robotic systems remains a significant challenge. Model-Based Reinforcement Learning (MBRL) is particularly attractive for robotics due to its sample efficiency; by learning a neural network (NN) representation of the environment's physics, an agent can plan future actions without exhaustive trial and error.
Despite this potential, MBRL is notoriously sensitive to model inaccuracies. When the learned "world model" deviates from reality—due to insufficient data (epistemic uncertainty) or inherent stochasticity (aleatoric uncertainty)—the agent’s plans become suboptimal. This "prediction drift" can lead to instability or unsafe behavior. To address this, we introduce $L_1$-MBRL, a control-theoretic augmentation that wraps existing MBRL algorithms in a robust adaptive layer to "mop up" errors during execution.
Methodology
The $L_1$-MBRL framework operates on a hierarchical principle: the MBRL agent serves as a high-level planner, while the $L_1$ controller acts as a low-level guardian. This architecture allows the system to adapt to disturbances at a much higher frequency than the RL policy updates.
Affinization and the Switching Law
Most $L_1$ control theories require a control-affine model, where the control input $u$ enters the dynamics linearly. However, MBRL world models are typically deep, highly nonlinear neural networks. To bridge this gap, $L_1$-MBRL employs a first-order Taylor expansion to create a local, control-affine approximation of the NN.
To maintain accuracy without excessive computation, a switching law is implemented. The local approximation is only updated when the error between the linearized model and the full neural network exceeds a predefined threshold ($\epsilon_a$). This ensures the controller remains grounded in the learned physics while staying computationally efficient.
The $L_1$ Adaptive Layer
The $L_1$ controller sits between the RL policy and the environment, consisting of three primary components:
- State Predictor: Estimates the next state based on the current (potentially imperfect) learned model.
- Adaptive Law: Rapidly calculates the difference between the predicted state and the actual observed state to estimate uncertainty.
- Low-pass Filter: A critical component that ensures the adaptation is fast enough to cancel disturbances but filtered enough to maintain stability and prevent high-frequency "chatter" in the actuators.
Because this system acts as an external wrapper, it is algorithm-agnostic and can be integrated with various MBRL baselines such as METRPO or MBMF.
Experimental Evaluation
The researchers evaluated $L_1$-MBRL across five standard MuJoCo environments: Inverted Pendulum, Swimmer, Hopper, Walker, and Halfcheetah. To simulate real-world conditions, Gaussian noise was introduced into both the observations (sensor noise) and the actions (actuator noise).
Key Findings
- Resilience to Noise: In the Inverted Pendulum task under action noise, the baseline METRPO performance collapsed to a score of -105, while $L_1$-METRPO maintained a perfect score of 0.0. Similar trends were observed in the complex Halfcheetah environment, where $L_1$-METRPO achieved a reward of approximately 1906, significantly outperforming the baseline's 1419.
- Improved Sample Efficiency: Interestingly, the $L_1$ augmentation often accelerated the learning process. By neutralizing noise during training, the data collected by the agent was "cleaner," allowing the world model to converge more effectively.
- Sim-to-Real Transfer: In experiments where agents were trained in clean simulations and tested in noisy environments, $L_1$-MBRL maintained its performance levels, whereas standard MBRL agents failed to generalize.
Discussion and Limitations
While $L_1$-MBRL provides a robust bridge for the sim-to-real gap, it is not a panacea. The system's efficacy is still dependent on the underlying base model; if the world model fails to capture the fundamental physics of the environment, the $L_1$ layer cannot fully compensate. Additionally, the switching threshold ($\epsilon_a$) introduces a new hyperparameter that requires tuning to balance computational load with robust guarantees.
Conclusion
$L_1$-MBRL represents a significant step toward deploying reinforcement learning in unpredictable, real-world settings. By integrating classical robust control with modern deep learning, the framework allows RL agents to focus on high-level task completion while the $L_1$ layer handles the inherent messiness of physical systems. Future work will explore the integration of this method with offline RL and probabilistic modeling to further enhance adaptive capabilities.
Summary updated