SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2303.06614 · NeurIPS · 2023

Synthetic Experience Replay

Jack Parker-Holder, Yee Whye Teh, Cong Lu, Philip Ball

arXiv · PDF · Open in the Atlas

Code that ran

4 of 4 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (1 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 2 have no contract verdict; 1 failure of our instrument; 0 no recorded run); 1 of them was also run on the host, not in the jail, by the peer-agreement lane that set its level, measured 2026-11-23; 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/2303.06614.json · badge: /api/ran/2303.06614.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
ikostrikov/dmcgym canonical (classifier label)
classifier basis not recorded on the link
1 ran · 0 no recorded run
copy not recorded community
not in the paper's declared repositories
2 ran · 0 no recorded run
tinkoff-ai/CORL community
Papers with Code archive
1 ran · 0 no recorded run
FunctionStatusWhere it lives
compute_mean_std Ran
ran; our contract draft was wrong, not the code
this paper's copy was not recorded; identical code first harvested from tinkoff-ai/CORL
pointer only · get_code("4e08ac58e3891cfb")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. 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.

SPOT Ran
ran on a synthesized input · constructed an object; no result was computed
tinkoff-ai/CORL/algorithms/finetune/spot.py
code served (permissive licence) · get_code("c2fccf4ed83de15a")
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 an instance of its own class, SPOT: the run constructed the object and did not call it, so no result was computed. 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
import torch.optim as optim

torch.manual_seed(0)

# Define minimal nn.Module implementations
class SimpleActor(nn.Module):
    def __init__(self, state_dim=4, action_dim=3):
        super().__init__()
        self.fc = nn.Linear(state_dim, action_dim)
    
    def forward(self, state):
        return torch.tanh(self.fc(state))

class SimpleCritic(nn.Module):
    def __init__(self, state_dim=4, action_dim=3):
        super().__init__()
        self.fc = nn.Linear(state_dim + action_dim, 1)
    
    def forward(self, state, action):
        x = torch.cat([state, action], dim=-1)
        return self.fc(x)

class SimpleVAE(nn.Module):
    def __init__(self, state_dim=4, action_dim=3, latent_dim=2):
        super().__init__()
        self.state_dim = state_dim
        self.action_dim = action_dim
        self.latent_dim = latent_dim
        
        # Encoder
        self.encoder_fc = nn.Linear(state_dim + action_dim, 16)
        self.mean_fc = nn.Linear(16, latent_dim)
        self.std_fc = nn.Linear(16, latent_dim)
        
        # Decoder
        self.decoder_fc1 = nn.Linear(state_dim + latent_dim, 16)
        self.decoder_fc2 = nn.Linear(16, action_dim)
    
    def encode(self, state, action):
        x = torch.cat([state, action], dim=-1)
        h = torch.relu(self.encoder_fc(x))
        mean = self.mean_fc(h)
        std = torch.exp(self.std_fc(h))
        return mean, std
    
    def decode(self, state, z):
        x = torch.cat([state, z], dim=-1)
        h = torch.relu(self.decoder_fc1(x))
        recon = self.decoder_fc2(h)
        return recon
    
    def forward(self, state, action):
        mean, std = self.encode(state, action)
        z = mean + std * torch.randn_like(std)
        recon = self.decode(state, z)
        return recon, mean, std
    
    def importance_sampling_estimator(self, state, action, beta, num_samples):
        # Stub implementation for iwae_loss
        mean, std = self.encode(state, action)
        z = mean + std * torch.randn_like(std)
        recon = self.decode(state, z)
        recon_loss = ((recon - action) ** 2).mean()
        kl_loss = -0.5 * (1 + torch.log(std.pow(2)) - mean.pow(2) - std.pow(2)).mean()
        ll = -(recon_loss + beta * kl_loss)
        return ll

# Create model instances
state_dim = 4
action_dim = 3
max_action = 1.0

actor = SimpleActor(state_dim=state_dim, action_dim=action_dim)
actor_optimizer = optim.Adam(actor.parameters(), lr=1e-3)

critic_1 = SimpleCritic(state_dim=state_dim, action_dim=action_dim)
critic_1_optimizer = optim.Adam(critic_1.parameters(), lr=1e-3)

critic_2 = SimpleCritic(state_dim=state_dim, action_dim=action_dim)
critic_2_optimizer = optim.Adam(critic_2.parameters(), lr=1e-3)

vae = SimpleVAE(state_dim=state_dim, action_dim=action_dim, latent_dim=2)
vae_optimizer = optim.Adam(vae.parameters(), lr=1e-3)

ARGS = {
    'max_action': max_action,
    'actor': actor,
    'actor_optimizer': actor_optimizer,
    'critic_1': critic_1,
    'critic_1_optimizer': critic_1_optimizer,
    'critic_2': critic_2,
    'critic_2_optimizer': critic_2_optimizer,
    'vae': vae,
    'vae_optimizer': vae_optimizer,
    'discount': 0.99,
    'tau': 0.005,
    'policy_noise': 0.2,
    'noise_clip': 0.5,
    'policy_freq': 2,
    'beta': 0.5,
    'lambd': 1.0,
    'num_samples': 1,
    'iwae': False,
    'lambd_cool': False,
    'lambd_end': 0.2,
    'max_online_steps': 1000000,
    'device': 'cpu',
}
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 SPOT — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a SPOT 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
dmc_obs2gym_obs Ran
ran on a synthesized input
ikostrikov/dmcgym/dmcgym/env.py
code served (permissive licence) · get_code("92297396994efd60")
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 OrderedDict. 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 copy
from typing import OrderedDict
import numpy as np

# Test case 1: Simple numpy array
simple_array = np.array([1.0, 2.0, 3.0, 4.0])

# Test case 2: Nested OrderedDict with various array types
nested_obs = OrderedDict([
    ('position', np.array([1.5, 2.5, 3.5])),
    ('velocity', [0.1, 0.2, 0.3, 0.4]),
    ('sensors', OrderedDict([
        ('touch', np.array([0.5, 0.6])),
        ('proprioception', [1.0, 2.0, 3.0])
    ]))
])

ARGS = {
    'obs': nested_obs
}
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 OrderedDict — a OrderedDict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a OrderedDict 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
normalize_states Ran
ran, honoured the contract we drafted
this paper's copy was not recorded; identical code first harvested from tinkoff-ai/CORL
pointer only · get_code("ba80f9ff81b1de5f")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. 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.

Also present in other papers' code

Of 4 samples lifted from this paper's linked repositories, 4 carry a function identity and 0 do not. Of the 4 distinct functions with an identity, 2 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 0 the same month, 2 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
normalize_states 14 other papers
2 dated earlier, 12 later
2106.06860 (2021-06)
A Minimalist Approach to Offline Reinforcement Learning
2210.07105 (2022-10)
CORL: Research-oriented Deep Offline Reinforcement Learning Library
2305.09836 (2023-05)
Revisiting the Minimalist Approach to Offline Reinforcement Learning
and 11 more not named here
compute_mean_std 12 other papers
2 dated earlier, 10 later
2106.06860 (2021-06)
A Minimalist Approach to Offline Reinforcement Learning
2210.07105 (2022-10)
CORL: Research-oriented Deep Offline Reinforcement Learning Library
2305.09836 (2023-05)
Revisiting the Minimalist Approach to Offline Reinforcement Learning
and 9 more not named here

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

A key theme in the past decade has been that when large neural networks and large datasets combine they can produce remarkable results. In deep reinforcement learning (RL), this paradigm is commonly made possible through experience replay, whereby a dataset of past experiences is used to train a policy or value function. However, unlike in supervised or self-supervised learning, an RL agent has to collect its own data, which is often limited. Thus, it is challenging to reap the benefits of deep learning, and even small neural networks can overfit at the start of training. In this work, we leverage the tremendous recent progress in generative modeling and propose Synthetic Experience Replay (SYNTHER), a diffusion-based approach to flexibly upsample an agent's collected experience. We show that SYNTHER is an effective method for training RL agents across offline and online settings, in both proprioceptive and pixel-based environments. In offline settings, we observe drastic improvements when upsampling small offline datasets and see that additional synthetic data also allows us to effectively train larger networks. Furthermore, SYNTHER enables online agents to train with a much higher update-to-data ratio than before, leading to a significant increase in sample efficiency, without any algorithmic changes. We believe that synthetic training data could open the door to realizing the full potential of deep learning for replay-based RL algorithms from limited data. Finally, we open-source our code at https://github.com/conglu1997/SynthER.

For agents

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

get_harvested_code_for_paper("2303.06614")
get_code_for_paper("2303.06614")
have("2303.06614")

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

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

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

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

Connect an agent — have() is free.