Abstract
Diffusion models have shown remarkable success in generative tasks and offline reinforcement learning (RL) due to their ability to represent complex, multi-modal distributions. However, applying them to online RL remains challenging due to the instability of standard training objectives in exploratory environments. This paper introduces Q-weighted Variational Policy Optimization (QVPO), a framework that bridges this gap. By weighting the diffusion variational loss with Q-values and introducing a novel entropy regularization technique, QVPO enables efficient online learning. Experimental results on MuJoCo benchmarks demonstrate that QVPO achieves state-of-the-art performance and superior sample efficiency compared to traditional and existing diffusion-based RL methods.
Introduction
In continuous control tasks, agents often encounter scenarios where multiple distinct actions are equally optimal. Traditional RL policies, typically modeled as Gaussian distributions (e.g., in SAC or PPO), struggle to capture such multi-modality. Diffusion models offer a powerful alternative by learning to denoise data into complex distributions. While highly effective in offline RL settings where expert data is available, their application to online RL—where agents must learn through trial and error—has been hindered by the limitations of the Variational Lower Bound (VLB) objective. Specifically, the VLB requires high-quality samples to converge, which are scarce during early exploration. Previous attempts to adapt diffusion to online RL often suffered from high approximation errors or unstable gradients.
Methods
QVPO addresses these challenges through a principled integration of diffusion models into the online RL paradigm. The framework consists of four primary components:
- Q-weighted VLO Loss: The core theoretical contribution is the proof that weighting the diffusion model's variational loss with Q-values creates a tight lower bound for the standard RL policy objective. This allows the model to be trained directly on the agent's experience, prioritizing actions with higher predicted returns.
- Equivalent Transformations: To stabilize training and handle negative Q-values, the algorithm transforms Q-values into advantages ($A(s,a) = Q(s,a) - V(s)$). This ensures that weights remain positive and focuses the model on the most promising actions within the replay buffer.
- Diffusion Entropy Regularization: Since calculating the exact entropy of a diffusion model is mathematically intractable, QVPO introduces a generative approach to regularization. The model is trained to occasionally denoise samples drawn from a uniform distribution, effectively pushing the policy toward higher-entropy, exploratory behavior.
- Efficient Behavior Policy: To mitigate the high variance inherent in diffusion sampling, QVPO employs an action selection strategy. During environment interaction, the agent samples multiple actions from the diffusion policy and executes the one with the highest predicted Q-value, improving sample efficiency.
Key Insights and Ideas
The mathematical link between the VLB and the RL policy objective via Q-weighting provides a principled foundation for training diffusion policies without expert data. Furthermore, the approach to entropy is a significant departure from traditional log-likelihood methods. By treating entropy maximization as a generative task—learning to reach a uniform distribution—QVPO maintains exploration even with fewer diffusion steps.
The use of a $K$-efficient behavior policy turns the multi-modality of diffusion into a strength. By sampling $K$ candidates and selecting the best according to the Q-function, the agent effectively performs a local search over its own learned distribution, leading to more stable and efficient interactions.
Results
QVPO was evaluated on the MuJoCo locomotion benchmarks, including Hopper-v3, Walker2d-v3, Ant-v3, HalfCheetah-v3, and Humanoid-v3. The algorithm consistently outperformed both traditional Gaussian-based methods (SAC, TD3, PPO) and existing diffusion-based online RL methods (DIPO, QSM).
In the HalfCheetah-v3 task, QVPO achieved a cumulative reward of 11,385.6, surpassing SAC's 10,616.9. Beyond raw performance, QVPO demonstrated superior sample efficiency, converging faster than competing methods. It also exhibited greater stability, with lower standard deviation across training runs compared to other diffusion-based approaches.
Conclusion and Limitations
QVPO successfully brings the expressive power of diffusion models to online RL. While it sets new performance benchmarks, some limitations remain. Inference latency is higher than that of simple Gaussian policies (approx. 6ms vs 0.3ms), which may impact high-frequency robotics applications. Additionally, the current entropy weight is fixed; future work will explore adaptive entropy mechanisms similar to those used in SAC. Finally, fully integrating the entropy term into the Bellman equation remains an open area for further improving the robustness of the policy iteration process.
Summary updated