TL;DR
Diffusion models are fantastic at planning robot trajectories from static datasets, but steering them toward high rewards usually requires tedious, risky hyperparameter tuning in the live environment. Temperature-Guided Diffusion Planning (TGDP) solves this by replacing rigid target-return prompts and static guidance weights with a self-calibrating "temperature" dial and geometry-aware scaling. The result is a plug-and-play diffusion planner that matches state-of-the-art performance across diverse tasks using a single default configuration—no per-task tuning required.
What Problem Does This Paper Address?
In offline reinforcement learning (RL), agents learn how to act strictly from pre-recorded datasets—no risky trial-and-error in the real world allowed. Recently, diffusion planners have excelled here. Instead of predicting actions one step at a time (where tiny errors compound into disasters), they hallucinate entire, globally coherent future trajectories at once by iteratively denoising random noise.
To make sure the model generates good plans rather than average ones from a mixed-quality dataset, researchers borrow Classifier-Free Guidance (CFG) from AI image generation. You tell the model, "Give me a trajectory worth 1000 points," and amplify that signal using a multiplier called a guide scale.
Here is the catch: CFG is notoriously brittle in decision-making. First, asking for a fixed target score can conflict with the agent's current reality, causing out-of-distribution hallucinations. Second, the optimal guide scale varies wildly from task to task. To find the sweet spot, practitioners have to test dozens of settings in the live environment—completely defeating the purpose of offline RL!
Methods
To eliminate per-task tuning, the authors replace standard CFG with two core innovations:
- Temperature-Weighted Training: Instead of feeding exact trajectory scores as inputs during training, TGDP samples a random "temperature" ($\beta$) for each batch. High positive temperatures exponentially upweight high-return trajectories in the loss function; negative temperatures emphasize poor ones; zero leaves them unweighted. At test time, asking for a high temperature naturally shifts probability toward the best achievable plans from the current state without demanding an impossible fixed score.
- Collinearity-Based Adaptive Guidance: Temperature alone coarsely selects good behavioral modes, so TGDP still uses a guide scale to push plans toward peak performance. However, instead of a fixed number, TGDP evaluates the denoiser three times per step: at high ($+\beta_{\max}$), zero ($0$), and low ($-\beta_{\max}$) temperatures. It then measures the cosine similarity between the vector pointing toward high-return space and the vector pointing away from low-return space. When these vectors align (collinearity), TGDP cranks up the guidance scale; when they diverge, it automatically throttles guidance back to safety.
Datasets
The authors evaluate TGDP on standard benchmarks from the D4RL offline RL suite (no new datasets are introduced, though manipulation tasks from robomimic are explored in the appendices):
- Locomotion (HalfCheetah, Hopper, Walker2D): Tested across Medium (single intermediate policy), Medium-Expert (a bimodal mix of intermediate and expert), and Medium-Replay (diverse, evolving experience).
- Navigation & Manipulation: Maze2D (Umaze, Medium, Large), AntMaze (Medium/Large, Play/Diverse), and Franka Kitchen (Mixed, Partial).
Key Insights and Ideas
- The Dual Pathologies of Guidance: Why do different datasets need wildly different guide scales? The authors trace this to latent geometry. In single-policy datasets, predictions sit inside one compact cluster (intra-mode guidance); here, you need aggressive scaling to climb local reward gradients, risking underguidance if you're too timid. In multi-policy datasets, predictions jump across separated islands of behavior (inter-mode guidance); aggressive scaling overshoots into empty space, causing overguidance and physically impossible plans.
- Geometry Reveals Mode Separation: You can detect which regime you are in on the fly! Within a single smooth mode, "better" and "worse" trajectory updates point in cleanly opposite directions (anti-aligned). When jumping between disjoint modes, those vectors bend out of alignment. Measuring this angle gives the diffusion model a built-in speedometer for how hard it can safely push.
Key Results
- Zero-Tuning Parity: Using a single default hyperparameter setting ($\beta_{\max}=3, s'=20, p=4$), TGDP scores an average normalized return of 83.5 across D4RL locomotion—virtually tied with standard CFG (83.7), which required 100 trials of online Optuna tuning per task.
- Broad Safe Zones: Hyperparameter sweeps show that while CFG has razor-thin islands of peak performance, TGDP creates wide, forgiving plateaus reaching ~99% of per-task maxima.
- Compute Efficiency & Transfer: TGDP adds 50% more denoiser evaluations per step than CFG ($60$ vs. $40$ passes), but is vastly cheaper than sample-selection methods like MCSS ($1000$ passes) while scoring much higher (83.5 vs. 77.3). Furthermore, plugging TGDP's locomotion-tuned defaults directly into a hierarchical planner architecture (TGDP-V) matches top baselines on Maze2D (164.6) and Kitchen (81.7) without retuning.
Limitations and Future Work
- Compute & Pretraining: Evaluating three temperatures per denoising step adds a 50% inference overhead over standard CFG, and the custom loss-weighting prevents drop-in use of off-the-shelf pretrained weights. Investigating distillation or fewer-step rectified flows is a natural next step.
- Broken Geometric Assumptions: The adaptive heuristic assumes smooth value surfaces within well-separated modes. On tasks where these assumptions fray—like AntMaze (where default TGDP-V scores 74.5 vs. ~83 for top competitors) and robomimic—manual retuning is still needed to fully close the gap, and there is no way yet to diagnose this mismatch beforehand.
- Beyond Robotics: Because TGDP works on any generative setup with a scalar "goodness" score, the authors see exciting potential in extending temperature guidance to text-to-image alignment using aesthetic or human-preference rewards.
Summary updated