Accelerating trajectory optimization with Sobolev-trained diffusion policies

Théotime Le Hellard, Franki Nguimatsia Tiofack, Quentin Le Lidec, Justin CarpentierarXiv 2026

TL;DR

This paper introduces a way to supercharge Trajectory Optimization (TO) by warm-starting solvers with diffusion-based policies trained using Sobolev learning. By leveraging "free" feedback gains from gradient-based solvers, the authors enable diffusion models to learn robust control strategies from 10x less data, resulting in a $2\times$ to $20\times$ speedup in solving complex robotics tasks.

What Problem Does This Paper Address?

Trajectory Optimization (TO) is a cornerstone of robotics, allowing robots to find the best path to a goal while respecting physics and constraints. However, TO solvers are "local"—they need a good starting guess to find a solution quickly (or at all).

While we can train neural networks to provide these "warm-start" guesses via imitation learning, two major hurdles remain:

  1. Data Hunger: Expressive models like Diffusion Policies usually require thousands of demonstrations to generalize.
  2. The "Perfect Data" Trap: TO solvers produce locally optimal, "perfect" trajectories. If a learned policy makes a tiny mistake during execution, it enters a state it never saw during training. Without knowing how to recover, these small errors compound, leading to a total failure (the "compounding error" problem).

Methods

The authors propose Sob+Diff, a framework that combines diffusion models with Sobolev learning (first-order derivative matching).

  • Feedback Gains as Free Lunch: Gradient-based TO solvers (like iLQR or DDP) don't just output a path; they also calculate "feedback gains"—mathematical descriptions of how the control input should change if the robot's state deviates slightly.
  • Sobolev Diffusion Loss: Standard diffusion models are trained to predict the trajectory itself (0th order). The authors derive a new loss function ($L^{Sob+Diff}$) that forces the model to also match the derivatives (1st order) provided by the feedback gains. This teaches the model not just where to go, but how to react to perturbations.
  • The Interplay Loop: They use an iterative algorithm similar to DAgger. The solver generates trajectories, the policy learns from them, and then the policy is used to warm-start the solver to collect even better, more diverse data.

Datasets

The methods were evaluated on three simulated robotics environments using the Pinocchio physics library and the Aligator solver:

  1. Inverted Pendulums: Single and double pendulum swing-up tasks (highly non-linear and chaotic).
  2. UR5 Robotic Arm: Goal-reaching tasks with varying levels of randomness in initial positions and targets.
  3. Quadrotor: Navigating from a random start to a random goal, including versions with up to 9 pillar-like obstacles.

Key Insights and Ideas

  • Gradients are Robustness: By learning the gradients (Sobolev learning), the diffusion policy becomes much more resilient to compounding errors. It learns the "shape" of the optimal cost landscape, not just a single path through it.
  • Counter-Intuitive Data: In imitation learning, "perfect" data is often worse than "noisy" data because it doesn't show recovery behavior. Sobolev learning fixes this by providing the "recovery logic" (the feedback gains) explicitly.
  • Efficiency through Information: Because the model learns more from each data point (by looking at derivatives), it reaches high performance with 5 to 10 times fewer trajectories than standard diffusion methods.
  • Fewer Denoising Steps: Incorporating first-order information allows the model to produce high-quality guesses with very few diffusion steps ($K=5$), significantly reducing the time it takes for the network to generate a guess (inference latency).

Key Results

  • Massive Speedups: Warm-starting with Sob+Diff reduced the TO solving time by $2\times$ to $20\times$ across different tasks.
  • Extreme Sample Efficiency: On the inverted pendulum task, Sob+Diff succeeded with as few as 3 training trajectories, while standard diffusion models failed even with many more.
  • Solving the "Unsolvable": In the double inverted pendulum task, the baseline TO solver failed to converge 80% of the time without a warm-start. Sob+Diff provided guesses that allowed the solver to converge in just 35 iterations on average.
  • Obstacle Avoidance: In a quadrotor task with 9 obstacles, Sob+Diff reduced the total solving time by 53% compared to a solver without a warm-start.

Limitations and Future Work

  • Constraint Handling: The current Sobolev loss doesn't explicitly account for inequality constraints (like "don't hit the wall"). While the TO solver handles these during the refinement phase, incorporating constraints directly into the policy learning is a noted area for improvement.
  • Contact-Rich Tasks: The experiments focused on smooth dynamics (arms, drones). Future work aims to apply this to "contact-rich" scenarios, like walking robots or complex manipulation, where derivatives are harder to calculate.
  • Offline RL Integration: The authors suggest that combining this approach with offline Reinforcement Learning could further improve the policy's ability to filter out low-quality local minima from the training data.

Summary updated

BibTeX
@misc{hellard2026accelerating,
  author = {Théotime Le Hellard and Franki Nguimatsia Tiofack and Quentin Le Lidec and Justin Carpentier},
  title = {{Accelerating trajectory optimization with Sobolev-trained diffusion policies}},
  year = {2026},
  eprint = {2604.19011},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2604.19011},
}

Loading related content...

Figure