MEKAWIRE
ExpertarXiv

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

Ege Yuceel, Taekyung Kim, Keyvan Majd, Hideki Okamoto, Bardh Hoxha, Sayan Mitra, Georgios Fainekos
From the abstract

Long-horizon diffusion-based planning for kinodynamically constrained systems requires both scalability and feasibility, yet existing diffusion planners typically sacrifice one for the other. We present DFLAT, a diffusion-based planning algorithm that operates directly on a differentially flat trajectory representation.

From the abstract. Our summary is in progress.

Full paper

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

Ege Yuceel, Taekyung Kim, Keyvan Majd, Hideki Okamoto, Bardh Hoxha, Sayan Mitra, Georgios Fainekos

Published under CC BY 4.0. Reproduced with attribution; original at arXiv:2611.33586 (PDF).

Abstract

Long-horizon diffusion-based planning for kinodynamically constrained systems requires both scalability and feasibility, yet existing diffusion planners typically sacrifice one for the other. We present DFLAT, a diffusion-based planning algorithm that operates directly on a differentially flat trajectory representation. Instead of diffusing over time-discretized controls, DFLAT denoises a compact set of Hermite curve parameters in the flat-output space, consisting of intermediate waypoints together with the endpoint tangents of each segment. Every denoised sample maps to a dynamically consistent trajectory, so feasibility holds by construction rather than being restored afterward. Experiments on challenging tractor–trailer planning benchmarks show that DFLAT matches or exceeds the success rates of existing baselines at consistently lower planning times, particularly on long-horizon problems requiring multiple forward–reverse maneuvers. In cases where kinodynamic RRT requires over 100 seconds, DFLAT plans in subsecond time, enabling practical deployment. [Project Page]1

I Introduction

Planning motions that are both collision-free and dynamically feasible is a long-standing challenge in robotics, particularly for nonholonomic systems operating over long horizons [1]. Recent advances in generative modeling, including diffusion models and flow matching, have introduced powerful new approaches to robot policy learning and motion planning [2]. Diffusion-based planners, in particular, have demonstrated strong performance across a broad range of robotic planning tasks [3, 4].

These results are harder to sustain once the dynamics are constrained and the horizon is long. Every candidate trajectory must remain dynamically consistent, yet the sample budget must not grow with the horizon, and existing representations trade one against the other. One route to feasibility is to diffuse over the control sequence rather than the state trajectory: samples are drawn from a distribution favoring low-cost controls and rolled forward through the known dynamics, so the resulting trajectories are dynamically feasible by construction [5, 6]. This representation scales poorly with the horizon: low-cost controls occupy a shrinking fraction of the sample space, so the sample budget must grow accordingly. An alternative is to diffuse over the trajectory directly [7, 4, 8], which avoids this conditioning problem, as obstacle and goal constraints act on the sampled variables themselves rather than through a long composition of dynamics steps. The resulting trajectory is no longer the rollout of any admissible control and is therefore not necessarily dynamically feasible, requiring projection or post-hoc refinement to recover a trackable solution [9, 10, 11, 12]. To the best of our knowledge, no existing diffusion-based planner is both feasible by construction and efficient as the horizon grows for such systems.

We resolve this tension through the choice of trajectory representation. A particular class of systems, called differentially flat, admits a set of outputs from which the states and inputs can be recovered [13]. In the flat-output space, a sufficiently smooth curve is therefore already a valid state and input trajectory, so feasibility follows from the representation rather than being restored after the fact. Our method diffuses over a compact parametrization of such a curve: a sequence of waypoints together with the in-segment parameters that join them into a smooth path. Because these parameters describe segments rather than time steps, the design space scales with the number of segments and the structure of the maneuver, not with the resolution of the discretization, and stays small as the horizon grows. Our method thus retains the dynamic consistency of control-sequence diffusion without the large sample budget it requires.

Fig. 1: Overview of DFLAT. Given a long-horizon planning task requiring multiple forward and reverse motions (bottom), Coarse Waypoint Planning (CWP) produces a coarse waypoint prior in flat-output space. At each reverse diffusion step i=N,\ldots,1, candidates are drawn by perturbing the waypoint poses and the segment-local Hermite parameters, lifted through the inverse flatness map into dynamically consistent trajectories, and scored under the planning cost. The score-weighted mean seeds the next step, refining the coarse prior into a low-cost trajectory for the downstream tracking controller.

I-A Related Work

Model-based diffusion (MBD) uses the dynamics model to compute a training-free score function for trajectory optimization [5], and Safe Model Predictive Diffusion (Safe MPD) combines this with shielded rollouts to guarantee safety throughout sampling process [14]. Barrier-rate guided MPPI embeds barrier constraints into the sampling distribution for tractor–trailer maneuvers in narrow spaces [15]. These methods achieve kinodynamic feasibility by construction, but they operate on representations whose dimension grows with the planning horizon, causing sample efficiency to degrade on long-horizon problems. Recent work has also explored more compact parameterizations for diffusion planning. Guided Polynomial Diffusion (GPD) performs diffusion directly over Bernstein polynomial trajectory coefficients [8], and sparse control points with spline interpolation have been used to obtain smooth control trajectories from few samples in MPPI [16]. Hierarchical diffusion methods instead plan over temporally abstracted sub-goals [7, 4], and coupled hierarchical diffusion tightens the interaction between the two levels for long-horizon tasks [17]. Although these approaches improve horizon scalability, the sampled coefficients and sub-goals need not correspond to admissible motions. Feasibility is instead recovered afterward, for instance by filtering out samples that violate the constraints [18], or by projecting the sampled variables onto the constraint set [9, 11]. A representative instance related to our work diffuses over control points rather than over the trajectory itself, and recovers dynamic feasibility with a quadratic program [12], which is convex only when the relevant bounds are affine in the sampled variables and does not extend to nonholonomic models.

