Generalizable Motion Policies through Keypoint Parameterization and Transportation Maps

Giovanni Franzese, Ravi Prakash, Cosimo Della Santina, Jens Kober

TL;DR

This paper introduces a novel "policy transportation" framework that generalizes robot motion policies (including position, velocity, orientation, and stiffness) to novel situations using only a single demonstration and a set of paired environment keypoints. By learning a non-linear transformation map via Gaussian Processes, the method successfully deforms the underlying task space while providing well-calibrated uncertainty estimates for out-of-distribution scenarios.

What Problem Does This Paper Address?

Learning from Demonstration (LfD) allows non-experts to intuitively teach robots tasks like cleaning, dressing, or pick-and-place via kinesthetic guiding. However, making these learned skills generalize to new environments—such as cleaning a curved surface after being trained on a flat one—remains a major challenge.

Existing task-parameterization methods (like Task-Parameterized Gaussian Mixture Models or Dynamic Movement Primitives) suffer from several key limitations:

  1. Scalability issues: They struggle to scale when managing numerous task parameters, such as representing a surface as a dense point cloud.
  2. Data inefficiency: They typically require multiple diverse demonstrations to build an effective model.
  3. Covariate shift: They fail to generalize effectively when the robot encounters states far from the demonstrated data.
  4. Incomplete transformation: Most trajectory-reshaping methods only alter positions, failing to adapt crucial execution parameters like velocity fields, end-effector orientations, and contact stiffness profiles.

Methods

The authors propose a two-step Policy Transportation mapping ($\phi: \mathbb{R}^3 \rightarrow \mathbb{R}^3$) that aligns a set of source keypoints ($S$) from the demonstration to target keypoints ($T$) in the new scenario:

$$\phi(x) := \gamma(x) + \psi(\gamma(x))$$

  1. Global Affine Transformation ($\gamma$): First, Singular Value Decomposition (SVD) is used to find the optimal rigid rotation and translation between the centroids of the source and target keypoints. This handles global shifts.
  2. Local Non-Linear Residual ($\psi$): A non-linear regressor—ideally a Gaussian Process (GP)—is trained to fit the remaining residual errors. Using a distance-based kernel ensures that far away from the keypoints (out-of-distribution), the transformation safely reverts to the global affine map.
Fig. 2: 2D transportation. Distribution match depicts the source and the target distribution correspondence used to train the transportation function. Source Distribution depicts a grid of points in the original space. Linear Transformation shows the effect on the original grid when only an affine transformation γ is used to match source and target distribution. Nonlinear Transportation captures the deformation of the space when the source points are forced to match the target ones via the application of the complete policy ϕ.

Crucially, rather than just deforming a trajectory, the authors use the Jacobian matrix ($J_\phi$) of this transportation map to transform independent policy labels across the entire vector field:

  • Velocities: $\hat{\dot{X}} = J_\phi \dot{X}$
  • Orientations: $\hat{R} = J_\perp R$ (using polar decomposition to project the Jacobian onto $SO(3)$)
  • Stiffness/Damping: $\hat{K} = J_\perp K J_\perp^T$

Because it transforms independent labels rather than time-indexed trajectories, this method is entirely agnostic to the downstream policy representation (e.g., DMPs, KMPs, or Neural Networks).

Datasets

The approach was evaluated on both simulated benchmarks and real-world robotic tasks:

  • 2D Simulated Surface Cleaning: A cyclic trajectory benchmark used to compare different non-linear regressors (GPs, MLPs, Neural Flows) against trajectory-reshaping baselines.
  • Multi-Reference Frame Benchmark: A simulated 2D dataset consisting of 9 distinct configurations of starting and goal frames to evaluate multi-frame generalization.
  • Real Robot Validation (Franka Emika):
  • Robot Reshelving: Moving a milk box to different shelves using AprilTags for keypoint tracking.
  • Robot Dressing: Pulling a sleeve over an articulated mannequin arm placed in various configurations.
  • Robot Surface Cleaning: Polishing unknown curved surfaces using an ordered point cloud from a RealSense D435 camera.
  • Food Stacking: A vision-based manipulation task utilizing DINO features to automatically extract keypoints without fiducial markers.

Key Insights and Ideas

  • The "Revert-to-Affine" Prior: By using a zero-mean prior GP with a square exponential kernel for the residual map $\psi$, the policy transportation gracefully degrades to a standard rigid transformation when far away from the tracked keypoints. This prevents wild, unpredictable distortions in out-of-distribution spaces.
  • Jacobian-Based Impedance Transport: Transforming stiffness ($K$) and damping ($D$) matrices via the Jacobian allows the robot to automatically adjust its compliance based on the geometric deformation of the space. For example, if a surface is compressed or stretched by the mapping, the robot's stiffness profile adapts accordingly.
  • Single-Demonstration Generalization: Unlike mixture models (TP-GMM) that require multiple distinct demonstrations to understand frame relevancy, this geometric mapping can successfully extrapolate a skill from a single demonstration.

Key Results

  • Simulation Comparisons: In the multi-reference frame test, Gaussian Process Transportation (GPT) trained on a single demonstration statistically outperformed TP-GMM and Hidden Markov Models (HMMs) trained on nine demonstrations in terms of Frechet distance, final position error, and orientation error.
  • Real-World Robustness: On the Franka robot, the system achieved a 100% success rate across 10 randomized configurations for the reshelving task. For the dressing task, it successfully generalized across a wide range of arm configurations ($\Delta\alpha = 56^\circ$ elbow variance) from one demo.
Fig. 1: Example of Policy Transportation. The human demon- strates to the robot how to perform a task on a flat canvas. Then, the robot, when facing a new curved canvas, “transports” its knowledge in the new situation by adapting the end effector velocity, orientation, and stiffness to correctly adapt the drawing on the new canvas.

Limitations and Future Work

  • Keypoint Pairing Assumption: The algorithm currently assumes that source and target keypoints are already paired and ordered. Integrating sorting methods like Optimal Transport or Iterative Closest Point (ICP) is noted as a necessary next step for unstructured point clouds.
  • Perception Bottlenecks: When using foundation models like DINO for markerless keypoint extraction, feature matching took nearly a minute on an RTX4060 GPU, making online target updates impossible. Stereoscopic depth estimation also proved brittle on highly non-flat objects.
  • Static Environments: The current formulation assumes the target environment doesn't move during the robot's rollout. Updating the non-linear policy online remains computationally challenging.

Summary updated

BibTeX
@article{franzese2025generalizable,
  author = {Giovanni Franzese and Ravi Prakash and Cosimo Della Santina and Jens Kober},
  title = {{Generalizable Motion Policies through Keypoint Parameterization and Transportation Maps}},
  journal = {IEEE Trans. Robotics},
  year = {2025},
  doi = {10.1109/tro.2025.3582821},
}
Figure