Motion Manifold Flow Primitives for Task-Conditioned Trajectory Generation Under Complex Task-Motion Dependencies

Yonghyeon Lee, Byeongho Lee, Seungyeon Kim, Frank C. Park

TL;DR

This paper introduces Motion Manifold Flow Primitives (MMFP), a novel framework for generating complex robot trajectories conditioned on task parameters like language commands. MMFP decouples learning the underlying motion manifold from learning task-conditioned distributions, enabling it to capture intricate dependencies that previous methods struggled with.

What Problem Does This Paper Address?

Generating realistic and adaptable robot trajectories is crucial for tasks ranging from manipulation to navigation. Traditional approaches often rely on pre-defined movement primitives, but these can be rigid. More recent methods leverage the "motion manifold hypothesis" – the idea that trajectories lie on a lower-dimensional subspace – to handle limited data and high dimensionality. However, these methods often fail when the relationship between task parameters (like specific instructions) and the resulting motion is complex and non-linear. For instance, a simple command like "go to the origin" might allow multiple paths, while a more specific command like "go to the origin via the lower passage" drastically restricts the possible motions. Existing models struggle to adapt their motion distributions to such "complex task-motion dependencies."

Methods

MMFP tackles this challenge by introducing a two-stage approach:

  1. Motion Manifold Learning: An autoencoder is trained to learn a low-dimensional latent representation of trajectories. This effectively reduces the dimensionality of the trajectory space and captures the underlying structure of human-like movements.
  2. Task-Conditioned Latent Flow: Instead of directly modeling the task-conditioned distribution in the high-dimensional trajectory space, MMFP uses flow matching models in the latent space. Flow matching models are powerful conditional generative models that learn to transform a simple prior distribution into a complex target distribution by learning a vector field. By conditioning this flow on task parameters (like text embeddings), MMFP can generate diverse latent representations that correspond to specific tasks.

A key innovation is the decoupling of the manifold learning from the task-conditioned flow. This allows the flow matching model to focus on learning the complex conditional distributions within the simpler latent space, rather than trying to do so directly in the high-dimensional trajectory space. For text conditioning, a Sentence-BERT encoder is used, and a small neural network (text embedding model) further processes this embedding to improve robustness.

Datasets

The paper evaluates MMFP on several tasks:

  • 2D Trajectory Generation: A dataset of 20 trajectories with two levels of text annotations (e.g., "Go to the origin" and "Go to the origin through the lower passage").
  • SE(3) Pouring Motion Generation: Trajectories of bottles during pouring tasks, with three levels of text annotations describing the action and direction.
  • 7-DoF Waving Motion Generation: Trajectories of a robot arm performing waving motions, with three levels of text annotations describing direction and gesture style.

The authors also mention using ChatGPT to generate unseen text inputs for robust evaluation.

Key Insights and Ideas

  • Decoupling is Key: The core insight is that separating the learning of the motion manifold from the learning of task-conditioned distributions is crucial for handling complex task-motion dependencies. This allows each component to specialize.
  • Latent Space Flow Matching: Applying flow matching models in the latent space of a learned motion manifold is more effective than applying them directly in the high-dimensional trajectory space or using traditional manifold-based autoencoders with fixed priors.
  • Flow Matching vs. Diffusion in Latent Space: The paper empirically shows that flow matching models in the latent space outperform diffusion models for this task, likely due to the smoother optimal transport paths used by flow matching, which simplify the learning problem.
  • Robustness to Text Variations: The inclusion of a text embedding model and a regularization term in the training objective helps MMFP generalize better to variations in text inputs.

Key Results

  • Superior Performance: MMFP consistently outperforms existing methods (DDPM, RFM, TCVAE, MMP) across various metrics (MMD, robust MMD, accuracy) on 2D, SE(3) pouring, and 7-DoF waving tasks.
  • High Accuracy: MMFP achieves near-perfect accuracy (e.g., 99.8% for 2D, 99.9% for pouring, 100% for waving) on tasks where other methods struggle.
  • Handles Complex Dependencies: MMFP successfully captures multi-modal distributions and drastic shifts in motion based on detailed text instructions, as demonstrated by its performance on level 3 annotations.
  • Qualitative Success: Visualizations and real robot experiments show MMFP generating smooth, accurate, and diverse trajectories that align with the given text commands.

Limitations and Future Work

  • Text-Only Conditioning: The current framework relies solely on text inputs for task conditioning. The authors suggest extending it to incorporate visual inputs (depth images, point clouds) to make the primitives more versatile.
  • Fixed-Length Trajectories: The implementation currently handles fixed-length discrete-time trajectories. Future work could explore sequence models (like transformers or RNNs) or continuous-time representations to address this.

Summary updated

BibTeX
@article{lee2025motion,
  author = {Yonghyeon Lee and Byeongho Lee and Seungyeon Kim and Frank C. Park},
  title = {{Motion Manifold Flow Primitives for Task-Conditioned Trajectory Generation Under Complex Task-Motion Dependencies}},
  journal = {IEEE Robotics Autom. Lett.},
  year = {2025},
  doi = {10.1109/lra.2025.3575313},
}
Figure