SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2110.04935 · 2021

Learning Temporally-Consistent Representations for Data-Efficient Reinforcement Learning

arXiv · PDF · Open in the Atlas

Code that ran

6 of 6 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 1 has no contract verdict; 4 failures of our instrument; 0 no recorded run), measured 2026-11-23; 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/2110.04935.json · badge: /api/ran/2110.04935.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
anon-researcher-repo/ksl canonical (classifier label)
classifier basis not recorded on the link
6 ran · 0 no recorded run
FunctionStatusWhere it lives
center_crop_image Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
anon-researcher-repo/ksl/ksl/utils.py
code served (permissive licence) · get_code("31e6960f8b942b0d")
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 Tensor, ndim 3, dtype family float, shape (2, 2, 2) 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)

# The function expects:
# - image: a tensor with shape (C, H, W) where it accesses image.shape[1:]
# - output_size: an integer for the crop size

# Create a small image tensor with shape (batch, height, width)
# Using distinct dimensions: batch=2, height=4, width=3
image = torch.randn(2, 4, 3)

# output_size should be smaller than the image dimensions
output_size = 2

ARGS = {
    "image": image,
    "output_size": output_size,
}
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 Tensor, ndim 3, dtype family float, shape (2, 2, 2) — shape (2, 2, 2) 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
loss_fn Ran
ran; our contract draft was wrong, not the code
anon-researcher-repo/ksl/ksl/ksl.py
pointer only (licence: MIT); the stored copy get_code serves, from Namkyeong/BGRL_Pytorch, is pointer only (licence: NONE) · get_code("00cae89471470576")
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 Namkyeong/BGRL_Pytorch, 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.

mlp Ran
ran; our contract draft was wrong, not the code
anon-researcher-repo/ksl/ksl/utils.py
pointer only (licence: MIT); the stored copy get_code serves, from xingyu-lin/softagent, is pointer only (licence: NONE) · get_code("bdef24507a4ccfa7")
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 xingyu-lin/softagent, 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.

random_crop Ran
ran on a synthesized input
anon-researcher-repo/ksl/ksl/replay_buffer.py
code served (permissive licence) · get_code("0102ca5f42b3d967")
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 ndarray, ndim 4, dtype family int, shape (2, 3, 84, 84) 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 numpy as np

np.random.seed(0)

# Create a small batch of images: (B=2, C=3, H=100, W=100)
# This gives enough space to crop from with padding
imgs = np.random.randint(0, 256, size=(2, 3, 100, 100), dtype=np.uint8)

# Padding amount
image_pad = 4

# Output size
out = 84

ARGS = {
    "imgs": imgs,
    "image_pad": image_pad,
    "out": out,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 4, dtype family int, shape (2, 3, 84, 84) — shape (2, 3, 84, 84) 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
random_translate Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
anon-researcher-repo/ksl/ksl/replay_buffer.py
pointer only (licence: MIT); the stored copy get_code serves, from MishaLaskin/rad, is pointer only (licence: NONE) · get_code("77241bfa75e23abd")
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 MishaLaskin/rad, 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.

to_np Ran
ran, honoured the contract we drafted
anon-researcher-repo/ksl/ksl/utils.py
pointer only (licence: MIT); the stored copy get_code serves, from xingyu-lin/softagent, is pointer only (licence: NONE) · get_code("6ee8c9901ab984a9")
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 xingyu-lin/softagent, 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.

Also present in other papers' code

Of 6 samples lifted from this paper's linked repositories, 6 carry a function identity and 0 do not. Of the 6 distinct functions with an identity, 5 are also present in other papers whose code we hold (5 with at least one paper dated earlier, 1 the same month, 4 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
mlp 11 other papers
2 dated earlier, 1 the same month, 8 later · 2 only as an assembly brick
1812.05905 (2018-12)
Soft Actor-Critic Algorithms and Applications
2004.13649 (2020-04)
Image Augmentation Is All You Need: Regularizing Deep Reinforcement Learning from Pixels
2110.14118 (2021-10)
Object-Aware Regularization for Addressing Causal Confusion in Imitation Learning
and 8 more not named here
to_np 9 other papers
2 dated earlier, 7 later · 2 only as an assembly brick
1812.05905 (2018-12)
Soft Actor-Critic Algorithms and Applications
2004.13649 (2020-04)
Image Augmentation Is All You Need: Regularizing Deep Reinforcement Learning from Pixels
2305.16683 (2023-05)
Future-conditioned Unsupervised Pretraining for Decision Transformer
and 6 more not named here
loss_fn 7 other papers
2 dated earlier, 4 later, 1 same year, order not determinable · 3 only as an assembly brick
2006.07733 (2020-06)
Bootstrap your own latent: A new approach to self-supervised Learning
2021.acl-long.402 (2021 (year only))
Bootstrapped Unsupervised Sentence Representation Learning
2102.06514 (2021-02)
Large-Scale Representation Learning on Graphs via Bootstrapping
and 4 more not named here
center_crop_image 3 other papers
2 dated earlier, 1 later · 2 only as an assembly brick
2004.04136 (2020-04)
CURL: Contrastive Unsupervised Representations for Reinforcement Learning
2004.14990 (2020-04)
Reinforcement Learning with Augmented Data
2205.00943 (2022-05)
CCLF: A Contrastive-Curiosity-Driven Learning Framework for Sample-Efficient Reinforcement Learning
random_translate 1 other paper
1 dated earlier
2004.14990 (2020-04)
Reinforcement Learning with Augmented Data

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-23.

Repositories linked to this paper

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

Abstract

Deep reinforcement learning (RL) agents that exist in high-dimensional state spaces, such as those composed of images, have interconnected learning burdens. Agents must learn an action-selection policy that completes their given task, which requires them to learn a representation of the state space that discerns between useful and useless information. The reward function is the only supervised feedback that RL agents receive, which causes a representation learning bottleneck that can manifest in poor sample efficiency. We present $k$-Step Latent (KSL), a new representation learning method that enforces temporal consistency of representations via a self-supervised auxiliary task wherein agents learn to recurrently predict action-conditioned representations of the state space. The state encoder learned by KSL produces low-dimensional representations that make optimization of the RL task more sample efficient. Altogether, KSL produces state-of-the-art results in both data efficiency and asymptotic performance in the popular PlaNet benchmark suite. Our analyses show that KSL produces encoders that generalize better to new tasks unseen during training, and its representations are more strongly tied to reward, are more invariant to perturbations in the state space, and move more smoothly through the temporal axis of the RL problem than other methods such as DrQ, RAD, CURL, and SAC-AE.

For agents

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

get_harvested_code_for_paper("2110.04935")
get_code_for_paper("2110.04935")
have("2110.04935")

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

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

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

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

Connect an agent — have() is free.