Introduction
Offline Reinforcement Learning (RL) aims to derive optimal policies from static datasets without further environment interaction. A primary challenge in this field is distribution shift, where a policy selects actions outside the training data distribution, leading to erroneous value estimations by the critic. To mitigate this, Constrained Policy Search (CPS) methods enforce proximity between the learned policy and the behavior policy. However, traditional CPS methods like Advantage Weighted Regression (AWR) often struggle with multi-modal data distributions and the intractable probability densities of highly expressive models like diffusion models.
Methodology
DiffCPS (Diffusion-based Constrained Policy Search) addresses these limitations by integrating diffusion models into a primal-dual optimization framework. Instead of relying on exact density estimation, the authors utilize the diffusion loss—specifically the Evidence Lower Bound (ELBO)—as a proxy for the policy constraint.
The optimization process follows a primal-dual approach:
- Primal Update: The policy parameters are updated to maximize expected rewards (Q-values) while adhering to a "budget" defined by the diffusion loss.
- Dual Update: A Lagrange multiplier ($\lambda$) is adjusted to balance reward maximization against data adherence.
This formulation ensures that the agent can capture complex, multi-modal action distributions without the mathematical overhead of calculating exact KL-divergences.
Key Insights: The Multi-modality Advantage
A significant drawback of Gaussian-based policies is the "averaging trap." In datasets with multi-modal solutions, a Gaussian policy tends to output the mean action, which may fall in a low-probability or zero-reward region.
As shown in the toy bandit task, DiffCPS successfully recovers the circular distribution of the ground truth, whereas baselines like AWR collapse to the center. Additionally, the authors found that using fewer diffusion steps (e.g., $T=5$) often provides a helpful regularization effect, preventing overfitting to suboptimal quirks in the behavior data.
Experimental Results
DiffCPS was evaluated on the D4RL benchmark, including MuJoCo locomotion and AntMaze tasks, achieving state-of-the-art or highly competitive results.
AntMaze Performance
AntMaze presents a significant challenge due to sparse rewards and the need to "stitch" suboptimal trajectories. DiffCPS achieved an average score of 81.67, a substantial jump over Diffusion-QL's 69.8.
Locomotion and Efficiency
On the HalfCheetah-Medium task, DiffCPS reached a score of 71.0, significantly outperforming previous diffusion-based methods. Despite the complexity of diffusion models, training remains efficient, requiring approximately 4.5 hours on consumer-grade hardware (RTX 3050) for a full 2,000-epoch run.
Conclusion
DiffCPS provides a theoretically grounded and practically effective framework for offline RL. By leveraging the expressivity of diffusion models within a primal-dual CPS framework, it overcomes the limitations of previous methods in handling multi-modal data and intractable densities. While the "duality gap" remains a factor for finite neural networks, the empirical results demonstrate that DiffCPS is a robust and efficient solution for complex offline RL tasks.
Summary updated