A different way to obtain feasibility is through the choice of coordinates. Differential flatness provides a change of variables under which trajectories in the flat-output space map back to recoverable state-input trajectories [13]. Beyond recoverability, flatness provides a compact trajectory representation that has been widely exploited for motion planning and trajectory generation [19]. Existing planners operating directly in the flat-output space are largely sampling-based. Flat-RRT* [20] precomputes motion primitives to expand the search tree in the flat-output space, but planning performance depends strongly on the primitive library, with finer discretizations increasing both memory requirements and computation time. The same dependence appears in DE-AGT [21], which pairs a precomputed primitive library with a learned cost-to-go heuristic for tractor–trailer parking. More recently, [22] connects sampled states with closed-form segments, at the cost of restricting the objective to costs quadratic in the control. All of these operate by search. We instead pose planning in the flat-output space as diffusion based trajectory optimization, which places no restriction on the cost and requires no primitive library.

In this paper, we propose DFLAT, a diffusion-based trajectory optimization algorithm for long-horizon kinodynamic planning. The main contributions of this work are:

  • We formulate model-based diffusion directly in the differentially flat output space, shifting the optimization problem from time-discretized control sequences to a low-dimensional trajectory parameterization.
  • We introduce a segmented Hermite representation that guarantees every denoised sample corresponds to a dynamically consistent trajectory.
  • We validate DFLAT on long-horizon tractor–trailer planning, where it solves every benchmark instance orders of magnitude faster than baselines, reaching subsecond latency on short parking scenarios.
  • We release a benchmark library of long-horizon tractor–trailer planning problems together with our implementation.

II Preliminaries

II-A Problem Formulation

Let \mathcal{M}\subset\mathbb{R}^{d} denote a known map of the environment. Consider a continuous-time system

\dot{\bm{x}}(t)=f(\bm{x}(t),\bm{u}(t)),\qquad t\in[0,T],
(1)

with state \bm{x}(t)\in\mathcal{X}\subset\mathbb{R}^{n}, control \bm{u}(t)\in\mathcal{U}\subset\mathbb{R}^{m}, and variable final time T. Let \tau_{\bm{x}}:=\bm{x}(\cdot),\ \tau_{\bm{u}}:=\bm{u}(\cdot) denote the state and control trajectories over [0,T], and let Y:=(\tau_{x},\tau_{u}) denote the full trajectory. We consider the following trajectory optimization problem: given a start state \bm{x}_{\text{init}} and goal state \bm{x}_{\text{goal}},

\displaystyle Y^{*}:=\operatorname*{arg\,min}_{\tau_{\bm{x}},\tau_{\bm{u}}}\quad \\ \displaystyle J(Y) \\ \displaystyle\dot{\bm{x}}(t)=f(\bm{x}(t),\bm{u}(t)),\quad t\in[0,T], \\ \displaystyle\bm{x}(0)=\bm{x}_{\text{init}},\quad\bm{x}(T)=\bm{x}_{\text{goal}}, \\ \displaystyle g(\bm{x}(t))\geq 0,\quad t\in[0,T], \\ \displaystyle\bm{u}(t)\in\mathcal{U},\quad t\in[0,T],
(2a) (2b) (2c) (2d) (2e)

where J is the cost relevant to task, and g:\mathcal{X}\to\mathbb{R} represents the constraint function induced by the map \mathcal{M} together with any additional dynamical constraints.

II-B Model-based Diffusion

Model-based diffusion [5] formulates trajectory optimization as sampling from a distribution that assigns higher probability to lower-cost trajectories. Given the trajectory cost J(Y), define

p_{0}(Y)\propto\exp\left(-\frac{J(Y)}{\lambda}\right),\qquad\lambda>0,
(3)

where \lambda is a temperature parameter, so that smaller values of \lambda concentrate the distribution around lower-cost trajectories. Diffusion models sample from this distribution by starting from noise and iteratively denoising [3]. Let \{\beta_{i}\}_{i=1}^{M}\subset(0,1) be an increasing noise schedule, with \alpha_{i}:=1-\beta_{i} and \overline{\alpha}_{i}:=\prod_{k=1}^{i}\alpha_{k}, so that \overline{\alpha}_{i} decreases from near one to near zero. The forward noising process satisfies

Y^{(i)}=\sqrt{\overline{\alpha}_{i}}Y^{(0)}+\sqrt{1-\overline{\alpha}_{i}}\epsilon,\qquad\epsilon\sim\mathcal{N}(0,I).
(4)

The reverse process initializes Y^{(M)}\sim\mathcal{N}(0,I) and updates the trajectory by

Y^{(i-1)}=\frac{1}{\sqrt{\alpha_{i}}}\left(Y^{(i)}+(1-\overline{\alpha}_{i})\nabla_{Y^{(i)}}\log p_{i}(Y^{(i)})\right).
(5)

Unlike learned diffusion models, model-based diffusion updates the trajectory by Monte Carlo score ascent on \nabla_{Y^{(i)}}\log p_{i}(Y^{(i)}), using sampled trajectories and the known objective. At step i, draw K candidate trajectories

