Introduction
Diffusion models have emerged as incredibly powerful tools for offline reinforcement learning (RL), excelling at modeling complex, multi-modal behavior datasets. However, their iterative sampling process makes them notoriously slow, rendering them nearly unusable for high-frequency, real-time control tasks like robotics.
In offline RL, agents learn entirely from static datasets without environment interaction. A major challenge is keeping the learned policy close to the data distribution (behavior regularization) to avoid out-of-distribution actions that corrupt Q-value estimates. While diffusion models handle this modeling perfectly, generating a single action requires tens to hundreds of denoising steps. This paper asks a critical question: Can we fully exploit the generative capabilities of diffusion models without actually sampling actions from them?
To address this, the authors introduce Score Regularized Policy Optimization (SRPO), a method that distills a pretrained diffusion behavior model into a fast, deterministic policy by using the diffusion model's score function to directly regularize the policy gradient.
Methods: Score Regularized Policy Optimization
Instead of using a computationally heavy diffusion model as the actor, SRPO trains a standard, lightweight deterministic policy (such as a Multi-Layer Perceptron) and uses the diffusion model strictly as a guide during training. The process involves three main steps:
- Critic and Behavior Pretraining: The method uses Implicit Q-Learning (IQL) to train a Q-network. Simultaneously, a continuous-time diffusion model is trained on the dataset to capture the behavior distribution.
- Score-Driven Policy Extraction: A deterministic policy is trained using a reverse-KL divergence objective. The mathematical advantage of this objective is that its gradient relies on the score function ($\nabla_a \log \mu(a|s)$) of the behavior distribution. Since diffusion models are fundamentally score estimators, the pretrained diffusion model can directly provide this gradient.
- Score Distillation: Inspired by text-to-3D generation techniques like DreamFusion, SRPO ensembles score estimates across different diffusion timesteps. A noise baseline is also subtracted from the gradient to reduce variance and stabilize training.
Because the diffusion model only provides gradients during training, the final extracted policy is a simple neural network requiring zero diffusion sampling during evaluation.
Key Insights
- Gradients over Samples: You do not need to sample from a diffusion model to benefit from its knowledge. By treating the diffusion model as a score estimator, you can guide a deterministic policy's parameters using gradients alone.
- Reverse-KL Prevents "Mode Averaging": By using a reverse-KL divergence objective, SRPO exhibits "mode-seeking" behavior. If a dataset has two distinct ways to solve a task (e.g., go left or go right), SRPO confidently picks one. Standard forward-KL methods often average the modes (e.g., go straight), resulting in actions that were not in the dataset and might be dangerous.
- Time-Step Ensembling Smooths the Landscape: Real-world data distributions are sharp and complex, making it easy for optimization to get stuck in local minima. Ensembling scores from various diffusion timesteps—which represent increasingly smoothed, noisy versions of the data—makes the optimization landscape much easier for the policy to navigate.
Key Results
SRPO was evaluated on the D4RL benchmark, including MuJoCo Locomotion tasks and sparse-reward AntMaze tasks, as well as 2D Bandit tasks to visualize multi-modal navigation.
- Massive Speedups: SRPO boosts action sampling speed by 25$\times$ to 1000$\times$ compared to leading diffusion-based methods like Diffusion-QL or IDQL.
- Computational Efficiency: The computational cost (FLOPS) during evaluation is reduced to less than 1% of other diffusion methods, making it highly practical for real-world robotics.
- State-of-the-Art Performance: Despite using a simple deterministic actor at inference time, SRPO matches or beats heavier diffusion models. On the D4RL Locomotion tasks, it achieves an average normalized score of 87.1, vastly outperforming standard IQL (76.9) and remaining highly competitive with Diffusion-QL (88.0).
Limitations and Future Work
The primary limitation of SRPO is its sensitivity to the temperature coefficient ($\beta$), which controls how strictly the policy is regularized toward the behavior data. This parameter requires per-task tuning; for instance, in the AntMaze tasks, $\beta$ had to be dynamically normalized based on Q-value gradients to prevent training instability.
Future work suggests that combining SRPO's highly efficient policy extraction with advanced Q-learning techniques will further solidify the use of diffusion-backed models in computationally sensitive, high-frequency domains.
Summary updated