Deep Learning for Koopman-based Dynamic Movement Primitives

Tyler Han, Carl Glen HenshawarXiv 2023 · DOI

Abstract

This paper introduces Autoencoder Dynamic Mode Decomposition (aDMD), a novel framework that integrates Koopman Operator theory with deep learning to enhance Dynamic Movement Primitives (DMPs). By utilizing a deep autoencoder to identify a latent space where nonlinear robot motions evolve linearly, aDMD enables robots to learn complex, dexterous tasks from minimal demonstrations. Evaluated on the LASA Handwriting dataset, the proposed method demonstrates significantly higher accuracy and better data efficiency compared to traditional polynomial-based Koopman approximations.

Introduction

Teaching robots to perform dexterous manipulation—such as writing, folding laundry, or navigating complex terrain—typically relies on Learning from Demonstration (LfD). However, current LfD methods often struggle with a trade-off between simplicity and flexibility. Simple splines are easy to implement but brittle to environmental changes, while Reinforcement Learning (RL) offers flexibility at the cost of massive data requirements. Dynamic Movement Primitives (DMPs) serve as a popular middle ground by treating motion as a dynamical system, yet they often require manual engineering of "attractor basins" to ensure stability.

The authors address this gap by proposing aDMD, which automatically identifies the underlying dynamics of a motion directly from data. This approach eliminates the need for hand-engineered stability descriptors while maintaining high performance even with sparse datasets.

Methodology: The aDMD Framework

The core innovation of this work is the aDMD approach, which leverages two primary mathematical pillars: Koopman Operator Theory and Deep Autoencoders.

Koopman Operator Theory and Autoencoders

Koopman theory posits that any nonlinear dynamical system can be represented as a linear system if observed through an appropriate set of "observables." Instead of modeling nonlinear transitions directly, aDMD projects data into a higher-dimensional latent space where the dynamics become linear. The framework uses a deep autoencoder to discover these observables automatically. The encoder ($\Phi$) maps complex, nonlinear robot states into this linear latent space, while the decoder ($\Psi$) maps them back to the original measurement space.

The aDMD architecture: The encoder $\Phi$ maps input states to a latent space where dynamics are governed by a linear operator $K_m$, followed by a decoder $\Psi$ to reconstruct the state.

Technical Innovations

To ensure robustness and stability, the authors introduced several key technical components:

  1. Delay Coordinates: To handle sparse data, the model processes "chunks" of trajectories over time, providing the system with temporal context (memory).
  2. Eigenmode Filtering: To prevent trajectories from diverging, the authors implement a filter in the latent space to subtract unstable eigenmodes before decoding.
  3. Multi-part Loss Function: The network is optimized using a weighted sum of three losses: Reconstruction (point-wise accuracy), Prediction (forecasting future states), and Linearity (ensuring transitions in the latent space follow linear algebra).

Experimental Setup

The researchers evaluated aDMD using the LASA Handwriting dataset, which consists of 26 handwritten, single-stroke characters. To ensure the model could handle real-world perturbations, they employed "motor babbling"—augmenting the training set with random noise. Notably, the aDMD model was trained on a significantly smaller fraction of the available data compared to baseline methods, highlighting its superior data efficiency.

Key Results and Discussion

The authors compared aDMD against Extended Dynamic Mode Decomposition (eDMD) using 3rd and 4th-order polynomials.

Quantitative Performance

aDMD achieved substantially lower reconstruction errors than polynomial eDMD. In single reconstruction tasks, aDMD's prediction error was approximately 0.024, whereas 3rd-order eDMD produced errors nearly eight times higher (~0.196). While polynomial methods often suffer from numerical instability ("explosions") in high-dimensional spaces, the autoencoder-based approach remained stable and computationally efficient.

Qualitative Fidelity

As shown in the qualitative results, aDMD produces smoother and more accurate recreations of original handwriting strokes compared to polynomial baselines, even when starting from noisy initial conditions.

Qualitative comparison of handwriting reconstruction between aDMD and polynomial DMD (pDMD) for different orders $n$. aDMD (top row) shows significantly higher fidelity to the original strokes.

Conclusion and Future Work

By forcing the latent space to be linear, aDMD makes the "black box" of deep learning more interpretable, allowing for the application of standard linear control theory to robot motion. While currently validated on 2D handwriting tasks, future work will focus on scaling this approach to higher-dimensional systems, such as humanoid or quadruped robots. Additionally, the authors aim to integrate active control mechanisms within the latent space to enable robots to resist external disturbances during task execution.

Summary updated

BibTeX
@misc{han2023deep,
  author = {Tyler Han and Carl Glen Henshaw},
  title = {{Deep Learning for Koopman-based Dynamic Movement Primitives}},
  year = {2023},
  eprint = {2312.03328},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2312.03328},
}
Figure