Stable modular control via contraction theory for reinforcement learning

Bing Song, Jean-Jacques E. Slotine, Quang-Cuong Pham

Abstract

Reinforcement Learning (RL) has demonstrated remarkable success in complex robotic manipulation tasks but often lacks the stability guarantees required for safe real-world deployment. This paper introduces a framework to bake control-theoretic stability directly into neural network architectures using contraction theory. By mapping robot states and actions into an auxiliary space via learned transformation layers, the authors decompose nonlinear dynamics into modular subsystems. This allows complex stability constraints to be simplified into linear constraints on network gradients. The resulting "stable-by-construction" policies are evaluated on simulated manipulation tasks, demonstrating superior robustness to parameter variations and significantly safer exploration compared to standard RL baselines.

Introduction

The brittleness of RL policies remains a major hurdle for robotics. A policy trained in simulation frequently fails when encountering slight variations in physical parameters like friction or mass. While classical control theory provides rigorous stability proofs, integrating these into deep learning typically involves complex penalty terms that are difficult to tune and often lead to conservative behavior. This work proposes a "minimally invasive" architectural approach to ensure stability throughout the learning process by leveraging contraction theory.

Methodology: Contraction and Modularity

The core of the approach is contraction theory, which focuses on the convergence of trajectories toward one another rather than toward a fixed point. The authors introduce two transformation layers, $T_y$ and $T_a$, to map dynamics into an auxiliary space. In this space, coupled nonlinear dynamics are deconstructed into modular subsystems. This modularity simplifies nonlinear stability constraints into linear constraints on the input gradients of the control networks.

Hierarchical RL architecture integrating high-level planning with a contraction-constrained low-level controller.

The proposed architecture is particularly suited for Hierarchical RL (HRL), where a high-level planner sets goals and a low-level controller, constrained by contraction theory, executes them. This ensures the entire system remains stable if the subsystems are stable and interact hierarchically, similar to how human limb movements are coordinated.

Experimental Results

The method was tested on a 2D stiff robot (peg-on-surface) and complex Mujoco manipulation tasks such as Peg-maze and Peg-push. In the 2D peg experiment, the constrained policy (C-PPO) maintained tracking accuracy two orders of magnitude better than standard PPO when subjected to significant parameter shifts.

Performance comparison in a peg-on-surface task: C-PPO achieves significantly lower force and position errors compared to standard PPO.

In the Peg-maze task, the proposed C-TD3 achieved a 99.93% safety rate (contacts < 1N), significantly outperforming the 65.88% rate of the baseline HIRO algorithm. Furthermore, in the challenging Peg-push task, the stable modular architecture was the only approach to consistently solve the task within 12 million steps, whereas standard HRL baselines failed to converge.

Discussion and Limitations

While effective, the method requires solving an eigenvalue decomposition at each time step to update transformation matrices, which may pose computational challenges for high-dimensional systems. Additionally, it assumes some knowledge of the locally linearized model of the system. Future work will explore extending this to fully model-free scenarios and balancing the potential conservativeness of stability bounds with overall performance optimization.

Summary updated

BibTeX
@inproceedings{song2024stable,
  author = {Bing Song and Jean-Jacques E. Slotine and Quang-Cuong Pham},
  title = {{Stable modular control via contraction theory for reinforcement learning}},
  booktitle = {L4DC},
  year = {2024},
}
Figure