Skip to main content
QUICK REVIEW

[Paper Review] Constrained Variational Policy Optimization for Safe Reinforcement Learning

Zuxin Liu, Zhepeng Cen|arXiv (Cornell University)|Jan 28, 2022
Reinforcement Learning in RoboticsComputer Science16 citations
TL;DR

This paper proposes Constrained Variational Policy Optimization (CVPO), a novel safe reinforcement learning algorithm that formulates safe RL as a probabilistic inference problem using an Expectation-Maximization framework. By computing an optimal non-parametric variational distribution in closed form via convex optimization (E-step) and improving policies through trust-region regularized supervised learning (M-step), CVPO achieves stable, sample-efficient training with provable optimality and constraint satisfaction guarantees, outperforming on-policy baselines by up to 1000x in sample efficiency.

ABSTRACT

Safe reinforcement learning (RL) aims to learn policies that satisfy certain constraints before deploying them to safety-critical applications. Previous primal-dual style approaches suffer from instability issues and lack optimality guarantees. This paper overcomes the issues from the perspective of probabilistic inference. We introduce a novel Expectation-Maximization approach to naturally incorporate constraints during the policy learning: 1) a provable optimal non-parametric variational distribution could be computed in closed form after a convex optimization (E-step); 2) the policy parameter is improved within the trust region based on the optimal variational distribution (M-step). The proposed algorithm decomposes the safe RL problem into a convex optimization phase and a supervised learning phase, which yields a more stable training performance. A wide range of experiments on continuous robotic tasks shows that the proposed method achieves significantly better constraint satisfaction performance and better sample efficiency than baselines. The code is available at https://github.com/liuzuxin/cvpo-safe-rl.

Motivation & Objective

  • To address instability and lack of optimality guarantees in existing primal-dual approaches for safe reinforcement learning.
  • To develop a safe RL method that ensures constraint satisfaction while maintaining high sample efficiency.
  • To leverage probabilistic inference to reformulate constrained RL as a convex optimization and supervised learning problem.
  • To provide theoretical guarantees on constraint violation bounds and policy improvement robustness.
  • To enable off-policy learning for improved sample efficiency in continuous control tasks.

Proposed method

  • Formulates safe RL as a probabilistic inference problem, transforming constraints into a variational inference objective.
  • Introduces an Expectation-Maximization framework: E-step computes an optimal, non-parametric variational distribution via convex optimization with closed-form solution.
  • M-step performs trust-region policy improvement using supervised learning on the optimal variational distribution, enabling off-policy updates.
  • Uses a dual-variable formulation with Lagrangian relaxation to enforce safety constraints during policy optimization.
  • Employs particle-based sampling and SLSQP for solving the convex E-step optimization problem efficiently.
  • Applies Polyak averaging and KL constraints in M-step to stabilize training and ensure robustness to distributional shifts.

Experimental results

Research questions

  • RQ1Can safe reinforcement learning be reformulated as a probabilistic inference problem to achieve better stability and optimality?
  • RQ2Can a two-step EM-style algorithm with convex E-step and supervised M-step improve constraint satisfaction and sample efficiency?
  • RQ3Does the closed-form solution in the E-step guarantee optimality and uniqueness under standard assumptions?
  • RQ4Can off-policy learning be effectively integrated into constrained policy optimization with robustness guarantees?
  • RQ5How does the proposed method compare to on-policy and off-policy baselines in terms of constraint violation and sample efficiency?

Key findings

  • CVPO achieves up to 1000 times better sample efficiency than on-policy baselines across continuous control tasks.
  • The method demonstrates significantly more stable training dynamics compared to existing primal-dual and policy-gradient approaches.
  • CVPO achieves superior constraint satisfaction, with cumulative cost during convergence consistently lower than baselines.
  • The E-step's closed-form solution is provably optimal and unique due to strict convexity of the dual problem.
  • The trust-region M-step provides a worst-case constraint violation bound and robustness to training instability.
  • Empirical results show that CVPO outperforms both on-policy and off-policy baselines in reward, constraint satisfaction, and training stability.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.