SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2112.05848 · NeurIPS · 2021

Faster Deep Reinforcement Learning with Slower Online Network Kavosh Asadi Amazon Web Services

Omer Gottesman, Rasool Fakoor, Alexander Smola, Michael Littman, Taesup Kim

arXiv · PDF · Open in the Atlas

Code that ran

7 of 9 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 7 have no contract verdict; 0 failures of our instrument; 2 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/2112.05848.json · badge: /api/ran/2112.05848.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
amazon-research/fast-rl-with-slow-updates canonical (classifier label)
classifier basis not recorded on the link
7 ran · 2 no recorded run
FunctionStatusWhere it lives
huber_loss Ran
ran on a synthesized input
amazon-research/fast-rl-with-slow-updates/dopamine/jax/losses.py
code served (permissive licence) · get_code("af103360bcc90e53")
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
import numpy as np

# Create small test arrays for targets and predictions
# Using shape (2, 4) for batch_size=2, feature_dim=4
targets = jnp.array([
    [1.0, 2.0, 3.0, 4.0],
    [5.0, 6.0, 7.0, 8.0]
])

predictions = jnp.array([
    [1.1, 2.2, 2.9, 4.1],
    [5.2, 5.8, 7.3, 7.9]
])

delta = 1.0

ARGS = {
    "targets": targets,
    "predictions": predictions,
    "delta": delta
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax, numpy — 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
load_rewards Ran
ran on a synthesized input
amazon-research/fast-rl-with-slow-updates/extract_reward.py
code served (permissive licence) · get_code("9695996bed46d48b")
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 list, ndim 1, dtype family float; 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 tensorflow as tf
from tensorflow.core.util import event_pb2
import tempfile
import os

# Create a temporary directory and a valid TFRecord file
temp_dir = tempfile.mkdtemp()
result_path = os.path.join(temp_dir, "events.out.tfevents")

# Write a valid TFRecord file with Event protos containing reward values
writer = tf.io.TFRecordWriter(result_path)

# Create events with Eval/AverageReturns values
for step in range(3):
    event = event_pb2.Event()
    event.step = step
    event.summary.value.add(
        tag='Eval/AverageReturns',
        simple_value=float(100.0 + step * 10.0)
    )
    writer.write(event.SerializeToString())

writer.close()

ARGS = {
    'result_path': result_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list 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
load_statistics Ran
ran on a synthesized input
amazon-research/fast-rl-with-slow-updates/dopamine/colab/utils.py
code served (permissive licence) · get_code("00989d2027cbd4f1")
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 float; 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 os
import pickle
import tempfile
import tensorflow as tf

# Create a temporary directory for testing
temp_dir = tempfile.mkdtemp()

# Create mock log files with pickle data
FILE_PREFIX = 'log'

# Create some test statistics objects
test_stats_1 = {'accuracy': 0.85, 'loss': 0.15, 'epoch': 1}
test_stats_2 = {'accuracy': 0.90, 'loss': 0.10, 'epoch': 2}
test_stats_3 = {'accuracy': 0.92, 'loss': 0.08, 'epoch': 3}

# Write pickle files to temp directory
log_file_1 = os.path.join(temp_dir, f'{FILE_PREFIX}_1')
log_file_2 = os.path.join(temp_dir, f'{FILE_PREFIX}_2')
log_file_3 = os.path.join(temp_dir, f'{FILE_PREFIX}_3')

with open(log_file_1, 'wb') as f:
    pickle.dump(test_stats_1, f)

with open(log_file_2, 'wb') as f:
    pickle.dump(test_stats_2, f)

with open(log_file_3, 'wb') as f:
    pickle.dump(test_stats_3, f)

# Define ARGS for load_statistics function
ARGS = {
    'log_path': temp_dir,
    'iteration_number': None,
    'verbose': True
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
tensorflow — 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 float — 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
mse_loss Ran
ran on a synthesized input
amazon-research/fast-rl-with-slow-updates/dopamine/jax/losses.py
code served (permissive licence) · get_code("1c9e08f4b6f3cca7")
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 small sample tensors for targets and predictions
targets = jnp.array([[1.0, 2.0, 3.0, 4.0],
                     [5.0, 6.0, 7.0, 8.0]])

predictions = jnp.array([[1.5, 2.5, 2.8, 4.2],
                         [4.9, 6.1, 7.2, 7.8]])

ARGS = {
    "targets": targets,
    "predictions": predictions
}
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
preprocess_atari_inputs Ran
ran on a synthesized input
amazon-research/fast-rl-with-slow-updates/dopamine/jax/networks.py
code served (permissive licence) · get_code("922cb4050cda4895")
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, 4, 4, 1) 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 mock Atari frame input
# Atari frames are typically uint8 arrays representing pixel values (0-255)
# Create a batch of 2 frames with shape (2, 84, 84, 1) - standard Atari preprocessing
x = jnp.array([
    [[[100], [150], [200], [250]],
     [[50], [75], [125], [175]],
     [[10], [20], [30], [40]],
     [[5], [15], [25], [35]]],
    [[[200], [150], [100], [50]],
     [[175], [125], [75], [25]],
     [[40], [30], [20], [10]],
     [[35], [25], [15], [5]]]
], dtype=jnp.uint8)

ARGS = {
    "x": x
}
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, 4, 4, 1) — shape (2, 4, 4, 1) 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
smooth Ran
ran on a synthesized input
amazon-research/fast-rl-with-slow-updates/extract_reward.py
code served (permissive licence) · get_code("ef22b2a24e026064")
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 list, ndim 1, dtype family float; 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 numpy

# The function smooth takes a sequence y and a window size win
# It computes a moving average over the window

# Create a simple list of numbers to smooth
y = [1.0, 2.0, 3.0, 5.0, 4.0, 6.0, 7.0, 8.0, 9.0, 10.0]

# Define window size
win = 3

ARGS = {
    "y": y,
    "win": win
}
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 list, ndim 1, dtype family float — a list 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
softmax_cross_entropy_loss_with_logits Ran
ran on a synthesized input
amazon-research/fast-rl-with-slow-updates/dopamine/jax/losses.py
code served (permissive licence) · get_code("5fb03fa44bd6c56a")
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 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 jax.numpy as jnp
import numpy as np

# Create small test tensors
batch_size = 2
num_classes = 4

# Create one-hot encoded labels (batch_size x num_classes)
labels = jnp.array([
    [1.0, 0.0, 0.0, 0.0],
    [0.0, 1.0, 0.0, 0.0]
], dtype=jnp.float32)

# Create logits (batch_size x num_classes)
logits = jnp.array([
    [2.0, 1.0, 0.5, 0.1],
    [0.1, 2.5, 1.0, 0.5]
], dtype=jnp.float32)

ARGS = {
    "labels": labels,
    "logits": logits
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
flax, jax, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ArrayImpl, 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
get_latest_file Not yet run
unverified (harvested, no recorded run)
amazon-research/fast-rl-with-slow-updates/dopamine/colab/utils.py
code served (permissive licence) · get_code("9452ab3fdaceeaf7")
How it ran

no invocation recorded.

load_baselines Not yet run
unverified (harvested, no recorded run)
amazon-research/fast-rl-with-slow-updates/dopamine/colab/utils.py
code served (permissive licence) · get_code("ba90a401fa9b20dc")
How it ran

no invocation recorded.

Also present in other papers' code

Of 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 9 distinct functions with an identity, 2 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 7 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
get_latest_file 1 other paper
1 dated earlier
1812.06110 (2018-12)
Dopamine: A Research Framework for Deep Reinforcement Learning
preprocess_atari_inputs 1 other paper
1 later
2206.01626 (2022-06)
Reincarnating Reinforcement Learning: Reusing Prior Computation to Accelerate Progress

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 often use two networks for value function optimization: an online network, and a target network that tracks the online network with some delay. Using two separate networks enables the agent to hedge against issues that arise when performing bootstrapping. In this paper we endow two popular deep reinforcement learning algorithms, namely DQN and Rainbow, with updates that incentivize the online network to remain in the proximity of the target network. This improves the robustness of deep reinforcement learning in presence of noisy updates. The resultant agents, called DQN Pro and Rainbow Pro, exhibit significant performance improvements over their original counterparts on the Atari benchmark demonstrating the effectiveness of this simple idea in deep reinforcement learning. The code for our paper is available here: Github.com/amazon-research/fast-rl-with-slow-updates.

For agents

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

get_harvested_code_for_paper("2112.05848")
get_code_for_paper("2112.05848")
have("2112.05848")

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

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

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

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

Connect an agent — have() is free.