Uncertainty-aware Distributional Offline Reinforcement Learning

Xiaocong Chen, Siyu Wang, Tong Yu, Lina Yao · OpenReview

Abstract

Offline reinforcement learning (RL) presents distinct challenges as it relies solely on observational data. A central concern in this context is ensuring the safety of the learned policy by quantifying uncertainties associated with various actions and environmental stochasticity. Traditional approaches primarily emphasize mitigating epistemic uncertainty by learning risk-averse policies, often overlooking environmental stochasticity. In this study, we propose an uncertainty-aware distributional offline RL method to simultaneously address both epistemic uncertainty and environmental stochasticity. We propose a model-free offline RL algorithm capable of learning risk-averse policies and characterizing the entire distribution of discounted cumulative rewards, as opposed to merely maximizing the expected value of accumulated discounted returns. Our method is rigorously evaluated through comprehensive experiments in both risk-sensitive and risk-neutral benchmarks, demonstrating its superior performance.

Introduction

Reinforcement Learning (RL) traditionally involves an agent learning through trial and error. However, in safety-critical domains such as healthcare or autonomous driving, errors can be catastrophic. Offline RL addresses this by training agents on pre-collected, static datasets. Despite its promise, offline RL faces two major hurdles: epistemic uncertainty, where missing information in the dataset leads to overconfident "hallucinated" guesses, and environmental stochasticity, where unpredictable real-world dynamics are ignored by standard RL's focus on average rewards.

To address these challenges, the researchers introduce UDAC (Uncertainty-aware offline Distributional Actor-Critic). UDAC combines diffusion models with distributional reinforcement learning to navigate "danger zones" in offline data. By modeling the full distribution of potential rewards and using diffusion to capture complex behavior patterns, UDAC achieves state-of-the-art performance in safety-critical environments where avoiding worst-case outcomes is as vital as reaching the goal.

Methodology

The UDAC framework integrates three core components to ensure robust and safe policy learning:

  • Distributional Critic: Instead of predicting a single expected Q-value, the critic predicts the entire distribution of future rewards using Quantile Regression. This enables the agent to calculate the Conditional Value at Risk (CVaR), focusing on the lower tail (e.g., bottom 10%) of possible outcomes to ensure safety.
  • Diffusion-Based Behavior Modeling: UDAC utilizes a Denoising Diffusion Probabilistic Model (DDPM) to represent the behavior policy in the dataset. Diffusion models are superior to traditional VAEs at capturing complex, multi-modal distributions, providing a more accurate baseline for the agent to remain within the support of the offline data.
  • Controlled Perturbation Model: The final policy combines the diffusion-modeled behavior with a perturbation term ($\xi$). A scaling factor ($\lambda$) acts as a "safety knob," allowing the agent to deviate slightly from observed data to improve performance while staying close enough to avoid unseen, potentially dangerous regions.

Experimental Evaluation

UDAC was evaluated across three major benchmarks: Risk-Sensitive D4RL (modified MuJoCo tasks with stochastic rewards), Risky Robot Navigation (custom Risky Ant and Risky PointMass environments), and standard Risk-Neutral D4RL benchmarks.

Key Results

UDAC demonstrated superior risk management, particularly in the Risky PointMass environment. While baseline methods like ORAAC and CODAC frequently strayed into the high-cost red zone, UDAC achieved zero violations.

Comparison of UDAC with baseline methods in the Risky PointMass environment. UDAC successfully avoids the red danger zone while others fail.

In the Risk-Sensitive D4RL benchmark, UDAC outperformed all baselines, including CQL and Diffusion-QL, especially in "Expert" and "Mixed" dataset categories. Furthermore, UDAC remained competitive in risk-neutral settings, proving that its safety-first approach does not cripple its ability to learn efficient paths.

Discussion and Conclusion

The success of UDAC highlights several key insights. First, diffusion models serve as effective "safety rails" for behavior cloning in offline RL due to their ability to model messy, multi-modal data accurately. Second, optimizing for the "tail" of the reward distribution via CVaR naturally induces robust, cautious behavior. Finally, the hyperparameter $\lambda$ provides a critical balance between imitation and exploration.

While UDAC shows great promise, limitations include the computational expense of diffusion sampling and sensitivity to the $\lambda$ hyperparameter. Future directions include exploring "classifier-free guidance" and faster sampling methods to make the model more practical for real-world robotics. UDAC represents a significant step toward practical, safety-aware offline RL for real-world decision-making.

Summary updated

BibTeX
@inproceedings{chen2024uncertainty,
  author = {Xiaocong Chen and Siyu Wang and Tong Yu and Lina Yao},
  title = {{Uncertainty-aware Distributional Offline Reinforcement Learning}},
  booktitle = {IEEE/RSJ International Conference on Intelligent Robots and Systems},
  year = {2024},
}
Figure