Q-Distribution guided Q-learning for offline reinforcement learning: Uncertainty penalized Q-value via consistency model
Jing Zhang, Linjiajie Fang, Kexin Shi, Wenjia Wang, Bing-Yi Jing
TL;DR
Offline reinforcement learning suffers from distribution shift that biases Q-value estimates toward Out-of-Distribution actions. The paper introduces Q-Distribution Guided Q-Learning (QDQ), which learns a Q-value distribution via a consistency model and applies uncertainty-informed pessimism to OOD actions, while employing an uncertainty-aware objective to avoid excessive conservatism. It constructs a trajectory-level truncated Q dataset and uses a one-step consistency model to sample multiple Q-values per state-action pair, enabling robust uncertainty estimation. Theoretical guarantees show convergence of the truncated Q-distribution, favorable contraction properties of the QDQ Bellman operator, and proximity of the learned Q-value to the optimum; empirically, QDQ attains competitive results on D4RL benchmarks, particularly in wide-distribution regimes, with practical guidance for hyperparameters. Overall, QDQ provides a principled, efficient framework for safe yet effective offline Q-learning by tying uncertainty directly to OOD risk via a distributional Q-value model.
Abstract
``Distribution shift'' is the main obstacle to the success of offline reinforcement learning. A learning policy may take actions beyond the behavior policy's knowledge, referred to as Out-of-Distribution (OOD) actions. The Q-values for these OOD actions can be easily overestimated. As a result, the learning policy is biased by using incorrect Q-value estimates. One common approach to avoid Q-value overestimation is to make a pessimistic adjustment. Our key idea is to penalize the Q-values of OOD actions associated with high uncertainty. In this work, we propose Q-Distribution Guided Q-Learning (QDQ), which applies a pessimistic adjustment to Q-values in OOD regions based on uncertainty estimation. This uncertainty measure relies on the conditional Q-value distribution, learned through a high-fidelity and efficient consistency model. Additionally, to prevent overly conservative estimates, we introduce an uncertainty-aware optimization objective for updating the Q-value function. The proposed QDQ demonstrates solid theoretical guarantees for the accuracy of Q-value distribution learning and uncertainty measurement, as well as the performance of the learning policy. QDQ consistently shows strong performance on the D4RL benchmark and achieves significant improvements across many tasks.
