SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2211.09817 · NeurIPS · 2022

On the Effect of Pre-training for Transformer in Different Modality on Offline Reinforcement Learning

Shiro Takagi

arXiv · PDF · Open in the Atlas

Code that ran

7 of 14 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; 4 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 3 failures of our instrument; 7 no recorded run); 2 of them were also run on the host, not in the jail, by the peer-agreement lane that set their level, measured 2026-11-22; 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/2211.09817.json · badge: /api/ran/2211.09817.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
rail-berkeley/d4rl canonical (classifier label)
classifier basis not recorded on the link
5 ran · 4 no recorded run
machelreid/can-wikipedia-help-offline-rl canonical (classifier label)
classifier basis not recorded on the link
1 ran · 3 no recorded run
t46/pre-training-different-modality-offline-rl port (classifier label)
classifier basis: classifier_2025
1 ran · 0 no recorded run
FunctionStatusWhere it lives
discount_cumsum Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
machelreid/can-wikipedia-help-offline-rl/code/eval_model.py
pointer only (licence: MIT); the stored copy get_code serves, from bkkgbkjb/oppo, is pointer only (licence: NONE) · get_code("0161b27cbe3cc58d")
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 bkkgbkjb/oppo, 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.

discount_cumsum Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
t46/pre-training-different-modality-offline-rl/can-wikipedia-help-offline-rl/experiment.py
code served (permissive licence) · get_code("0d4fc87c387d9018")
How it ran

Ran in Syntology's jail on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned ndarray, ndim 1, dtype family float, shape (5,) as a later run recorded it. The image it ran in was not recorded. The comparison behind this sample's level is a different run: the peer-agreement lane ran it again on the host, not in the jail (report dated 2026-09-04T22:31:01Z). 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

# Create a small trajectory of rewards
x = np.array([1.0, 2.0, 3.0, 4.0, 5.0])

# Set discount factor
gamma = 0.99

