Abstract
Offline reinforcement learning (RL) aims to learn optimal policies from previously collected datasets. Recently, due to their powerful representational capabilities, diffusion models have shown significant potential as policy models for offline RL issues. However, previous offline RL algorithms based on diffusion policies generally adopt weighted regression to improve the policy. This approach optimizes the policy only using the collected actions and is sensitive to Q-values, which limits the potential for further performance enhancement. To this end, we propose a novel preferred-action-optimized diffusion policy (PAO-DP) for offline RL. In particular, an expressive conditional diffusion model is utilized to represent the diverse distribution of a behavior policy. Meanwhile, based on the diffusion model, preferred actions within the same behavior distribution are automatically generated through the critic function. Moreover, an anti-noise preference optimization is designed to achieve policy improvement by using the preferred actions, which can adapt to noise-preferred actions for stable training. Extensive experiments demonstrate that the proposed method provides competitive or superior performance compared to previous state-of-the-art offline RL methods, particularly in sparse reward tasks such as Kitchen and AntMaze. Additionally, we empirically prove the effectiveness of anti-noise preference optimization.
Introduction
Offline Reinforcement Learning (RL) is the art of learning a high-performing policy from a fixed, pre-collected dataset without any further environment interaction. This is critical for real-world applications like healthcare or autonomous driving, where "trial and error" is too dangerous or expensive.
However, offline RL faces two major hurdles:
- Distribution Shift: If the agent tries an action not in the dataset, it doesn't know what will happen. To stay safe, most methods use Weighted Regression (WR) to keep the learned policy close to the "behavior policy" (the data).
- The WR Ceiling: WR is limited because it only optimizes using actions already present in the dataset. Furthermore, it is highly sensitive to errors in the Q-function (the value estimator), which often struggles with "out-of-distribution" actions, leading to unstable training.
While diffusion models have recently become popular in RL for their ability to represent complex, multi-modal behavior, they have mostly been stuck using these same limited WR techniques.
Methodology: PAO-DP
The authors introduce PAO-DP, which replaces weighted regression with a preference-based optimization scheme. The workflow consists of three main pillars:
Conditional Diffusion Policy
The agent uses a diffusion model to represent the behavior policy. This allows it to capture the diverse, multi-modal ways a human or another agent might have solved a task in the original dataset.
Preferred-Action Automatic Generation
Instead of just looking at the action in the dataset ($a_t$), the system samples $N$ candidate actions from the diffusion model. It then uses importance sampling (weighted by the learned Q-function) to identify a "preferred" action ($\hat{a}_t$). This effectively allows the agent to "imagine" better versions of the behavior it sees in the data.
Anti-Noise Preference Optimization
Inspired by Direct Preference Optimization (DPO) used in LLMs, the authors treat the dataset action and the generated action as a preference pair. Crucially, they introduce an anti-noise mechanism. Since Q-values in offline RL are often inaccurate, the "preferred" label might be wrong. The loss function accounts for this by assuming a small probability that labels are flipped, leading to much more stable training.
Experimental Evaluation
The researchers evaluated PAO-DP on the D4RL benchmark, focusing on four diverse domains: FrankaKitchen, AntMaze, Adroit, and Gym-Locomotion.
Key Results
PAO-DP demonstrated significant improvements over previous state-of-the-art (SOTA) methods like IQL and Diffusion-QL:
- Sparse Reward Dominance: In the Kitchen-Complete task, PAO-DP achieved a score of 87.2, significantly outperforming the next best method (IQL+EDP at 75.5).
- Perfect Navigation: In several AntMaze tasks, the method achieved a perfect score of 100.0 (using the OMS metric), showing a robust ability to navigate complex environments where rewards are rarely found.
- Robustness: Sensitivity analysis showed that PAO-DP is much less sensitive to hyperparameter tuning compared to weighted regression methods, which often crashed or stalled with the wrong settings.
Discussion and Insights
- Breaking the Data Ceiling: By sampling from the diffusion model and selecting the best candidates via the critic, PAO-DP can synthesize "preferred" actions that are better than anything explicitly recorded in the dataset.
- The Stability of Preferences: Moving from regression (trying to match a value) to preference optimization (choosing the better of two options) makes the policy less vulnerable to the exact scale and errors of the Q-function.
- Embracing Uncertainty: The "anti-noise" component is a major "aha moment." By mathematically acknowledging that the critic might be wrong about which action is better, the authors prevent the policy from over-committing to potentially bad "preferred" actions.
Conclusion
PAO-DP represents a significant step forward for diffusion-based offline RL. By leveraging preference optimization and anti-noise mechanisms, it overcomes the limitations of traditional weighted regression, particularly in challenging sparse-reward environments. Future work may extend this to trajectory-level optimization to further capture long-term goals.
Summary updated