Learning Deep Robotic Skills on Riemannian manifolds

Weitao Wang, Matteo Saveriano, Fares J. Abu-Dakka · DOI

Abstract

Traditional deep learning models for robotics often assume that data resides in a flat, Euclidean space. However, many robotic control variables, such as orientation and stiffness, exist on curved mathematical structures known as Riemannian manifolds. This paper introduces RiemannianFlow, a generative model that combines Riemannian geometry with normalizing flows to learn complex robotic skills while strictly adhering to geometric constraints. By projecting manifold data into a tangent space for processing and ensuring stability through constrained dynamics, RiemannianFlow achieves significant accuracy improvements over state-of-the-art baselines in both simulated and real-world tasks.

Introduction

Learning from Demonstration (LfD) has become a cornerstone of modern robotics, allowing machines to acquire complex behaviors through human guidance rather than manual programming. Despite its success, a fundamental mismatch often exists between the mathematical assumptions of deep learning models and the physical reality of robotic data. Standard models typically treat data as Euclidean, but robotic states often involve Symmetric Positive Definite (SPD) matrices (representing stiffness or manipulability) and unit quaternions (representing orientation).

These data types live on Riemannian manifolds—curved spaces where dimensions are interconnected by strict geometric constraints. Ignoring these constraints can lead to "impossible" robot states, such as non-unit quaternions or unstable impedance profiles. To bridge this gap, this research proposes a geometry-aware framework that ensures learned skills are both mathematically valid and physically stable.

Methodology: The RiemannianFlow Framework

The core innovation of this work is the RiemannianFlow model, which integrates Riemannian geometry with a deep learning technique known as Normalizing Flows. The process follows a three-step pipeline:

  1. Tangent Space Projection: Because standard Euclidean calculus does not apply directly to curved manifolds, the model utilizes a "logarithmic map." This mathematical operation projects data from the curved manifold onto a flat tangent space. This is analogous to flattening a specific region of a globe onto a 2D map, where standard mathematical operations become valid again.
  2. Stable ImitationFlow: Once in the tangent space, the model applies ImitationFlow. This is a type of normalizing flow designed to learn a stochastic nonlinear dynamical system. To ensure the robot's safety and reliability, the authors constrain the model's parameters so that the learned motion is globally stable. Specifically, the latent dynamics are forced to have negative real eigenvalues, mathematically guaranteeing that the robot will always converge to its target goal.
  3. Manifold Re-projection: After generating a trajectory in the flat tangent space, the model uses an "exponential map" to project the data back onto the original manifold. This step ensures that the final output automatically satisfies all underlying geometric constraints, such as maintaining the unit length of a quaternion.

Experimental Evaluation

The researchers validated RiemannianFlow using both simulated benchmarks and physical robotic platforms.

Augmented LASA Dataset

To test the model's ability to handle complex patterns, the team utilized the LASA handwriting dataset. They mathematically transformed 2D handwriting trajectories into 3D manifold data involving SPD matrices and unit quaternions. RiemannianFlow demonstrated superior performance, outperforming baselines like Riemannian Gaussian Mixture Models (R-GMM) and Fast Diffeomorphic Matching (FDM). On average, the model was 8.2% more accurate for SPD data and 17.7% more accurate for orientation data.

Real-World Peg-in-Hole Task

The method was further tested on a 7-DOF Franka Emika Panda robot performing a peg-in-hole task. This task is notoriously difficult because it requires the simultaneous management of position and orientation. Through kinesthetic demonstrations, the robot learned to generate stable trajectories from various unseen starting poses, successfully completing the task even when faced with multimodal distributions (where multiple paths could lead to the same goal).

Key Insights and Results

  • Geometry-Awareness: By explicitly accounting for the manifold structure, RiemannianFlow avoids the approximation errors inherent in "naive" Euclidean models.
  • Guaranteed Stability: The model's design ensures that the robot reaches its goal regardless of its starting position, providing a layer of mathematical safety essential for real-world deployment.
  • Generality: Unlike previous methods limited to specific structures like Lie groups, RiemannianFlow is highly general and can be applied to a wide variety of manifolds, including those used for robot impedance control.
  • Robustness: While hyperparameter optimization can improve accuracy by nearly 28%, the model's stability remains consistent across different settings, making it a reliable choice for complex robotic environments.

Limitations and Future Directions

While RiemannianFlow represents a significant step forward, some challenges remain. The training process currently takes approximately one hour on a consumer-grade GPU; the authors are exploring faster initialization methods to reduce this overhead. Additionally, the tangent space approach is a local approximation; if data covers a vast portion of a manifold (e.g., an entire sphere), a single tangent space may introduce errors. Future research will focus on incorporating more control variables, such as velocity and force, to enable even more sophisticated physical interactions.

Summary updated

BibTeX
@article{wang2022learning,
  author = {Weitao Wang and Matteo Saveriano and Fares J. Abu-Dakka},
  title = {{Learning Deep Robotic Skills on Riemannian manifolds}},
  journal = {IEEE Access},
  year = {2022},
  doi = {10.1109/access.2022.3217800},
}
Figure