Diffusion models have emerged as a powerful paradigm for offline trajectory planning, capable of generating smooth, high-quality paths in complex configuration spaces. However, most existing planners, such as the original Diffuser or Decision Diffuser, suffer from a fundamental limitation: they rely on a fixed horizon ($H$). Researchers from Shanghai Jiao Tong University have introduced VH-Diffuser, a modular framework designed to eliminate this constraint by allowing planners to adapt trajectory lengths to the specific difficulty of a task.
The Challenge of Fixed Horizons
In standard diffusion-based planning, the model generates a trajectory of a pre-determined length. This "one-size-fits-all" approach creates a significant "length mismatch" problem. When a robot is tasked with reaching a goal, the fixed horizon often leads to two failure modes:
- Undershooting: If the horizon is too short for the distance required, the robot fails to reach the goal entirely.
- Dithering: If the horizon is too long, the robot reaches the goal early and must "fill time" by taking unnecessary detours, oscillating, or looping near the target to satisfy the fixed step count.
This brittleness forces developers to manually tune $H$ for every environment, a process that is both inefficient and incapable of handling the varying difficulties of different start-goal pairs within the same environment.
The VH-Diffuser Framework
VH-Diffuser (VHD) solves this by decoupling distance estimation from path generation. The framework consists of two cooperative modules trained on the same offline dataset:
1. The Length Predictor ($f_\theta$)
To determine the optimal trajectory length, the authors developed a scalar regressor that estimates the shortest-step distance between a start state and a goal. Because offline datasets often have limited coverage, they employed a "hybrid supervision" strategy to improve the predictor's accuracy:
- Anchors: Utilizing exact distances for states found within the same continuous trajectory.
- DP Upper Bounds: Applying Bellman-style consistency to ensure the estimated distance between two points is mathematically sound relative to intermediate points.
- Triangle Regularization: A technique used to "stitch" information across disparate trajectories, allowing the model to estimate distances between states that never appeared together in the training data.
2. The Diffusion Planner
Unlike traditional planners, this module uses a random-length training strategy. Instead of training on fixed-length segments, the model is trained on randomly cropped sub-trajectories from the dataset. Crucially, this requires zero architectural changes to the standard temporal U-Net backbone; the model simply learns to denoise Gaussian noise blocks of varying sizes.
Experimental Results and Insights
The researchers evaluated VH-Diffuser across several benchmarks, including D4RL Maze2d, OGBench AntMaze, and OGBench Cube (a robot arm task). The results demonstrated significant improvements in both reliability and efficiency:
- Superior Success Rates: Under a "Replan-on-Deviation" protocol, VHD achieved near-perfect success rates (ranging from 95.7% to 100%) across all tested environments, consistently outperforming fixed-horizon baselines.
- Path Efficiency: By predicting the shortest possible path rather than an average, VHD produced much more direct trajectories. In the
Maze2d-Largetask, VHD reached goals in an average of 285 steps, whereas the best fixed-horizon model required 427 steps—a 33% increase in efficiency. - Visual Directness: Qualitative analysis confirms that VHD eliminates the "looping" behavior seen in fixed-horizon models, generating clean, purposeful paths to the target.
Conclusion
VH-Diffuser represents a significant step forward in making diffusion-based motion planning more practical for real-world robotics. By separating the "when" (distance estimation) from the "how" (path generation), the system gains the flexibility to handle diverse tasks without manual tuning. Its minimalist design—requiring no changes to existing diffusion architectures—makes it an easily adoptable upgrade for current state-of-the-art planners.
Summary updated