Diffusion-DICE: In-Sample Diffusion Guidance for Offline Reinforcement Learning

Liyuan Mao, Haoran Xu, Xianyuan Zhan, Weinan Zhang, Amy Zhang

Abstract

Offline reinforcement learning (RL) faces significant challenges due to extrapolation errors when querying value functions on out-of-distribution actions. We present Diffusion-DICE, a novel algorithm that leverages the expressivity of diffusion models while maintaining "in-sample" learning robustness. By decomposing the optimal policy's score function into a behavior score and a guidance term derived from DIstribution Correction Estimation (DICE), Diffusion-DICE avoids overestimation by staying within the data distribution. Our "guide-then-select" paradigm achieves state-of-the-art performance across various D4RL benchmarks with high sample efficiency.

1. Introduction: The Challenge of Extrapolation

In offline RL, policies are learned from fixed datasets without environment interaction. The primary hurdle is extrapolation error: when a policy proposes an action not present in the dataset (out-of-distribution, or OOD), the value function (critic) often provides inaccurate, over-optimistic scores. Existing diffusion-based methods typically fall into two categories: guide-based methods, which may drift into OOD regions, and select-based methods, which require massive sampling and risk picking OOD outliers. Diffusion-DICE addresses these issues by ensuring guidance remains strictly "in-sample."

2. Methodology: The Guide-Then-Select Paradigm

Diffusion-DICE introduces a guide-then-select framework that maintains distributional stability during training and inference.

The guide-then-select paradigm ensures actions stay within the data distribution while moving toward high-value peaks.

2.1 Score Function Decomposition

The core of the method is the mathematical proof that the score function of the optimal policy can be decomposed into two components:

  1. Behavior Score: Directs the model to stay within the data distribution.
  2. Guidance Term: Derived from the DICE ratio, it directs the model toward high-value regions of the optimal policy.

2.2 In-Sample Guidance Learning (IGL)

To learn the guidance term without OOD samples, the authors utilize a convex optimization objective. This allows the model to learn the "gradient of high value" using only actions present in the dataset, neutralizing overestimation risk. To ensure numerical stability, a hybrid piecewise f-divergence is employed, combining the benefits of Reverse KL and Pearson $\chi^2$ divergences.

3. Experiments and Results

3.1 Benchmark Performance

The method was evaluated on the D4RL benchmark, including MuJoCo locomotion, AntMaze navigation, and Adroit/Kitchen robotic manipulation tasks. Diffusion-DICE achieved State-of-the-Art (SOTA) performance on 13 out of 15 tasks.

Diffusion-DICE consistently outperforms both traditional Gaussian-policy methods and recent diffusion-based baselines on the D4RL benchmark.

3.2 Key Findings

  • AntMaze Superiority: On difficult AntMaze tasks, Diffusion-DICE significantly outperformed previous leaders like IDQL and QGPO, demonstrating a superior ability to "stitch" sub-optimal trajectories into a coherent optimal path.
  • Inference Efficiency: Diffusion-DICE reaches peak performance using significantly fewer action candidates ($K=8$ to $32$) compared to select-only methods like IDQL ($K=256$), making it more computationally efficient during deployment.
  • Multimodality: By leveraging diffusion models, the algorithm effectively captures complex, multi-modal behavior distributions that simple Gaussian policies often fail to represent.

4. Discussion and Limitations

While Diffusion-DICE sets a new standard for offline RL, it shares the common limitation of diffusion models: iterative sampling speed. While a fast DPM-solver is used, real-time applications may still find the computational demand high. Future work may involve integrating Consistency Models to enable single-step action generation. Additionally, performance may be sensitive to extremely sparse datasets where the behavior distribution is difficult to fit accurately.

Summary updated

BibTeX
@inproceedings{mao2024diffusion,
  author = {Liyuan Mao and Haoran Xu and Xianyuan Zhan and Weinan Zhang and Amy Zhang},
  title = {{Diffusion-DICE: In-Sample Diffusion Guidance for Offline Reinforcement Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=EIl9qmMmvy},
}
Figure