DFLAT

Model-based Diffusion on Differentially Flat Spaces for Long-Horizon Trajectory Optimization

Ege Yuceel1, Taekyung Kim2, Keyvan Majd3, Hideki Okamoto3, Bardh Hoxha3, Sayan Mitra1, Georgios Fainekos3
1University of Illinois Urbana-Champaign    2University of Michigan    3Toyota Motor North America, Research & Development
DFLAT pipeline: coarse waypoint planning in flat space, iterative denoising of Hermite and waypoint parameters with cost evaluation in state space, and closed-loop execution of the nominal trajectory.
Fig. 1. Overview of DFLAT. DFLAT formulates long-horizon planning as a diffusion process over a compact trajectory representation in flat-output space. Starting from a coarse, sparse set of waypoints, each denoising step perturbs the waypoints and local segment parameters, maps the samples to dynamically feasible trajectories, and scores them under the planning cost; their cost-weighted average seeds the next step. The resulting low-cost trajectory is then executed by a tracking controller.

We present DFLAT, a training-free, model-based diffusion planner for generating long-horizon, dynamically feasible trajectories. Instead of diffusing over time-discretized controls, DFLAT denoises the waypoints and tangents of Hermite curves in flat-output space. Because every trajectory produced during denoising is dynamically consistent, feasibility holds by construction, avoiding the common pitfalls of post-hoc corrections, such as added computation and loss of feasibility. On challenging tractor–trailer benchmarks, DFLAT can solve complex planning tasks in sub-second time.

Motivation

We target parking and maneuvering tasks for nonholonomic articulated vehicles, such as tractor–trailers, in cluttered environments. The free space is non-convex, and reaching the goal may require the vehicle to change driving direction several times, which makes these problems both long-horizon and tightly constrained. Diffusion models have emerged as a powerful tool for motion planning, but in this setting they must deliver both scalability and feasibility, and existing diffusion planners typically sacrifice one for the other:

  1. Scalability: diffusion planners can denoise time-discretized control sequences, but they struggle to scale: the problem dimension grows with the horizon, so long maneuvers become slow to plan.
  2. Feasibility: diffusion planners can denoise the full trajectory at once, but this does not guarantee a dynamically consistent result, and violations must be corrected afterward through projection, which adds more computation.

Method

DFLAT exploits differential flatness. It represents a trajectory in the flat-output space as a chain of Hermite curve segments, described by only a few intermediate waypoints and the tangents at the ends of each segment. From these parameters, the inverse flatness maps recover the full state and inputs.

  1. 1

    Coarse initialization

    A cheap search-based prior provides a sparse set of coarse waypoints in flat-output space, without optimizing for trajectory quality.

  2. 2

    Diffusion in flat space

    Waypoints and local segment parameters are iteratively denoised; each candidate maps to a dynamically feasible trajectory and is weighted by its cost.

  3. 3

    Closed-loop execution

    The refined trajectory is passed to a downstream tracking controller to execute.

Top row: flat-space samples of the Hermite segments concentrating over denoising steps N to 1 as the cost decreases, with forward segments in red, reverse segments in blue, and waypoints in purple. Bottom row: the tractor-trailer tracking the final trajectory from step 1 to K.
Fig. 2. Denoising in flat space. Top: trajectory refinement during DFLAT denoising on a parking-lot scenario from the Long benchmark, shown at four stages from the coarse initialization (i = N) to the final solution (i = 1). Red segments denote forward maneuvers, blue segments denote reverse maneuvers, and purple markers show the waypoints. Refining the waypoints and Hermite parameters yields a smoother, lower-cost maneuver while remaining dynamically consistent. Bottom: the tractor–trailer tracking the final trajectory with a closed-loop controller, from step 1 to K.
T-map scenario before (red) and after (blue) denoising the waypoints and tangents, with a table of maximum steering angle, hitch angle, and steering rate.
Fig. 3. Refining a coarse initialization. Red: trajectory from the search-based prior. Blue: after flat-output space denoising. The table reports the maximum steering angle, hitch angle, and steering rate.

DFLAT starts from a coarse initialization. A lightweight search-based planner connects the start and goal through a few sparse waypoints; it runs quickly, but makes no attempt to optimize the trajectory itself. The subsequent denoising process is responsible for refining trajectory quality.

Fig. 3 shows such an initialization on the T-map. The initial trajectory connects the waypoints, but only through sharp turns that push the steering and hitch angles to extreme values, so the maneuver starts out in a failure state.

DFLAT resolves this by denoising the waypoints and the Hermite parameters jointly, refining both where the trajectory passes and how it passes through each waypoint. The refined trajectory follows a smoother path into the slot with much smaller steering and hitch angles, and remains dynamically consistent.

Preview Results

Here we show how DFLAT compares with two of the baselines from our evaluation, Model Predictive Path Integral (MPPI) control and Safe Model Predictive Diffusion (Safe MPD), on two representative tasks from our benchmark: the T-map for short-horizon planning, where the tractor–trailer parks inside a narrow slot, and the Parking Lot for long-horizon planning, where it reaches a goal slot on a different row by following a long route through the aisles between parked vehicles. In each video, the orange hatched slot marks the goal and the blue curve traces the executed trajectory; the left video shows the T-map and the right video the Parking Lot.

Model Predictive Path Integral (MPPI)

MPPI optimizes a time-discretized control sequence by sampling many perturbed control sequences, rolling them out through the dynamics, and averaging them with weights based on their costs. Although it produces accurate plans in some cases, its failures typically end in collision: in both tasks shown here it collides, and in the Parking Lot the trailer also jackknifes close to the goal.

Safe Model Predictive Diffusion (Safe MPD)

Safe MPD performs model-based diffusion with shielded rollouts that prevent constraint violations, but it diffuses over time-discretized controls. It can solve short-horizon tasks, yet on the long Parking Lot route it does not reach the goal, reflecting the scalability limit discussed above.

DFLAT (ours)

DFLAT plans the entire maneuver at once over a small set of Hermite segments in flat-output space. It reaches the goal in both tasks, including the long Parking Lot route, without collision or jackknifing.

Benchmark Results

We evaluate DFLAT on nine tractor–trailer environments, grouped into three tiers of increasing planning horizon: short, moderate, and long. Short tasks are compact parking maneuvers, moderate tasks require a reversal or a tight passage, and long tasks are extended routes through cluttered lots.

Fig. 4. Sample trajectories from DFLAT. Orange hatched slots mark the goal, and blue curves trace the trajectory executed by the tractor–trailer; each panel cycles through 20 trials. Rows correspond to the three tiers. Top (green): short (T-map, Courtyard, Island). Middle (orange): moderate (U-turn, Compound Gate, Pinch Point). Bottom (red): long (Mall, Parking, Zigzag). DFLAT produces a collision-free trajectory respecting the steering and jackknife limits in every case, at low latency.

DFLAT Playground

We provide the DFLAT Playground, an interactive demo that runs DFLAT entirely in the web browser, with nothing to install. Load any environment from our benchmark, or set your own start and goal poses and obstacles, and watch DFLAT plan the maneuver. The playground is available here.

Fig. 5. DFLAT Playground. Screen recording of the playground running in the web browser on a CPU (sped up). The start and goal poses and the obstacles are configurable, and every environment and trial from our benchmark can be loaded and played. The playground uses an implementation optimized for batched computation in the browser, so the computed trajectories may differ from those reported in the paper.