Abstract
Diffusion models have emerged as a powerful paradigm for offline reinforcement learning (RL), capable of generating high-reward trajectories from static datasets. However, their iterative denoising process is computationally expensive, limiting real-time application. This paper introduces Trajectory Diffuser, a framework that decomposes trajectory planning into two stages: fast initial generation using a Causal Transformer and high-fidelity refinement via a truncated diffusion process. By treating diffusion as a local optimizer rather than a global generator, Trajectory Diffuser achieves a 3–10× inference speedup while significantly outperforming state-of-the-art diffusion-based planners on standard benchmarks like D4RL.
Introduction
Offline Reinforcement Learning (RL) involves learning optimal behaviors from static, pre-collected datasets. Recently, diffusion models have shown promise in "generating" high-reward trajectories. However, a major bottleneck is inference speed. Standard diffusion models require hundreds of iterative denoising steps, which is unacceptable in fast-paced environments like autonomous driving or robotics.
The authors observed that diffusion models spend the majority of their computational budget simply establishing a feasible path that obeys physical constraints. Only the final denoising steps are dedicated to optimizing that path for high rewards. This insight suggests that the full diffusion chain is redundant if a feasible starting point can be provided more efficiently.
Methods: The Trajectory Diffuser Framework
The authors propose a two-step decomposition of the trajectory planning process:
- Generate a Feasible Trajectory (The "Warm Start"): Instead of starting from pure Gaussian noise, the model uses a Causal Transformer (inspired by the Decision Transformer). This autoregressive model quickly predicts a rough sequence of future states based on the current state and a target "return-to-go."
- Trajectory Optimization (The "Polish"): The rough trajectory from the Transformer is fed into a Diffusion Model. Crucially, the model only runs the final 10% of the denoising steps (e.g., 5–10 steps instead of 100). This stage acts as a local optimizer, refining the path to maximize rewards using Classifier-Free Guidance.
Because the planner predicts sequences of states rather than actions, a separate Inverse Dynamics model is used to determine the specific motor commands (actions) required to transition between the predicted states.
Key Insights
- Efficiency vs. Quality Decoupling: By splitting the process, the authors use Transformers for fast sequence modeling and Diffusion for high-fidelity optimization.
- The "Optimizer" Perspective: Reframing diffusion as a local optimizer prevents the degradation of high-quality initializations that can occur with excessive noise injection.
- Action-Free Planning: By excluding actions from the trajectory representation ($\tau = [states; returns]$), the model avoids high-frequency noise, making the planning task smoother.
Evaluation and Results
The researchers evaluated Trajectory Diffuser on the D4RL benchmark, covering Gym-locomotion, Franka Kitchen, and Adroit tasks.
- Massive Speedup: Trajectory Diffuser achieved a 3–10× faster inference speed compared to previous diffusion-based methods like Decision Diffusion (DD). In MuJoCo environments, it reached 0.44 seconds per step (SPS) compared to 4.61s for DD.
- Superior Performance: Despite the speedup, it outperformed baselines in overall score. On the Adroit "Pen" task, it achieved a score of 96.7, significantly higher than the 23.9 achieved by standard Decision Diffusion.
- Ablation Success: The authors demonstrated that using just 5 diffusion steps provided the best balance of performance and speed, confirming that "less is more" when starting from a strong initialization.
Conclusion and Future Work
Trajectory Diffuser demonstrates that diffusion models can be optimized for real-time decision-making by treating them as refinement tools rather than end-to-end generators. While the system relies on the accuracy of the inverse dynamics model, it provides a scalable blueprint for applying diffusion to latency-sensitive RL tasks. Future work may explore the "sweet spot" for optimization steps in more complex, non-deterministic environments.
Summary updated