Abstract
Offline reinforcement learning (RL) requires agents to learn effective policies from static datasets without environment interaction. A central challenge in this setting is distribution shift, where agents overestimate the value of out-of-distribution (OOD) actions. While behavior regularization—constraining the learned policy to stay near the data-generating distribution—is a standard solution, applying it to highly expressive diffusion-based policies has historically been mathematically intractable. This paper introduces Behavior-Regularized Diffusion Policy Optimization (BDPO), a framework that enables exact behavior regularization for diffusion policies by decomposing the regularization penalty along the diffusion generation path. By treating the diffusion process as a micro-scale Markov Decision Process (MDP), BDPO achieves state-of-the-art performance on standard benchmarks while significantly reducing training time compared to existing diffusion-based RL methods.
Introduction
In offline RL, the inability to collect new data means that agents must rely on the provided dataset to estimate action values. When an agent encounters an action not represented in the dataset, its value function often produces erroneously high estimates, leading to catastrophic failure during deployment. To mitigate this, researchers employ behavior regularization, typically by minimizing the Kullback-Leibler (KL) divergence between the agent's policy and the behavior policy that collected the data.
While simple Gaussian policies are easy to regularize, they lack the expressivity needed to capture the multi-modal distributions often found in complex human or robotic datasets. Diffusion models offer a solution to this expressivity gap, but they introduce a new problem: the exact log-probability of a diffusion model's output is generally intractable to compute. Consequently, previous attempts to use diffusion models in offline RL have relied on approximations or computationally expensive "unrolling" of the diffusion chain. BDPO addresses this by providing a mathematically rigorous way to apply KL regularization directly within the diffusion process.
Methodology
Pathwise KL Regularization
The core innovation of BDPO is the concept of pathwise KL regularization. Rather than attempting to calculate the KL divergence on the final, noise-free action, BDPO calculates the accumulated discrepancies between the reverse-time transition steps of the actor’s diffusion model and the behavior’s diffusion model. Because each individual step in a diffusion process is a simple Gaussian transition, the KL divergence for each step is analytically tractable. The authors prove that optimizing this pathwise divergence is mathematically equivalent to optimizing the standard KL divergence on the final action distribution.
Two-Time-Scale Actor-Critic
To optimize this objective efficiently, BDPO conceptualizes the RL problem at two distinct scales:
- Macro-scale (Environment MDP): This follows standard Q-learning, where the agent aims to maximize cumulative environment rewards.
- Micro-scale (Diffusion MDP): The diffusion process itself is treated as an MDP. The authors introduce diffusion value functions ($V_n$), which estimate the expected cumulative regularization penalties from an intermediate noisy step $n$ to the final action.
Single-Step Optimization and Efficiency
By utilizing these diffusion value functions, BDPO avoids the need to backpropagate gradients through the entire diffusion chain (a process known as "unrolling"). Instead, the actor policy is updated using a single diffusion step at a time, with the $V_n$ functions "caching" the value of subsequent steps. This amortized optimization approach ensures that the training cost remains constant regardless of the number of diffusion steps used, leading to massive computational savings.
Experimental Results
Performance on D4RL Benchmarks
BDPO was evaluated on the D4RL benchmark, the industry standard for offline continuous control. It consistently outperformed state-of-the-art baselines, including Conservative Q-Learning (CQL), Implicit Q-Learning (IQL), and other diffusion-based methods like Diffusion-QL and DAC.
- Locomotion (Gym MuJoCo): BDPO achieved a summed normalized score of 856.7, surpassing the previous best of 836.4.
- Navigation (Antmaze): In sparse-reward navigation tasks, BDPO reached a score of 519.6, significantly higher than the 459.9 achieved by the nearest competitor.
Computational Efficiency
The efficiency gains of the two-time-scale approach are stark. In a 50-step diffusion model setup, BDPO completed actor training in just 18 minutes, whereas Diffusion-QL—which requires unrolling the chain—took 308 minutes. This represents a nearly 17x speedup, making expressive diffusion policies practical for a wider range of applications.
Qualitative Analysis on Synthetic Data
To verify the mathematical soundness of the pathwise approach, the authors tested BDPO on 2D synthetic datasets (e.g., 8gaussians, 2spirals). BDPO demonstrated an ability to perfectly recover complex, multi-modal target distributions. In contrast, proxy methods that do not use exact pathwise guidance often failed to capture the true shape of the target distribution, highlighting the importance of BDPO's exact energy guidance.
Conclusion
BDPO bridges the gap between the high expressivity of diffusion models and the theoretical requirements of behavior regularization in offline RL. By decomposing the KL divergence along the diffusion path and employing a two-time-scale actor-critic architecture, the framework achieves superior performance with a fraction of the computational overhead of previous methods. While inference latency remains a characteristic challenge of diffusion models, BDPO’s training efficiency and robustness mark a significant step forward in the development of reliable offline RL agents.
Summary updated