SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2206.10558 · NeurIPS · 2022

EnvPool: A Highly Parallel Reinforcement Learning Environment Execution Engine

Bo Liu, Min Lin, Shuicheng Yan, Ting Luo, Jiayi Weng, Shengyi Huang, Denys Makoviichuk, Viktor Makoviychuk, Zichen Liu, Yufan Song, Yukun Jiang, Zhongwen Xu

arXiv · PDF · Open in the Atlas

Code that ran

5 of 5 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; 1 failure of our instrument; 0 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/2206.10558.json · badge: /api/ran/2206.10558.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
sail-sg/envpool canonical (classifier label)
classifier basis not recorded on the link
3 ran · 0 no recorded run
vwxyzjn/envpool-cleanrl community (classifier label)
classifier basis not recorded on the link
2 ran · 0 no recorded run
FunctionStatusWhere it lives
asset_base_path Ran
ran on a synthesized input
sail-sg/envpool/envpool/registration.py
code served (permissive licence) · get_code("f5ee14adedd4aa20")
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.

import os
import tempfile
import shutil

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

# Create a local_asset_path subdirectory
local_asset_path = "test_assets"
os.makedirs(os.path.join(test_dir, local_asset_path), exist_ok=True)

# The function signature is:
# def asset_base_path(package_name: str, local_asset_path: str) -> str:

ARGS = {
    "package_name": "envpool_assets",
    "local_asset_path": "test_assets"
}
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
encode Ran
ran on a synthesized input
sail-sg/envpool/envpool/craftax/oracle.py
code served (permissive licence) · get_code("055188fa794e90ef")
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 1, dtype family float, shape (12,) 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.

from dataclasses import dataclass, field
import numpy as np

@dataclass
class InnerState:
    values: np.ndarray = field(default_factory=lambda: np.array([1.0, 2.0, 3.0]))
    matrix: np.ndarray = field(default_factory=lambda: np.array([[1.0, 2.0], [3.0, 4.0]]))

@dataclass
class OuterState:
    inner: InnerState = field(default_factory=InnerState)
    scalar: float = 5.0
    array: np.ndarray = field(default_factory=lambda: np.array([7.0, 8.0, 9.0, 10.0]))

state = OuterState()

layout = {
    'inner.values': np.array([1.0, 2.0, 3.0]),
    'inner.matrix': np.array([[1.0, 2.0], [3.0, 4.0]]),
    'scalar': np.array(5.0),
    'array': np.array([7.0, 8.0, 9.0, 10.0])
}

ARGS = {
    'state': state,
    'layout': layout
}
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 1, dtype family float, shape (12,) — shape (12,) 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
flatten Ran
ran on a synthesized input
sail-sg/envpool/envpool/craftax/oracle.py
code served (permissive licence) · get_code("29f63787cb6f151f")
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.

from dataclasses import dataclass
import numpy as np

@dataclass
class InnerConfig:
    """A nested dataclass to test the recursive flattening."""
    values: np.ndarray
    scale: float

@dataclass
class OuterState:
    """Top-level dataclass with nested structure."""
    inner: InnerConfig
    weights: np.ndarray
    fractal_noise_angles: np.ndarray  # This field should be skipped
    name: str

# Create test data
inner_config = InnerConfig(
    values=np.array([1.0, 2.0, 3.0, 4.0]),
    scale=2.5
)

outer_state = OuterState(
    inner=inner_config,
    weights=np.array([[1, 2, 3], [4, 5, 6]]),
    fractal_noise_angles=np.array([0.1, 0.2, 0.3]),  # Should be ignored
    name="test_state"
)

ARGS = {
    'state': outer_state
}
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 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
layer_init Ran
ran; our contract draft was wrong, not the code
vwxyzjn/envpool-cleanrl/ppo_atari_envpool.py
pointer only (licence: MIT); the stored copy get_code serves, from jaggbow/saf, is pointer only (licence: NONE) · get_code("beb42d440ccf2925")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from jaggbow/saf, and GitHub detected no licence in that repository when it was checked. 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.

make_env Ran
ran on a synthesized input
vwxyzjn/envpool-cleanrl/ppo_continuous_action.py
code served (permissive licence) · get_code("3ee033959764bfd6")
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 gym
import numpy as np

ARGS = {
    "env_id": "CartPole-v1",
    "seed": 42,
    "idx": 0,
    "capture_video": False,
    "run_name": "test_run"
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
gym, numpy — 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

Also present in other papers' code

Of 5 samples lifted from this paper's linked repositories, 5 carry a function identity and 0 do not. Of the 5 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 4 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
layer_init 28 other papers
6 dated earlier, 21 later, 1 undated · 2 only as an assembly brick
1611.02779 (2016-11)
RL$^2$: Fast Reinforcement Learning via Slow Reinforcement Learning
1611.05763 (2016-11)
Learning to reinforcement learn
1703.03400 (2017-03)
Model-Agnostic Meta-Learning for Fast Adaptation of Deep Networks
and 25 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

There has been significant progress in developing reinforcement learning (RL) training systems. Past works such as IMPALA, Apex, Seed RL, Sample Factory, and others, aim to improve the system's overall throughput. In this paper, we aim to address a common bottleneck in the RL training system, i.e., parallel environment execution, which is often the slowest part of the whole system but receives little attention. With a curated design for paralleling RL environments, we have improved the RL environment simulation speed across different hardware setups, ranging from a laptop and a modest workstation, to a high-end machine such as NVIDIA DGX-A100. On a high-end machine, EnvPool achieves one million frames per second for the environment execution on Atari environments and three million frames per second on MuJoCo environments. When running EnvPool on a laptop, the speed is 2.8× that of the Python subprocess. Moreover, great compatibility with existing RL training libraries has been demonstrated in the open-sourced community, including CleanRL, rl_games, DeepMind Acme, etc. Finally, EnvPool allows researchers to iterate their ideas at a much faster pace and has great potential to become the de facto RL environment execution engine. Example runs show that it only takes five minutes to train agents to play Atari Pong and MuJoCo Ant on a laptop. EnvPool is open-sourced at https://github.com/sail-sg/envpool. * Currently at OpenAI. Detailed author contributions can be found in Appendix J. 36th Conference on Neural Information Processing Systems (NeurIPS 2022) Track on Datasets and Benchmarks.

For agents

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

get_harvested_code_for_paper("2206.10558")
get_code_for_paper("2206.10558")
have("2206.10558")

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

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

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

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

Connect an agent — have() is free.