Skip to main content
QUICK REVIEW

[Paper Review] Lyapunov Barrier Policy Optimization

Harshit Sikchi, Wenxuan Zhou|arXiv (Cornell University)|Mar 16, 2021
Reinforcement Learning in RoboticsComputer Science30 references8 citations
TL;DR

This paper proposes Lyapunov Barrier Policy Optimization (LBPO), a novel safe reinforcement learning method that uses a Lyapunov-based barrier function to constrain policy updates within a safe set, ensuring safety during training. LBPO significantly reduces constraint violations compared to state-of-the-art baselines like CPO and SDDPG, while maintaining competitive performance, and enables tunable risk aversion via a barrier parameter.

ABSTRACT

Deploying Reinforcement Learning (RL) agents in the real-world require that the agents satisfy safety constraints. Current RL agents explore the environment without considering these constraints, which can lead to damage to the hardware or even other agents in the environment. We propose a new method, LBPO, that uses a Lyapunov-based barrier function to restrict the policy update to a safe set for each training iteration. Our method also allows the user to control the conservativeness of the agent with respect to the constraints in the environment. LBPO significantly outperforms state-of-the-art baselines in terms of the number of constraint violations during training while being competitive in terms of performance. Further, our analysis reveals that baselines like CPO and SDDPG rely mostly on backtracking to ensure safety rather than safe projection, which provides insight into why previous methods might not have effectively limit the number of constraint violations.

Motivation & Objective

  • To address the lack of safety guarantees during training in deep reinforcement learning, where agents may cause damage due to unconstrained exploration.
  • To develop a method that ensures safety throughout the training process, not just asymptotically at convergence.
  • To provide a mechanism for controlling the risk-aversion level of the agent via a tunable barrier parameter.
  • To analyze why prior methods like CPO and SDDPG still incur many constraint violations despite claiming safety.
  • To demonstrate that safe policy updates can be achieved through barrier functions rather than relying on backtracking recovery rules.

Proposed method

  • LBPO formulates the policy update as an unconstrained optimization problem augmented with a barrier function derived from a Lyapunov function.
  • The Lyapunov function transforms trajectory-based constraints into state-based constraints, enabling efficient and safe policy updates.
  • The barrier function enforces that the updated policy remains within the set of safe policies defined by the Lyapunov function, ensuring safety at every training step.
  • The method introduces a tunable parameter β that controls the conservativeness of the policy update, allowing users to adjust risk aversion.
  • LBPO uses a modified policy gradient update that incorporates the barrier term to project the policy update into the safe set without requiring backtracking.
  • The approach is evaluated on continuous control benchmarks with varying Q-function estimation errors, demonstrating robustness to function approximation errors.

Experimental results

Research questions

  • RQ1How can we ensure safety during the entire training process of deep RL agents, rather than only at convergence?
  • RQ2Why do existing safe RL methods like CPO and SDDPG still experience high numbers of constraint violations in practice?
  • RQ3Can a Lyapunov-based barrier function be used to enforce safe policy updates without relying on backtracking recovery mechanisms?
  • RQ4To what extent can the risk aversion of an RL agent be controlled through a tunable barrier parameter?
  • RQ5How robust is LBPO to errors in Q-function estimation during training?

Key findings

  • LBPO reduces the number of constraint violations to near zero across multiple continuous control environments, significantly outperforming CPO and SDDPG.
  • The method is robust to errors in Q-function estimation, maintaining low constraint violations even with limited data, unlike CPO and SDDPG.
  • Empirical analysis shows that CPO and SDDPG rely heavily on backtracking recovery rules to achieve near-constraint satisfaction, which leads to many violations during training.
  • Tuning the barrier parameter β allows users to control the risk aversion of the agent, with larger β values resulting in more conservative policies.
  • LBPO achieves competitive performance on standard RL benchmarks while maintaining strong safety guarantees, making it suitable for real-world deployment.
  • The ablation study confirms that the barrier function is the primary driver of safety, not recovery mechanisms, validating the method's design principle.

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.