Skip to main content
QUICK REVIEW

[Paper Review] Playing Minecraft with Behavioural Cloning

Anssi Kanervisto, Janne Karttunen|arXiv (Cornell University)|May 7, 2020
Artificial Intelligence in GamesComputer Science23 references4 citations
TL;DR

This paper presents a behavioral cloning approach to train an agent for Minecraft using human gameplay demonstrations, achieving fifth place in the MineRL 2019 competition. Despite its simplicity, the method's performance heavily depends on training stopping time, class imbalance in action distribution, and engineering choices—highlighting that BC requires careful tuning and variance reporting, just like reinforcement learning.

ABSTRACT

MineRL 2019 competition challenged participants to train sample-efficient agents to play Minecraft, by using a dataset of human gameplay and a limit number of steps the environment. We approached this task with behavioural cloning by predicting what actions human players would take, and reached fifth place in the final ranking. Despite being a simple algorithm, we observed the performance of such an approach can vary significantly, based on when the training is stopped. In this paper, we detail our submission to the competition, run further experiments to study how performance varied over training and study how different engineering decisions affected these results.

Motivation & Objective

  • To develop a robust, sample-efficient agent for Minecraft using only behavioral cloning, avoiding the instability of reinforcement learning.
  • To investigate why behavioral cloning performance varies significantly across training runs despite its simplicity.
  • To analyze the impact of dataset sampling strategies, class imbalance, and data augmentation on agent performance.
  • To evaluate the role of engineering decisions—such as early stopping, replay memory, and label smoothing—in improving behavioral cloning outcomes.
  • To advocate for reporting variance in behavioral cloning results, similar to best practices in reinforcement learning.

Proposed method

  • The agent uses supervised learning to predict actions from observations, mimicking human demonstrations from the MineRL dataset.
  • Training is stopped at specific epochs based on validation performance, with early stopping used to avoid overfitting and distributional shift.
  • A replay memory buffer is employed to stabilize learning by resampling from the training data, particularly to improve rare action prediction.
  • Label smoothing is applied to mitigate bias toward over-represented actions in the imbalanced dataset.
  • Hard-coded actions are used to compensate for under-performing rare actions (e.g., crafting, placing crafting tables), improving final performance.
  • The model is trained on a vision-based observation space and discrete action space, including 13 discrete actions and 2 continuous camera controls.

Experimental results

Research questions

  • RQ1How does the performance of a behavioral cloning agent in Minecraft vary over different training epochs, and what causes this variance?
  • RQ2To what extent does class imbalance in the human demonstration dataset affect the agent’s ability to learn rare but critical actions?
  • RQ3How do engineering choices such as data sampling, replay memory, and label smoothing influence behavioral cloning performance?
  • RQ4Can hard-coded actions for under-represented actions significantly improve sample-efficient imitation learning in complex environments?
  • RQ5Why do behavioral cloning agents show high variance in performance despite being a simple supervised learning method?

Key findings

  • The agent achieved fifth place in the MineRL 2019 competition, demonstrating that behavioral cloning can be competitive with reinforcement learning in complex, vision-based environments.
  • Performance varied significantly depending on when training was stopped, with optimal stopping yielding a 30–92% relative improvement in evaluation scores.
  • Despite low representation in the dataset (e.g., 0.01% for crafting wooden pickaxe), the model predicted such actions with over 50% probability, indicating some generalization capability.
  • The agent struggled to place crafting tables (99.52% of actions were 'none') even when needed, showing a critical failure in executing essential actions.
  • Adding hard-coded actions for crafting and placing improved evaluation performance by 30–92%, with one agent reaching a reward of 291 in three out of 200 games.
  • Weighting loss by class rarity or under-sampling common actions did not improve results, suggesting more sophisticated sampling (e.g., SMOTE) may be needed.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.