Robot Motion Learning with PD Prior
Robot Motion Learning with Physics-Based PDE Priors
Introduction to Motion Planning
Motion planning is the computational process by which an agent coordinates its behavior from a given start configuration to a given goal configuration while satisfying all desired constraints. Whenever a dynamical system or robot needs to move, it must solve this motion planning problem.
Application Domains
Full-body motion planning: e.g., a mobile robot moving an object from one location to another.
Dynamic environments: obstacles are placed in the robot’s path during execution, requiring real-time replanning.
Reactive manipulation: robots solving manipulation planning problems under constraints experience disturbances and must dynamically adapt while continuing the assigned task.
Reactive multi-agent planning: multiple agents perform assigned tasks and must reactively avoid collisions with each other.
The core challenge across these domains is developing tools that are real-time, enable coordination in unstructured, constrained environments, and require minimal pre-training or trial-and-error.
Evolution of Motion Planning Approaches
Sampling-Based Methods (Undergraduate Focus)
Early work focused on adaptive sampling techniques to construct trees (e.g., RRT) as quickly as possible, where one branch provides a path from start to goal.
Data-Driven Approaches (PhD Focus)
Classical sampling-based methods become computationally slow as robot dimension increases (e.g., humanoid robots with many degrees of freedom). This motivated data-driven methods using neural networks. The essential recipe discovered: a neural network alone is insufficient — it needs stochasticity to avoid local minima.
Stochasticity can be introduced via dropout, variational autoencoders, or diffusion models (starting with noise and denoising over time).
The randomness helps the neural network escape local minima during planning.
Main issue: High training cost — offline data is gathered using classical methods, then models are trained. When combining training time with inference time, the overall benefit is questionable.
Desired Features for an Ideal Motion Planning Method
Inference efficiency: Methods enabling immediate execution; plans are inferred as quickly as possible.
Training efficiency: Reduce model training cost; eliminate the need for expert demonstrations. This facilitates transferability — a model trained with low cost can be easily applied to new domains.
Adaptability and scalability: Models that adapt to high degrees of freedom, complex terrains, unknown environments, complex constraints (e.g., manipulation), and scale to large numbers of agents operating in a coordinated or decentralized manner.
Comparison of Existing Approaches
Feature | Optimization-Based | Classical (Sampling, Discretization) | Data-Driven (Imitation/RL) |
|---|---|---|---|
Inference efficiency | High | Low (must discretize space or construct graph) | High (once trained) |
Training efficiency | High (no pre-training) | High (no training needed) | Very low (needs large expert datasets and long training) |
Adaptability to complexity | Low (prone to local minima) | Moderate; recent parallelization may help, but scaling to kinematic constraints is still limited | High (can handle complex scenarios) |
Goal: Develop a method that achieves all three features simultaneously by incorporating physics-based priors.
The Physics Prior: Eikonal PDE
The prior used is not a physics simulator but a PDE (partial differential equation) — specifically the eikonal equation derived from the Hamilton-Jacobi-Bellman (HJB) equation.
From HJB to Eikonal
The HJB PDE governs the motion of dynamical systems but is very hard to solve (singularities, multi-modal problems, kinematic + dynamic constraints). By assuming trivial dynamics, the HJB equation reduces to the eikonal equation:
where:
T(q) is the unknown value function (travel time from a source to configuration q).
S(q) is a known constraint function — e.g., distance to the nearest obstacle at configuration q. It can also encode other constraints like distance to a manipulation manifold.
Solving this PDE produces wavefronts of equal travel time. The robot can navigate from any point to any other by following the gradient of T (direction of steepest descent in travel time).
Numerical Solvers and Their Limitation
The Fast Marching Method (FFM) is a numerical solver for the eikonal PDE, but it does not scale beyond three dimensions (or four with very good hardware). To handle high-dimensional robot systems, a neural network can approximate the solution.
Neural Network Approach to Solving the Eikonal PDE
The neural network takes as input:
Robot start configuration qs
Robot goal configuration qg
Environment perception (e.g., distance fields)
The output is the travel time function T (a scalar value representing the minimal time to go from qs to qg in the given environment).
Training via Gradient Matching Loss
The training process does not require expert demonstrations of trajectories. Only randomly sampled start and goal configurations plus their distance to obstacles are needed — essentially the same type of data used by sampling-based planners.
Loss function: The eikonal PDE provides an analytical relationship between the gradient of T and the constraint function S:
The network predicts T, then backpropagation computes ∇qsT. The loss compares the norm of this gradient to 1/S(qs) — a gradient matching loss.
Key insight: The loss is placed on the gradients of the neural network, not directly on the output. The only data needed are random configurations and their distance to obstacles (or other constraints).
Usage of the output: Once trained, the robot follows the negative gradient of T to obtain a trajectory from start to goal. The value function can also be integrated into model predictive control (MPC) or MPPI.
Initial Scalability Problem
Initial attempts could not scale beyond four dimensions due to two issues:
Multiple solutions: The eikonal PDE has multiple solutions (e.g., multiple geodesic paths between start and goal). The neural network was unable to capture all equally valid solutions.
Uncontrolled gradients between consecutive configurations: The model was trained on randomly sampled start and goal points, but the gradient along the trajectory between them (i.e., between consecutive intermediate configurations) was not regulated. This led to errors accumulating as the robot moved step by step, potentially causing divergence.
Solutions to Scalability Issues
Viscosity Eikonal PDE
By adding a Laplacian term to the eikonal equation, a unique solution is enforced:
This viscosity eikonal PDE improved performance, scaling to six degrees of freedom (e.g., a robot arm navigating narrow passages). However, computing the Laplacian (second derivative of the neural network) is computationally expensive, increasing training cost — contradicting the goal of training efficiency.
An approximation using Dirichlet energy minimization was developed (cheaper but still requires many iterations for good performance).
Enforcing Geodesic Distance Properties
A more principled solution comes from recognizing that the solution T to the eikonal PDE is a geodesic distance function. It must satisfy the properties of a metric:
Symmetry: T(qs,qg)=T(qg,qs)
Triangle inequality: T(qs,qg)≤T(qs,qm)+T(qm,qg) for any intermediate point qm
Architectural modification: The neural network is designed to enforce these properties. Specifically, inputs qs and qg are mapped through a network to latent features. A max-pooling operation and infinite norm on the latent encoding produce a piecewise linear approximation of the geodesic distance. This allows the network to represent multiple geodesic paths (e.g., going left or right around an obstacle) as a diamond-shaped contour rather than squashing them into a single straight line.
Enforcing Bellman Principle of Optimality
The travel time function T is also a value function, so it must satisfy the Bellman optimality principle. In temporal difference (TD) learning terms:
where u is a small perturbation in the direction of the gradient of T (i.e., moving along the optimal path), and c is the cost (inverse of the constraint function S). This provides a TD loss that regulates the gradient between consecutive configurations, eliminating the uncontrolled gradient problem.
Combined training: The gradient matching loss + TD loss + geodesic metric architecture allows scaling to high-dimensional problems (up to 15 degrees of freedom demonstrated).
Results and Evaluation
Inference Efficiency
On a 7-DOF arm, the method produces plans in ~0.7 seconds with high success rate.
Compared to Empire (a large data-driven model trained on weeks of data and one week of training on multiple GPUs), the PDE-based model trained in less than an hour on a single GPU (3090) and generalizes across 300 different environments.
Also outperforms lazy PRM (graph query time only) in planning time.
Works in complex multi-floor indoor environments.
When combined with MPPI (Model Predictive Path Integral), computation time does not increase significantly while success rate remains high.
Scales to 12-DOF and 15-DOF robots in environments with thin obstacles and confined spaces.
Training Efficiency
For a 7-DOF environment: 50 minutes data gathering + 46 minutes training on one GPU.
For Gibson environments: 24 seconds data gathering + 9 minutes training.
In contrast, Empire required several weeks for data gathering and one week for training on eight Nvidia Tesla GPUs.
Ongoing improvements reduce training time to less than 5 minutes for 12-DOF problems.
Adaptability to Complexity
Manipulation
By changing the constraint function S from "distance to obstacle" to "distance to constraint manifold", the same framework handles manipulation tasks:
Opening a door while moving a cup without tilting
Reaching into confined spaces
Multi-modal manipulation (e.g., lifting cup upright, then tilting, then pouring, then steering a spoon, then hammering) is handled via decomposition into basis functions.
Decomposition approach: The problem is divided into subdomains (each represented by a basis function). A global value function is constructed from these bases, ensuring continuity and no local minima across partitions. If the environment changes, only the affected basis function needs retraining — very fast. This also reduces the number of parameters compared to an end-to-end network.
Results: A single neural model performs door opening, cup retrieval without tilting, and pouring tasks sequentially.
Unknown Environments
Motion planning is computationally expensive partly because mapping features (e.g., signed distance fields, occupancy maps) do not directly translate to a plan; they require a separate motion planner (e.g., sampling-based or optimization). By learning a travel time field map directly, no planner is needed — just follow the gradient.
As a robot explores an environment, depth perception comes in streams. The model is trained on the fly to build an arrival time field map. This map incorporates geometric representation that directly enables navigation.
Mapping time is about twice that of standard occupancy maps with earlier models, but recent versions reduce it to nearly the same time (~1 second per training step).
Even manipulation in C-space is possible using in-hand cameras to construct arrival time field maps in 6D C-space.
Multi-Agent Planning
The approach extends to multi-agent settings by solving similar PDEs (e.g., from the work of S.L. Benel). The focus is on scalability to complex robot manipulators with complex obstacle geometry. Example tasks:
Multiple robots reaching targets while reactively avoiding collisions.
Assembly line tasks where robots perform their tasks while avoiding each other.
Summary: Why Use Physics-Based PDE Priors
Inference efficiency: Plans are generated very quickly once the model is trained.
Training efficiency: Only random configurations and their constraint values (e.g., distance to obstacles) are needed. Training times are minutes, not weeks. No expert demonstrations are required.
Adaptability: The method scales to high-degree-of-freedom systems, handles complex constraints (manipulation manifolds), works in unknown environments via online learning, and extends to multi-agent settings.
Future Directions
Real-time training: Reduce training time from minutes to (nearly) zero so that the neural network becomes a plug-and-play model — robots can be deployed in new environments and train on the fly.
Reactive generalization: Leverage the speed of these methods to recover quickly from disturbances in the environment.
Multi-modal grasp and manipulation planning: Coupling grasping and manipulation decisions.
Assistive manipulation: Robots manipulating human bodies (e.g., assisted dressing, bed wiping) while respecting biomechanical constraints — a rich motion planning problem.
Definition: Eikonal PDE
∥∇T(q)∥=S(q)1Where T is travel time (value function) and S is a known constraint function (e.g., distance to obstacle). The solution provides the minimal-time path following the gradient of T.
Key Properties Enforced for Scalability
Geodesic distance: Symmetry, triangle inequality (architecturally enforced via max-pooling/infinite norm).
Bellman optimality: Temporal difference learning to regulate gradients between consecutive configurations, combined with gradient matching loss.
Comparison with Other Approaches
Optimization-based: High inference/training efficiency but low adaptability (local minima).
Classical (sampling/discretization): High training efficiency but low inference efficiency.
Data-driven (imitation/RL): High inference and adaptability, but very low training efficiency.
PDE-based (this work): High inference efficiency, high training efficiency, high adaptability — all three features.

Ask anything
We've read this whole study set, so questions about it get the best answers.