NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

DiffuSolve: Diffusion-based Solver for Non-convex Trajectory Optimization

Anjian Li, Zihan Ding, Adji Bousso Dieng, Ryne Beeson · DOI

Abstract

Optimal trajectory design is computationally expensive for nonlinear and high-dimensional dynamical systems. The challenge arises from the non-convex nature of the optimization problem with multiple local optima, which usually requires a global search. Traditional numerical solvers struggle to find diverse solutions efficiently without appropriate initial guesses. In this paper, we introduce DiffuSolve, a general diffusion model-based solver for non-convex trajectory optimization. An expressive diffusion model is trained on pre-collected locally optimal solutions and efficiently samples initial guesses, which then warm-starts numerical solvers to fine-tune the feasibility and optimality. We also present DiffuSolve+, a novel constrained diffusion model with an additional loss in training that further reduces the problem constraint violations of diffusion samples. Experimental evaluations on three tasks verify the improved robustness, diversity, and a 2× to 11× increase in computational efficiency with our proposed method, which generalizes well to trajectory optimization problems of varying challenges.

The Challenge of Non-convex Trajectory Optimization

Trajectory optimization—the process of calculating the best path for an autonomous agent while avoiding obstacles and obeying physics—is notoriously difficult when the underlying mathematical landscape is "non-convex." In these problems, there isn't just one "best" solution; instead, there are many "local optima" or traps where a solver might get stuck.

Traditional numerical solvers (like SNOPT) are excellent at refining a path once they are close to a solution, but they require a high-quality initial guess to start. If the guess is poor, the solver may take a long time to converge or fail to find a feasible path entirely. Engineers typically rely on "global search" methods like uniform sampling, which are slow and computationally expensive, especially for high-dimensional systems like quadrotors or spacecraft.

Methods: DiffuSolve and DiffuSolve+

The authors propose a two-stage framework called DiffuSolve that leverages the generative power of diffusion models to bridge the gap between global search and local refinement.

  1. The Generative Stage: A conditional diffusion model is trained on a dataset of pre-collected locally optimal solutions. Unlike standard models that predict a single path, the diffusion model learns the entire distribution of possible successful trajectories. At test time, it can quickly sample multiple diverse "guesses."
  2. The Refinement Stage: These guesses are fed into a standard Non-Linear Programming (NLP) solver. Because the guesses are already close to local optima, the solver converges much faster.
The DiffuSolve online testing pipeline: a diffusion model samples diverse initial guesses which are then refined by a numerical solver.

The authors also introduce DiffuSolve+, which incorporates a novel constraint violation loss ($L_{vio}$) during training. This forces the diffusion model to prioritize samples that already respect physical constraints (like obstacle avoidance), making the subsequent refinement step even easier for the numerical solver.

Evaluation Tasks

The framework was evaluated on three increasingly difficult non-convex tasks:

  • Two-Car Reach-Avoid: A multi-agent scenario where two cars must reach goals while avoiding each other and obstacles.
  • Quadrotor Navigation: A 10-dimensional problem involving a drone navigating a complex 3D environment.
  • Cislunar Transfer: A highly chaotic spacecraft trajectory problem involving the gravitational pull of both the Earth and the Moon (the Circular Restricted Three-Body Problem).
Visualizations of the three evaluation tasks: Two-Car Reach-Avoid, Quadrotor Navigation, and Cislunar Transfer.

The training data consisted of 114k to 179k locally optimal trajectories generated by running traditional solvers for thousands of hours on various environmental configurations.

Key Results and Insights

  • Massive Efficiency Gains: DiffuSolve achieved a 2x to 11x increase in computational efficiency compared to traditional uniform sampling. By using AI for intuition (global search) and numerical solvers for precision (local refinement), the system achieves the best of both worlds.
  • Robustness and Success Rates: In the Quadrotor task, DiffuSolve+ achieved a 100% success rate in finding feasible solutions, significantly outperforming baseline methods like CVAE-LSTMs or uniform sampling.
  • Solution Diversity: The system successfully discovered qualitatively different solutions for the same problem (e.g., a spacecraft taking different loops around the moon), providing autonomous systems with vital "Plan B" options.
  • Constraint Awareness: DiffuSolve+ generated trajectories with significantly fewer constraint violations than vanilla diffusion models even before the refinement step, proving that the model learns the "shape" of the feasible space.

Limitations and Future Work

While the total time (sampling + solving) is much faster than traditional methods, diffusion models are iterative and can be computationally intensive to sample. Future work may involve acceleration techniques like consistency models. Additionally, DiffuSolve+ currently requires differentiable constraints; extending this to "black-box" or non-differentiable constraints remains an open challenge for broader generalization across different robotic platforms.

Summary updated

BibTeX
@misc{li2024diffusolve,
  author = {Anjian Li and Zihan Ding and Adji Bousso Dieng and Ryne Beeson},
  title = {{DiffuSolve: Diffusion-based Solver for Non-convex Trajectory Optimization}},
  year = {2024},
  eprint = {2403.05571},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2403.05571},
}
Figure