Learning Contracting Vector Fields For Stable Imitation Learning

Vikas Sindhwani, Stephen Tu, Mohi KhansariarXiv 2018

Abstract

We propose a new non-parametric framework for learning incrementally stable dynamical systems $\dot{x} = f(x)$ from a set of sampled trajectories. We construct a rich family of smooth vector fields induced by certain classes of matrix-valued kernels, whose equilibria are placed exactly at a desired set of locations and whose local contraction and curvature properties at various points can be explicitly controlled using convex optimization. With curl-free kernels, our framework may also be viewed as a mechanism to learn potential fields and gradient flows. We develop large-scale techniques using randomized kernel approximations in this context. We demonstrate our approach, called contracting vector fields (CVF), on imitation learning tasks involving complex point-to-point human handwriting motions.

Introduction

In robot Learning from Demonstration (LfD), the goal is to enable robots to acquire complex skills by observing human experts. A prevalent approach is to model these skills as autonomous dynamical systems: $\dot{x} = f(x)$. While simple regression can match demonstrated velocities, it often fails to ensure global stability. If a robot is perturbed from the demonstrated path, a naively learned system might diverge, failing to reach the goal. This paper introduces Contracting Vector Fields (CVF), a framework that guarantees stability by construction, ensuring the robot always converges to the target equilibrium regardless of its starting position or unexpected perturbations.

Methodology: Contracting Vector Fields

The CVF framework leverages three core mathematical pillars to ensure robust imitation:

  1. Vector-valued Reproducing Kernel Hilbert Spaces (RKHS): The vector field $f$ is represented using matrix-valued kernels. This non-parametric approach allows for modeling complex, non-linear motions without the constraints of a fixed parametric model.
  2. Contraction Analysis: Unlike traditional Lyapunov stability, which focuses on convergence to a point, CVF utilizes incremental stability (contraction). By enforcing that the symmetric part of the Jacobian of the vector field is negative definite, the system creates a "contraction tube" that pulls trajectories toward the desired path.
  3. Convex Optimization via LMIs: The learning problem is formulated using Linear Matrix Inequalities (LMIs), resulting in a convex optimization problem. This ensures that the global optimum is found efficiently, avoiding the local minima issues common in non-convex methods like SEDS.
Learned contracting vector field for an 'S' shape demonstration, showing streamlines converging to the target.

To handle real-time constraints, the authors employ Random Fourier Features (RFF) to approximate the kernels, significantly reducing computational complexity without sacrificing stability guarantees.

Evaluation and Results

The authors evaluated CVF using the LASA Handwriting Library, which contains 2D trajectories for 30 distinct shapes. Each shape includes multiple human demonstrations with varying starting points but a shared goal.

Performance of CVF on various shapes from the LASA Handwriting Library, demonstrating stability and accuracy across different motion patterns.

Key results include:

  • Guaranteed Convergence: In "Grid" tests starting from random initial conditions, CVF achieved a 100% success rate in reaching the goal for most shapes, significantly outperforming naive regression.
  • High Accuracy: CVF maintained trajectory errors comparable to or better than state-of-the-art methods like Dynamic Movement Primitives (DMPs) and Stable Estimator of Dynamical Systems (SEDS).
  • Computational Efficiency: The use of 100–200 random features allowed for high-frequency integration, making the method suitable for real-world robotic control loops.
  • Qualitative Superiority: CVF creates a clean, organized flow toward the origin, avoiding the "dead zones" or divergent paths often seen in naive regression models.

Discussion and Insights

CVF shifts the paradigm of stable LfD by treating stability as a fundamental constraint rather than a post-processing step. The use of curl-free kernels provides a physical intuition, where the learned field acts as a gradient flow on a potential surface—essentially making the robot "roll down" toward its goal.

While highly effective, future work could explore learning generalized contraction metrics to handle even more complex stability regions. Additionally, integrating CVF with deep perception networks and explicit obstacle avoidance mechanisms remains an open and promising research direction.

Summary updated

BibTeX
@misc{sindhwani2018learning,
  author = {Vikas Sindhwani and Stephen Tu and Mohi Khansari},
  title = {{Learning Contracting Vector Fields For Stable Imitation Learning}},
  year = {2018},
  eprint = {1804.04878},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1804.04878},
}
Figure