TL;DR
This paper introduces Differentiable GPMP2 (dGPMP2), a motion planning framework that reformulates a classic trajectory optimization algorithm into a fully differentiable computational graph. By pairing the planner with a deep neural network, dGPMP2 automatically learns to adapt its internal objective function parameters based on the specific environment context. This end-to-end learning approach eliminates tedious manual hyperparameter tuning and enables robust planning across highly diverse obstacle distributions.
What Problem Does This Paper Address?
Trajectory optimization algorithms, such as Gaussian Process Motion Planning (GPMP2), are highly effective at finding smooth, collision-free paths for robots in real-time. However, their success heavily relies on hyperparameters—specifically the covariance matrices that balance the trade-off between trajectory smoothness (the GP prior) and obstacle avoidance (the likelihood function).
In practice, these parameters are hand-tuned through trial and error. A parameter set that works perfectly in a sparse environment with large obstacles might completely fail in a dense environment with narrow corridors. This sensitivity makes traditional planners brittle when facing changing environment distributions. The authors address this gap by asking: Can we leverage past experience to automatically learn and adapt a planner's parameters based on the environment it encounters?
Methods
The core innovation is rebuilding the GPMP2 algorithm as a fully differentiable computational graph, splitting the architecture into two main modules:
- The Planning Module ($P$): This module executes the standard Gauss-Newton optimization steps (linearizing the factor graph and solving the linear system $A\delta\theta = b$). Because every operation in this optimization loop is differentiable, gradients can be backpropagated through the planning iterations.
- The Trainable Module ($W$): Implemented as a convolutional neural network (CNN), this module takes the environment's bitmap image, a signed distance field (SDF), and the current trajectory estimate as inputs. It outputs time- and space-varying planning parameters ($\phi_L$), specifically predicting distinct obstacle covariances ($\sigma_{obs}$) for different states along the trajectory and across different optimization iterations.
The system is trained end-to-end using Backpropagation Through Time (BPTT). The loss function combines an imitation loss (minimizing the $L_2$ distance to an expert trajectory generated by a combination of RRT and GPMP2) and a task loss* regularizer that explicitly penalizes collisions and non-smooth trajectories.
Datasets
The authors evaluated their approach on simulated 2D navigation tasks across three distinct obstacle distributions:
- Forest Dataset: Composed of many small obstacles scattered around the workspace, forcing the robot to navigate through narrow corridors.
- Tarpit Dataset: Composed of a small number of large obstacles clumped together near the center, requiring the robot to circumvent the cluster entirely.
- Mixed Dataset: A hybrid dataset containing a 50/50 mixture of both forest and tarpit environments. A total of 5,000 environments were used for training.
Key Insights and Ideas
- Structured Planners over Black Boxes: Instead of replacing the entire planner with a black-box neural network (which struggles with safety guarantees and interpretability), the authors embed the optimization physics inside the network architecture. This retains explicit planning constraints (like collision avoidance and velocity limits) while utilizing deep learning solely for hyperparameter adaptation.
- Context-Aware Expressiveness: Traditional GPMP2 uses a single, static hand-tuned covariance matrix. dGPMP2 learns to output varying covariances for different states along the path and across different optimization steps. This allows the planner to be highly sensitive near obstacles but more flexible in open spaces.
- Homotopy Awareness: By training on a mixed dataset, the network learns to recognize the structural layout of the environment and dynamically adjust parameters to push the trajectory into the correct homotopy class (e.g., deciding whether to squeeze through obstacles or go completely around them).
Key Results
- Robustness Across Distributions: When evaluated on the mixed dataset, standard GPMP2 with fixed hand-tuned parameters performed well on one distribution but poorly on the other (e.g., tuning for the forest yielded a 71.02% success rate on forest but dropped to 55.56% on tarpit). In contrast, dGPMP2 achieved uniform and consistent performance across both (66.67% on forest, 68.00% on tarpit).
- Efficiency and Smoothness: dGPMP2 converged in fewer iterations (an average of 50.00 iterations compared to up to 86.74 for standard GPMP2) and achieved a lower mean-squared GP error (
gp_mse), indicating smoother trajectories. - Constraint Satisfaction: The framework successfully incorporated tight velocity constraints during training. When trained with tight constraints, dGPMP2 learned to plan paths that strictly respected user-defined physical limits while successfully avoiding obstacles.
Limitations and Future Work
- Vanishing/Exploding Gradients: Due to the well-known limitations of BPTT over long sequences, the authors restricted training to a small number of optimization iterations ($T = 10$). This prevents the learner from fully exploring the trajectory space during training.
- Lack of Memory: The feed-forward CNN architecture lacks memory, meaning the planner can still get trapped in complex local minima. The authors suggest integrating recurrent structures like LSTMs or utilizing policy gradient methods to mitigate this.
- Dimensionality: The current evaluation is limited to 2D point robots. Extending the differentiable framework to handle high-dimensional articulated robots in 3D workspaces remains an open direction for future research.
Summary updated