Y_{k}^{(i)}\sim\mathcal{N}\left(\frac{Y^{(i)}}{\sqrt{\overline{\alpha}_{i}}},\left(\frac{1}{\overline{\alpha}_{i}}-1\right)I\right),\qquad k=1,\ldots,K.
(6)

The schedule therefore sets the sampling radius, which shrinks as i decreases. These samples are combined through the cost-weighted average

\overline{Y}^{(i)}=\frac{\sum_{k=1}^{K}Y_{k}^{(i)}\exp\left(-J(Y_{k}^{(i)})/\lambda\right)}{\sum_{k=1}^{K}\exp\left(-J(Y_{k}^{(i)})/\lambda\right)}.
(7)

Then, the score function at step i is approximated as

\nabla_{Y^{(i)}}\log p_{i}(Y^{(i)})\approx-\frac{Y^{(i)}}{1-\overline{\alpha}_{i}}+\frac{\sqrt{\overline{\alpha}_{i}}}{1-\overline{\alpha}_{i}}\overline{Y}^{(i)}.
(8)

This yields a training-free score estimate that requires only evaluating the cost on sampled candidates.

II-C Differential Flatness

Trajectory generation for a nonholonomic system normally means choosing a control sequence and rolling the dynamics forward to obtain the resulting states. For a particular class of systems, known as differentially flat, this is unnecessary. The state and input can be recovered algebraically from a set of flat-outputs and finitely many of their derivatives [13], without integrating the dynamics.

Definition 1 (Differential Flatness).

The control system (1) is differentially flat if there exists an output \bm{z}\in\mathbb{R}^{m}, called the flat-output, such that the state and input can be expressed algebraically in terms of \bm{z} and a finite number of its derivatives:

\bm{x}=\Phi\bigl(\bm{z},\dot{\bm{z}},\ldots,\bm{z}^{(r)}\bigr),\qquad\bm{u}=\Psi\bigl(\bm{z},\dot{\bm{z}},\ldots,\bm{z}^{(r+1)}\bigr).
(9)

where we refer to \Phi and \Psi as the state and input recovery maps, respectively.

Thus a sufficiently smooth choice of \bm{z}(t) determines a recoverable state-input trajectory (\bm{x}(t),\bm{u}(t)). This recasts trajectory generation as an unconstrained problem in the flat-output space, with dynamic consistency enforced structurally rather than as an explicit constraint.

Remark 1.

For the car with n trailers, the flat-output is the planar position of the last trailer’s axle midpoint, a vector with m=2 components, and the flat-output derivatives associated with a waypoint pose follow in closed form from the Frenet-frame relations [19].

II-D Hermite Path Generation

After choosing the flat-output \bm{z}, trajectory generation reduces to constructing a sufficiently smooth curve in the flat-output space. We represent this curve as a sequence of Hermite polynomial segments connecting flat-output waypoints [23], where each segment prescribes derivatives through order q at its two endpoints. Adjacent segments agree through order r, the highest order entering the state recovery map \Phi, with q>r.

At each waypoint w we store the flat-output together with its derivatives up to order r,

\mathcal{Z}_{w}=\bigl(\bm{z}_{w},\bm{z}_{w}^{(1)},\ldots,\bm{z}_{w}^{(r)}\bigr),
(10)

and share this tuple between the two segments meeting at w. Since the state recovery map \Phi depends only on derivatives through order r, this keeps the recovered state trajectory consistent across segments.

Derivatives of order r+1,\ldots,q are set independently by each segment and need not agree at the junction. These higher-order values do not enter \Phi and therefore act as free design variables that shape the segment without affecting the continuity of the recovered state at junctions.

Each segment is parameterized by a normalized time \sigma\in[0,1], with \sigma=0 at its start waypoint and \sigma=1 at its end waypoint, independent of the segment’s duration in real time. This lets every segment use the same fixed set of basis polynomials. For a segment connecting two adjacent waypoints \bm{z}_{w} and \bm{z}_{w+1}, the Hermite curve is

\bm{z}(\sigma)=\sum_{p=0}^{q}\Bigl[h_{p}(\sigma)\,\bm{z}_{w}^{(p)}+g_{p}(\sigma)\,\bm{z}_{w+1}^{(p)}\Bigr],
(11)

where h_{p},g_{p} are the degree-(2q+1) Hermite basis polynomials associated with the p-th derivative at the left and right endpoint, and the derivatives \bm{z}_{w}^{(p)} are taken with respect to \sigma. By construction,

\bm{z}^{(p)}(0)=\bm{z}_{w}^{(p)},\qquad\bm{z}^{(p)}(1)=\bm{z}_{w+1}^{(p)},\qquad p=0,\ldots,q,
(12)

so adjacent segments share the tuple \mathcal{Z}_{w} at every junction.

Remark 2.

With m flat-output components, W waypoints, and S=W-1 segments, the design vector holds m(r+1) values per waypoint and 2m(q-r) per segment, for a total dimension of mW(r+1)+2mS(q-r). This dimension depends on W and q alone and stays compact as the horizon grows.

Fig. 2: Trajectory refinement during DFLAT denoising on a parking-lot scenario from the Long benchmark, shown at three stages from the coarse initialization (i=N) to the final solution (i=1). Red segments are forward maneuvers, blue reverse, and purple markers the waypoints. Refining the waypoints and Hermite parameters yields a smoother, lower-cost maneuver while remaining dynamically consistent.

III Diffusion on the Differentially Flat Space

