Joint Flow Trajectory Optimization For Feasible Robot Motion Generation from Video Demonstrations

Xiaoxiang Dong, Matthew Johnson-Roberson, Weiming ZhiarXiv 2025 · DOI

Introduction

Learning from Demonstration (LfD) is a powerful paradigm for teaching robots complex tasks. However, traditional methods like kinesthetic teaching or teleoperation are often labor-intensive and difficult to scale. While "in-the-wild" human videos offer a more scalable data source, they present a significant embodiment gap: human hands and robot manipulators differ in geometry, joint limits, and reach. Simply mimicking a human's path often leads to kinematic infeasibility or collisions.

The JFTO Framework

The Joint Flow Trajectory Optimization (JFTO) framework addresses these challenges by treating human videos as object-centric guides rather than rigid motion templates. Instead of a sequential pipeline—where a grasp is chosen first and a path is planned later—JFTO employs a unified, differentiable optimization loop.

1. Vision and Flow Matching on $SE(3)$

The system first extracts 3D object trajectories from video using foundation models like DUSt3R and SAM2. To represent the multi-modal nature of human movement (e.g., choosing different paths around an obstacle), the authors extend Flow Matching to the Special Euclidean Group $SE(3)$. This allows the robot to learn a probabilistic "velocity field" of object poses, avoiding the "averaging" problem common in traditional imitation learning where a robot might try to move through an obstacle if demonstrations go around both sides.

2. Joint Optimization

The core of JFTO is the joint optimization of the robot's joint-space trajectory. It balances three key terms:

  • Trajectory Likelihood ($S_T$): Alignment with the learned $SE(3)$ flow distribution.
  • Grasp Score ($S_G$): Feasibility of the grasp for the specific robot hardware and similarity to the human's grasp.
  • Collision Penalty ($S_C$): Ensuring the robot and object avoid obstacles using distance-field-based penalties.
The JFTO framework jointly optimizes for feasible grasp poses and collision-free trajectories by iteratively refining the motion plan to satisfy kinematic and environmental constraints.

By making the entire objective differentiable, the robot can use gradient-based optimization (like Adam) to find a motion plan that is both human-like and kinematically feasible for its specific embodiment.

Experimental Evaluation

The framework was evaluated on a seven-task benchmark including tool use (hammering, sawing, drilling), precision tasks (pouring, tracing a figure-8), and obstacle awareness. The models were trained on human demonstrations and executed on a low-cost 6-DoF Agile-X Piper arm.

Key Results and Insights

JFTO demonstrated significant improvements over sequential baselines, particularly in maintaining rotational accuracy for tools like saws and hammers.

Robot execution of the learned sawing task, demonstrating the ability to translate human video demonstrations into feasible robot motions on hardware.
  • Object-Centricity: By focusing on the object's motion rather than human finger placement, the robot can adapt tasks to its own mechanical structure, such as using a parallel jaw gripper to perform tasks originally done by a five-fingered human hand.
  • Avoiding Mode Collapse: Thanks to Flow Matching, the robot can represent multiple valid strategies for a task without attempting a physically impossible "average" path.
  • Joint over Sequential: The paper argues that grasping and moving are inseparable. JFTO selects a grasp specifically because it enables the subsequent motion, avoiding the common failure where a chosen grasp leads to joint limit violations later in the task.

Conclusion and Future Work

JFTO provides a robust bridge between human video demonstrations and feasible robot execution by unifying grasp selection and trajectory planning. While currently focused on unimanual tasks in static environments, future work aims to extend this framework to bimanual manipulation and dynamic obstacle avoidance.

Summary updated

BibTeX
@misc{dong2025joint,
  author = {Xiaoxiang Dong and Matthew Johnson-Roberson and Weiming Zhi},
  title = {{Joint Flow Trajectory Optimization For Feasible Robot Motion Generation from Video Demonstrations}},
  year = {2025},
  eprint = {2509.20703},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.20703},
}
Figure