ARGS = {
    "x": x,
    "gamma": gamma,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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 1, dtype family float, shape (5,) — shape (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
clamp Ran
ran, honoured the contract we drafted
rail-berkeley/d4rl/d4rl/carla/carla_env.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from orybkin/lexa-benchmark, is pointer only (licence: NONE) · get_code("ccc25780948874cb")
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 orybkin/lexa-benchmark, 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.

get_keys Ran
ran; our contract draft was wrong, not the code
rail-berkeley/d4rl/d4rl/offline_env.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from seohongpark/HILP, is pointer only (licence: NONE) · get_code("395635db622171fa")
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 seohongpark/HILP, 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.

get_returns Ran
ran, honoured the contract we drafted
rail-berkeley/d4rl/d4rl/ope.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from orybkin/lexa-benchmark, is pointer only (licence: NONE) · get_code("0817d0a04cd3f2f1")
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 orybkin/lexa-benchmark, 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.

parse_maze Ran
ran, honoured the contract we drafted
rail-berkeley/d4rl/d4rl/pointmaze/maze_model.py
code served (permissive licence) · get_code("ea95f69594dd2e9c")
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 2, dtype family int, shape (2, 4) 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

WALL = 10
EMPTY = 11
GOAL = 12

def parse_maze(maze_str):
    lines = maze_str.strip().split('\\')
    width, height = (len(lines), len(lines[0]))
    maze_arr = np.zeros((width, height), dtype=np.int32)
    for w in range(width):
        for h in range(height):
            tile = lines[w][h]
            if tile == '#':
                maze_arr[w][h] = WALL
            elif tile == 'G':
                maze_arr[w][h] = GOAL
            elif tile == ' ' or tile == 'O' or tile == '0':
                maze_arr[w][h] = EMPTY
            else:
                raise ValueError('Unknown tile type: %s' % tile)
    return maze_arr

maze_str = "# G \\ O 0 #"

ARGS = {
    "maze_str": maze_str
}
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 2, dtype family int, shape (2, 4) — shape (2, 4) 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
ranking_correlation_metric Ran
ran, honoured the contract we drafted
rail-berkeley/d4rl/d4rl/ope.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from orybkin/lexa-benchmark, is pointer only (licence: NONE) · get_code("ec64670acc5c32df")
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 orybkin/lexa-benchmark, 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.

compute_distance Not yet run
unverified (harvested, no recorded run)
rail-berkeley/d4rl/d4rl/carla/carla_env.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from orybkin/lexa-benchmark, is pointer only (licence: NONE) · get_code("b7eec81dfe2b1b23")
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 orybkin/lexa-benchmark, 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. No invocation recorded.

download_dataset_from_url Not yet run
unverified (harvested, no recorded run)
rail-berkeley/d4rl/d4rl/offline_env.py
code served (permissive licence) · get_code("88d6d21f699682b1")
How it ran

no invocation recorded.

filepath_from_url Not yet run
unverified (harvested, no recorded run)
rail-berkeley/d4rl/d4rl/offline_env.py
code served (permissive licence) · get_code("e14321aa0b5c0b78")
How it ran

no invocation recorded.

get_optimizer Not yet run
unverified (harvested, no recorded run)
machelreid/can-wikipedia-help-offline-rl/code/utils.py
code served (permissive licence) · get_code("1b1a9ee7bf5220cb")
How it ran

no invocation recorded.

get_optimizer Not yet run
unverified (harvested, no recorded run)
machelreid/can-wikipedia-help-offline-rl/code/lm_cotraining/utils.py
code served (permissive licence) · get_code("8e09cf1821466315")
How it ran

no invocation recorded.

is_within_distance Not yet run
unverified (harvested, no recorded run)
rail-berkeley/d4rl/d4rl/carla/carla_env.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from orybkin/lexa-benchmark, is pointer only (licence: NONE) · get_code("de9c8fb5e38fa8ed")
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 orybkin/lexa-benchmark, 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. No invocation recorded.

load_tf_weights_in_gpt2 Not yet run
unverified (harvested, no recorded run)
machelreid/can-wikipedia-help-offline-rl/code/decision_transformer/models/trajectory_gpt2.py
pointer only (licence: MIT); the stored copy get_code serves, from ybseo-academy/TAALM, is pointer only (licence: NONE) · get_code("cb4e99dd4b50f69d")
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 ybseo-academy/TAALM, 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. No invocation recorded.

Also present in other papers' code

Of 14 samples lifted from this paper's linked repositories, 14 carry a function identity and 0 do not. Of the 13 distinct functions with an identity, 11 are also present in other papers whose code we hold (11 with at least one paper dated earlier, 2 the same month, 11 later) and 2 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
discount_cumsum 17 other papers
6 dated earlier, 1 the same month, 10 later
2106.01345 (2021-06)
Decision Transformer: Reinforcement Learning via Sequence Modeling
2110.06206 (2021-10)
StARformer: Transformer with State-Action-Reward Representations for Visual Reinforcement Learning
2111.10364 (2021-11)
Generalized Decision Transformer for Offline Hindsight Information Matching
and 14 more not named here
load_tf_weights_in_gpt2 11 other papers
1 dated earlier, 1 the same month, 9 later
2206.11871 (2022-06)
Offline RL for Natural Language Generation with Implicit Language Q Learning
2211.11694 (2022-11)
Exploring Discrete Diffusion Models for Image Captioning
2212.04501 (2022-12)
Learning Video Representations from Large Language Models
and 8 more not named here
clamp 6 other papers
5 dated earlier, 1 later
1911.04175 (2019-11)
Multi-Agent Connected Autonomous Driving using Deep Reinforcement Learning
1911.10868 (2019-11)
End-to-End Model-Free Reinforcement Learning for Urban Driving using Implicit Affordances
2002.00434 (2020-02)
Integrating Deep Reinforcement Learning with Model-based Path Planners for Automated Driving
and 3 more not named here
filepath_from_url 6 other papers
1 dated earlier, 5 later
2004.07219 (2020-04)
D4RL: Datasets for Deep Data-Driven Reinforcement Learning
2306.09303 (2023-06)
Datasets and Benchmarks for Offline Safe Reinforcement Learning
2312.01473 (2023-12)
Regularity as Intrinsic Reward for Free Play
and 3 more not named here
get_keys 6 other papers
1 dated earlier, 5 later
2004.07219 (2020-04)
D4RL: Datasets for Deep Data-Driven Reinforcement Learning
2306.09303 (2023-06)
Datasets and Benchmarks for Offline Safe Reinforcement Learning
2312.01473 (2023-12)
Regularity as Intrinsic Reward for Free Play
and 3 more not named here
download_dataset_from_url 4 other papers
1 dated earlier, 3 later
2004.07219 (2020-04)
D4RL: Datasets for Deep Data-Driven Reinforcement Learning
2312.01473 (2023-12)
Regularity as Intrinsic Reward for Free Play
2402.15567 (2024-02)
Foundation Policies with Hilbert Representations
and 1 more not named here
is_within_distance 3 other papers
1 dated earlier, 1 later, 1 same year, order not determinable
2004.07219 (2020-04)
D4RL: Datasets for Deep Data-Driven Reinforcement Learning
ijcai2022_0528 (2022 (year only))
Multi-Constraint Deep Reinforcement Learning for Smooth Action Control
2312.01473 (2023-12)
Regularity as Intrinsic Reward for Free Play
parse_maze 3 other papers
1 dated earlier, 2 later
2004.07219 (2020-04)
D4RL: Datasets for Deep Data-Driven Reinforcement Learning
2312.01473 (2023-12)
Regularity as Intrinsic Reward for Free Play
2606.15359 (2026-06)
DiRecT: Safe Diffusion-Based Planning via Receding-Horizon Denoising
compute_distance 2 other papers
1 dated earlier, 1 later
2004.07219 (2020-04)
D4RL: Datasets for Deep Data-Driven Reinforcement Learning
2312.01473 (2023-12)
Regularity as Intrinsic Reward for Free Play
get_returns 2 other papers
1 dated earlier, 1 later
2004.07219 (2020-04)
D4RL: Datasets for Deep Data-Driven Reinforcement Learning
2312.01473 (2023-12)
Regularity as Intrinsic Reward for Free Play
ranking_correlation_metric 2 other papers
1 dated earlier, 1 later
2004.07219 (2020-04)
D4RL: Datasets for Deep Data-Driven Reinforcement Learning
2312.01473 (2023-12)
Regularity as Intrinsic Reward for Free Play

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

We empirically investigate how pre-training on data of different modalities, such as language and vision, affects fine-tuning of Transformer-based models to Mujoco offline reinforcement learning tasks. Analysis of the internal representation reveals that the pre-trained Transformers acquire largely different representations before and after pre-training, but acquire less information of data in fine-tuning than the randomly initialized one. A closer look at the parameter changes of the pretrained Transformers reveals that their parameters do not change that much and that the bad performance of the model pre-trained with image data could partially come from large gradients and gradient clipping. To study what information the Transformer pre-trained with language data utilizes, we fine-tune this model with no context provided, finding that the model learns efficiently even without context information. Subsequent follow-up analysis supports the hypothesis that pre-training with language data is likely to make the Transformer get context-like information and utilize it to solve the downstream task. * https://t46.github.io/ † Code is available at https://github.com/t46/pre-training-different-modality-offline-rl ‡ LaTeX source is available at https://github.com/t46/paper-pre-training-different-modality-offline-rl 36th Conference on Neural Information Processing Systems (NeurIPS 2022).

For agents

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

get_harvested_code_for_paper("2211.09817")
get_code_for_paper("2211.09817")
have("2211.09817")

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

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

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

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

Connect an agent — have() is free.