To exploit this compact representation, we formulate planning as a single model-based diffusion process in the flat-output space, rather than diffusing directly over Y=(\tau_{x},\tau_{u}). We target parking and maneuvering tasks for nonholonomic articulated vehicles in cluttered environments, where reaching the goal through non-convex free space may require several changes of driving direction. A single smooth curve cannot express such a maneuver, so we represent the flat-output by Hermite segments joined at sparsely placed waypoints. The following proposition establishes that the concatenated trajectory remains a solution of the dynamics, provided adjacent flat-output space segments agree through order r.

Proposition 1.

Let \bm{z} concatenate finitely many Hermite segments agreeing through order r at every junction. Assume strictly increasing local timing maps that are C^{r+1} on each closed segment interval, with matching derivatives of orders 1,\ldots,r at junctions. If the timed segments remain in the domain of the smooth flatness maps (\Phi,\Psi) and \bm{u}(t)\in\mathcal{U}, then the recovered state \bm{x} is absolutely continuous and satisfies

\dot{\bm{x}}(t)=f\bigl(\bm{x}(t),\bm{u}(t)\bigr)\quad\text{for almost every }t\in[0,T].
(13)
Proof.

Let \bar{\bm{z}}_{s} denote the timed segment on [t_{s-1},t_{s}], where 0=t_{0}<\cdots<t_{S}=T. Each \bar{\bm{z}}_{s} is C^{r+1}. By the chain rule, matching normalized segment derivatives and timing derivatives through order r gives matching physical-time derivatives, so the concatenated output \bar{\bm{z}} is globally C^{r}. On each open interval (t_{s-1},t_{s}), the recovered pair \bm{x}=\Phi(\bar{\bm{z}}_{s},\ldots,\bar{\bm{z}}_{s}^{(r)}) and \bm{u}=\Psi(\bar{\bm{z}}_{s},\ldots,\bar{\bm{z}}_{s}^{(r+1)}) is well defined and satisfies (13) by differential flatness. At every interior junction,

\displaystyle\bm{x}(t_{s}^{-}) \\ \displaystyle=\Phi\!\left(\bar{\bm{z}}_{s}(t_{s}),\ldots,\bar{\bm{z}}_{s}^{(r)}(t_{s})\right) \\ \displaystyle=\Phi\!\left(\bar{\bm{z}}_{s+1}(t_{s}),\ldots,\bar{\bm{z}}_{s+1}^{(r)}(t_{s})\right)=\bm{x}(t_{s}^{+}).
(14)

Thus \bm{x} is continuous and, by smoothness of \Phi, C^{1} on each closed segment interval, hence absolutely continuous. Derivatives of order r+1 may differ at junctions, allowing jumps in \bm{u}, while (13) holds almost everywhere. ∎

The proposition constrains only the derivatives shared at waypoints. Endpoint derivatives of order above r remain free, and we treat them as segment-local degrees of freedom that reshape each segment without disrupting the endpoint continuity between adjacent segments. Each candidate pose \bm{x}_{w} fixes the shared derivatives \bm{z}_{w}^{(0)},\ldots,\bm{z}_{w}^{(r)} through \Phi\bigl(\bm{z}_{w}^{(0)},\ldots,\bm{z}_{w}^{(r)}\bigr)=\bm{x}_{w}, while the remaining endpoint derivatives are denoted \bm{z}_{s,\ell}^{(p)}, with s the segment index, \ell\in\{0,1\} the endpoint side, and p=r+1,\ldots,q. The W interior waypoints induce W+1 segments, and the diffusion variable is

\bm{\eta}:=\left(\begin{aligned} &\bm{x}_{w},&&\!w=1,\ldots,W,\\[-1.0pt]
&\bm{z}_{s,\ell}^{(p)},&&\!s=0,\ldots,W,\;\ell\in\{0,1\},\;p=r+1,\ldots,q\end{aligned}\right).
(15)

The start and goal states remain fixed throughout denoising. Each sample of \bm{\eta} defines a piecewise Hermite curve \bm{z}(\cdot), which is lifted through (\Phi,\Psi) to obtain the state-input trajectory used to evaluate J. Waypoint poses use smaller update magnitudes than the higher-order Hermite derivatives, so the waypoint sequence settles early while the segments between them stay free to refine. The process is initialized from a coarse search-based prior in flat-output space, produced by Coarse Waypoint Planning (CWP) in Algorithm 1, a cheaper variant of Flat-RRT* [20] that uses no precomputed motion primitives and does not optimize solution quality.

CWP constructs this coarse initialization by growing a tree of poses in flat-output space, where Sample draws state samples from a neighborhood of an existing node and lifts it to the corresponding flat-output representation, FlatConnect generates a single Hermite connection between two poses by fixing the flatness-relevant endpoint derivatives and heuristically initializing the remaining free derivatives, and Feasible verifies the corresponding lifted trajectory against the map \mathcal{M}. A connection is accepted if the lifted trajectory is collision-free and stays within a loosened bound on the articulation limits; the tighter state and input constraints are softly enforced during diffusion. The resulting pose sequence and associated Hermite parameters define the initial design \bm{\eta}^{(M)}.

Algorithm 1 \mathrm{CWP}: Coarse Waypoint Planning

Algorithm 2 refines this initialization through model-based diffusion directly on \bm{\eta}. At each reverse step, K candidate designs are sampled around the current estimate, lifted through the Hermite construction and the flatness maps, and scored by the trajectory cost. The cost-weighted average then determines the next denoising update, following the model-based diffusion procedure of Section II-B but applied to \bm{\eta} rather than Y.

Algorithm 2 DFLAT

IV Experiments

IV-A Dynamical Systems

