SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2405.14073 · 2024

PEAC: Unsupervised Pre-training for Cross-Embodiment Reinforcement Learning

arXiv · PDF · Open in the Atlas

Code that ran

6 of 7 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; 3 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 3 failures of our instrument; 1 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/2405.14073.json · badge: /api/ran/2405.14073.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
thu-ml/CEURL canonical (classifier label)
classifier basis: census
6 ran · 1 no recorded run
FunctionStatusWhere it lives
count_episodes Ran
ran, honoured the contract we drafted
thu-ml/CEURL/DMC_image/dreamer_replay.py
code served (permissive licence) · get_code("33825bfaf6a0b7fc")
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 int; 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 tempfile
from pathlib import Path
import os

# Create a temporary directory with mock .npz files
temp_dir = tempfile.TemporaryDirectory()
temp_path = Path(temp_dir.name)

# Create some mock .npz files with naming patterns
# Pattern 1: files with '-' separator (e.g., 'episode-10.npz' where 10 is num_steps + 1)
Path(temp_path / 'file1-5.npz').touch()
Path(temp_path / 'file2-8.npz').touch()
Path(temp_path / 'file3-3.npz').touch()

# Pattern 2: files with '_' separator (e.g., 'episode_10.npz')
# We'll use the '-' pattern for this test
# If we wanted '_' pattern: Path(temp_path / 'file1_5.npz').touch()

ARGS = {
    'directory': temp_path
}
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 tuple, ndim 1, dtype family int — 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
grad_norm Ran
ran, honoured the contract we drafted
thu-ml/CEURL/DMC_image/utils.py
code served (permissive licence) · get_code("2478bb95b38ef24f")
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 float, ndim 0, dtype family float, shape () 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
import torch.nn as nn

torch.manual_seed(0)

# Create a simple model with parameters that have gradients
class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear1 = nn.Linear(4, 3)
        self.linear2 = nn.Linear(3, 2)
    
    def forward(self, x):
        x = self.linear1(x)
        x = self.linear2(x)
        return x

model = SimpleModel()

# Create some dummy input and target
x = torch.randn(2, 4)
target = torch.randn(2, 2)

# Forward pass to generate gradients
output = model(x)
loss = torch.nn.functional.mse_loss(output, target)
loss.backward()

# Extract parameters with gradients
params = [p for p in model.parameters() if p.grad is not None]

ARGS = {
    "params": params,
    "norm_type": 2.0
}
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 float, ndim 0, dtype family float, shape () — shape () 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
load_episodes Ran
ran; our contract draft was wrong, not the code
thu-ml/CEURL/DMC_image/dreamer_replay.py
code served (permissive licence) · get_code("d33901ea1fb03092")
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 dict. 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 numpy as np
from pathlib import Path
import tempfile
import os

# Create a temporary directory with mock .npz files
temp_dir = tempfile.mkdtemp()
temp_path = Path(temp_dir)

# Create mock .npz files with proper naming conventions
# Filenames should contain episode lengths in the format: name-length.npz or name_length.npz
for i in range(3):
    episode_length = 10 + i * 5  # 10, 15, 20
    data = {
        'observations': np.random.randn(episode_length, 4),
        'actions': np.random.randn(episode_length, 2),
        'rewards': np.random.randn(episode_length),
    }
    filename = temp_path / f'episode-{episode_length}.npz'
    np.savez(filename, **data)

ARGS = {
    'directory': temp_path,
    'capacity': 30,
    'minlen': 1,
    'load_first': False,
}
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 dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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_dreamer_agent Ran
ran; our contract draft was wrong, not the code
thu-ml/CEURL/DMC_image/dreamer_finetune.py
code served (permissive licence) · get_code("55a2143c42c8051e")
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 dict. 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 torch
import torch.nn as nn
from dataclasses import dataclass, field
from typing import Dict, Any
from omegaconf import DictConfig, OmegaConf

torch.manual_seed(0)

# Create a minimal obs_space
@dataclass
class ObsSpace:
    shape: tuple = (4,)
    dtype: type = float

obs_space = ObsSpace()

# Create a minimal action_spec
@dataclass
class ActionSpec:
    shape: tuple = (3,)
    dtype: type = float
    minimum: float = -1.0
    maximum: float = 1.0

action_spec = ActionSpec()

# Create cur_config with an agent field that will be deleted
cur_config_dict = {
    "agent": {
        "type": "dreamer",
        "hidden_size": 64
    },
    "model": {
        "layers": 2,
        "units": 32
    },
    "training": {
        "epochs": 10,
        "batch_size": 2
    }
}
cur_config = OmegaConf.create(cur_config_dict)

# Create cfg that will be passed to hydra.utils.instantiate
# This should be a DictConfig with _target_ for instantiation
cfg_dict = {
    "_target_": "builtins.dict",
    "model_size": 128,
    "learning_rate": 0.001
}
cfg = OmegaConf.create(cfg_dict)

