All models

d3rlpy_CQL

Conservative Q-learning for offline RL: an actor-critic whose Q-function is trained to give lower-bound values.

Reinforcement learning and control · 27 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (38 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
407.6K
Operations
27
Framework
PyTorch
Recurrent
No
Published
NeurIPS 2020
Cited by
725 (as of 23 October 2026)
Authors
Aviral Kumar, Aurick Zhou, George Tucker, Sergey Levine
License
MIT
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m4065
Graph hash
64f44ed4c8db910065dcde8d89c96529f58a2dd4496ef936f57ccda4e1e7de4f
Skeleton hash
82e9b3949c52e50fdff9f3cd3c9954bf90bd7117c905283e0aade42d1f4f799d
Architecture hash
9bde45750a9e0a1dc490da01aea02ff7d12eca7020823d12f34c8a3fe9a075bc
Diagram SHA-256
1bc82b72e95129ac0777ad6bbe578a43c8db29eda70100d438bfebc2c70e626e
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

Conservative Q-learning (CQL) is an algorithm for offline reinforcement learning (RL), in which a policy is learned from a previously collected, static dataset without further interaction. The problem the paper addresses is that standard off-policy methods can fail in this setting because they overestimate values under the distributional shift between the dataset and the learned policy. CQL learns a conservative Q-function instead, one under which the expected value of a policy lower-bounds its true value.

In practice CQL adds a simple Q-value regularizer to the standard Bellman error objective. The paper describes an actor-critic variant and a Q-learning variant, and says the change takes only 20 lines of code on top of soft actor-critic (SAC) for continuous control and QR-DQN for discrete control. Because the penalty is applied to the Q-function itself, CQL uses no policy constraint and does not need to fit a separate estimate of the behavior policy.

The paper evaluates the actor-critic variant on continuous control datasets from the D4RL benchmark and reports that, across discrete and continuous control domains, CQL often learned policies with 2-5 times higher final return than the offline RL methods it was compared with. The d3rlpy library, an offline deep reinforcement learning library for practitioners and researchers, supports CQL for both discrete and continuous control.

Key idea. The paper proposes conservative Q-learning, which regularizes Q-values during training so that the expected value of a policy under the learned Q-function lower-bounds its true value.

  • cql
  • conservative q-learning
  • offline reinforcement learning
  • offline rl
  • batch rl
  • d3rlpy
  • d3rlpy cql
  • q-learning
  • actor-critic

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{kumar2020conservativeqlearningofflinereinforcement,
      title={Conservative Q-Learning for Offline Reinforcement Learning}, 
      author={Aviral Kumar and Aurick Zhou and George Tucker and Sergey Levine},
      year={2020},
      eprint={2006.04779},
      archivePrefix={arXiv},
      primaryClass={cs.LG},
      url={https://arxiv.org/abs/2006.04779}, 
}