We evaluate DFLAT on a tractor-trailer (TT) system, whose kinematic model has state \bm{x}=[p^{x},p^{y},\theta^{1},\theta^{2}]^{\top}, where (p^{x},p^{y}) is the tractor position and \theta^{1},\theta^{2} are the tractor and trailer heading angles, and control input \bm{u}=[v,\delta]^{\top} (longitudinal velocity and steering angle):

\displaystyle\dot{p}^{x} \\ \displaystyle=v\cos\theta^{1}, \\ \displaystyle\dot{\theta}^{1} \\ \displaystyle=\frac{v}{\ell_{1}}\tan\delta, \\ \displaystyle\dot{p}^{y} \\ \displaystyle=v\sin\theta^{1}, \\ \displaystyle\dot{\theta}^{2} \\ \displaystyle=\frac{v}{\ell_{2}}\sin(\theta^{1}-\theta^{2}),
(16) (17)
Fig. 3: Acceleration-controlled tractor–trailer model (Accel-TT) used in the experiments, with acceleration a and steering rate \omega as control inputs.

where \ell_{1},\ell_{2} are the tractor wheelbase and trailer length. We assume an on-axle hitch throughout, following [19]; off-axle configurations are outside the scope of this paper. We additionally evaluate an acceleration-controlled variant (Accel-TT), which augments the state with velocity and steering angle, \bm{x}_{\text{acc}}=[p^{x},p^{y},\theta^{1},\theta^{2},v,\delta]^{\top}, and takes \bm{u}_{\text{acc}}=[a,\omega]^{\top} as input, adding \dot{v}=a,\quad\dot{\delta}=\omega.

TABLE I: Performance comparison across difficulty levels and dynamics models. For each level, cases were aggregated across the constituent maps. Time is computed over solved runs only.
  • Short
    Model
    TT
    Metric
    (A) Success (%)
    Kinodynamic RRT [1]
    100.0%
    Safe MPD [14]
    98.3%
    MPPI [6]
    86.7%
    DFLAT (Ours)
    100.0%
  • (B) Time [s] \pm std
    Model
    135.8\pm134.0
    Metric
    4.7\pm2.0
    Kinodynamic RRT [1]
    26.0\pm0.2
    Safe MPD [14]
    1.1\pm0.6
  • Accel-TT
    Model
    (A) Success (%)
    Metric
    100.0%
    Kinodynamic RRT [1]
    68.3%
    Safe MPD [14]
    83.3%
    MPPI [6]
    100.0%
  • (B) Time [s] \pm std
    Model
    119.3\pm204.7
    Metric
    7.6\pm3.1
    Kinodynamic RRT [1]
    26.2\pm0.2
    Safe MPD [14]
    1.2\pm0.7
  • Moderate
    Model
    TT
    Metric
    (A) Success (%)
    Kinodynamic RRT [1]
    100.0%
    Safe MPD [14]
    33.3%
    MPPI [6]
    66.7%
    DFLAT (Ours)
    100.0%
  • (B) Time [s] \pm std
    Model
    210.5\pm394.0
    Metric
    6.2\pm0.4
    Kinodynamic RRT [1]
    25.9\pm0.1
    Safe MPD [14]
    1.5\pm0.7
  • Accel-TT
    Model
    (A) Success (%)
    Metric
    100.0%
    Kinodynamic RRT [1]
    33.3%
    Safe MPD [14]
    90.0%
    MPPI [6]
    100.0%
  • (B) Time [s] \pm std
    Model
    890.4\pm1757.1
    Metric
    9.9\pm0.4
    Kinodynamic RRT [1]
    26.1\pm0.1
    Safe MPD [14]
    1.6\pm0.7
  • Long
    Model
    TT
    Metric
    (A) Success (%)
    Kinodynamic RRT [1]
    100.0%
    Safe MPD [14]
    5.0%
    MPPI [6]
    6.7%
    DFLAT (Ours)
    100.0%
  • (B) Time [s] \pm std
    Model
    182.4\pm217.7
    Metric
    43.2\pm1.0
    Kinodynamic RRT [1]
    59.3\pm0.1
    Safe MPD [14]
    3.1\pm2.1
  • Accel-TT
    Model
    (A) Success (%)
    Metric
    100.0%
    Kinodynamic RRT [1]
    3.3%
    Safe MPD [14]
    8.3%
    MPPI [6]
    100.0%
  • (B) Time [s] \pm std
    Model
    384.4\pm933.5
    Metric
    114.1\pm0.9
    Kinodynamic RRT [1]
    46.2\pm16.4
    Safe MPD [14]
    3.3\pm2.1

IV-B Reference Lifting and Tracking

Each sampled design induces a piecewise flat-output curve that recovers, through the flatness maps, a geometric path through the pose space (p^{x},p^{y},\theta^{1},\theta^{2}). This path specifies the route geometry but not its timing. Long-horizon maneuvers require the vehicle to stop and reverse. At such a reversal the flat-output curve forms a cusp, where the speed passes through zero and the direction of travel flips. Since the headings are recovered from the direction of travel along the curve, they are determined only where that direction is well defined, which excludes the cusp itself. We therefore split the path at the reversals into same-direction runs. Within a run the direction of travel never changes, so the lift is well posed, and the speed profile is the fastest traversal that respects the velocity, acceleration, and steering-rate limits.

For TT, the resulting speed and steering are directly the control input \bm{u}, whereas for Accel-TT they become components of the state \bm{x}_{\mathrm{acc}} and the inputs are their rates a=\dot{v} and \omega=\dot{\delta}. In both cases, the velocity and rate bounds are satisfied by construction. A downstream controller tracks this trajectory during execution, as tractor–trailer systems are strongly unstable under reverse motion [24].

