SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2004.04136 · 2020

CURL: Contrastive Unsupervised Representations for Reinforcement Learning

Pieter Abbeel, Michael Laskin, Aravind Srinivas

arXiv · PDF · Open in the Atlas

Code that ran

7 of 8 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 6 failures of our instrument; 1 no recorded run), measured 2026-11-21; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2004.04136.json · badge: /api/ran/2004.04136.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
MishaLaskin/curl canonical (classifier label)
classifier basis not recorded on the link
6 ran · 0 no recorded run
asparius/barlowrl community (classifier label)
classifier basis not recorded on the link
1 ran · 0 no recorded run
KarlXing/RL-Visual-Continuous-Control community
Papers with Code archive
0 ran · 1 no recorded run
FunctionStatusWhere it lives
gaussian_logprob Ran
ran; our contract draft was wrong, not the code
MishaLaskin/curl/curl_sac.py
code served (permissive licence) · get_code("daa7b3a0355eb7c3")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned Tensor, ndim 2, dtype family float, shape (2, 1) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

# Create a small noise tensor with shape (batch_size=2, feature_dim=4)
noise = torch.randn(2, 4)

# Create a small log_std tensor with shape (batch_size=2, feature_dim=4)
log_std = torch.randn(2, 4)

ARGS = {
    "noise": noise,
    "log_std": log_std,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 1) — shape (2, 1) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
make_dir Ran
ran; our contract draft was wrong, not the code
MishaLaskin/curl/utils.py
pointer only (licence: MIT); the stored copy get_code serves, from silihuang-ai/idt, is pointer only (licence: NONE) · get_code("42958997018c3581")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from silihuang-ai/idt, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

make_encoder Ran
ran; our contract draft was wrong, not the code
MishaLaskin/curl/encoder.py
code served (permissive licence) · get_code("cd7d4d2ebf4b04c8")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned PixelEncoder. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

ARGS = {
    'encoder_type': 'pixel',
    'obs_shape': (3, 64, 64),
    'feature_dim': 50,
    'num_layers': 2,
    'num_filters': 32,
    'output_logits': False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type PixelEncoder — a PixelEncoder output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a PixelEncoder output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
module_hash Ran
ran, honoured the contract we drafted
MishaLaskin/curl/utils.py
pointer only (licence: MIT); the stored copy get_code serves, from agentification/RP_PGM, is pointer only (licence: NONE) · get_code("63cc0b17d508c362")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from agentification/RP_PGM, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

off_diagonal Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
asparius/barlowrl/agent.py
pointer only (licence: MIT); the stored copy get_code serves, from neurai-lab/tamil, is pointer only (licence: NONE) · get_code("3e30d88eaef01190")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from neurai-lab/tamil, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

preprocess_obs Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
MishaLaskin/curl/utils.py
code served (permissive licence) · get_code("975f23eeea267e55")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 4.5, prompt python_fixture_v1) and returned Tensor, ndim 4, dtype family float, shape (2, 3, 4, 5) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create a small image tensor with shape (batch=2, channels=3, height=4, width=5)
# Values should be in [0, 255] range as typical for image preprocessing
obs = torch.randint(0, 256, (2, 3, 4, 5), dtype=torch.float32)

# bits parameter - using default value of 5
bits = 5

ARGS = {
    'obs': obs,
    'bits': bits
}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 4, dtype family float, shape (2, 3, 4, 5) — shape (2, 3, 4, 5) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
squash Ran
ran; our contract draft was wrong, not the code
MishaLaskin/curl/curl_sac.py
code served (permissive licence) · get_code("e4f442d1770eacd1")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn.functional as F

torch.manual_seed(0)

# Create small tensors for the function arguments
batch_size = 2
dim = 4

# mu: input tensor that will be passed through tanh
mu = torch.randn(batch_size, dim)

# pi: tensor that will be passed through tanh (can be None)
pi = torch.randn(batch_size, dim)

# log_pi: log probability tensor (can be None)
log_pi = torch.randn(batch_size, 1)

