SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2306.09884 · ICLR · 2024

Jumanji: a Diverse Suite of Scalable Reinforcement Learning Environments in JAX

Arnu Pretorius, Alexandre Laterre, Daniel Furelos-Blanco, Omayma Mahjoub, Ruan De Kock, Siddarth Singh, Clément Bonnet, Daniel Luo, Donal Byrne, Shikha Surana, Sasha Abramowitz, Paul Duckworth, and 13 more

arXiv · PDF · Open in the Atlas

Code that ran

7 of 8 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; 1 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/2306.09884.json · badge: /api/ran/2306.09884.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
instadeepai/jumanji canonical (classifier label)
classifier basis: census
7 ran · 1 no recorded run
FunctionStatusWhere it lives
get_env_id Ran
ran on a synthesized input
instadeepai/jumanji/jumanji/registration.py
code served (permissive licence) · get_code("0690a9280ab582b9")
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 str. 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.

ARGS = {
    'name': 'CartPole',
    'version': 1
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
has_at_least_rank Ran
ran on a synthesized input
instadeepai/jumanji/jumanji/testing/pytrees.py
code served (permissive licence) · get_code("f61335a17d1c7405")
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 jax
import jax.numpy as jnp
import numpy as np
import chex

# Create test arrays with different ranks
# Rank 1 array
rank1_array = jnp.array([1.0, 2.0, 3.0])

# Rank 2 array
rank2_array = jnp.array([[1.0, 2.0], [3.0, 4.0]])

# Rank 3 array
rank3_array = jnp.array([[[1.0, 2.0], [3.0, 4.0]], [[5.0, 6.0], [7.0, 8.0]]])

# Create a tree structure with multiple leaves
input_tree = {
    'a': rank2_array,
    'b': rank3_array,
    'nested': {
        'c': rank2_array
    }
}

ARGS = {
    'input_tree': input_tree,
    'rank': 2
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
chex, jax, 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
is_equal_pytree Ran
ran on a synthesized input
instadeepai/jumanji/jumanji/testing/pytrees.py
code served (permissive licence) · get_code("2894da5adc1e624b")
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
import torch
import tree as tree_lib

torch.manual_seed(0)

# Create two identical pytrees with nested structure
tree1 = {
    'tensors': [
        torch.tensor([[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0]]),
        torch.tensor([9.0, 10.0, 11.0, 12.0])
    ],
    'arrays': np.array([[1, 2, 3, 4], [5, 6, 7, 8]]),
    'nested': {
        'value': 42,
        'list': [1.5, 2.5, 3.5, 4.5]
    }
}

tree2 = {
    'tensors': [
        torch.tensor([[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0]]),
        torch.tensor([9.0, 10.0, 11.0, 12.0])
    ],
    'arrays': np.array([[1, 2, 3, 4], [5, 6, 7, 8]]),
    'nested': {
        'value': 42,
        'list': [1.5, 2.5, 3.5, 4.5]
    }
}

ARGS = {
    'tree1': tree1,
    'tree2': tree2
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch, tree — 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
parse_env_id Ran
ran on a synthesized input
instadeepai/jumanji/jumanji/registration.py
code served (permissive licence) · get_code("c389fc41dd329641")
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 re
from typing import Tuple

# Test valid environment IDs
ARGS = {
    "id": "CartPole-v1"
}
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 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
tree_add_element Ran
ran on a synthesized input
instadeepai/jumanji/jumanji/tree_utils.py
code served (permissive licence) · get_code("1d7b7a71fbc2a97f")
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 jax
import jax.numpy as jnp

# Create a simple pytree with JAX arrays
tree = {
    'array1': jnp.ones((2, 4)),
    'array2': jnp.zeros((2, 3)),
    'nested': {
        'array3': jnp.ones((2, 5))
    }
}

# Index to set
i = 0

# Element with same structure as tree but leaves are one dimension less (no batch dim)
element = {
    'array1': jnp.array([1.0, 2.0, 3.0, 4.0]),
    'array2': jnp.array([5.0, 6.0, 7.0]),
    'nested': {
        'array3': jnp.array([8.0, 9.0, 10.0, 11.0, 12.0])
    }
}

ARGS = {
    'tree': tree,
    'i': i,
    'element': element
}
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 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
tree_slice Ran
ran on a synthesized input
instadeepai/jumanji/jumanji/tree_utils.py
code served (permissive licence) · get_code("5fd85e6378af5827")
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 jax
import jax.numpy as jnp
import chex

# Create a simple tree structure with JAX arrays
# The function slices all leaves by index i, so we need arrays with at least 1 dimension
tree = {
    'a': jnp.array([[1, 2, 3, 4],
                    [5, 6, 7, 8]]),  # shape (2, 4)
    'b': jnp.array([[10, 20],
                    [30, 40]]),  # shape (2, 2)
    'nested': {
        'c': jnp.array([[100, 200, 300],
                        [400, 500, 600]])  # shape (2, 3)
    }
}

# Index to slice at
i = 0

ARGS = {
    'tree': tree,
    'i': i
}
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 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
tree_transpose Ran
ran on a synthesized input
instadeepai/jumanji/jumanji/tree_utils.py
code served (permissive licence) · get_code("a9e70002440309af")
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 jax
import jax.numpy as jnp

# tree_transpose takes a sequence of trees with identical structure
# and converts them into a single tree of stacked arrays

# Create a simple list of trees where each tree is a dict with arrays
# We'll use a batch size of 2 (as per rules) and dimension 4

tree1 = {
    'a': jnp.array([1.0, 2.0, 3.0, 4.0]),
    'b': jnp.array([[1.0, 2.0], [3.0, 4.0]]),
    'c': {'nested': jnp.array([5.0, 6.0])}
}

tree2 = {
    'a': jnp.array([5.0, 6.0, 7.0, 8.0]),
    'b': jnp.array([[5.0, 6.0], [7.0, 8.0]]),
    'c': {'nested': jnp.array([9.0, 10.0])}
}

list_of_trees = [tree1, tree2]

ARGS = {
    'list_of_trees': list_of_trees
}
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 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
is_tree_with_leaves_of_type Not yet run
unverified (harvested, no recorded run)
instadeepai/jumanji/jumanji/testing/pytrees.py
code served (permissive licence) · get_code("0e2206f9f4d71a24")
How it ran

no invocation recorded.

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 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 8 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

Open-source reinforcement learning (RL) environments have played a crucial role in driving progress in the development of AI algorithms. In modern RL research, there is a need for simulated environments that are performant, scalable, and modular to enable their utilization in a wider range of potential real-world applications. Therefore, we present Jumanji, a suite of diverse RL environments specifically designed to be fast, flexible, and scalable. Jumanji provides a suite of environments focusing on combinatorial problems frequently encountered in industry, as well as challenging general decision-making tasks. By leveraging the efficiency of JAX and hardware accelerators like GPUs and TPUs, Jumanji enables rapid iteration of research ideas and large-scale experimentation, ultimately empowering more capable agents. Unlike existing RL environment suites, Jumanji is highly customizable, allowing users to tailor the initial state distribution and problem complexity to their needs. Furthermore, we provide actor-critic baselines for each environment, accompanied by preliminary findings on scaling and generalization scenarios. Jumanji aims to set a new standard for speed, adaptability, and scalability of RL environments.

For agents

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

get_harvested_code_for_paper("2306.09884")
get_code_for_paper("2306.09884")
have("2306.09884")

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

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

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

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

Connect an agent — have() is free.