SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2303.03955 · ICLR · 2023

Diminishing Return of Value Expansion Methods in Model-Based Reinforcement Learning

Michael Lutter, Jan Peters, Daniel Palenicek, João Carvalho

arXiv · PDF · Open in the Atlas

Code that ran

4 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; 0 honoured the contract we drafted, 0 violated it and 4 have no contract verdict; 0 failures of our instrument; 3 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/2303.03955.json · badge: /api/ran/2303.03955.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
danielpalen/value_expansion canonical (classifier label)
classifier basis not recorded on the link
4 ran · 3 no recorded run
FunctionStatusWhere it lives
discounted_returns Ran
ran on a synthesized input
danielpalen/value_expansion/model_based_rl/rlax.py
code served (permissive licence) · get_code("681d7ce8e1a572d2")
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 1, dtype family float, shape (2,) 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
import chex

# Create small test arrays with shape (2,) for the sequence dimension
batch_size = 2

# r_t: rewards at each timestep, shape (2,)
r_t = jnp.array([1.0, 2.0], dtype=jnp.float32)

# discount_t: discount factors at each timestep, shape (2,)
discount_t = jnp.array([0.99, 0.99], dtype=jnp.float32)

# v_t: state values at each timestep, shape (2,)
v_t = jnp.array([0.5, 0.3], dtype=jnp.float32)

# stop_target_gradients: boolean flag
stop_target_gradients = False

ARGS = {
    "r_t": r_t,
    "discount_t": discount_t,
    "v_t": v_t,
    "stop_target_gradients": stop_target_gradients,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
chex, jax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ArrayImpl, ndim 1, dtype family float, shape (2,) — shape (2,) 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
general_off_policy_returns_from_q_and_v Ran
ran on a synthesized input
danielpalen/value_expansion/model_based_rl/rlax.py
code served (permissive licence) · get_code("c8ee170f35660e6a")
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 1, dtype family float, shape (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
import jax.numpy as jnp
import chex

# Set seed for reproducibility
jax.config.update("jax_platform_name", "cpu")

# Define ARGS with all required parameters
ARGS = {
    "q_t": jnp.array([0.1, 0.2, 0.3], dtype=jnp.float32),
    "v_t": jnp.array([0.5, 0.6, 0.7, 0.8], dtype=jnp.float32),
    "r_t": jnp.array([1.0, 1.1, 1.2, 1.3], dtype=jnp.float32),
    "discount_t": jnp.array([0.99, 0.99, 0.99, 0.99], dtype=jnp.float32),
    "c_t": jnp.array([0.9, 0.95, 1.0], dtype=jnp.float32),
    "stop_target_gradients": False,
    "scan": True,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
chex, jax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ArrayImpl, ndim 1, dtype family float, shape (4,) — shape (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
lambda_returns Ran
ran on a synthesized input
danielpalen/value_expansion/model_based_rl/rlax.py
code served (permissive licence) · get_code("aae948f6cd97b8da")
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 1, dtype family float, shape (2,) 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
import chex

# Create small test arrays with batch size 2
batch_size = 2

# r_t: rewards at each timestep
r_t = jnp.array([1.0, 2.0], dtype=jnp.float32)

# discount_t: discount factors at each timestep
discount_t = jnp.array([0.99, 0.99], dtype=jnp.float32)

# v_t: state values at each timestep
v_t = jnp.array([0.5, 1.5], dtype=jnp.float32)

# lambda_: lambda parameter for GAE (generalized advantage estimation)
lambda_ = 0.95

# stop_target_gradients: whether to stop gradients
stop_target_gradients = False

ARGS = {
    "r_t": r_t,
    "discount_t": discount_t,
    "v_t": v_t,
    "lambda_": lambda_,
    "stop_target_gradients": stop_target_gradients,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
chex, jax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ArrayImpl, ndim 1, dtype family float, shape (2,) — shape (2,) 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 Ran
ran on a synthesized input
danielpalen/value_expansion/model_based_rl/utils.py
code served (permissive licence) · get_code("bc36d0248a202221")
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 pickle
import bz2
import tempfile
import os

torch.manual_seed(0)

# Create a temporary bz2-compressed pickle file to load
temp_dir = tempfile.gettempdir()
test_path = os.path.join(temp_dir, "test_load.pkl.bz2")

# Create some test data to pickle and compress
test_data = {
    "tensor": torch.randn(2, 4),
    "list": [1, 2, 3],
    "string": "test",
    "nested": {"a": 1, "b": 2}
}

# Write the test data to a bz2-compressed pickle file
with bz2.BZ2File(test_path, 'wb') as fout:
    fout.write(pickle.dumps(test_data))

ARGS = {
    "path": test_path
}
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 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
build_gaussian_policy Not yet run
unverified (harvested, no recorded run)
danielpalen/value_expansion/model_based_rl/policies.py
code served (permissive licence) · get_code("c676f90c753bc92c")
How it ran

no invocation recorded.

build_gaussian_policy_fixed_noise Not yet run
unverified (harvested, no recorded run)
danielpalen/value_expansion/model_based_rl/policies.py
code served (permissive licence) · get_code("0d700ae4815b2333")
How it ran

no invocation recorded.

build_replay_buffer_functions Not yet run
unverified (harvested, no recorded run)
danielpalen/value_expansion/model_based_rl/replay_buffer.py
code served (permissive licence) · get_code("59da9bded5b54cc8")
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, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 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.

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

Model-based reinforcement learning is one approach to increase sample efficiency. However, the accuracy of the dynamics model and the resulting compounding error over modelled trajectories are commonly regarded as key limitations. A natural question to ask is: How much more sample efficiency can be gained by improving the learned dynamics models? Our paper empirically answers this question for the class of model-based value expansion methods in continuous control problems. Value expansion methods should benefit from increased model accuracy by enabling longer rollout horizons and better value function approximations. Our empirical study, which leverages oracle dynamics models to avoid compounding model errors, shows that (1) longer horizons increase sample efficiency, but the gain in improvement decreases with each additional expansion step, and (2) the increased model accuracy only marginally increases the sample efficiency compared to learned models with identical horizons. Therefore, longer horizons and increased model accuracy yield diminishing returns in terms of sample efficiency. These improvements in sample efficiency are particularly disappointing when compared to model-free value expansion methods. Even though they introduce no computational overhead, we find their performance to be on-par with model-based value expansion methods. Therefore, we conclude that the limitation of model-based value expansion methods is not the model accuracy of the learned models. While higher model accuracy is beneficial, our experiments show that even a perfect model will not provide an un-rivalled sample efficiency but that the bottleneck lies elsewhere.

For agents

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

get_harvested_code_for_paper("2303.03955")
get_code_for_paper("2303.03955")
have("2303.03955")

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

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

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

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

Connect an agent — have() is free.