A Policy Optimization Method Towards Optimal-time Stability

Shengjie Wang, Lan Fengb, Xiang Zheng, Yuxue Cao, Oluwatosin OluwaPelumi Oseni, Haotian Xu, Tao Zhang, Yang Gao

Abstract

In current model-free reinforcement learning (RL) algorithms, stability criteria based on sampling methods are commonly utilized to guide policy optimization. However, these criteria only guarantee the infinite-time convergence of the system’s state to an equilibrium point, which leads to sub-optimality of the policy. In this paper, we propose a policy optimization technique incorporating sampling-based Lyapunov stability. Our approach enables the system’s state to reach an equilibrium point within an optimal time and maintain stability thereafter, referred to as "optimal-time stability". To achieve this, we integrate the optimization method into the Actor-Critic framework, resulting in the development of the Adaptive Lyapunov-based Actor-Critic (ALAC) algorithm. Through evaluations conducted on ten robotic tasks, our approach outperforms previous studies significantly, effectively guiding the system to generate stable patterns.

Introduction

In the domain of model-free reinforcement learning (RL), stability is a critical yet often secondary requirement compared to reward maximization. While RL agents excel at optimizing costs, they frequently produce jittery or oscillating behaviors that are unsuitable for real-world robotics. Existing "stable RL" methods typically leverage Lyapunov stability theory—a control-theoretic approach using "energy-like" functions to ensure convergence to an equilibrium point. However, these methods generally only guarantee infinite-time convergence, meaning the robot will eventually stabilize but may take an inefficient path to get there.

Conceptual comparison of trajectories in state space, highlighting the optimal-time stability path.

As illustrated in Figure 1, while multiple trajectories can satisfy basic stability, they vary significantly in efficiency. This research addresses the gap by proposing a method to ensure stability while simultaneously optimizing the efficiency of reaching that stable state, a concept termed "optimal-time stability."

Methodology: Adaptive Lyapunov-based Actor-Critic (ALAC)

The authors introduce the Adaptive Lyapunov-based Actor-Critic (ALAC) algorithm to bridge the gap between stability and efficiency. The framework consists of several key innovations:

  1. Sampling-based Lyapunov Stability: ALAC utilizes a model-free approach where the Lyapunov "energy" function is learned directly from experience, rather than requiring a predefined physical model.
  2. Adaptive Factors ($\lambda$ and $k$): Unlike previous methods with fixed stability parameters, ALAC treats these factors as learnable variables. Using a Lagrangian-based approach, the algorithm adaptively tightens constraints during training, forcing the policy toward the most efficient stable trajectory.
  3. Constrained Critic Network: A specialized neural network architecture is employed for the Lyapunov critic, ensuring outputs are non-negative and zero at the equilibrium point to satisfy mathematical stability requirements.
The Adaptive Lyapunov-based Actor-Critic (ALAC) framework architecture.

Experimental Evaluation

The ALAC algorithm was rigorously tested across ten robotic control environments using MuJoCo and PyBullet, including locomotion tasks (HalfCheetah, Ant, Humanoid, Minitaur), classic control (Cartpole), and complex space robotics simulations (Spacereach, Spacerandom).

Key Results

  • Superior Performance: ALAC consistently achieved lower accumulated costs and fewer stability violations compared to baselines like SAC-cost, LAC, and POLYC.
  • Robustness and Generalization: The algorithm demonstrated high resilience to external disturbances (random "pushes") and successfully generalized to unseen goals, such as varying target speeds in locomotion tasks.
  • Informative Guidance: Unlike other methods where the Lyapunov signal may vanish too early, ALAC maintains a dense guidance signal throughout training, facilitating continuous policy improvement.

Conclusion and Future Work

ALAC demonstrates that stability in RL is not a binary state but a property that can be optimized for efficiency. By making stability constraints adaptive, the agent learns to reach equilibrium in the shortest possible time. While successful in simulation, future research will focus on real-world hardware deployment, where sensor noise and hardware latency present additional challenges, as well as the integration of safety constraints to avoid specific forbidden states.

Summary updated

BibTeX
@inproceedings{wang2023policy,
  author = {Shengjie Wang and Lan Fengb and Xiang Zheng and Yuxue Cao and Oluwatosin OluwaPelumi Oseni and Haotian Xu and Tao Zhang and Yang Gao},
  title = {{A Policy Optimization Method Towards Optimal-time Stability}},
  booktitle = {Conference on Robot Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=pu1Y9XTBa5},
}
Figure