Papers › Conservative Q-Learning for Offline Reinforcement Learning

Conservative Q-Learning for Offline Reinforcement Learning

8 Jun 2020NeurIPS 2020 12arXiv:2006.04779archive 2025-07-28

Aviral Kumar, Aurick Zhou, George Tucker, Sergey Levine

Effectively leveraging large, previously collected datasets in reinforcement learning (RL) is a key challenge for large-scale real-world applications. Offline RL algorithms promise to learn effective policies from previously-collected, static datasets without further interaction. However, in practice, offline RL presents a major challenge, and standard off-policy RL methods can fail due to overestimation of values induced by the distributional shift between the dataset and the learned policy, especially when training on complex and multi-modal data distributions. In this paper, we propose conservative Q-learning (CQL), which aims to address these limitations by learning a conservative Q-function such that the expected value of a policy under this Q-function lower-bounds its true value. We theoretically show that CQL produces a lower bound on the value of the current policy and that it can be incorporated into a policy learning procedure with theoretical improvement guarantees. In practice, CQL augments the standard Bellman error objective with a simple Q-value regularizer which is straightforward to implement on top of existing deep Q-learning and actor-critic implementations. On both discrete and continuous control domains, we show that CQL substantially outperforms existing offline RL methods, often learning policies that attain 2-5 times higher final return, especially when learning from complex and multi-modal data distributions.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2006.04779")

Code

Syntology Ran 24 of 34 code samples harvested from 7 repositories linked to this paper; 10 have no recorded run. Of those that ran: 2 ran · honoured contract; 2 ran · our draft was wrong; 1 ran · fixture could not drive it; 19 ran with no contract checked.

By repository: community (archive-listed): 34 samples from 7 repositories, 24 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

18 repositories listed; official and paper-mentioned ones first.

aviralkumar2907/CQL officialmentioned on GitHubpytorch report
BY571/CQL mentioned on GitHubpytorch report
corl-team/CORL mentioned on GitHubjax report
gaetanserre/lipo mentioned on GitHubAGPL-3.0 report
haosulab/ManiSkill-Learn mentioned on GitHubpytorchApache-2.0 report
ikostrikov/cql-results mentioned on GitHubpytorchApache-2.0 report
opendilab/DI-engine mentioned on GitHubpytorch report
runamu/compositional-conservatism mentioned on GitHubpytorch report
sail-sg/offbench mentioned on GitHubjax report
scottemmons/youngs-cql mentioned on GitHubpytorchMIT report
sparkmxy/my-offlinerl mentioned on GitHubpytorch report
takuseno/d3rlpy mentioned on GitHubpytorchMIT report
yihaosun1124/OfflineRL-Kit mentioned on GitHubpytorch report
young-geng/cql mentioned on GitHubpytorchMIT report
young-geng/jaxcql mentioned on GitHubjaxMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

34 samples harvested; 24 ran; 2 honoured the contract we drafted; 10 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

2ran · honoured contract
2ran · our draft was wrong
1ran · fixture could not drive it
19ran
10unverified

Licence: 5 of the 34 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 7 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