ARGS = {
    "obs_space": obs_space,
    "action_spec": action_spec,
    "cur_config": cur_config,
    "cfg": cfg
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
hydra, omegaconf, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
param_norm Ran
ran, honoured the contract we drafted
thu-ml/CEURL/DMC_image/utils.py
code served (permissive licence) · get_code("8708aaca52006e47")
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 float, ndim 0, dtype family float, shape () 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
import torch.nn as nn

torch.manual_seed(0)

# Create a small neural network with a few parameters
class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear1 = nn.Linear(4, 3)
        self.linear2 = nn.Linear(3, 2)
    
    def forward(self, x):
        x = self.linear1(x)
        x = self.linear2(x)
        return x

model = SimpleModel()

# Extract parameters from the model
params = list(model.parameters())

# Define ARGS dict with all parameters
ARGS = {
    'params': params,
    'norm_type': 2.0
}
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 float, ndim 0, dtype family float, shape () — shape () 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
to_torch Ran
ran; our contract draft was wrong, not the code
thu-ml/CEURL/DMC_image/utils.py
pointer only (licence: MIT); the stored copy get_code serves, from premiertaco/premier-taco, is pointer only (licence: NONE) · get_code("6244e9922f4e0610")
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 premiertaco/premier-taco, 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.

make_agent Not yet run
unverified (harvested, no recorded run)
thu-ml/CEURL/DMC_image/dreamer_finetune.py
code served (permissive licence) · get_code("2a76dfe317adeb03")
How it ran

no invocation recorded.

Also present in other papers' code

Of 7 samples lifted from this paper's linked repositories, 7 carry a function identity and 0 do not. Of the 7 distinct functions with an identity, 5 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 4 the same month, 5 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
to_torch 23 other papers
18 dated earlier, 3 the same month, 2 later · 7 only as an assembly brick
2103.04551 (2021-03)
Behavior From the Void: Unsupervised Active Pre-Training
2107.09645 (2021-07)
Mastering Visual Continuous Control: Improved Data-Augmented Reinforcement Learning
2202.10324 (2022-02)
VRL3: A Data-Driven Framework for Visual Deep Reinforcement Learning
and 20 more not named here
make_agent 9 other papers
5 dated earlier, 1 the same month, 3 later
2103.04551 (2021-03)
Behavior From the Void: Unsupervised Active Pre-Training
2110.15191 (2021-10)
URLB: Unsupervised Reinforcement Learning Benchmark
2202.00161 (2022-02)
CIC: Contrastive Intrinsic Control for Unsupervised Skill Discovery
and 6 more not named here
grad_norm 4 other papers
2 dated earlier, 1 the same month, 1 later
2211.12740 (2022-11)
Masked Autoencoding for Scalable and Generalizable Decision Making
2305.04477 (2023-05)
Behavior Contrastive Learning for Unsupervised Skill Discovery
2405.16030 (2024-05)
Constrained Ensemble Exploration for Unsupervised Skill Discovery
and 1 more not named here
param_norm 3 other papers
1 dated earlier, 1 the same month, 1 later
2305.04477 (2023-05)
Behavior Contrastive Learning for Unsupervised Skill Discovery
2405.16030 (2024-05)
Constrained Ensemble Exploration for Unsupervised Skill Discovery
2406.16255 (2024-06)
Uncertainty-Aware Reward-Free Exploration with General Function Approximation
make_dreamer_agent 1 other paper
1 later
2406.18043 (2024-06)
GenRL: Multimodal-foundation world models for generalization in embodied agents

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

Designing generalizable agents capable of adapting to diverse embodiments has achieved significant attention in Reinforcement Learning (RL), which is critical for deploying RL agents in various real-world applications. Previous Cross-Embodiment RL approaches have focused on transferring knowledge across embodiments within specific tasks. These methods often result in knowledge tightly coupled with those tasks and fail to adequately capture the distinct characteristics of different embodiments. To address this limitation, we introduce the notion of Cross-Embodiment Unsupervised RL (CEURL), which leverages unsupervised learning to enable agents to acquire embodiment-aware and task-agnostic knowledge through online interactions within reward-free environments. We formulate CEURL as a novel Controlled Embodiment Markov Decision Process (CE-MDP) and systematically analyze CEURL's pre-training objectives under CE-MDP. Based on these analyses, we develop a novel algorithm Pre-trained Embodiment-Aware Control (PEAC) for handling CEURL, incorporating an intrinsic reward function specifically designed for cross-embodiment pre-training. PEAC not only provides an intuitive optimization strategy for cross-embodiment pre-training but also can integrate flexibly with existing unsupervised RL methods, facilitating cross-embodiment exploration and skill discovery. Extensive experiments in both simulated (e.g., DMC and Robosuite) and real-world environments (e.g., legged locomotion) demonstrate that PEAC significantly improves adaptation performance and cross-embodiment generalization, demonstrating its effectiveness in overcoming the unique challenges of CEURL. The project page and code are in https://yingchengyang.github.io/ceurl.

For agents

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

get_harvested_code_for_paper("2405.14073")
get_code_for_paper("2405.14073")
have("2405.14073")

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

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

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

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

Connect an agent — have() is free.