IV-C Experimental Setup

We evaluate DFLAT on a benchmark suite of nine parking and navigation maps grouped into three difficulty levels: Short, Moderate, and Long (Fig. 3). Short scenarios have relatively open workspaces and brief maneuver sequences. Moderate scenarios require tighter maneuvers and, in some cases, globally coordinated ones such as U-turns and gate traversals. Long scenarios involve large-scale or densely cluttered environments that demand long-horizon planning with multiple direction changes. All experiments are run on a single NVIDIA RTX 5090 GPU.

Each difficulty level contains three scenario families, with 20 randomized instances per family. Randomization is over the initial pose and, where the map permits, the goal pose. Average trajectory length increases from roughly 20 m in Short scenarios to 150 m in Long ones, and the number of reversals per instance ranges from 1 to 7. The three groups therefore correspond to progressively longer planning horizons and increasing maneuver complexity.

DFLAT optimizes the objective

J=J_{\mathrm{path}}+w_{g}J_{\mathrm{goal}}+w_{k}J_{\mathrm{kin}}+w_{r}J_{\mathrm{reg}}+w_{c}J_{\mathrm{coll}},
(18)

evaluated on the trajectory recovered from the flat-output trajectory. Here J_{\mathrm{path}} is the traversed path length and J_{\mathrm{goal}} the terminal pose error, with heading differences wrapped to [-\pi,\pi]. The hitch angle is the relative orientation between tractor and trailer, \psi_{t}:=\theta_{1,t}-\theta_{2,t} and the trailer jackknifes when |\psi_{t}|>\theta_{\max}. The term J_{\mathrm{kin}} penalizes violation of the steering and hitch angle limits,

J_{\mathrm{kin}}=\sum_{t}\max\bigl(0,|\delta_{t}|-\delta_{\max}\bigr)+\max\bigl(0,|\psi_{t}|-\theta_{\max}\bigr),
(19)

while J_{\mathrm{reg}}=\sum_{t}\delta_{t}^{2}+\psi_{t}^{2} penalizes large steering and hitch angles, favoring gentler maneuvers. Let \mathcal{R}_{\mathrm{tr}}(\bm{x}) and \mathcal{R}_{\mathrm{tl}}(\bm{x}) denote the tractor and trailer footprints at state \bm{x}, and let \bm{o}_{j} and R_{j} denote the center and radius of obstacle j. Collisions are penalized by

J_{\mathrm{coll}}=\sum_{t}\sum_{j=1}^{N_{\mathrm{obs}}}\max\Bigl(0,\ R_{j}-\mathrm{dist}\bigl(\mathcal{R}_{\mathrm{tr}}(\bm{x}_{t})\cup\mathcal{R}_{\mathrm{tl}}(\bm{x}_{t}),\ \mathcal{O}_{j}\bigr)\Bigr).
(20)

All DFLAT experiments use sixth-order Hermite segments (q=6), a 30-step diffusion process, 192 samples per denoising step, and temperature \lambda=0.1. The same hyperparameters are used across all maps and both dynamical systems, with no environment-specific tuning. Any missing parameters will be included with the code release. A trial is successful if the tractor-trailer is fully contained in the goal region \mathcal{G} at the end of the executed trajectory (see Fig. 3),

\mathcal{R}_{\mathrm{tr}}(\bm{x}_{T})\cup\mathcal{R}_{\mathrm{tl}}(\bm{x}_{T})\subseteq\mathcal{G},
(21)

and the trajectory is free of collision, jackknifing, and steering violation within the planning budget, with thresholds \delta_{\max}=60^{\circ} and \theta_{\max}=60^{\circ}. The shooting-based methods, MPPI and Safe MPD, roll out control sequences rather than optimizing over the terminal pose, so we relax their goal condition to the tractor state lying inside \mathcal{G}. This favors the baselines, as DFLAT is evaluated under a stricter, full-containment condition.

Fig. 4: Sample trajectories from DFLAT. Green slots mark the start pose, orange slots mark the goal. Red segments are forward maneuvers, blue segments are reverse maneuvers, and purple markers are the waypoints. Left: nine benchmark environments of increasing planning horizon. Top: short (T, Court, Island). Middle: medium, requiring a reversal or a tight passage (U-Turn, Compound Gate, Pinch Point). Bottom: long (Shopping Mall, Parking Lot, Zig-Zag). DFLAT produces a collision-free trajectory respecting the dynamic limits in every case, at low latency. Right: DFLAT Playground, an interactive web-based demo in which all maps can be tried with different start and goal poses and custom obstacle placement, with DFLAT replanning in the browser.3

IV-D Main Benchmark Results

We compare DFLAT against three planners for kinodynamic trajectory generation. Kinodynamic RRT [1] serves as a feasibility reference rather than a competing planner, MPPI [6] a standard shooting based method that rolls out perturbed control sequences and combines them by exponential cost weighting, and Safe Model Predictive Diffusion (Safe MPD) [14] is a recent diffusion planner that uses shielded rollouts to keep sampled trajectories collision-free, evaluated on tractor-trailer systems.

