SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2210.10763 · 2022

On the Feasibility of Cross-Task Transfer with Model-Based Reinforcement Learning

arXiv · PDF · Open in the Atlas

Code that ran

7 of 13 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; 5 failures of our instrument; 6 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/2210.10763.json · badge: /api/ran/2210.10763.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
mlpc-ucsd/xtra canonical (classifier label)
classifier basis not recorded on the link
7 ran · 6 no recorded run
FunctionStatusWhere it lives
concat_output_value Ran
ran, honoured the contract we drafted
mlpc-ucsd/xtra/src/core/model.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from marcosaura/RA_RL, is pointer only (licence: NONE) · get_code("05286bc5e4e73ead")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from marcosaura/RA_RL, 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.

conv3x3 Ran
ran; our contract draft was wrong, not the code
mlpc-ucsd/xtra/src/config/atari/model.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from xiamenwcy/pictorial_net, is pointer only (licence: NONE) · get_code("18fbe72ffac82ee3")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from xiamenwcy/pictorial_net, 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.

float_range Ran
ran on a synthesized input
mlpc-ucsd/xtra/src/core/args.py
code served (permissive licence) · get_code("9def2c52a2324abd")
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 function. 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 argparse

def float_range(mini, maxi, include_none=True):
    """Return function handle of an argument type function for 
       ArgumentParser checking a float range: mini <= arg <= maxi
         mini - minimum acceptable argument
         maxi - maximum acceptable argument
         include_none - set to True if none is a valid value
    """

    def float_range_checker(arg):
        """New Type function for argparse - a float within predefined range."""
        if include_none and arg is None:
            return arg
        try:
            f = float(arg)
        except ValueError:
            raise argparse.ArgumentTypeError('must be a floating point number')
        if f < mini or f > maxi:
            raise argparse.ArgumentTypeError('must be in range [' + str(mini) + ' .. ' + str(maxi) + ']')
        return f
    return float_range_checker


ARGS = {
    'mini': 0.0,
    'maxi': 1.0,
    'include_none': True
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function 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
make_atari Ran
ran; our contract draft was wrong, not the code
mlpc-ucsd/xtra/src/core/utils.py
code served (permissive licence) · get_code("11b2c75d0350f659")
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 TimeLimit. 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 gym
import numpy as np

# Create a minimal mock Atari environment that satisfies the requirements
class MockAtariEnv(gym.Env):
    def __init__(self):
        self.observation_space = gym.spaces.Box(low=0, high=255, shape=(84, 84), dtype=np.uint8)
        self.action_space = gym.spaces.Discrete(4)
        self.spec = type('spec', (), {'id': 'PongNoFrameskip-v4'})()
        self._step_count = 0
    
    def get_action_meanings(self):
        return ['NOOP', 'FIRE', 'RIGHT', 'LEFT']
    
    def reset(self, **kwargs):
        self._step_count = 0
        return np.zeros((84, 84), dtype=np.uint8)
    
    def step(self, action):
        self._step_count += 1
        obs = np.random.randint(0, 255, (84, 84), dtype=np.uint8)
        reward = 1.0
        done = self._step_count >= 100
        info = {}
        return obs, reward, done, info
    
    def render(self, mode='human'):
        pass
    
    def close(self):
        pass

# Patch gym.make to return our mock environment
original_gym_make = gym.make
def mock_gym_make(env_id):
    return MockAtariEnv()

gym.make = mock_gym_make

ARGS = {
    'env_id': 'PongNoFrameskip-v4',
    'skip': 4,
    'max_episode_steps': 1000
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
cv2, gym, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type TimeLimit — a TimeLimit output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a TimeLimit 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
make_results_dir Ran
ran; our contract draft was wrong, not the code
mlpc-ucsd/xtra/src/core/utils.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from davidva1/Delayed-EZ, is pointer only (licence: GPL-3.0) · get_code("f12fcbff81a09011")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from davidva1/Delayed-EZ, and GPL-3.0, as GitHub detects it on that repository, is not in the permissive set Syntology serves inline. 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.

renormalize Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
mlpc-ucsd/xtra/src/core/model.py
code served (permissive licence) · get_code("fa63400bb2942968")
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, 4, 3) 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 tensor with shape (2, 4, 3)
# first_dim=1 means we'll normalize along dimension 1
tensor = torch.randn(2, 4, 3)

ARGS = {
    "tensor": tensor,
    "first_dim": 1
}
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, 4, 3) — shape (2, 4, 3) 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
select_action Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
mlpc-ucsd/xtra/src/core/utils.py
code served (permissive licence) · get_code("f20a0c2687734ea6")
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 tuple, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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
from scipy.stats import entropy

np.random.seed(0)

