Abstract
Diffusion models have emerged as powerful policy approximators in reinforcement learning (RL) due to their ability to represent complex, multimodal distributions. However, their iterative denoising process typically results in high inference latency, hindering real-time application. This paper presents DACERv2, an optimized diffusion-based RL algorithm that significantly improves efficiency through a time-weighted Q-gradient field guidance mechanism. By providing step-by-step supervision during denoising, DACERv2 achieves state-of-the-art performance with only 5 diffusion steps, reducing inference time to 0.63 ms. Experimental results on MuJoCo benchmarks and multi-goal environments demonstrate that DACERv2 offers superior efficiency and multimodal exploration capabilities compared to traditional and diffusion-based baselines.
Introduction
In continuous control tasks, such as robotics, agents must often learn multimodal policies to navigate complex environments with multiple valid solutions. Traditional algorithms like Soft Actor-Critic (SAC) typically rely on Gaussian distributions, which struggle to capture these branching possibilities. While diffusion models offer the necessary expressivity, they introduce a severe bottleneck: inference latency. Standard diffusion policies often require 20 or more iterative denoising steps, making them unsuitable for real-time online RL where sub-millisecond reaction times are required. DACERv2 addresses this by optimizing the denoising process to maintain performance even with a drastically reduced number of steps.
Methodology
DACERv2 builds upon the Actor-Critic framework, introducing three key innovations to the diffusion policy:
- Q-Gradient Field Guided Denoising: Instead of evaluating only the final action, DACERv2 utilizes the gradient of the Q-function with respect to the action ($\nabla_a Q(s,a)$) as an auxiliary loss at every intermediate denoising step. This provides explicit, step-by-step supervision to guide the noisy action toward high-reward regions.
- Time-Weighted Mechanism: Recognizing that the diffusion process is dynamic, the authors apply an exponential decay weight to the auxiliary Q-gradient loss. This ensures strong guidance during early noise removal while allowing for delicate fine-tuning in the final steps.
- Gradient Normalization: To ensure stability in volatile environments, the Q-gradient is normalized by its magnitude, preventing erratic updates during training.
Experimental Results
Efficiency and Performance
The authors evaluated DACERv2 on standard OpenAI Gym MuJoCo benchmarks. DACERv2 achieved a breakthrough inference time of 0.63 ms, crossing the critical 1 ms threshold for industrial real-time control. This represents a 2.54x to 5.71x speedup over competing diffusion RL methods like DACER, QVPO, and DIME. Despite using only 5 diffusion steps, DACERv2 outperformed SAC by significant margins (e.g., +42.7% on the Ant task) and surpassed existing diffusion baselines on most tasks.
Multimodal Exploration
To test the policy's ability to capture multiple distinct paths, the authors utilized a custom 2D environment with 4 to 6 symmetrically arranged goals. DACERv2 demonstrated superior multimodality, successfully reaching all 6 targets with uniform coverage, whereas the original DACER algorithm failed to capture all modes.
Discussion and Conclusion
The success of DACERv2 highlights that intermediate supervision is the key to diffusion efficiency. By guiding each step with the Q-gradient, the model converges on optimal actions in significantly fewer steps. Furthermore, the time-weighting mechanism aligns perfectly with the coarse-to-fine nature of diffusion models.
One limitation of the current approach is its reliance on explicitly learned Q-functions, which limits its immediate integration with purely policy-gradient algorithms like PPO. Future work may explore trajectory-based reformulations of this objective to broaden the applicability of high-efficiency diffusion policies across a wider range of RL frameworks.
Summary updated