Table I summarizes the results across all difficulty levels and both dynamics models. Safe MPD is evaluated with a planning horizon of 100 steps, 20,000 samples per denoising step, and a 120-step denoising process; MPPI uses the same horizon and sample count over 120 iterations. Since these shooting-based planners are sensitive to hyperparameters, we tuned them with Optuna, using a single setting across all maps. Among the baselines, Kinodynamic RRT solves every instance, but at substantially higher computation time. Its planning time is heavy-tailed, with some runs taking far longer than others; we report the standard deviation for consistency with the other methods. DFLAT achieves the highest overall success rate, reaching 100% on all TT and Accel-TT benchmarks, and plans faster than MPPI and Safe MPD on every benchmark. Safe MPD reaches 98% success on Short scenarios with TT but drops to 69% under Accel-TT, while MPPI holds 83–87% across both. Both methods degrade on Moderate scenarios, falling as low as 33.3%, and fail almost entirely on Long instances, where the best success rate is 8.3%. Their failure modes differ: Safe MPD mostly avoids constraint violations but is often conservative and stops short of the goal, whereas MPPI can reach the goal more frequently and its failures generally come from collision. These results indicate that DFLAT remains effective on the long-horizon and constrained scenarios where control-space methods struggle, without giving up dynamic consistency.

IV-E Isolating the Representation from the Optimizer

The results above combine the effects of the trajectory representation, the search-based initialization, and the diffusion optimizer. We next isolate these factors by comparing planners that share the same differentially flat representation. We evaluate these additional experiments only for the Long planning problems with the Accel-TT dynamics.

We first examine whether the search-based front end alone suffices, that is, whether running the search to a higher-quality solution removes the need for a refinement stage. Kinodynamic RRT, reported separately in Table I, is the most direct version of this and requires extremely large planning times, and tightening the feasibility tolerance of CWP is likewise slow, as the resulting sample rejection rate dominates the runtime. We therefore compare against Flat-RRT* [20], which plans over a library of precomputed motion primitives in flat-output space. CWP is a stripped-down version of the same search without precomputed primitives, producing a feasible but low-quality trajectory that DFLAT uses as its prior; Figure 5 shows the quality difference between the CWP-only trajectory and the DFLAT output.

We then assess whether the diffusion optimizer is necessary once such a prior is available. We first compare with CWP+GS, which refines the same prior by perturbing the design with a fixed Gaussian and keeping the best candidate, using the same number of samples and iterations as DFLAT. We further compare with CWP+L-BFGS, which refines the prior with gradient-based L-BFGS optimization [25] over 30 gradient steps on the same cost function, isolating the contribution of the diffusion stage from that of the initialization.

Fig. 5: CWP-only trajectory (red) and full DFLAT trajectory (blue). CWP cheaply recovers a collision-free but dynamically infeasible reference. DFLAT jointly optimizes waypoints and segment derivatives, yielding a smooth, feasible trajectory.
TABLE II: Comparison on long-horizon scenarios under a common flat-output representation.
  • Success (%)
    CWP+GS
    85.0
    CWP+L-BFGS
    96.7
    Flat-RRT*
    100.0
    DFLAT
    100.0
  • Time (s)
    CWP+GS
    3.5\pm2.3
    CWP+L-BFGS
    4.8\pm2.3
    Flat-RRT*
    26.5\pm33.1
    DFLAT
    3.3\pm2.1
  • Steer (deg)
    CWP+GS
    40.3
    CWP+L-BFGS
    44.4
    Flat-RRT*
    45.4
    DFLAT
    35.9
  • Hitch (deg)
    CWP+GS
    30.7
    CWP+L-BFGS
    33.4
    Flat-RRT*
    31.5
    DFLAT
    28.6
  • Rate (rad/s)
    CWP+GS
    0.440
    CWP+L-BFGS
    0.453
    Flat-RRT*
    0.481
    DFLAT
    0.456

Table II reports the results, where the steering, hitch, and steering-rate rows report the maximum value observed along the trajectory, and values within 1\%, 1^{\circ}, 0.2 s, or 0.2 rad/s of the best are also bolded. DFLAT attains the highest success rate at lower planning time than either alternative, and produces trajectories with lower peak steering and hitch angles. Flat-RRT* also reaches a perfect success rate, but takes substantially longer to produce a trajectory of comparable quality, which is why DFLAT initializes from the much cheaper CWP prior instead.

V Conclusion

We presented DFLAT, a diffusion-based trajectory optimization framework that operates directly in a differentially flat representation. Diffusing over Hermite-curve parameters in the flat-output space preserves dynamic consistency throughout optimization and avoids the horizon-dependent control-sequence representation used by existing diffusion planners. The representation is compact enough to optimize the waypoint sequence and segment geometry in a single diffusion process, rather than separating subgoal planning from trajectory generation as hierarchical methods do. On long-horizon tractor–trailer problems, DFLAT matches or exceeds the success rates of the baselines at one to two orders of magnitude lower planning time.

The approach is not specific to tractor–trailer systems. The same construction applies in principle to any differentially flat system, including quadrotors or fixed-wing aircraft, enabling fast diffusion-based planning for a broad class of nonholonomic dynamics. Natural extensions are to replace the CWP prior with a learned diffusion model over the initial waypoints, and to let the number of segments be discovered during denoising rather than fixed in advance.

