Papers › On the Effect of Pre-training for Transformer in Different Modality on Offline...

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

17 Nov 2022arXiv:2211.09817archive 2025-07-28

Shiro Takagi

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 pre-trained 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.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2211.09817")

Code

Syntology Ran 6 of 14 code samples harvested from 3 repositories linked to this paper; 8 have no recorded run. Of those that ran: 2 ran · fixture could not drive it; 4 ran with no contract checked.

By repository: official repository: 1 sample from 1 repository, 1 ran; found in paper text by Syntology: 13 samples from 2 repositories, 5 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

t46/pre-training-different-modality-offline-rl officialmentioned in paperpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

14 samples harvested; 6 ran; 0 honoured the contract we drafted; 8 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

2ran · fixture could not drive it
4ran
8unverified

Licence: 0 of the 14 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 3 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

discount_cumsum t46/pre-training-different-modality-offline-rl/can-wikipedia-help-offline-rl/experiment.py official repository ran · fixture could not drive it fingerprinted MIT (permissive) · 0d4fc87c387d9018 · report
discount_cumsum machelreid/can-wikipedia-help-offline-rl/code/eval_model.py found in paper text by Syntology ran · fixture could not drive it fingerprinted MIT (permissive) · 0161b27cbe3cc58d · report
clamp rail-berkeley/d4rl/d4rl/carla/carla_env.py found in paper text by Syntology ran fingerprinted Apache-2.0 (permissive) · ccc25780948874cb · report
get_returns rail-berkeley/d4rl/d4rl/ope.py found in paper text by Syntology ran Apache-2.0 (permissive) · 0817d0a04cd3f2f1 · report
parse_maze rail-berkeley/d4rl/d4rl/pointmaze/maze_model.py found in paper text by Syntology ran fingerprinted Apache-2.0 (permissive) · ea95f69594dd2e9c · report
ranking_correlation_metric rail-berkeley/d4rl/d4rl/ope.py found in paper text by Syntology ran Apache-2.0 (permissive) · ec64670acc5c32df · report
compute_distance rail-berkeley/d4rl/d4rl/carla/carla_env.py found in paper text by Syntology unverified Apache-2.0 (permissive) · b7eec81dfe2b1b23 · report
download_dataset_from_url rail-berkeley/d4rl/d4rl/offline_env.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 88d6d21f699682b1 · report
filepath_from_url rail-berkeley/d4rl/d4rl/offline_env.py found in paper text by Syntology unverified Apache-2.0 (permissive) · e14321aa0b5c0b78 · report
get_keys rail-berkeley/d4rl/d4rl/offline_env.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 395635db622171fa · report
get_optimizer machelreid/can-wikipedia-help-offline-rl/code/utils.py found in paper text by Syntology unverified MIT (permissive) · 1b1a9ee7bf5220cb · report
get_optimizer machelreid/can-wikipedia-help-offline-rl/code/lm_cotraining/utils.py found in paper text by Syntology unverified MIT (permissive) · 8e09cf1821466315 · report
is_within_distance rail-berkeley/d4rl/d4rl/carla/carla_env.py found in paper text by Syntology unverified Apache-2.0 (permissive) · de9c8fb5e38fa8ed · report
load_tf_weights_in_gpt2 machelreid/can-wikipedia-help-offline-rl/code/decision_transformer/models/trajectory_gpt2.py found in paper text by Syntology unverified MIT (permissive) · cb4e99dd4b50f69d · report

Tasks

MuJoCo

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Absolute Position EncodingsAdamAttentionBPEDense ConnectionsDropoutLabel SmoothingLayer NormalizationLinear LayerMulti-Head AttentionPosition-Wise Feed-Forward LayerResidual ConnectionSoftmaxTransformer

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections