Mildly Conservative Q-Learning for Offline Reinforcement Learning

Jiafei Lyu, Xiaoteng Ma, Xiu Li, Zongqing Lu
6/9/2022
cs.LGcs.AI

Official code: dmksjfl/MCQ (63 stars, Apache-2.0, last commit 2024-04-29).

Abstract

Offline reinforcement learning (RL) defines the task of learning from a static logged dataset without continually interacting with the environment. The distribution shift between the learned policy and the behavior policy makes it necessary for the value function to stay conservative such that out-of-distribution (OOD) actions will not be severely overestimated. However, existing approaches, penalizing the unseen actions or regularizing with the behavior policy, are too pessimistic, which suppresses the generalization of the value function and hinders the performance improvement. This paper explores mild but enough conservatism for offline learning while not harming generalization. We propose Mildly Conservative Q-learning (MCQ), where OOD actions are actively trained by assigning them proper pseudo Q values. We theoretically show that MCQ induces a policy that behaves at least as well as the behavior policy and no erroneous overestimation will occur for OOD actions. Experimental results on the D4RL benchmarks demonstrate that MCQ achieves remarkable performance compared with prior work. Furthermore, MCQ shows superior generalization ability when transferring from offline to online, and significantly outperforms baselines. Our code is publicly available at https://github.com/dmksjfl/MCQ.

View on arXivView PDF

Code Implementations(1)

dmksjfl/MCQOfficial100%
Apache-2.0

Code for Mildly Conservative Q-learning for Offline Reinforcement Learning (NeurIPS 2022)

637PythonAug 1, 20222 years agoApache-2.0

Similar Papers

Cite this paper

@article{lyu2022mildly,
  title  = {Mildly Conservative Q-Learning for Offline Reinforcement Learning},
  author = {Jiafei Lyu and Xiaoteng Ma and Xiu Li and Zongqing Lu},
  year   = {2022},
  eprint = {2206.04745},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2206.04745}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2206.04745.svg)](https://codeofpaper.com/paper/2206.04745)

Discussion