SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2106.02193 · ICLR · 2022

Cross-Trajectory Representation Learning for Zero-Shot Generalization in RL

Bogdan Mazoure, Devon Hjelm, Andrey Kolobov, Patrick Macalpine, Ahmed Ahmed

arXiv · PDF · Open in the Atlas

Code that ran

7 of 11 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (2 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 6 have no contract verdict; 1 failure of our instrument; 4 no recorded run), measured 2026-11-22; 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/2106.02193.json · badge: /api/ran/2106.02193.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
bmazoure/ctrl_public canonical (classifier label)
classifier basis: classifier_2025
7 ran · 4 no recorded run
FunctionStatusWhere it lives
MLP Ran
ran on a synthesized input · constructed an object; no result was computed
bmazoure/ctrl_public/models.py
pointer only (licence: NONE) · get_code("32fdabb6701ee743")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, bmazoure/ctrl_public 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.

ResidualBlock Ran
ran on a synthesized input · constructed an object; no result was computed
bmazoure/ctrl_public/models.py
pointer only (licence: NONE) · get_code("bb6a2e2f9d7073da")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, bmazoure/ctrl_public 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.

default_conv_init Ran
ran on a synthesized input
bmazoure/ctrl_public/models.py
pointer only (licence: NONE) · get_code("5e7d81a9ce871d74")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, bmazoure/ctrl_public 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.

default_linear_init Ran
ran on a synthesized input
bmazoure/ctrl_public/models.py
pointer only (licence: NONE) · get_code("58ffb3cae4f10d34")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, bmazoure/ctrl_public 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.

default_logits_init Ran
ran on a synthesized input
bmazoure/ctrl_public/models.py
pointer only (licence: NONE) · get_code("5d8cdfb148808635")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, bmazoure/ctrl_public 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.

default_relu_init Ran
ran on a synthesized input
bmazoure/ctrl_public/models.py
pointer only (licence: NONE) · get_code("fe9b930c7511fff1")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, bmazoure/ctrl_public 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.

select_action Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
bmazoure/ctrl_public/algo.py
pointer only (licence: NONE) · get_code("2ed07b9462bf332f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, bmazoure/ctrl_public 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.

CTRLModel Not yet run
unverified (harvested, no recorded run)
bmazoure/ctrl_public/models.py
pointer only (licence: NONE) · get_code("23cdb200dcee7eeb")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, bmazoure/ctrl_public 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. No invocation recorded.

Impala Not yet run
unverified (harvested, no recorded run)
bmazoure/ctrl_public/models.py
pointer only (licence: NONE) · get_code("9b96a172a1cbf7d9")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, bmazoure/ctrl_public 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. No invocation recorded.

compute_distance Not yet run
unverified (harvested, no recorded run)
bmazoure/ctrl_public/algo.py
pointer only (licence: NONE) · get_code("f8b1ad84240423bd")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, bmazoure/ctrl_public 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. No invocation recorded.

safe_mean Not yet run
unverified (harvested, no recorded run)
bmazoure/ctrl_public/train_ppo.py
pointer only (licence: NONE) · get_code("93ff26fbeba24772")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, bmazoure/ctrl_public 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. No invocation recorded.

Also present in other papers' code

Of 11 samples lifted from this paper's linked repositories, 11 carry a function identity and 0 do not. Of the 11 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 11 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.

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

Repositories linked to this paper

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

Abstract

A highly desirable property of a reinforcement learning (RL) agent -and a major difficulty for deep RL approaches -is the ability to generalize policies learned on a few tasks over a high-dimensional observation space to similar tasks not seen during training. Many promising approaches to this challenge consider RL as a process of training two functions simultaneously: a complex nonlinear encoder that maps high-dimensional observations to a latent representation space, and a simple linear policy over this space. We posit that a superior encoder for zero-shot generalization in RL can be trained by using solely an auxiliary SSL objective if the training process encourages the encoder to map behaviorally similar observations to similar representations, as reward-based signal can cause overfitting in the encoder (Raileanu and Fergus, 2021). We propose Cross Trajectory Representation Learning (CTRL), a method that runs within an RL agent and conditions its encoder to recognize behavioral similarity in observations by applying a novel SSL objective to pairs of trajectories from the agent's policies. CTRL can be viewed as having the same effect as inducing a pseudo-bisimulation metric but, crucially, avoids the use of rewards and associated overfitting risks. Our experiments 1 ablate various components of CTRL and demonstrate that in combination with PPO it achieves better generalization performance on the challenging Procgen benchmark suite (Cobbe et al., 2020).

For agents

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

get_harvested_code_for_paper("2106.02193")
get_code_for_paper("2106.02193")
have("2106.02193")

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

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

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

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

Connect an agent — have() is free.