ARGS = {
    "mu": mu,
    "pi": pi,
    "log_pi": log_pi,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
CURL Not yet run
unverified (harvested, no recorded run)
KarlXing/RL-Visual-Continuous-Control/src/agent/curl.py
code served (permissive licence) · get_code("b87a008932a30bc3")
How it ran

no invocation recorded.

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 distinct functions with an identity, 7 are also present in other papers whose code we hold (6 with at least one paper dated earlier, 3 the same month, 7 later) and 1 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
off_diagonal 23 other papers
1 dated earlier, 22 later · 5 only as an assembly brick
1908.10084 (2019-08)
Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks
2007.16189 (2020-07)
Self-supervised learning through the eyes of a child
2103.03230 (2021-03)
Barlow Twins: Self-Supervised Learning via Redundancy Reduction
and 20 more not named here
gaussian_logprob 15 other papers
1 dated earlier, 1 the same month, 13 later · 3 only as an assembly brick
1910.01741 (2019-10)
Improving Sample Efficiency in Model-Free Reinforcement Learning from Images
2004.14990 (2020-04)
Reinforcement Learning with Augmented Data
2007.04309 (2020-07)
Self-Supervised Policy Adaptation during Deployment
and 12 more not named here
squash 14 other papers
1 dated earlier, 1 the same month, 12 later · 3 only as an assembly brick
1910.01741 (2019-10)
Improving Sample Efficiency in Model-Free Reinforcement Learning from Images
2004.14990 (2020-04)
Reinforcement Learning with Augmented Data
2007.04309 (2020-07)
Self-Supervised Policy Adaptation during Deployment
and 11 more not named here
make_dir 8 other papers
1 dated earlier, 7 later
1910.01741 (2019-10)
Improving Sample Efficiency in Model-Free Reinforcement Learning from Images
2010.09163 (2020-10)
D2RL: Deep Dense Architectures in Reinforcement Learning
2202.06258 (2022-02)
Flowformer: Linearizing Transformers with Conservation Flows
and 5 more not named here
make_encoder 5 other papers
1 the same month, 4 later
2004.14990 (2020-04)
Reinforcement Learning with Augmented Data
2010.09163 (2020-10)
D2RL: Deep Dense Architectures in Reinforcement Learning
2205.00943 (2022-05)
CCLF: A Contrastive-Curiosity-Driven Learning Framework for Sample-Efficient Reinforcement Learning
and 2 more not named here
module_hash 5 other papers
1 dated earlier, 4 later
1910.01741 (2019-10)
Improving Sample Efficiency in Model-Free Reinforcement Learning from Images
2010.09163 (2020-10)
D2RL: Deep Dense Architectures in Reinforcement Learning
2203.12759 (2022-03)
Asynchronous Reinforcement Learning for Real-Time Control of Physical Robots
and 2 more not named here
preprocess_obs 4 other papers
1 dated earlier, 3 later
1910.01741 (2019-10)
Improving Sample Efficiency in Model-Free Reinforcement Learning from Images
2010.09163 (2020-10)
D2RL: Deep Dense Architectures in Reinforcement Learning
2203.12759 (2022-03)
Asynchronous Reinforcement Learning for Real-Time Control of Physical Robots
and 1 more not named here

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-21.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

We present CURL: Contrastive Unsupervised Representations for Reinforcement Learning. CURL extracts high-level features from raw pixels using contrastive learning and performs offpolicy control on top of the extracted features. CURL outperforms prior pixel-based methods, both model-based and model-free, on complex tasks in the DeepMind Control Suite and Atari Games showing 1.9x and 1.2x performance gains at the 100K environment and interaction steps benchmarks respectively. On the DeepMind Control Suite, CURL is the first image-based algorithm to nearly match the sample-efficiency of methods that use state-based features. Our code is open-sourced and available at https://www. github.com/MishaLaskin/curl.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2004.04136")
get_code_for_paper("2004.04136")
have("2004.04136")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2004.04136.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2004.04136.svg)](https://syntology.ai/paper/2004.04136)

Connect an agent — have() is free.