# Construct visit_counts as a list of positive numbers
# The function iterates over visit_counts, raises to power (1/temperature),
# sums them, normalizes to get probabilities, then computes entropy
visit_counts = [1.5, 2.3, 0.8, 3.2]

# temperature parameter - used as divisor in exponentiation
temperature = 1.0

# deterministic parameter - boolean flag controlling action selection
deterministic = False

ARGS = {
    "visit_counts": visit_counts,
    "temperature": temperature,
    "deterministic": deterministic,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
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
concat_output Not yet run
unverified (harvested, no recorded run)
mlpc-ucsd/xtra/src/core/model.py
code served (permissive licence) · get_code("bef1e7b3f9ae1da8")
How it ran

no invocation recorded.

get_node_distribution Not yet run
unverified (harvested, no recorded run)
mlpc-ucsd/xtra/src/core/mcts.py
code served (permissive licence) · get_code("d8a8da7b1cae2f4a")
How it ran

no invocation recorded.

mlp Not yet run
unverified (harvested, no recorded run)
mlpc-ucsd/xtra/src/config/atari/model.py
code served (permissive licence) · get_code("a688f4e7c0e44610")
How it ran

no invocation recorded.

prepare_imitation_learning Not yet run
unverified (harvested, no recorded run)
mlpc-ucsd/xtra/src/core/game_detach.py
code served (permissive licence) · get_code("8808a2cd042359dd")
How it ran

no invocation recorded.

prepare_multi_target_cpu Not yet run
unverified (harvested, no recorded run)
mlpc-ucsd/xtra/src/core/game_detach.py
code served (permissive licence) · get_code("108a7e706028d3eb")
How it ran

no invocation recorded.

prepare_multi_target_only_value_cpu Not yet run
unverified (harvested, no recorded run)
mlpc-ucsd/xtra/src/core/game_detach.py
code served (permissive licence) · get_code("d880585fd8b2ad45")
How it ran

no invocation recorded.

Also present in other papers' code

Of 13 samples lifted from this paper's linked repositories, 13 carry a function identity and 0 do not. Of the 13 distinct functions with an identity, 7 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 0 the same month, 7 later) and 6 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
conv3x3 15 other papers
9 dated earlier, 6 later
1512.03385 (2015-12)
Deep Residual Learning for Image Recognition
1805.04635 (2018-05)
Direction-aware Spatial Context Features for Shadow Detection and Removal
1807.01697 (2018-07)
Benchmarking Neural Network Robustness to Common Corruptions and Surface Variations
and 12 more not named here
renormalize 3 other papers
1 dated earlier, 2 later
2201.12096 (2022-01)
Mask-based Latent Reconstruction for Reinforcement Learning
2404.05440 (2024-04)
Tree Search-Based Policy Optimization under Stochastic Execution Delay
2410.03119 (2024-10)
Spatial-Aware Decision-Making with Ring Attractors in Reinforcement Learning Systems
concat_output_value 2 other papers
2 later
2404.05440 (2024-04)
Tree Search-Based Policy Optimization under Stochastic Execution Delay
2410.03119 (2024-10)
Spatial-Aware Decision-Making with Ring Attractors in Reinforcement Learning Systems
make_atari 1 other paper
1 later
2404.05440 (2024-04)
Tree Search-Based Policy Optimization under Stochastic Execution Delay
make_results_dir 1 other paper
1 later
2404.05440 (2024-04)
Tree Search-Based Policy Optimization under Stochastic Execution Delay
mlp 1 other paper
1 later
2404.05440 (2024-04)
Tree Search-Based Policy Optimization under Stochastic Execution Delay
select_action 1 other paper
1 later
2404.05440 (2024-04)
Tree Search-Based Policy Optimization under Stochastic Execution Delay

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

Reinforcement Learning (RL) algorithms can solve challenging control problems directly from image observations, but they often require millions of environment interactions to do so. Recently, model-based RL algorithms have greatly improved sample-efficiency by concurrently learning an internal model of the world, and supplementing real environment interactions with imagined rollouts for policy improvement. However, learning an effective model of the world from scratch is challenging, and in stark contrast to humans that rely heavily on world understanding and visual cues for learning new skills. In this work, we investigate whether internal models learned by modern model-based RL algorithms can be leveraged to solve new, distinctly different tasks faster. We propose Model-Based Cross-Task Transfer (XTRA), a framework for sample-efficient online RL with scalable pretraining and finetuning of learned world models. By offline multi-task pretraining and online cross-task finetuning, we achieve substantial improvements over a baseline trained from scratch; we improve mean performance of model-based algorithm EfficientZero by 23%, and by as much as 71% in some instances.

For agents

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

get_harvested_code_for_paper("2210.10763")
get_code_for_paper("2210.10763")
have("2210.10763")

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

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

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

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

Connect an agent — have() is free.