flatten young-geng/cql/viskit/core.py community (archive-listed) ran · honoured contract MIT (permissive) · 20922c79a0929bbf · report
Actor BY571/CQL/CQL-SAC/agent.py community (archive-listed) ran fingerprinted no licence file found · pointer only · 34ba8aa41bb7fa58 · report
CQLAgent mehdimashayekhi/Some-RL-Implementation/CQL/agent.py community (archive-listed) ran no licence file found · pointer only · 3c29dab689543a89 · report
CQLSAC BY571/CQL/CQL-SAC/agent.py community (archive-listed) ran no licence file found · pointer only · ea10c0c769c4b484 · report
Critic BY571/CQL/CQL-SAC/agent.py community (archive-listed) ran no licence file found · pointer only · 00012db4f3753643 · report
DDQN mehdimashayekhi/Some-RL-Implementation/CQL/agent.py community (archive-listed) ran · metamorphic tier: deterministic fingerprinted no licence file found · pointer only · 82827c5a9a2325d9 · report
batch_to_torch young-geng/cql/SimpleSAC/replay_buffer.py community (archive-listed) ran MIT (permissive) · 32231080b4b40efc · report
clip_magnitude ikostrikov/cql-results/d4rl/rlkit/pythonplusplus.py community (archive-listed) ran fingerprinted Apache-2.0 (permissive) · 93d28ca67303e04b · report
create_stats_ordered_dict ikostrikov/cql-results/d4rl/rlkit/core/eval_util.py community (archive-listed) ran Apache-2.0 (permissive) · fadf5f762ff04cd6 · report
extend_and_repeat young-geng/cql/SimpleSAC/model.py community (archive-listed) ran · our draft was wrong fingerprinted MIT (permissive) · 1e5f5f635bdf773a · report
extend_and_repeat young-geng/jaxcql/JaxCQL/jax_utils.py community (archive-listed) ran MIT (permissive) · d2f199c948f2a9ed · report
get_average_returns ikostrikov/cql-results/d4rl/rlkit/core/eval_util.py community (archive-listed) ran Apache-2.0 (permissive) · a5d10a0b704c8db7 · report
get_flat_params ikostrikov/cql-results/d4rl/rlkit/core/batch_rl_algorithm.py community (archive-listed) ran Apache-2.0 (permissive) · 9b9a51e3e3be7a6e · report
identity ikostrikov/cql-results/d4rl/rlkit/pythonplusplus.py community (archive-listed) ran · honoured contract fingerprinted Apache-2.0 (permissive) · 9910e2fc297f8665 · report
index_batch young-geng/cql/SimpleSAC/replay_buffer.py community (archive-listed) ran MIT (permissive) · c8b2fc80a3fc7424 · report
is_numeric ikostrikov/cql-results/d4rl/rlkit/pythonplusplus.py community (archive-listed) ran fingerprinted Apache-2.0 (permissive) · 4138766e854db009 · report
load_progress young-geng/cql/viskit/core.py community (archive-listed) ran MIT (permissive) · 965e75a1245dd833 · report
mse_loss young-geng/jaxcql/JaxCQL/jax_utils.py community (archive-listed) ran fingerprinted MIT (permissive) · cc35af8b18b7dc58 · report
multiple_action_q_function young-geng/cql/SimpleSAC/model.py community (archive-listed) ran MIT (permissive) · d06ff25d52ad20f5 · report
multiple_action_q_function young-geng/jaxcql/JaxCQL/model.py community (archive-listed) ran MIT (permissive) · 18c566cc009ddb07 · report
parition_batch_train_test young-geng/jaxcql/JaxCQL/replay_buffer.py community (archive-listed) ran MIT (permissive) · 3f55f8769dd45c20 · report
simple_separated_format ikostrikov/cql-results/d4rl/rlkit/core/tabulate.py community (archive-listed) ran Apache-2.0 (permissive) · 5cb0c55f58279f59 · report
sliding_mean young-geng/cql/viskit/frontend.py community (archive-listed) ran · fixture could not drive it fingerprinted MIT (permissive) · 40f81b1d5f51ea76 · report
unique young-geng/cql/viskit/core.py community (archive-listed) ran · our draft was wrong fingerprinted MIT (permissive) · 6c7a4a9349a395e9 · report
CQLPolicy runamu/compositional-conservatism/offlinerlkit/policy/model_free/cql.py community (archive-listed) unverified MIT (permissive) · badd95b06c97467f · report
ContinuousCQL corl-team/CORL/algorithms/offline/cql.py community (archive-listed) unverified Apache-2.0 (permissive) · 68d38c5b86b74f05 · report
SACPolicy runamu/compositional-conservatism/offlinerlkit/policy/model_free/cql.py community (archive-listed) unverified MIT (permissive) · 3487f84da3586b8f · report
create_exp_name young-geng/cql/viskit/logging.py community (archive-listed) unverified MIT (permissive) · 3743c5d43e639ab9 · report
dict_to_safe_json young-geng/cql/viskit/logging.py community (archive-listed) unverified MIT (permissive) · 41279dfcda8b39e4 · report
flatten young-geng/jaxcql/viskit/frontend.py community (archive-listed) unverified MIT (permissive) · 2be75b7ac1ba23d4 · report
prefix_metrics young-geng/cql/SimpleSAC/utils.py community (archive-listed) unverified MIT (permissive) · d97e89c7f1953b3a · report
safe_json young-geng/cql/viskit/logging.py community (archive-listed) unverified MIT (permissive) · 07afff96928bd142 · report
update_target_network young-geng/jaxcql/JaxCQL/model.py community (archive-listed) unverified MIT (permissive) · f23c0c9faf00d830 · report
value_and_multi_grad young-geng/jaxcql/JaxCQL/jax_utils.py community (archive-listed) unverified MIT (permissive) · 6f4355a6f1314166 · report

Tasks

Continuous ControlDQN Replay DatasetOffline RLQ-LearningReinforcement LearningReinforcement Learning (RL)continuous-controlreinforcement-learning

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

ConvolutionDQNDense ConnectionsQ-LearningREM

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections