Scaling Imitation Learning in Minecraft

Artemij Amiranashvili, Nicolai Dorka, Wolfram Burgard, Vladlen Koltun, Thomas BroxarXiv 2020

Introduction

Reinforcement learning (RL) has achieved remarkable milestones in complex games like Go and StarCraft II. However, these successes often rely on environments where rewards are frequent or can be simulated at massive scales. Minecraft presents a different challenge: its rewards are incredibly sparse, and its action space is vast and continuous. In such an environment, an RL agent might wander aimlessly for thousands of steps without ever receiving a reward signal, such as crafting a wooden pickaxe. This "sample efficiency" problem makes standard RL computationally prohibitive for slow, procedurally generated 3D environments.

This paper explores Imitation Learning (IL), specifically Behavior Cloning (BC), as a robust alternative. By training agents to mimic human expert behavior from the MineRL dataset, the researchers demonstrate that high-level competence can be achieved without any environment interaction during the training phase.

The Minecraft Challenge: ObtainIronPickaxe

The primary focus of this research is the "ObtainIronPickaxe" task. This is a multi-step, hierarchical challenge that requires the agent to navigate a complex crafting chain. To succeed, the agent must gather raw materials, craft intermediate tools, and manage resources effectively.

Subtasks and rewards for the ObtainIronPickaxe task.

As shown in the figure above, the task is broken down into eleven distinct sub-tasks, ranging from gathering logs to smelting iron ingots. Each step provides a reward, but the difficulty increases exponentially as the agent progresses deeper into the crafting tree.

Methodology

The researchers optimized imitation learning across several dimensions:

Behavior Cloning and Network Architectures

The core approach uses Behavior Cloning, treating action prediction as a classification problem. The agent learns to map visual observations (64x64 pixels) and inventory states directly to expert actions. The study compared three network architectures of increasing complexity:

  1. DQN: A basic 3-layer convolutional network.
  2. Impala: A deeper architecture utilizing residual blocks for better feature extraction.
  3. Deep Impala: A scaled-up version of Impala with additional blocks and doubled channel sizes, designed to capture the nuances of the Minecraft environment.

Data Augmentation and Action Quantization

To improve generalization, the authors experimented with image transformations. They found that horizontal flipping—accompanied by mirroring the corresponding "left/right" actions—was the most effective augmentation strategy. Additionally, to handle Minecraft’s continuous camera movement, they discretized the action space into 22.5-degree chunks, resulting in a manageable set of 112 discrete movement actions.

Key Insights and Results

The study yielded several surprising results that challenge standard assumptions in supervised learning and RL.

The Test Loss Paradox

In typical supervised learning, a rising test loss is a clear sign of overfitting. However, in the context of Minecraft IL, the authors observed a "Test Loss Paradox."

Training, Testing, and Evaluation metrics across different seeds.

As illustrated in the plots above, while the average test loss (middle plot) tended to increase or plateau after initial training, the actual performance in the environment—measured by "Avg. Return" (right plot)—continued to improve. This suggests that because human experts are diverse and unpredictable, "accuracy" on a fixed dataset is a poor proxy for "competence" in a dynamic, interactive environment.

Scale and Data Volume

The transition from a simple DQN to the "Deep Impala" architecture nearly doubled the average return, highlighting that model capacity is a critical bottleneck. Furthermore, incorporating additional data from simpler tasks like Treechop (by "hallucinating" inventory states) significantly boosted performance on the more complex ObtainIronPickaxe task. This indicates that imitation learning in these domains is still primarily limited by the volume of available expert demonstrations.

Conclusion

This research demonstrates that scaled-up Imitation Learning can achieve state-of-the-art performance in Minecraft without the need for expensive environment interactions. The best-performing model reached the "stone pickaxe" stage in 82% of episodes, a feat that standard RL methods struggle to match. While challenges remain—such as reaching the "diamond" stage or handling diverse biomes—this work provides a powerful template for solving sparse-reward tasks through large-scale behavior cloning.

Summary updated

BibTeX
@misc{amiranashvili2020scaling,
  author = {Artemij Amiranashvili and Nicolai Dorka and Wolfram Burgard and Vladlen Koltun and Thomas Brox},
  title = {{Scaling Imitation Learning in Minecraft}},
  year = {2020},
  eprint = {2007.02701},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2007.02701},
}
Figure