Learning Implicit Priors for Motion Optimization

Julen Urain, An T. Le, Alexander Lambert, Georgia Chalvatzaki, Byron Boots, Jan Peters · DOI

TL;DR

This paper introduces Energy-Based Models (EBMs) as expressive, multimodal priors to guide robot motion optimization. By learning these implicit distributions from demonstrations, the authors enable robots to navigate complex, cluttered environments and perform multi-stage tasks like pouring, significantly outperforming traditional handcrafted initializations and explicit behavioral cloning baselines.

What Problem Does This Paper Address?

Motion optimization is a cornerstone of modern robotics, allowing manipulators to generate smooth, collision-free trajectories by minimizing a cost function. However, these methods are inherently local: they iteratively improve an initial guess. If the cost function is complex or "sparse" (providing little information far from obstacles), the optimizer often gets trapped in local minima—suboptimal paths that might lead to collisions or fail the task entirely.

While classical methods use handcrafted initializations (like straight lines), these fail to capture the multimodality of real-world tasks (e.g., there might be two equally good ways to go around an obstacle). Previous attempts to learn these priors using explicit density models often struggle in high-dimensional spaces or "collapse" to a single average path, losing the very multimodality needed to solve complex manipulation problems.

Methods

The authors propose using Energy-Based Models (EBMs) as implicit priors. Unlike explicit models that must be normalized, EBMs represent a probability distribution through a flexible energy function $E_\theta(x)$. Low energy corresponds to high probability (feasible trajectories).

Key technical contributions include:

  • Denoising Score Matching: The authors found that standard EBM training creates "plateaus" and "cliffs" in the energy landscape, which are terrible for gradient-based optimization. They add a denoising regularizer to smooth the landscape, ensuring informative gradients even far from the demonstrated data.
  • Task-Specific Architectures: They introduce object-centric EBMs (learning distributions relative to an object's frame) and phase-conditioned EBMs (where the model is conditioned on a temporal "progress" variable $\alpha \in [0, 1]$). This allows the model to generalize to new object locations and handle long-horizon tasks.
  • StochGPMP: A new optimizer, Stochastic Gaussian Process Motion Planning, which combines the learned EBM priors with Gaussian Process (GP) smoothness priors. It uses importance sampling to iteratively update a trajectory distribution, allowing it to explore multiple modes of the EBM simultaneously.
Fig. 1: Implicit trajectory distributions are learned from demonstrations us- ing EBMs. These guide motion optimization to produce feasible trajectories for new problems. (a) An obstacle avoidance energy function, with generated optimal trajectories towards different goal locations. (b) A robot manipulator using learned EBMs to pour a cup within a cluttered scene.

Datasets

The framework was evaluated across three distinct setups:

  1. Simulated Planar Navigation: A 2D point-robot navigating around unknown obstacle geometries. Data consisted of either uniform free-space samples or expert trajectory distributions.
  2. Simulated Planar Manipulator: A 3-DOF arm performing a "grasp and insert" task. The dataset included 40,000 grasp points and 128 collision-free trajectories per environment.
  3. Robot Pouring: A complex 7-DOF task involving a Kuka LWR arm. The authors recorded 500 trajectory demonstrations using handcrafted policies to create a multimodal dataset of successful pours from various starting positions.
Fig. 3: Examples of positive sampling distributions for a single obstacle environment. (Left) Uniform point-based sampling with rejection. (Right) Expert trajectory distributions for randomly sampled goal locations along the top and right side, with start location in the bottom-left corner.

Key Insights and Ideas

  • Composability is a Superpower: Because EBMs are defined by energy functions, multiple priors can be combined simply by summing their energies. For a "grasp and insert" task, you can add the "grasp EBM" to the "insert EBM" to create a single structured objective.
  • Smoothing is Mandatory: Without denoising score matching, the EBM's gradient is often zero in large regions of the state space, meaning the optimizer won't know which way to move to improve the trajectory.
  • Phase vs. Trajectory Space: Learning a single EBM over an entire $T \times D$ dimensional trajectory is hard. Conditioning on a "phase" variable allows the model to learn the state-occupancy distribution at different stages of the task, which is much more sample-efficient and generalizable.

Key Results

  • Navigation Success: In planar navigation, the EBM-guided planner achieved an 87.7% success rate, compared to just 4% for a standard Behavioral Cloning (BC) baseline, which failed to avoid obstacles effectively.
  • Efficiency: In the grasp-and-insert task, the implicit prior reached a high success rate in just 50 optimization steps, whereas Gaussian and explicit baselines required significantly more iterations to reach lower performance levels.
  • Real-World Transfer: The pouring EBM, trained in simulation, was successfully transferred to a real 7-DOF Kuka robot without retraining (zero-shot transfer), demonstrating that centering EBMs in the object's frame provides excellent robustness to "sim-to-real" mismatch.

Limitations and Future Work

The current approach relies on knowing the poses of relevant objects, typically resolved through external motion tracking. While the EBMs generalize well to new spatial configurations, they are still conditioned on relatively low-dimensional state information. The authors suggest that future work should explore learning EBM priors directly from high-dimensional sensory inputs, such as raw images or natural language instructions, to further reduce the need for manual task engineering.

Summary updated

BibTeX
@inproceedings{urain2022learning,
  author = {Julen Urain and An T. Le and Alexander Lambert and Georgia Chalvatzaki and Byron Boots and Jan Peters},
  title = {{Learning Implicit Priors for Motion Optimization}},
  booktitle = {IEEE/RSJ International Conference on Intelligent Robots and Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=Ewh54UnvZGY},
}
Figure