Learning Lyapunov-Stable Polynomial Dynamical Systems Through Imitation

Amin Abyaneh, Hsiu-Chin Lin

Abstract

This paper presents PLYDS (Polynomial Dynamical Systems), a novel imitation learning framework that ensures global asymptotic stability for robotic motion planning. By modeling both the control policy and a Lyapunov function as polynomials, the approach leverages sum-of-squares (SOS) optimization to jointly learn expressive trajectories from expert demonstrations while guaranteeing convergence to a target state. Experimental results on the LASA dataset and real-world robotic tasks demonstrate that PLYDS achieves superior accuracy and computational efficiency compared to existing stable dynamical system baselines, even with sparse training data.

Introduction

Imitation learning enables robots to acquire complex skills by mimicking human experts. However, standard data-driven methods often lack formal safety and stability guarantees. When a robot encounters states outside its training distribution—due to physical perturbations or sensor noise—its behavior can become unpredictable. To address this, researchers utilize autonomous dynamical systems (DS) constrained by Lyapunov stability theory. While effective, current stable DS methods often struggle with highly nonlinear trajectories or require significant computational resources.

This work introduces PLYDS, a framework designed to bridge the gap between expressiveness and stability. By employing polynomial representations, the system can approximate complex nonlinearities while remaining amenable to rigorous stability certification via semi-definite programming.

Methodology

The core of PLYDS lies in the joint optimization of a polynomial policy and a Lyapunov candidate.

Polynomial Representations

The robot's policy $\dot{\mathbf{x}} = f(\mathbf{x})$ is modeled as a parametric polynomial. According to the Weierstrass approximation theorem, polynomials can represent any continuous function on a compact set with arbitrary precision, making them ideal for capturing complex expert motions. To guarantee stability, the framework also defines a Lyapunov Potential Function (LPF) as a multidimensional "vector Lyapunov function," where each state dimension is associated with its own polynomial.

Overview of the PLYDS framework, illustrating the pipeline from expert demonstrations to a globally stable policy deployed on a manipulator arm.

Sum-of-Squares (SOS) Optimization

Proving global asymptotic stability requires the Lyapunov function to be positive definite and its time derivative to be negative definite. PLYDS translates these conditions into Sum-of-Squares (SOS) constraints. The learning task is then formulated as a regularized semi-definite programming (SDP) problem that minimizes the mean-squared error (MSE) between the learned policy and expert demonstrations, strictly subject to the SOS stability requirements.

Experimental Results

The performance of PLYDS was evaluated using the LASA Handwriting Motion Dataset and a custom 3D dataset collected using a Kinova Gen3 Lite manipulator.

Accuracy and Efficiency

PLYDS consistently outperforms state-of-the-art baselines such as SEDS, LPV-DS, and SDS-EF in terms of reproduction accuracy. In a 3D "Pick and Place" task, PLYDS achieved an MSE of 0.021, significantly lower than SEDS (0.094). Furthermore, the method exhibits high computational efficiency; the optimization for the same task took approximately 21 seconds, whereas SEDS required 277 seconds and SDS-EF over 700 seconds.

Quantitative comparison of PLYDS against baselines across various motion shapes, showing (a) Mean Squared Error (MSE) and (b) Computation Time.

Robustness and Sample Efficiency

A key advantage of PLYDS is its sample efficiency. The framework can learn stable, accurate policies from as little as a single expert demonstration. When deployed on physical hardware, the learned policies proved robust to external perturbations. If the robot arm was pushed off its path, the inherent global stability of the DS ensured it smoothly returned to the trajectory and reached the target.

Conclusion

PLYDS provides a mathematically grounded yet flexible approach to stable imitation learning. By utilizing polynomials and SOS optimization, it achieves a favorable balance between trajectory accuracy and computational speed. Future research will explore the integration of Control Barrier Functions (CBFs) for obstacle avoidance and scaling the method to higher-dimensional configuration spaces for more complex robotic platforms.

Summary updated

BibTeX
@inproceedings{abyaneh2023learning,
  author = {Amin Abyaneh and Hsiu-Chin Lin},
  title = {{Learning Lyapunov-Stable Polynomial Dynamical Systems Through Imitation}},
  booktitle = {Conference on Robot Learning},
  year = {2023},
}
Figure