[Paper Review] Constrained Model-based Reinforcement Learning with Robust Cross-Entropy Method
This paper proposes a constrained model-based reinforcement learning algorithm using a robust cross-entropy method (RCE) to optimize control sequences under model uncertainty and sparse constraint violation signals. By integrating uncertainty-aware neural network ensembles with model predictive control, the method achieves near-zero constraint violations and superior sample efficiency in Safety Gym benchmarks, outperforming state-of-the-art model-free and model-based baselines.
This paper studies the constrained/safe reinforcement learning (RL) problem with sparse indicator signals for constraint violations. We propose a model-based approach to enable RL agents to effectively explore the environment with unknown system dynamics and environment constraints given a significantly small number of violation budgets. We employ the neural network ensemble model to estimate the prediction uncertainty and use model predictive control as the basic control framework. We propose the robust cross-entropy method to optimize the control sequence considering the model uncertainty and constraints. We evaluate our methods in the Safety Gym environment. The results show that our approach learns to complete the tasks with a much smaller number of constraint violations than state-of-the-art baselines. Additionally, we are able to achieve several orders of magnitude better sample efficiency when compared with constrained model-free RL approaches. The code is available at \url{https://github.com/liuzuxin/safe-mbrl}.
Motivation & Objective
- To develop a constrained model-based RL algorithm that operates without prior knowledge of system dynamics or constraint functions.
- To address the challenge of learning safe policies with sparse indicator signals for constraint violations and limited unsafe samples.
- To improve sample efficiency and constraint satisfaction in high-dimensional observation spaces where analytical constraint expressions are infeasible.
- To design an optimization method robust to model uncertainty that prevents unsafe policy updates during training.
- To achieve near-optimal task performance while maintaining minimal constraint violations in safety-critical environments.
Proposed method
- Uses a neural network ensemble to estimate prediction uncertainty in the dynamics model, enabling uncertainty-aware planning.
- Employs model predictive control (MPC) as the control framework to optimize control sequences over a finite horizon.
- Introduces the robust cross-entropy (RCE) method to optimize action sequences by selecting only safe elite samples, reducing bias from unsafe trajectories.
- RCE discards unsafe samples during distribution update, unlike standard CEM which includes penalized unsafe samples, thus improving safety.
- The method jointly optimizes for task reward and constraint satisfaction by leveraging uncertainty estimates and constraint indicator signals.
- The algorithm operates under the constrained Markov decision process (CMDP) framework without assuming known analytical forms for dynamics or constraints.
Experimental results
Research questions
- RQ1Can a model-based RL approach achieve high task performance with near-zero constraint violations when both dynamics and constraints are unknown?
- RQ2How does robust cross-entropy (RCE) improve safety and sample efficiency compared to standard CEM and model-free baselines?
- RQ3To what extent can uncertainty-aware dynamics models reduce unsafe exploration in environments with sparse constraint feedback?
- RQ4How does the proposed method compare in constraint satisfaction and task reward when the target violation budget is limited?
- RQ5Can RCE maintain performance under high-dimensional sensory observations where analytical constraint functions are infeasible?
Key findings
- In the Point Goal 1 task, MPC-RCE incurred only 16.00 constraint violations in the first 10,000 training steps, significantly fewer than MPC-CEM (184.33) and MPC-random (169.0).
- For the Car Goal 2 task, MPC-RCE achieved 96.00 violations, compared to 578.00 for MPC-CEM and 509.33 for MPC-random, demonstrating superior safety.
- The method achieved several orders of magnitude better sample efficiency than constrained model-free RL approaches, which required vastly more unsafe samples.
- RCE outperformed CEM by avoiding bias in the sampling distribution: CEM’s use of penalized unsafe elites led to increased unsafe actions in later iterations.
- The approach maintained comparable task rewards to less-safe methods while ensuring significantly lower constraint violations, making it suitable for safety-critical deployment.
- The results confirm that RCE is more effective than standard CEM and model-free methods in minimizing constraint violations under limited violation budgets.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.