Learning Stable Normalizing-Flow Control for Robotic Manipulation

Shahbaz Abdul Khader, Hang Yin, Pietro Falco, Danica Kragic · DOI

Abstract

Deep Reinforcement Learning (RL) has demonstrated significant potential in teaching robots complex manipulation skills. However, the black-box nature of standard neural network policies often lacks the safety and stability guarantees essential for real-world physical systems. This paper introduces a novel "normalizing-flow controller" that embeds Lyapunov stability directly into the RL policy architecture. By utilizing invertible neural networks to map complex robot states to a stable latent space, the proposed method ensures provable stability and passivity. Experimental results across simulated and real-world tasks demonstrate that this structured approach not only guarantees safety but also improves learning efficiency and reduces the control effort required for contact-rich manipulation.

Introduction

In robotic control, stability—the assurance that a system will reliably converge to a goal without divergent oscillations—is a primary engineering requirement. Traditional control theory provides these guarantees through rigorous mathematical modeling, but these models often fail in "contact-rich" scenarios, such as gear assembly or peg-in-hole insertion, where friction and collision dynamics are difficult to characterize.

Deep RL offers a model-free alternative, yet it typically relies on unstructured policies that offer no guarantees regarding the robot's behavior. This research addresses the dilemma of maintaining the flexibility of deep RL while hardcoding the mathematical guarantees of control theory. The authors propose a normalizing-flow architecture that transforms the robot's state space into a virtual space governed by simple, stable dynamics.

Methodology: The Normalizing-Flow Controller

The core innovation lies in the use of Normalizing Flows—generative models typically used to map simple probability distributions to complex ones—to structure the robot's policy. The architecture consists of three primary components:

  1. The Virtual Spring-Damper: In a transformed latent space, the control law is predefined as a perfectly stable spring-damper system. This ensures that, within this virtual environment, the system always converges toward the goal state.
  2. The Normalizing Flow: A sequence of invertible neural networks learns a bijective (two-way) mapping between the robot’s complex physical state space and the simplified virtual space.
  3. The Jacobian Pullback: Using the Jacobian matrix of the learned transformation, the virtual control forces are translated back into real-world motor torques.

Because the underlying virtual system is mathematically stable and the transformation is strictly invertible, the real-world controller inherits Lyapunov stability. Furthermore, the system is mathematically "passive," meaning it does not inject runaway energy when interacting with external objects, making it inherently safe for contact-rich tasks. The parameters of the normalizing flow are optimized using Proximal Policy Optimization (PPO).

Experimental Evaluation

The method was evaluated across three distinct environments designed to test stability and efficiency:

  • 2D Block-Insertion: Used to visualize and verify the learned energy landscapes.
  • 7-DOF Simulated Peg-in-Hole: A benchmark for contact-rich manipulation involving a simulated robotic arm.
  • Real-World Gear Assembly: A physical validation using an industrial ABB robot arm tasked with assembling a gear onto a shaft with tight tolerances.

Key Insights and Results

Stability as an Exploration Catalyst

Contrary to the intuition that architectural constraints might hinder performance, the stability guarantee acted as a "funnel" for exploration. Even during random initialization, the underlying spring dynamics biased the robot toward the goal, leading to more productive exploration than unstructured policies.

Efficiency and Safety

In the 7-DOF simulated task, the Normalizing-Flow PPO (NF-PPO) achieved a 90% success rate within 63 iterations, whereas standard PPO failed to reach this threshold consistently. To match the learning speed of NF-PPO, standard PPO required significantly higher exploration noise. When performance was equalized, NF-PPO reduced the robot's state space coverage by 50% and decreased required joint torques by 33%, demonstrating a much safer and more efficient learning trajectory.

Real-World Application

The controller was successfully deployed on a physical ABB robot. The system learned the gear assembly task with a 90% success rate in approximately 50 iterations, confirming the method's viability for industrial applications where safety and sample efficiency are paramount.

Limitations and Future Work

Despite its advantages, the approach introduces a roughly 4x increase in computational overhead due to the necessity of calculating the Jacobian during inference. This required the use of smaller networks for real-time control on physical hardware. Additionally, while the final controller is stable, the exploration process during RL still involves stochastic noise, meaning exploration itself is not yet strictly guaranteed to be stable. Future research will focus on developing RL methods that maintain stability guarantees even during the noisy training phase.

Summary updated

BibTeX
@inproceedings{khader2020learning,
  author = {Shahbaz Abdul Khader and Hang Yin and Pietro Falco and Danica Kragic},
  title = {{Learning Stable Normalizing-Flow Control for Robotic Manipulation}},
  booktitle = {IEEE International Conference on Robotics and Automation},
  year = {2020},
  doi = {10.1109/icra48506.2021.9562071},
}
Figure