SandHouse
Pages and contents

Crafter

https://arxiv.org/pdf/2109.06780 2022

The Problem

Reinforcement learning benchmarks often test a narrow capability at a time. Atari, for example, provides many different games, but evaluating general ability requires training a separate agent on each game, making broad evaluation computationally expensive. Other environments such as Minecraft provide much richer combinations of exploration, survival, crafting, and long-horizon reasoning, but are slow and sufficiently complex that evaluating current RL algorithms can be difficult.

Crafter is designed as an intermediate benchmark: a simplified 2D survival environment inspired by Minecraft that evaluates many capabilities within a single training run. A successful agent must learn visual representations, generalize across procedurally generated worlds, explore both broadly and deeply, discover reusable behaviors, remember information over long horizons, and solve sparse-reward credit assignment problems.

The Method

Environment

Crafter generates a new 64×64 world for every episode. The world contains terrain such as forests, lakes, mountains, caves, and lava, as well as resources and creatures. Although the underlying environment is grid-based, the agent only observes a local visual image.

The observation is

xt∈ℝ64×64×3

containing both the local world around the player and a visual representation of the inventory. The agent therefore has to infer resources, tools, health, food, water, and other state information directly from pixels.

The action space contains 17 discrete actions, including movement, interaction, sleeping, placing objects, and crafting tools.

Crafter also introduces continuous survival pressure. The agent must maintain health, food, water, and rest while defending itself against creatures. This prevents exploration methods from succeeding simply by remaining alive while doing nothing.

Technology Tree and Achievements

The primary evaluation objects are 22 achievements, corresponding to semantically meaningful behaviors such as collecting wood, drinking water, defeating monsters, crafting tools, placing furnaces, and collecting diamonds.

Many achievements depend on earlier achievements. For example,

wood→table→wood pickaxe→stone→furnace→iron pickaxe→diamond

This creates a technology tree that tests deep exploration and long-term reasoning.

Other achievements are more independent, forcing the agent to explore broadly rather than simply following one fixed progression.

Repeated subtasks are also necessary. An agent cannot simply learn "collect wood" once; wood is repeatedly required for tools and other objects. This makes Crafter naturally suited for studying reusable or hierarchical skills.

Reward

The extrinsic reward contains two components.

The agent receives

rt=+1

when it unlocks an achievement for the first time during the current episode.

Health changes also contribute

rt=−0.1

for each health point lost and

rt=+0.1

for each health point regenerated.

Because there are 22 achievements, an ideal episode can obtain approximately 22 achievement reward.

Importantly, the benchmark can also be run without extrinsic rewards, allowing evaluation of intrinsic-motivation and unsupervised exploration methods.

Achievement Success Rates

Instead of evaluating only episode return, Crafter measures the probability that an agent discovers each achievement.

For achievement i , its success rate si is the percentage of training episodes in which the achievement was unlocked at least once.

This produces an ability spectrum

s=(s1,…,s22)

rather than reducing behavior immediately to a single return value.

This is useful because two agents with similar reward can have very different abilities. One might repeatedly solve a few easy tasks while another occasionally reaches much deeper portions of the technology tree.

Crafter Score

The 22 achievement success rates are combined using a geometric mean:

S=exp⁡(1N∑i=1Nln⁡(1+si))−1

where N=22 and si∈[0,100] is the percentage success rate for achievement i .

Using a geometric mean strongly rewards breadth. Increasing an achievement from 0 to 1 can matter considerably, while increasing an already-mastered achievement from 90 to 95 contributes relatively little.

Thus the score rewards agents that acquire a broad collection of capabilities rather than repeatedly exploiting a small subset of easy behaviors.

Benchmark Protocol

Agents receive a budget of

106

environment interactions.

Performance is measured using both the 22 individual achievement success rates and the aggregate Crafter score. The authors train each artificial agent over 10 random seeds.

The benchmark includes both agents trained with the Crafter reward and agents operating entirely through intrinsic objectives.

Benchmark Performance

Method
Training Signal
Crafter Score
Episode Return
⋮⋮
Human Experts
Human
50.5±6.8
14.3±2.3
⋮⋮
DreamerV2
Reward
10.0±1.2
9.0±1.7
⋮⋮
PPO
Reward
4.6±0.3
4.2±1.2
⋮⋮
Rainbow
Reward
4.3±0.2
5.0±1.3
⋮⋮
Plan2Explore
Unsupervised
2.1±0.1
2.1±1.5
⋮⋮
RND
Unsupervised
2.0±0.1
0.7±1.3
⋮⋮
Random
None
1.6±0.0
2.1±1.3

DreamerV2 is substantially stronger than the other RL baselines, reaching a Crafter score of 10.0 , but remains far below the human expert score of 50.5 .

The individual achievement results reveal an even larger gap. DreamerV2 frequently collects wood, drinks water, makes wooden tools, and reaches stone, but essentially never reaches iron tools or diamonds within the benchmark budget. PPO and Rainbow generally remain even closer to the early parts of the technology tree.

The unsupervised agents show that intrinsic motivation alone can produce nontrivial behaviors. Plan2Explore and RND occasionally progress several steps into the technology tree, but their aggregate scores remain close to the random baseline.

Capabilities Tested by Crafter

Generalization comes from procedural generation. Every episode contains a different world, so memorizing a fixed action sequence is ineffective.

Wide exploration is measured by achievements that do not depend directly on one another.

Deep exploration is created by the technology tree, where advanced achievements require long prerequisite chains.

Reusable skills arise because behaviors such as collecting wood, finding food, fighting monsters, and navigating terrain must be performed repeatedly in different contexts.

Credit assignment is difficult because achievements can require actions taken hundreds of steps earlier. For example, collecting a diamond requires gathering and crafting several prerequisite resources and tools.

Memory is necessary because observations are local. An agent may need to remember where lakes, caves, resources, or previously explored regions are located.

Representation learning is required because the agent receives pixels rather than privileged symbolic state.

Survival introduces persistent competing objectives involving food, water, rest, health, and monsters.


Crafter deliberately sacrifices realism for iteration speed. Compared with Minecraft, the environment is two-dimensional, has a small discrete action space, simplified crafting mechanics, limited visual complexity, and only 22 achievements. Consequently, solving Crafter would not imply solving the much harder problems present in Minecraft or general embodied environments. The aggregate score also depends on a hand-designed achievement set, and the geometric mean can change the ranking of agents relative to reward because agents optimize reward directly rather than the benchmark score. The authors also note that assigning achievements to abstract capability categories such as memory or generalization is subjective.

Crafter occupies a middle ground between benchmarks such as Atari, ProcGen, NetHack, and Minecraft/MineRL. Atari contains many individual tasks but requires expensive training across games and offers limited procedural generalization. ProcGen explicitly evaluates generalization through procedurally generated levels, but still requires training across many separate games. NetHack provides long-horizon exploration and survival but uses symbolic observations and requires enormous amounts of experience. Minecraft provides a much richer open world but is slower, harder to evaluate, and beyond the capabilities of many current RL methods. Crafter deliberately compresses many of these challenges into a single fast environment, making it useful as a stepping stone toward more complex open-world agents.