References

  1. [1] S. M. LaValle and J. J. Kuffner (2001) Randomized kinodynamic planning. The International Journal of Robotics Research 20 (5), pp. 378–400.
  2. [2] J. Urain, A. Mandlekar, Y. Du, N. M. M. Shafiullah, D. Xu, K. Fragkiadaki, G. Chalvatzaki, and J. Peters (2026) A survey on deep generative models for robot learning from multimodal demonstrations. IEEE Transactions on Robotics 42, pp. 60–79. External Links: Document
  3. [3] J. Ho, A. Jain, and P. Abbeel (2020) Denoising diffusion probabilistic models. In Advances in Neural Information Processing Systems (NeurIPS), Vol. 33, pp. 6840–6851.
  4. [4] C. Chen, F. Deng, K. Kawaguchi, C. Gulcehre, and S. Ahn (2024) Simple hierarchical planning with diffusion. In International Conference on Learning Representations (ICLR), pp. 15979–16002.
  5. [5] C. Pan, Z. Yi, G. Shi, and G. Qu (2024) Model-based diffusion for trajectory optimization. In Advances in Neural Information Processing Systems (NeurIPS), Vol. 37, pp. 57914–57943.
  6. [6] G. Williams, A. Aldrich, and E. Theodorou (2015) Model predictive path integral control using covariance variable importance sampling. arXiv preprint arXiv:1509.01149.
  7. [7] W. Li, X. Wang, B. Jin, and H. Zha (2023) Hierarchical diffusion for offline decision making. In International Conference on Machine Learning (ICML), Vol. 202, pp. 20035–20064.
  8. [8] A. Srikanth, P. Mahajan, K. Saha, V. Mandadi, P. Paul, P. Wadhwani, B. Bhowmick, A. Singh, and M. Krishna (2025) GPD: guided polynomial diffusion for motion planning. In 2025 IEEE 21st International Conference on Automation Science and Engineering (CASE), pp. 2758–2765.
  9. [9] J. K. Christopher, S. Baek, and F. Fioretto (2024) Constrained synthesis with projected diffusion models. In Advances in Neural Information Processing Systems (NeurIPS), Vol. 37, pp. 89307–89333.
  10. [10] J. K. Christopher, M. Cardei, J. Liang, and F. Fioretto (2025) Neuro-symbolic generative diffusion models for physically grounded, robust, and safe generation. In International Conference on Neuro-symbolic Systems (NeuS), Vol. 288, pp. 188–213.
  11. [11] R. Römer, A. von Rohr, and A. P. Schoellig (2025) Diffusion predictive control with constraints. In Learning for Dynamics and Control Conference (L4DC), Vol. 283, pp. 791–803.
  12. [12] K. Kondo, A. Tagliabue, X. Cai, C. Tewari, O. Garcia, M. Espitia-Alvarez, and J. P. How (2024) CGD: constraint-guided diffusion policies for uav trajectory planning. arXiv preprint arXiv:2405.01758.
  13. [13] M. Fliess, J. Lévine, P. Martin, and P. Rouchon (1995) Flatness and defect of non-linear systems: introductory theory and examples. International Journal of Control 61 (6), pp. 1327–1361.
  14. [14] T. Kim, K. Majd, H. Okamoto, B. Hoxha, D. Panagou, and G. Fainekos (2026) Safe model predictive diffusion with shielding. In IEEE International Conference on Robotics and Automation (ICRA),
  15. [15] K. Majd, H. Parwana, B. Hoxha, S. Hong, H. Okamoto, and G. Fainekos (2025) GPU-accelerated barrier-rate guided MPPI control for tractor-trailer systems. In 2025 IEEE 28th International Conference on Intelligent Transportation Systems (ITSC), pp. 3451–3458.
  16. [16] T. Miura, N. Akai, K. Honda, and S. Hara (2024) Spline-interpolated model predictive path integral control with Stein variational inference for reactive navigation. In 2024 IEEE International Conference on Robotics and Automation (ICRA), pp. 13171–13177.
  17. [17] C. Hao, A. Xiao, Z. Xue, and H. Soh (2025) CHD: coupled hierarchical diffusion for long-horizon tasks. In Conference on Robot Learning (CoRL), Vol. 305, pp. 1420–1451.
  18. [18] T. Yun, S. Yun, J. Lee, and J. Park (2024) Guided trajectory generation with diffusion models for offline model-based optimization. In Advances in Neural Information Processing Systems (NeurIPS), Vol. 37, pp. 83847–83876.
  19. [19] P. Rouchon, M. Fliess, J. Lévine, and P. Martin (1993) Flatness and motion planning: the car with n trailers. In European Control Conference (ECC), pp. 1518–1522.
  20. [20] L. Bascetta, I. Mendizabal Arrieta, and M. Prandini (2017) Flat-RRT{}^{*}: a sampling-based optimal trajectory planner for differentially flat vehicles with constrained dynamics. IFAC-PapersOnLine 50 (1), pp. 6965–6970.
  21. [21] D. Zheng, Y. Wang, S. Di Cairano, and P. Tsiotras (2025) Delayed expansion agt: kinodynamic planning with application to tractor-trailer parking. arXiv preprint arXiv:2506.13421.
  22. [22] T. Duong, C. W. Ramsey, Z. Kingston, W. Thomason, and L. E. Kavraki (2026) Ultrafast sampling-based kinodynamic planning via differential flatness. arXiv preprint arXiv:2603.16059.
  23. [23] K. Kondo, Y. Wu, V. Kumar, and J. P. How (2026) MIGHTY: hermite spline-based efficient trajectory planning. IEEE Robotics and Automation Letters 11 (6), pp. 6664–6671.
  24. [24] B. Yang, Z. Zhuang, Z. Yu, Q. Wang, J. Wei, Y. Mo, and W. Yang (2025) Differential-flatness-based tracking control for tractor-trailers in reversing maneuvers. In 2025 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), pp. 232–239.
  25. [25] D. C. Liu and J. Nocedal (1989) On the limited memory BFGS method for large scale optimization. Mathematical Programming 45 (1), pp. 503–528.