SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2304.10466 · ICLR · 2023

Efficient Deep Reinforcement Learning Requires Regulating Overfitting

Sergey Levine, Aviral Kumar, Qiyang Li, Ilya Kostrikov

arXiv · PDF · Open in the Atlas

Code that ran

9 of 15 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; 0 honoured the contract we drafted, 0 violated it and 8 have no contract verdict; 1 failure of our instrument; 6 no recorded run), 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/2304.10466.json · badge: /api/ran/2304.10466.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
evgenii-nikishin/rl_with_resets canonical (classifier label)
classifier basis: census
8 ran · 2 no recorded run
ikostrikov/walk_in_the_park canonical (classifier label)
classifier basis: census
1 ran · 2 no recorded run
ikostrikov/jaxrl community
Papers with Code archive
0 ran · 2 no recorded run
FunctionStatusWhere it lives
create_env_wrapper Ran
ran on a synthesized input
evgenii-nikishin/rl_with_resets/discrete_control/eval_run_experiment.py
code served (permissive licence) · get_code("b0d2f7580e14b4a6")
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 torch
import torch.nn as nn

torch.manual_seed(0)

# Create a minimal environment class that has the required attributes
class MinimalEnv:
    def __init__(self):
        self.observation_space = None
        self.action_space = None
    
    def reset(self):
        return None
    
    def step(self, action):
        return None, 0, False, {}
    
    def close(self):
        pass

# Create a factory function that returns a minimal environment
def minimal_env_factory():
    return MinimalEnv()

ARGS = {
    "create_env_fn": minimal_env_factory
}
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 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
default_init Ran
ran; our contract draft was wrong, not the code
evgenii-nikishin/rl_with_resets/continuous_control/networks/common.py
code served (permissive licence) · get_code("718462716d78ea99")
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 jax
import jax.numpy as jnp
import flax.linen as nn

ARGS = {
    "scale": jnp.sqrt(2)
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
flax, jax — 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
delete_ind_from_array Ran
ran on a synthesized input
evgenii-nikishin/rl_with_resets/discrete_control/eval_run_experiment.py
code served (permissive licence) · get_code("a50b18c10731aa3a")
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 3, dtype family int, shape (1, 3, 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

# Create a sample numpy array with distinct dimensions for testing
array = np.arange(24).reshape(2, 3, 4)  # Shape: (2, 3, 4)

# Index to delete
ind = 1

# Axis along which to delete
axis = 0

ARGS = {
    "array": array,
    "ind": ind,
    "axis": axis
}
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 3, dtype family int, shape (1, 3, 4) — shape (1, 3, 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
evaluate Ran
ran on a synthesized input
evgenii-nikishin/rl_with_resets/continuous_control/evaluation.py
code served (permissive licence) · get_code("a34f6a7ad7ae7710")
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 flax.linen as nn
import gym
from gym import spaces
import numpy as np


class MockAgent(nn.Module):
    """Minimal agent that implements sample_actions method."""
    
    @nn.compact
    def __call__(self, observation):
        return observation
    
    def sample_actions(self, observation, temperature=0.0):
        """Return a dummy action."""
        if isinstance(observation, np.ndarray):
            return np.array([0], dtype=np.int64)
        return 0


class MockEnv(gym.Env):
    """Minimal gym environment for testing."""
    
    def __init__(self):
        self.observation_space = spaces.Box(low=0, high=1, shape=(4,), dtype=np.float32)
        self.action_space = spaces.Discrete(2)
        self.step_count = 0
        self.max_steps = 3
    
    def reset(self):
        self.step_count = 0
        return self.observation_space.sample()
    
    def step(self, action):
        self.step_count += 1
        observation = self.observation_space.sample()
        reward = 1.0
        done = self.step_count >= self.max_steps
        info = {
            'episode': {
                'return': 3.0,
                'length': self.step_count
            },
            'is_success': True
        }
        return observation, reward, done, info


agent = MockAgent()
env = MockEnv()
num_episodes = 2

ARGS = {
    'agent': agent,
    'env': env,
    'num_episodes': num_episodes
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
flax, gym, 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
normalize_score Ran
ran on a synthesized input
evgenii-nikishin/rl_with_resets/discrete_control/eval_run_experiment.py
code served (permissive licence) · get_code("71d1b50edc65f329")
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 numpy as np

atari_human_scores = dict(alien=7127.7, amidar=1719.5, assault=742.0, asterix=8503.3, bankheist=753.1, battlezone=37187.5, boxing=12.1, breakout=30.5, choppercommand=7387.8, crazyclimber=35829.4, demonattack=1971.0, freeway=29.6, frostbite=4334.7, gopher=2412.5, hero=30826.4, jamesbond=302.8, kangaroo=3035.0, krull=2665.5, kungfumaster=22736.3, mspacman=6951.6, pong=14.6, privateeye=69571.3, qbert=13455.0, roadrunner=7845.0, seaquest=42054.7, upndown=11693.2)

atari_random_scores = dict(alien=227.8, amidar=5.8, assault=222.4, asterix=210.0, bankheist=14.2, battlezone=2360.0, boxing=0.1, breakout=1.7, choppercommand=811.0, crazyclimber=10780.5, demonattack=152.1, freeway=0.0, frostbite=65.2, gopher=257.6, hero=1027.0, jamesbond=29.0, kangaroo=52.0, krull=1598.0, kungfumaster=258.5, mspacman=307.3, pong=-20.7, privateeye=24.9, qbert=163.9, roadrunner=11.5, seaquest=68.4, upndown=533.4)

def normalize_score(ret, game, by=atari_human_scores):
    return (ret - atari_random_scores[game]) / (atari_human_scores[game] - atari_random_scores[game])

ARGS = {
    'ret': 5000.0,
    'game': 'alien',
    'by': atari_human_scores
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, 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
orientation_terminal_condition Ran
ran on a synthesized input
ikostrikov/walk_in_the_park/real/resetters.py
code served (permissive licence) · get_code("5ef98ddf8676a4f9")
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 bool, 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 numpy as np

class MockRobot:
    """Mock robot with GetBaseRollPitchYaw method."""
    def GetBaseRollPitchYaw(self):
        # Return roll, pitch, yaw values
        # Using small angles to make the condition True
        roll = np.pi / 8  # Less than pi/4 cutoff
        pitch = np.pi / 6  # Less than pi/4 cutoff
        yaw = 0.0
        return roll, pitch, yaw

class MockEnv:
    """Mock environment with robot attribute."""
    def __init__(self):
        self.robot = MockRobot()

ARGS = {
    "env": MockEnv()
}
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 bool, 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
process_inputs Ran
ran on a synthesized input
evgenii-nikishin/rl_with_resets/discrete_control/networks.py
code served (permissive licence) · get_code("055c05453cdea31d")
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 ArrayImpl, ndim 4, dtype family float, shape (2, 8, 8, 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 jax
import jax.numpy as jnp
from jax import random

# Set seed for reproducibility
key = random.PRNGKey(0)

# Create a small test image batch
# Shape: (batch_size, height, width, channels)
# Using distinct sizes: batch=2, height=8, width=8, channels=3
x = jnp.ones((2, 8, 8, 3), dtype=jnp.uint8) * 128

# Create RNG key for data augmentation
rng = random.PRNGKey(42)

ARGS = {
    'x': x,
    'data_augmentation': True,
    'rng': rng
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ArrayImpl, ndim 4, dtype family float, shape (2, 8, 8, 3) — shape (2, 8, 8, 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
renormalize Ran
ran on a synthesized input
evgenii-nikishin/rl_with_resets/discrete_control/networks.py
code served (permissive licence) · get_code("3692fa3a61b257cd")
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 ArrayImpl, ndim 2, dtype family float, 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 jax.numpy as jnp

# Create a small tensor for testing
# Using shape (2, 4) - batch size 2, feature dim 4
tensor = jnp.array([[1.0, 2.0, 3.0, 4.0],
                    [5.0, 6.0, 7.0, 8.0]])

ARGS = {
    "tensor": tensor,
    "has_batch": True
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ArrayImpl, ndim 2, dtype family float, 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
split_tree Ran
ran on a synthesized input
evgenii-nikishin/rl_with_resets/continuous_control/networks/common.py
code served (permissive licence) · get_code("99bd73397c2663ca")
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. 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 flax
import flax.core

# Create a sample tree structure with nested dicts
# The function expects a FrozenDict with at least one key that maps to another dict
sample_subtree = {"param1": 1.0, "param2": 2.0}
sample_tree_dict = {
    "encoder": sample_subtree,
    "decoder": {"param3": 3.0, "param4": 4.0}
}

# Convert to FrozenDict as the function expects
tree = flax.core.FrozenDict(sample_tree_dict)

# The key to pop from the tree
key = "encoder"

ARGS = {
    "tree": tree,
    "key": key
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
flax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is 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
REDQLearner Not yet run
unverified (harvested, no recorded run)
ikostrikov/jaxrl/jaxrl/agents/redq/redq_learner.py
code served (permissive licence) · get_code("f0ff6ea848e52f45")
How it ran

no invocation recorded.

_update_jit Not yet run
unverified (harvested, no recorded run)
ikostrikov/jaxrl/jaxrl/agents/redq/redq_learner.py
code served (permissive licence) · get_code("cde7d367f320d964")
How it ran

no invocation recorded.

drq_image_aug Not yet run
unverified (harvested, no recorded run)
evgenii-nikishin/rl_with_resets/discrete_control/networks.py
code served (permissive licence) · get_code("58031134f80381f9")
How it ran

no invocation recorded.

evaluate Not yet run
unverified (harvested, no recorded run)
ikostrikov/walk_in_the_park/rl/evaluation.py
code served (permissive licence) · get_code("fed35e39e159f251")
How it ran

no invocation recorded.

soft_target_update Not yet run
unverified (harvested, no recorded run)
ikostrikov/walk_in_the_park/rl/networks/common.py
code served (permissive licence) · get_code("390aef8497c3346d")
How it ran

no invocation recorded.

tree_norm Not yet run
unverified (harvested, no recorded run)
evgenii-nikishin/rl_with_resets/continuous_control/networks/common.py
code served (permissive licence) · get_code("9678fbfc085148cf")
How it ran

no invocation recorded.

Also present in other papers' code

Of 15 samples lifted from this paper's linked repositories, 15 carry a function identity and 0 do not. Of the 15 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 1 later) and 14 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
default_init 8 other papers
6 dated earlier, 2 later
1812.05905 (2018-12)
Soft Actor-Critic Algorithms and Applications
2106.03273 (2021-06)
Control-Oriented Model-Based Reinforcement Learning with Implicit Differentiation
2206.01079 (2022-06)
When does return-conditioned supervised learning work for offline reinforcement learning?
and 5 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

Deep reinforcement learning algorithms that learn policies by trial-and-error must learn from limited amounts of data collected by actively interacting with the environment. While many prior works have shown that proper regularization techniques are crucial for enabling data-efficient RL, a general understanding of the bottlenecks in data-efficient RL has remained unclear. Consequently, it has been difficult to devise a universal technique that works well across all domains. In this paper, we attempt to understand the primary bottleneck in sample-efficient deep RL by examining several potential hypotheses such as non-stationarity, excessive action distribution shift, and overfitting. We perform thorough empirical analysis on state-based DeepMind control suite (DMC) tasks in a controlled and systematic way to show that high temporal-difference (TD) error on the validation set of transitions is the main culprit that severely affects the performance of deep RL algorithms, and prior methods that lead to good performance do in fact, control the validation TD error to be low. This observation gives us a robust principle for making deep RL efficient: we can hill-climb on the validation TD error by utilizing any form of regularization techniques from supervised learning. We show that a simple online model selection method that targets the validation TD error is effective across state-based DMC and Gym tasks.

For agents

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

get_harvested_code_for_paper("2304.10466")
get_code_for_paper("2304.10466")
have("2304.10466")

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

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

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

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

Connect an agent — have() is free.