---
title: "Leveraging Procedural Generation to Benchmark Reinforcement"
description: "Procgen Benchmark uses generated game levels to test how efficiently reinforcement learning agents learn and how well they play unseen levels."
canonical: "https://research.elamur.ai/free/en/papers/cobbe-2019-leveraging-procedural-generation-benchmark-reinforcement/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/) · [Constitution](https://md.constitution.elamur.ai/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/cobbe-2019-leveraging-procedural-generation-benchmark-reinforcement/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2019](https://md.research.elamur.ai/free/en/papers/2019/) / Leveraging Procedural Generation to Benchmark Reinforcement Learning

# Leveraging Procedural Generation to Benchmark Reinforcement Learning

Paper · 2019 · Karl Cobbe, Christopher Hesse, Jacob K. Hilton et al.

**Authors:** [Karl Cobbe](https://md.research.elamur.ai/free/en/authors/karl-cobbe/), [Christopher Hesse](https://md.research.elamur.ai/free/en/authors/christopher-hesse/), [Jacob K. Hilton](https://md.research.elamur.ai/free/en/authors/jacob-k-hilton/) and [John Schulman](https://md.research.elamur.ai/free/en/authors/john-schulman/) · **Year:** 2019 · **Venue:** arXiv (Cornell University) · **Licence:** [arXiv — non-exclusive license to distribute](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

[**157** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W2994073215|W3034946435) · [arXiv (Cornell University)](https://openalex.org/S4306419644) · [licence](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

- [PDF](https://arxiv.org/pdf/1912.01588)
- [arXiv 1912.01588](https://arxiv.org/abs/1912.01588)
- [OpenAlex](https://openalex.org/W3034946435)

Citations: OpenAlex, 2026-10-14.

## Summary

An agent that plays a familiar game well may struggle as soon as the obstacles move. Its score on the familiar game gives little indication of how much it has learned about navigating obstacles in general. Procgen Benchmark turns that distinction into an experiment. It provides 16 game environments whose levels are generated by software. Each game keeps its own rules, while its layouts, objects, or events can change from level to level. Researchers can train an agent on a known collection of levels and then measure how it plays on levels it has never encountered. The same environments also let researchers ask how quickly an agent learns when varied levels are available throughout training.

The authors use Proximal Policy Optimization, or PPO, to see how much level variety an agent needs. They train separate agents on sets ranging from 100 to 100,000 levels per game. Agents frequently score much better on small training sets than on unfamiliar levels, and closing the gap takes as many as 10,000 levels in some cases. In a separate experiment, agents repeatedly start at the beginning of a fixed sequence and advance by completing each level. Many learn to play the opening levels, yet perform poorly when tested on randomly chosen sequences. The training scores in this experiment make genuine progress visible, but only on the part of the game the agents have repeatedly practiced.

A standard generalization run uses 500 training levels per hard game and measures performance on unseen levels without further practice. To measure sample efficiency, the authors instead make the full distribution of levels available during training and testing, and track reward against the number of interactions used to learn. Across these protocols, widening the convolutional network used by PPO improves performance. The smaller Nature-CNN architecture, a baseline familiar from Atari experiments, barely learns on Procgen. In a separate comparison under the full-distribution protocol, PPO performs more consistently across the games, while a tuned Rainbow implementation does better in several individual environments.

The paper makes the level distribution part of what an experiment measures. A high reward may show that an agent can repeat a successful response on familiar levels, or it may show that the agent can recognize when that response is useful in a new situation. The train and test design gives those outcomes separate measurements. The authors release the environments as open-source software so that subsequent experiments can make the same distinction.

## Deep dive: Leveraging Procedural Generation to Benchmark Reinforcement Learning

Procgen Benchmark uses generated game levels to test how efficiently reinforcement learning agents learn and how well they play unseen levels. · about 36 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### What a successful run establishes

In reinforcement learning, an agent acts in an environment and receives rewards as it goes. The sequence of choices matters because an action changes the situation in which the next decision is made. A policy is the rule the agent uses to choose its actions. In a game played from pixels, that rule has to turn an image into a decision whose consequences may become apparent only after further moves. Finding a policy that repeatedly earns reward is an accomplishment. The evaluation question is how much that accomplishment tells us about performance in other situations.

Imagine watching an agent approach a chasm in a platform game. The agent jumps at the right moment and lands safely. On the next attempt it does the same thing. These runs establish that the agent can cross that chasm under those conditions. Moving the chasm, widening it, or placing an obstacle near the landing point creates a different test. The policy has to respond to the features of the current level. A researcher can learn something from the change in score without inspecting the agent's internal representation. The same test applies to an agent that crosses by recognizing the shape of the terrain and one that has learned some other reliable visual cue.

The authors frame the problem through the distinction between variety across games and variety within a game. The [Arcade Learning Environment](https://md.research.elamur.ai/free/en/papers/bellemare-2012-arcade-learning-environment-evaluation-platform/) offered a collection of games with different objectives and styles of play. A method that worked across the collection had to cope with a broad range of problems. Within an individual game, however, an agent could repeatedly encounter very similar states. Consequently, breadth across the benchmark and transfer within a particular game answered different questions. An agent could master recurring situations in each game separately and still leave uncertainty about how it would handle a new level in any of them.

Earlier modifications changed some of what an agent encountered within a game. Sticky actions introduce uncertainty into whether a chosen action takes effect immediately, a change discussed in [Revisiting the Arcade Learning Environment](https://md.research.elamur.ai/free/en/papers/machado-2017-revisiting-arcade-learning-environment-evaluation/). Other work placed natural video behind the game. A change in execution can make a familiar action sequence harder to repeat exactly. A moving background can make the same game state look different. The Procgen authors argue that these interventions still leave much of the underlying range of situations intact. A new pattern of platforms or barriers can alter the decision itself, even when the rules governing movement stay familiar.

The authors also draw on earlier studies in which reinforcement learning agents overfit sizable training sets. Overfitting here means that a policy works especially well on the situations used to train it and loses performance on others relevant to the same task. The possibility matters in [evaluation and benchmarks](https://md.research.elamur.ai/free/en/topics/evaluation-benchmarks/) because repeated success on familiar situations can sustain an impressive training curve. The reward arrives all the same whether a policy can reuse a skill broadly or has found a response that works within a narrow set of circumstances. A split between practice and evaluation makes the distinction measurable.

#### What earlier benchmarks could vary

One earlier approach used the levels of Sonic the Hedgehog as separate training and test material. That design made evaluation on unfamiliar levels explicit. The difficulty, as the Procgen authors describe it, was that the available training collection was small enough to leave agents struggling on the test levels, with little progress for the benchmark to distinguish. This illustrates a practical problem with setting the difficulty of a generalization test. If almost every agent fails, the split may pose a meaningful challenge while revealing little about differences among the agents being compared.

CoinRun addressed the supply of levels directly. A program could create enough levels to populate much larger collections for practice and evaluation. The agent learned platforming within a fixed game, and researchers could change the amount of variation it experienced. Procgen makes CoinRun part of a broader suite. That expansion matters because a pattern that appears in platform jumping might depend on the particular controls, rewards, or layouts of a platformer. Multiple game families let researchers examine whether it also appears when the task involves a different kind of recognition or movement.

The General Video Game AI framework had already encouraged procedural generation in reinforcement learning. The paper describes associated research that used 4 generated environments and found that agents could overfit their particular training collections. The authors identify that work as a direct influence on Miner and Leaper. Procedural generation was therefore already an experimental technique as well as a way to make content. Procgen applies it across a common benchmark protocol, so that the range of training levels can serve as an explicit experimental variable in every game.

Obstacle Tower took a different approach by concentrating visual recognition, control, and planning in a procedurally generated 3D environment. The Procgen authors acknowledge the value of investigating generalization in a single complex world. Their suite distributes the investigation across distinct games instead. These designs expose different aspects of performance. In a complex world, success can require several abilities to work together in one episode. Across a suite, researchers can examine whether a change consistently helps games whose demands differ, or whether the apparent benefit is concentrated in a particular kind of task.

The paper also discusses benchmarks whose use of variation follows from other research goals. The Behaviour Suite uses simple settings to examine particular reinforcement learning capabilities, and the authors identify its MNIST contextual bandit as the benchmark's visual generalization task. Safety Gym randomizes environments extensively to discourage learning responses tied to a particular layout while studying safe exploration and constraints. The Animal-AI Environment evaluates agents on tasks inspired by animal cognition that the agents do not encounter during training. Meta-World uses related continuous-control tasks whose shared mechanics give a learner something it might reuse when task details change.

These examples share the need to decide what will remain familiar when the test changes. A shared physical system gives continuity across control tasks. A shared game gives continuity across changes in layout and appearance. Procgen makes that second arrangement the basis of its design. Each game's generator specifies which situations can occur and how common they are. The resulting level distribution gives researchers a practical way to vary how much of the game the agent sees before evaluation while keeping a recognizable task on both sides of the split.

### The method, step by step

#### Generate a new situation under familiar rules

A Procgen environment consists of a game and a procedure for constructing instances of that game. The game specifies what actions do, what earns reward, and when play ends. The procedure can choose a layout, position entities, select visual assets and backgrounds, or determine when objects appear. Which details change depends on the game. For a platformer, a new level may require a different route through the terrain. In a scrolling game, the map can matter less than when and where obstacles enter the screen. Both are instances of procedural generation, the use of an algorithm to produce playable content.

A level seed identifies a generation outcome. It gives the experimenter a handle for returning to a particular level or choosing a different one. The paper states that the state transitions in the games are deterministic. Once the relevant state and action are fixed, the transition follows from the game. Chaser illustrates how this fits with behavior that looks random during play. Its enemies make pseudorandom choices conditioned on the level seed. At the scale of the benchmark, variation comes from changing the level or from the different states an agent reaches through its actions. A deterministic game can thus support a diverse training distribution.

The following sequence describes how the pieces fit together. Access to levels is the part that changes with the evaluation protocol.

Training and testing a policy in Procgen The steps in order.

#### Vary the parts of a game that affect decisions

CoinRun illustrates variation in terrain and obstacles. The player starts on the left and aims for a coin on the right. A level can contain chasms, enemies that pace, and stationary saws. The generator controls the arrangement of platform sections along with the placement of crates and obstacles. Two levels can therefore require the same kind of motor skill while calling for different jumps. The paper also distinguishes this version from the previously released CoinRun. The old observations included an explicit visual indication of velocity. The benchmark version omits it, which the authors describe as making the game harder.

Jumper and Maze show how navigation can vary while the goal stays simple. Jumper puts a carrot in a world that can require travel upward or downward. A compass indicates the goal's direction and distance, but the agent still has to find a passable route and use double jumps where needed. Its layouts come from cellular automata seeded with maze-like structures. The generator deliberately breaks up long vertical edges so that ledges can offer a way past them, and keeps adjacent obstacles from creating impassable arrangements. Maze uses Kruskal's algorithm to construct layouts with sizes ranging from 3x3 to 25x25. The goal is always the cheese. The route and the scope of the search vary.

Other games make the timing and identity of objects central. In Leaper, the agent must avoid cars and use moving logs to cross water. The generator changes the number of lanes and when cars and logs appear. Road and water lane counts are positively correlated, so one part of a longer crossing tends to accompany another. BigFish changes when and where other fish appear. Relative width determines whether an encounter offers food or ends the episode. Growing can change the significance of the same kind of visual object. In FruitBot, barrier openings and item placement vary, and the stream of objects includes both rewarded fruit and items that carry a larger penalty when collected. These games give visual recognition immediate consequences for control.

Several environments use a relationship between objects as part of the task. In Heist, the agent must obtain keys of the relevant colors to pass locks and reach the gem. Generation changes the maze and places keys and locks subject to solvability constraints. The observation shows which keys the agent already holds. In Plunder, an on-screen target indicates the color of the ships the player should hit. The generator can change the ship types and where and when they appear. A policy has to use the relationship signaled by the display to decide which moving objects are worth aiming at. Firing consumes time on the game clock, and hitting a friendly ship incurs a large time penalty.

Variation also changes how much reward is available during a run. In CaveFlyer, a level can contain targets that yield reward before the player reaches the friendly ship at the goal. The generator creates the cave layout and configures the objects inside it. In Climber, stars placed near reachable platforms reward intermediate progress, with a larger reward for collecting them all. A generated platform near an enemy can pose a different approach problem from an empty one, so the generator constrains enemy placement where it would make completion impossible. In Ninja, the reward comes from reaching the mushroom at the end, and the player can vary the strength of a jump by charging it. These reward patterns influence what a learning agent can discover during partial attempts.

The generator's freedom is subject to the needs of the game. Entity positions are generally sampled uniformly among valid locations, with additional restrictions where the design calls for them. Miner forbids spawning objects immediately beside the player. There, an agent can dig through dirt that supports boulders and diamonds, so moving through a level can change which objects fall. Chaser generates mazes and removes walls to eliminate dead ends, then places its large stars in different quadrants. The restrictions focus the generated variety on configurations the game is designed to support. The authors believe greater than 99% of levels are solvable in each environment, while acknowledging the absence of a strict guarantee.

#### Give the games a shared interface

The games share a discrete action space with 15 choices. The training code can use the same action interface everywhere, even though a particular choice can have no effect in a game that does not need it. An observation is a color image with the following shape.

```
64 × 64 × 3
```

The first 64 is the image height in pixels and the second 64 is its width. The 3 stands for the red, green, and blue channels. The multiplication signs mark the dimensions of the image array. The observation supplies a view of play from which the agent must infer what is relevant to its next action. Sharing this format means that the same kind of convolutional network can process images across the suite. A network trained for a given game still has to learn which objects and arrangements matter in that game.

The authors aimed to make ordinary levels tractable for baseline agents. The emphasis is on identifying game elements and responding with appropriate movement, with relatively modest demands on memory and exploration in the default settings. A current frame can include useful cues such as the inventory in Heist or the direction indicator in Jumper. Other information can still be hard to infer from a snapshot. The single-frame baseline makes that design choice testable through comparisons with agents that see recent frames or carry an internal state across decisions.

Hard and easy are settings of the generator's distribution. They describe the kinds of levels a run tends to encounter. An individual easy level can still pose difficulties, and individual levels vary considerably in both settings. Most of the paper's main experiments use the hard setting. The easy setting reduces the training resources the authors recommend and is also used for the fixed-sequence ablation. By simulating and rendering thousands of steps each second using just one CPU core, the implementation is designed to let training gather extensive experience from generated levels.

#### Choose the training distribution for the question

The learning data consist of interactions, instead of a fixed collection of labeled images. A level defines a situation in which the agent can act. Its actions determine the states it visits and the rewards it encounters. Two training runs on the same collection of levels can therefore collect different experience. A timestep measures an interaction with the game, while the number of training levels describes the supply of situations from which the run draws. The paper can vary the supply of levels while keeping the interaction budget fixed.

For sample efficiency, training and testing both use the full distribution for each game. Here sample efficiency is the amount of performance a learner can attain from a given amount of interaction. An agent that learns faster earns stronger returns earlier in the training budget. Broad level variation is present while the policy is learning, so a good learning curve reflects progress under a stream of changing situations. This evaluation asks a different question from whether the agent can learn to exploit a particular finite level collection.

For generalization, training samples levels from a designated finite set, and evaluation uses the full distribution to assess play on unfamiliar levels. The paper also describes this evaluation in terms of held-out levels. The generated population is large enough for the authors to use full-distribution testing as their way to measure transfer beyond the finite training collection. The standard hard protocol assigns 500 training levels to each game. For the easy setting, the recommendation is 200 training levels per game.

An agent completes the generalization evaluation without updating itself on the test levels. The authors call this zero-shot performance. Each held-out level is an opportunity to apply what the policy has already learned. A low score could reflect trouble recognizing a changed scene, choosing a successful movement, or reaching the goal through a new route. The split locates the problem at transfer to unfamiliar situations, while the game-specific results help narrow down which demands the agent found difficult.

The distinction between the protocols is particularly useful when interpreting apparent sample efficiency. Under the finite-set protocol, repeating a level can produce faster gains on that level. Evaluating training performance alone would count those gains without establishing that they carry over. Under full-distribution training, the source of experience remains broad. Both designs report reward against interactions, but the score has a different meaning because the agent had different access to levels while learning.

#### Train the baseline and vary its capacity

The main baseline uses Proximal Policy Optimization, abbreviated PPO. The training loop gathers experience from play, then uses that experience to revise the policy. The paper adopts PPO as a reference implementation for running the benchmark and uses the convolutional architecture from IMPALA by default. Convolutions process the images so that the action decision can depend on visual features such as platforms, hazards, or the boundaries of a passage. The default agent sees the current frame. The experiments use [Adam](https://md.research.elamur.ai/free/en/papers/kingma-2014-adam-method-stochastic-optimization/) for optimization.

The standard hard-setting PPO run uses 200M timesteps. The authors take that budget from precedent in Atari evaluation and describe the choice as arbitrary. It is an experimental convention that makes comparisons easier to arrange. The generalization protocol allows longer training, although the baseline runs also use 200M timesteps in practice. For easy environments the paper recommends 25M timesteps. The training budget is an important part of the sample-efficiency question and an implementation detail to report when interpreting a generalization score.

The architecture comparison keeps the IMPALA design and widens its convolutional layers by channel multipliers of 1, 2, or 4. A channel here is a component of the representation computed at a layer. Increasing the number of channels allows a layer to represent more features. Since widening can increase both the input and the output size of a convolution, parameter count grows more quickly than the channel multiplier itself. The paper gives the approximate scaling factor as follows.

```
k²
```

Here k is the multiplier applied to the number of channels at each convolutional layer, and the superscript ² means that the multiplier is squared. The resulting expression is the approximate factor by which the total number of parameters grows. It describes the size of the network, with no claim that its reward or learning speed follows the same relation.

For the wider IMPALA variants the authors adjust the learning rate, the setting that controls the size of an optimization update. They use the following multiplier.

```
1 / √k
```

The 1 is the numerator, the slash denotes division, and √k is the square root of the same channel multiplier k. Thus the learning rate is scaled down as the channel count rises. The authors use that rule to match the scaling of the initialized weights under their initialization method. The fourth architecture in the study, Nature-CNN, uses the same learning rate as the narrowest IMPALA variant. The paper reports leaving the other hyper-parameters fixed across these architecture comparisons after sweeps over settings including batch size and the number of training passes per rollout.

#### Express the returns on a common scale

An episode has an accumulated reward, called its return. The paper reports raw episodic return for individual games where the scoring rules are already meaningful. When it needs a single score for the suite, it first rescales each game's expected return.

```
Rₙₒᵣₘ = (R − Rₘᵢₙ) / (Rₘₐₓ − Rₘᵢₙ)
```

Rₙₒᵣₘ is the normalized return for one game. R is the raw expected return under the evaluation in question. Rₘᵢₙ and Rₘₐₓ are the lower and upper reference values chosen for that game. The minus signs measure, respectively, the distance from the lower reference and the full interval between the references. Division expresses the former in units of the latter. The equals sign defines the normalized score. The authors expect it to fall nearly always between 0 and 1 because the reference values approximately bound the expected raw return.

The lower reference comes from training a policy with its observations masked. This establishes what reward a learner can attain without seeing the game, which may depend on the scoring rules. An upper reference is straightforward where the maximal practical score can be worked out directly, as in games such as Maze or CoinRun. For CaveFlyer, Chaser, and Climber, the authors generate many levels and estimate the average of their attainable maxima. For StarPilot and FruitBot, they use the score from PPO after 8 billion timesteps at an 8x larger batch size than the default. They judge the resulting play to be close to optimal.

The aggregate is the mean of the per-game normalized returns. Rescaling reduces the influence that a game would otherwise have just because its raw rewards use larger numbers. Averaging then gives the benchmark a common score on which an improvement in any game can register. The authors prefer this to a median and design the games to have broadly comparable difficulty so that a few environments are less likely to drive the signal. Individual game curves still matter because the mean can conceal where a method helps and where it struggles.

### Experiments and results

#### Training on more levels changes what agents learn

The data in the level-count experiment are generated separately for each game. The authors construct finite training sets ranging from 100 to 100,000 levels. PPO trains for 200M timesteps on each set, and the authors measure performance on held-out levels. The main figure reports mean raw episodic return for each game, with a single level in each episode. It shows the mean and standard deviation across 4 seeds. The latter describe the variation among experimental runs. In this context those runs are manufacturing repeated measurements, while the levels inside a run make up the practice and evaluation material.

Small training collections yield strong overfitting in nearly every game. The authors report that as many as 10,000 levels can be necessary to close the train–test gap. This is a result about the amount of variety needed by the agents in the experiment. It also explains why the authors run a sweep rather than choose a single finite collection and assume that it has the same meaning for every game. A collection adequate for one game's mechanics can leave a policy with too little practice on the kinds of situations another game generates.

In many games, the score on training levels can itself rise as the training collection expands past a threshold. That result is important because the agents still use the same interaction budget. Access to additional levels changes where the experience comes from, and under this allocation agents can become better at the levels on which they train. The paper attributes this to an implicit curriculum. A larger collection can contain situations in which useful behavior is easier to discover, and behavior discovered there can improve play on other training levels. CoinRun had previously exhibited this pattern. The larger suite shows that it recurs in other games, while the curves leave room for differences among them.

The authors turn the broader sweep into a more economical repeatable test. They select 500 hard levels per game as a set size near the region where agents begin to show generalization. That size is intended to leave room for algorithms to improve on unfamiliar levels. Running the full level-count sweep each time would be considerably more expensive. The standard baseline figure reports means and standard deviations across 3 seeds. Even with this supply of training levels, most games show substantial overfitting after the baseline's 200M timesteps.

The comparison requires attention to both absolute returns and the separation between training and testing. An agent that plays poorly on both sets will have a small gap. That is a different result from an agent that achieves high return on held-out levels and nearly matches its training performance. The authors observe games where the gap is small because both scores are poor. The protocol is therefore most informative when the test return stays visible as the main outcome, with the training curve used to help explain it.

#### The standard and reduced-cost protocols

The easy-setting results cover both questions. For sample efficiency, the training and evaluation levels come from the full easy distribution. For generalization, the agent trains on 200 easy levels per game and is evaluated on the full easy distribution. These experiments retain the interpretation of the respective hard protocols, while changing the population of levels and the recommended interaction budget. A score from the easy distribution belongs to that distribution and need not stand in for the return on hard levels.

The paper gives approximate costs for its PPO setup. A standard hard-setting run of 200M timesteps on one game costs approximately 24 GPU-hrs and 60 CPU-hrs. The recommended easy-setting run of 25M timesteps costs roughly 3 GPU-hrs. The chart compares the reported GPU requirements of the recommended runs. Its comparison is about the resource needed to run each protocol.

Approximate GPU hours per Procgen environment for the hard and easy PPO protocols The reduced-cost easy protocol uses less GPU time.

**The numbers**

| System or setting | GPU-hrs |
| --- | --- |
| Hard difficulty, standard PPO run | 24 |
| Easy difficulty, recommended PPO run (this paper) | 3 |

A timestep and a GPU hour capture different costs. Timesteps count how much experience the agent obtains. GPU time also depends on how that experience is processed, including the network used for training. CPU time matters for simulating the environments. Reporting these resource estimates gives a researcher a way to plan the benchmark, while the learning curves describe progress in terms of interactions. The paper identifies the easy version as a practical option when the full hard run is too expensive.

The authors also test their Procgen-tuned PPO implementation in the Arcade Learning Environment and describe its performance as competitive. In that experiment, the Atari agent has a frame stack of 4 and plays without sticky actions. That comparison concerns the portability of the PPO setup. The reported Atari result and the Procgen generalization results answer different questions because the latter explicitly change the availability of generated levels.

#### Wider networks improve the baseline

The architecture experiment compares 4 configurations: the Nature-CNN baseline and the IMPALA network at channel multipliers of 1, 2, and 4. Each is evaluated under the full-distribution sample-efficiency protocol and the finite-level generalization protocol. The aggregate figure reports mean performance and standard deviation across 3 seeds. The appendix separates the results by game, including both training and held-out traces for agents trained on 500 levels.

The larger architectures improve performance on both evaluations. Under full-distribution training, the wider IMPALA networks learn more effectively from the available interactions. Under finite-set training, larger networks achieve better results on unfamiliar levels. Nature-CNN barely learns on the suite. Improvements vary by game, so the aggregate pattern is best understood as a recurring benefit across the benchmark with a different magnitude in different environments. The size settings are explicit, while the return changes are conveyed by the learning curves.

The result gives some perspective on failure under diverse training. A lack of progress can reflect the capacity of the network used to process the game as well as the difficulty of the game itself. A compact architecture common in Atari experiments gives weak results here, whereas wider networks make progress under the same benchmark protocols. The widening experiments also show why it helps to keep sample efficiency and test return in view together. Better use of interactions under full-distribution training and better transfer after finite-set training are both observed in this study, and either result can be examined on its own.

#### PPO and Rainbow respond differently to the benchmark

The algorithm comparison uses the full distribution of levels for both training and testing. It is a sample-efficiency comparison between the authors' PPO and Rainbow implementations. Rainbow uses the IMPALA convolutional architecture, as PPO does. It collects experience from 64 parallel copies of the game into a common replay buffer, which stores past transitions for reuse in training. The authors first tried the default Rainbow hyper-parameters with distributional return bounds chosen for the environment. The agents struggled to acquire useful behavior.

The working Rainbow setup averages gradients from 8 parallel workers sharing network parameters. A gradient is the update information computed from a batch of experience. Combining workers' gradients can reduce variation in the combined update. The authors report that this change substantially improves performance. Their explanation is that the diversity of the environments may make individual gradients especially variable, potentially contributing to unstable learning. That mechanism is their hypothesis, supported by the improvement after the change rather than directly measured as the cause of the original failures.

They also change the schedule to improve training time. The batch size increases by a factor of 16, updates become less frequent by a factor of 16, and the learning rate rises by a factor of 4. The paper reports a reduction in elapsed training time without a corresponding loss of performance. A local sweep over learning rates supports the selected value for this configuration. In FruitBot, the minimum return value used in Rainbow's distributional setup is -5. That is a training setting for Rainbow and should be distinguished from FruitBot's lower reference for reporting normalized benchmark scores.

The comparison figure shows means and standard deviations across 3 seeds. PPO is more consistent across the suite, and Rainbow achieves substantial improvements in several games. Consistency and peak performance in an individual game are different properties. Considering the per-game results alongside the aggregate makes it possible to see both. The authors leave open the reason Rainbow learns poorly in some environments after tuning. Since this comparison uses full-distribution training, the reported advantage in a particular game is evidence about learning from that distribution, with no accompanying ranking for transfer from a finite training collection.

### What the ablations show

#### Fixed sequences allow progress that transfers poorly

The paper's explicit ablation changes when the agent sees different levels. In the ordinary protocol, a new episode starts on a sampled level. In the fixed-sequence experiment, every episode starts on the same opening level. Success advances the player to the next level in the sequence. Failure ends the episode. An agent can in principle reach arbitrarily far, but the authors report that it rarely progresses beyond the 20th level in any environment. They use easy difficulty to keep learning tractable under this arrangement.

The sequence creates a dependency between learning the beginning of the game and encountering what comes later. The opening levels are visited repeatedly. Further levels appear in the training experience only after the agent learns to pass each preceding one. Consequently, the agent's effective experience is concentrated in the early part of the sequence, even though many more levels could in principle be reached. The experiment approximates the recurring progression that motivated the authors' concern about familiar game benchmarks.

At test time the procedure chooses level sequences at random. The same game mechanics apply, and success can still bring the agent to another level. What changes is the order and identity of the situations it must solve. The figure reports mean raw episodic return across 4 seeds, with standard deviations. Episodes can span multiple levels, so the score in this ablation describes a different unit of play from the single-level episodes in the level-count experiment.

In most games, the agents learn to handle several of the early levels but perform very poorly on random sequences. The gap indicates that the competence acquired from repeatedly starting at the same place transfers weakly to the broader game. It does not settle whether a policy stored an action sequence, learned a few visual cues that happen to work early on, or acquired some combination of narrow skills. A fresh sequence exposes the limited reach of the behavior in all those cases. The result also shows why the ability to advance through increasingly many familiar levels gives an incomplete picture when test performance is the objective.

#### Level count affects exposure as well as memorization

The size sweep is a controlled comparison of access to level variety. The game, training method, and timestep budget are held in place while the training collection expands. The improvement on held-out levels shows that the opportunity to learn from more distinct situations matters. The improvement on training levels in many games adds a complementary observation. Extra variety can support learning even on the set currently supplying the experience.

A larger training collection can change which successful behaviors are discoverable early. Consider a game in which a useful movement is hard to discover near a cramped obstacle but easier in a relatively open area. If the training collection includes both kinds of situation, experience with the second can help the agent act in the first. This is the kind of effect the authors have in mind when they describe an implicit curriculum. The generator supplies the mixture of settings without arranging a deliberate progression for the learner. The experiments vary the collection size and measure the resulting curves. They do not trace which particular level supplied the decisive experience.

The exploration variants look at the other end of the range. The authors name 8 environments with a handpicked high-difficulty level that is especially hard to explore. These include CaveFlyer, Heist, Maze, and Jumper. Here training stays on the selected level, and the focus is on finding reward. The authors judge a random agent extraordinarily unlikely to encounter any. Their PPO baseline achieves a mean return of 0 on all of the selected tasks after 200M timesteps.

The result is a baseline failure to discover reward in this setting. That is a separate capability from transfer across levels. An agent could be good at exploring a fixed maze and still struggle to reuse what it learned in a maze with a different layout. Conversely, success on ordinary generated levels can coexist with an inability to begin learning on a handpicked level where reward is hard to find. The variants make it possible to expose that latter weakness without interpreting it as weak generalization.

#### Changing visual history has uneven effects

The paper compares the single-frame baseline with agents that receive a stack of 4 frames and agents with a long short-term memory network, or LSTM, above the convolutional network. A frame stack puts recent images together for the policy, giving it direct access to short-term visual changes. The recurrent LSTM carries an internal state forward as actions are taken. This gives it a way to use information from earlier parts of an episode even when those frames are gone.

Most standard settings show broadly comparable performance across the approaches. In Jumper, the LSTM agent does better. The authors suggest that memory may help with navigation extended over time. In Leaper and Ninja, the recurrent baseline is notably unstable. Stacking frames commonly gives results close to the single-frame baseline, although the authors report noticeable differences in some games. The comparisons support the default of using the current frame for the ordinary benchmark. They also show that the effect of recurrence depends on the environment.

The paper separately describes more demanding memory variants. These enlarge game worlds, restrict the agent's view in some games, and retain routes that lead away from the goal in CaveFlyer and Jumper. The changes increase partial observability, a situation in which the current image reveals only part of the relevant state. An agent navigating with a small local view may reach a junction without seeing where it came from or which branch it already tried. Performance in such a variant can depend on retaining that information across decisions. The default frame comparisons show how agents handle the ordinary settings. The memory variants change the task itself so that the benefit of keeping track of the past can be investigated.

#### The width comparison separates some factors and leaves others together

The IMPALA comparisons change network width within an architectural family. That is a closer control for the effect of increased representational capacity than the comparison with Nature-CNN, which has a different architecture as well as fewer parameters. The improvement across the IMPALA settings provides evidence that the gain does not depend solely on replacing Nature-CNN with a different convolutional design. The Nature-CNN result still matters because it exposes how poorly a familiar, smaller baseline can fare on the generated games.

Two details shape the interpretation. The learning rate changes with width under the authors' scaling rule, and they report finding no other clear benefits from nearby sweeps over some training settings. The tested intervention is widening with that accompanying learning-rate adjustment. The gain is measured in returns, so the study establishes improved learning behavior under the intervention. It does not identify which features the wider agent learned to distinguish or which action decisions account for the difference game by game.

The finding also helps interpret the fixed-sequence study. Larger networks can use diverse experience to produce better test returns, whereas repeated practice on a narrow sequence can produce competence concentrated in the opening levels. These experiments vary different things. One changes the learner's capacity under established training protocols, and the other changes its access to varied situations. Together they show that both the learner and the distribution of its experience matter when interpreting the resulting policy.

### Limitations

#### Limits identified by the authors

The generators aim for solvability, but the authors do not establish that every generated level can be completed. Their belief that greater than 99% of levels are solvable applies to each environment as a whole. A failed episode therefore remains a behavioral outcome, rather than proof that an available solution was missed on that particular level. Rules such as placing keys subject to solvability constraints give the generator ways to exclude known problematic configurations. The stated guarantee remains approximate.

The authors treat the baseline interaction budget as a convention. They use 200M timesteps largely for continuity with Atari experiments and because they consider its cost practical. Generalization has no explicit training-duration restriction under their protocol. For instance, a method could use more training on its fixed set before evaluation. Its result would still concern transfer from that set, and the extra experience would matter for any claim about training efficiency. The extensive level-count sweeps cost enough that the authors recommend a fixed-size training collection for routine comparisons.

The suite is designed around visual recognition and relatively low-level control. The ordinary games keep exploration and memory demands modest enough for standard agents to train. Hard exploration can be studied on selected levels, and memory can be studied in variants that change observability or navigational structure. Strong baseline results on the ordinary benchmark mainly concern the abilities its designers emphasize. The paper expects some insights to transfer to more complex settings, which remains a broader hypothesis.

The authors also point to uneven behavior in the experimental comparisons. Some games benefit more than others from widening the network. The reason for Rainbow's poor performance on certain games remains unresolved. The authors' gradient-variance explanation motivates a successful change to the implementation, but they explicitly leave the remaining instability open. The result supports a comparison between the implementations they obtained on this suite, with the settings used to make each work forming part of that comparison.

#### Limits visible in the experimental setup

Procgen tests transfer to new draws from a specified generator. In a given game, the training and test levels share mechanics, goals, and the rules that create layouts and populate them with objects. A policy that performs well might have learned a reusable skill for identifying a safe jump, or it might exploit a reliable relation between visual and geometric features that is particular to the generator. The benchmark rewards useful behavior across its generated population. Evidence about what happens under changed game mechanics or a different generator would require a corresponding change to the evaluation.

The variety of the suite still gives that claim scope. A result appearing in games with different movement and rewards stands on more than a single platformer. At the same time, the architecture comparison trains and evaluates agents for the individual games. Consistency across the suite supports the use of an approach in multiple settings, while the experiment does not establish that a policy trained in one game can enter another and play it. Within-game transfer and across-game applicability of a training method should be read at their respective levels.

Holding the nominal number of training levels fixed also leaves room for differences in what those levels offer. Some may present easy routes to a first reward. Others may share obstacles or add rare combinations of them. Two collections of the same size need not be equally informative. The reported means and standard deviations help communicate some variation across runs. They do not establish a universal level threshold or guarantee that a given collection size creates the same challenge in every game. The finding about 10,000 levels is meaningful in the tested setup, where the agents, generators, and training budget determine what experience is actually used.

The deterministic-sequence ablation changes more than the diversity of isolated opening states. It couples access to later levels with successful play on earlier levels, and an episode can span many levels. The resulting learning problem includes repeated exposure to the beginning and limited exposure farther on. A poor return on random sequences shows that performance under that training procedure transfers poorly. The experiment gives less leverage for separating the effect of a fixed order from the effect of seldom reaching the later levels. It also approximates the training arrangement that concerns the authors in Atari, so the evidence comes from this Procgen intervention.

Aggregate returns require care because the normalization anchors have different origins across games. A theoretically computable maximum in one game and an empirical PPO score in another both define upper reference points. They have similar functions in the formula, even though the evidence behind them differs. The normalized mean is useful for comparing runs under a common reporting convention. Its scale depends on those choices, and raw game returns remain important when an aggregate result is concentrated in a few environments.

A final distinction concerns computational and sample efficiency. Wider networks improve performance for a given amount of interaction in the paper. They also have more parameters, and the learning rate changes under the widening rule. A sample-efficiency gain alone cannot establish that the same score takes less elapsed time or less computation. The paper gives protocol-level cost estimates for its baseline, while the architecture result is expressed through interaction-based learning curves and test returns. Those are the quantities on which the reported improvements rest.

### What came after

#### Richer training environments

The later titles show where the original distinction between practice and evaluation remains relevant. Their citation of Procgen establishes a connection to the benchmark, and their titles identify the problem each takes up. The title-level connections support comparisons of research questions. They give no basis for attributing a particular Procgen experiment, implementation choice, or result to a later work.

[Situated Dialogue Learning through Procedural Environment Generation](https://md.research.elamur.ai/free/en/papers/ammanabrolu-2022-situated-dialogue-learning-through-procedural/) takes the most direct conceptual step from generated games to a different training problem. Its subject is [dialogue systems](https://md.research.elamur.ai/free/en/topics/dialogue-systems/) acting in generated situations. The common idea is to vary the setting in which behavior is learned. In Procgen, that setting can change which movement is appropriate in a game. In situated dialogue, the research question shifts toward behavior that depends on both an exchange and the situation it concerns. Procedural generation ties the two problem statements together by making the surrounding situation itself a source of variation.

[InfiniteWeb: Scalable Web Environment Synthesis for GUI Agent Training](https://md.research.elamur.ai/free/en/papers/zhang-2026-infiniteweb-scalable-web-environment-synthesis/) places scalable environment construction in the setting of graphical web interfaces. Its stated objective centers on producing environments for agent training. Procgen starts from a similar supply problem: an agent repeatedly trained on a small collection of settings may learn behavior specific to them. The later title puts that concern in a different interface and makes scalability explicit. The comparison also separates two questions that the Procgen paper treats together. A generator can supply training situations at scale, and an evaluation protocol can use the generated population to test performance on unfamiliar situations.

[Human-Timescale Adaptation in an Open-Ended Task Space](https://md.research.elamur.ai/free/en/papers/team-2023-human-timescale-adaptation-open-ended/) centers on an agent's ability to adapt in a task space designed to remain open-ended. This is adjacent to Procgen's use of a large population of levels. The difference is in the behavior being measured. Procgen's zero-shot protocol asks how well an already trained policy acts on an unfamiliar level without further practice. Adaptation adds the question of what happens as the agent gains experience with a new task. The two questions can arise in the same broad research program while calling for different rules about what the agent may learn during evaluation.

#### Learning mechanisms and trustworthy comparisons

[Mastering Diverse Domains through World Models](https://md.research.elamur.ai/free/en/papers/hafner-2023-mastering-diverse-domains-through-world/) puts diversity in the domain of learning and a world model in the learning mechanism. Procgen's characteristic contribution is on the environment side, where it specifies how to generate situations and how to allocate them to training or evaluation. The later work's title directs attention to how a learner represents the worlds in which it acts. These are complementary sides of a benchmark comparison. An evaluation across diverse conditions supplies evidence about where a learning mechanism works, and the learner's design determines how it can use that experience.

[Deep Reinforcement Learning at the Edge of the Statistical Precipice](https://md.research.elamur.ai/free/en/papers/agarwal-2021-deep-reinforcement-learning-edge-statistical/) takes up the statistical problem of judging reinforcement learning results. Procgen establishes a particular object to measure by defining the level distribution and the separation between training and test. Its figures also report variation across seeds. The later work's stated focus brings the uncertainty of comparative conclusions to the foreground. One concern is whether the test is measuring play on the intended population of situations. The other is what the available observations can establish about a difference between algorithms on that population.

[Recursive Introspection: Teaching Language Model Agents How to Self-Improve](https://md.research.elamur.ai/free/en/papers/qu-2024-recursive-introspection-teaching-language-model/) frames improvement around the agent's ability to learn from its own activity. The connection to Procgen is the distinction between doing better on material used during learning and applying the improvement on new material. In the game benchmark, the train and test levels make that distinction explicit. In a self-improvement setting, it becomes a question about which tasks contributed to the improvement and which tasks can measure the resulting behavior. The citation connects research on agent improvement with a benchmark that made the availability of experience part of the evaluation.

[Foundational Challenges in Assuring Alignment and Safety of Large Language Models](https://md.research.elamur.ai/free/en/papers/anwar-2024-foundational-challenges-assuring-alignment-safety/) places dependable behavior in the broader context of [bias, fairness and safety](https://md.research.elamur.ai/free/en/topics/bias-fairness-safety/). Procgen addresses a much narrower phenomenon that matters to assurance. Success in practiced conditions can give an optimistic impression of how a learned system will behave when relevant details change. Its games make one form of that discrepancy measurable by giving the experimenter control over what the agent gets to practice. In the later work's stated setting, the scope of the evaluation and the choice of unfamiliar conditions become part of a larger question about what evidence can support confidence in a system's behavior.

## Cite

Cite as Karl Cobbe, Christopher Hesse, Jacob K. Hilton and John Schulman. 2019. Leveraging Procedural Generation to Benchmark Reinforcement Learning. arXiv (Cornell University).

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.48550/arxiv.1912.01588](https://doi.org/10.48550/arxiv.1912.01588) · [arXiv 1912.01588](https://arxiv.org/abs/1912.01588)

```bibtex
@misc{cobbe2019leveraging,
  title = {{Leveraging Procedural Generation to Benchmark Reinforcement Learning}},
  author = {Karl Cobbe, Christopher Hesse, Jacob K. Hilton and John Schulman},
  year = {2019},
  doi = {10.48550/arxiv.1912.01588},
  eprint = {1912.01588},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.1912.01588}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
