Multi-task curriculum learning in a complex, visual, hard-exploration domain: Minecraft

Ingmar Kanitscheider, Joost Huizinga, David Farhi, William Hebgen Guss, Brandon Houghton, Raul Sampedro, Peter Zhokhov, Bowen Baker, Adrien Ecoffet, Jie Tang, Oleg Klimov, Jeff ClunearXiv 2021

TL;DR

This paper introduces a novel curriculum learning approach for reinforcement learning agents in the complex Minecraft environment. By dynamically adjusting task selection based on "learning progress" and incorporating a "dynamic exploration bonus," their agent learns significantly more skills than traditional methods, paving the way for more capable and generally intelligent AI.

What Problem Does This Paper Address?

Training reinforcement learning (RL) agents to master a wide variety of tasks is a significant challenge. Many real-world tasks have inherent dependencies, much like how humans learn to walk before they can run. Simply training an agent on all tasks uniformly can be inefficient, especially when many tasks are currently unlearnable, leading to wasted computation. This paper tackles the problem of efficiently learning a large number of interdependent tasks in a complex, visual domain, aiming to automate the process of curriculum design.

Methods

The core of this work lies in two main innovations:

  • Learning Progress Curriculum: Instead of uniformly sampling tasks, the agent's learning is guided by a "learning progress" metric. This metric quantifies how much a task's success probability is changing, indicating its learnability. The curriculum prioritizes tasks that show the most recent improvement, effectively following the agent's evolving skill set. They explore both unidirectional (only tracking increases) and bidirectional (tracking both increases and decreases) learning progress, finding the latter to be more robust against forgetting.
  • Dynamic Exploration Bonus: To further aid exploration, especially in goal-conditioned tasks where feedback can be sparse, they introduce a "dynamic exploration bonus." This bonus rewards the agent for discovering new items, but crucially, it's dynamically adjusted. It's only applied to items the agent cannot yet reliably obtain (success probability below a threshold). As the agent masters an item, it's removed from the bonus set, preventing it from distracting the agent with easy tasks and ensuring focus on harder, novel challenges.

Datasets

The experiments were conducted in a custom Minecraft environment built on the MineRL platform. The benchmark task, dubbed "Simon Says," involves training an agent to obtain one of 107 different items on command. These items form a complex tech tree with varying dependencies and difficulty levels, making it a challenging domain for RL.

Key Insights and Ideas

  • Learning Progress as a Reliable Signal: The paper demonstrates that "learning progress" (the rate of change in success probability) is a more effective signal for curriculum design than static success probability thresholds. This is because it adapts to the agent's current skill level and can identify tasks that are becoming learnable.
  • Bidirectional Progress Mitigates Forgetting: The bidirectional learning progress curriculum, which accounts for both learning and forgetting, significantly outperforms the unidirectional version. This is crucial for preventing "catastrophic forgetting," where an agent loses previously learned skills.
  • Exploration Bonus Needs to be Dynamic: A static exploration bonus helps, but a dynamic one, tailored to items the agent doesn't yet know how to get, is far more effective. This prevents the agent from getting stuck on easy tasks and ensures it focuses on genuine exploration of novel challenges.
  • Synergy of Curriculum and Exploration: Combining the learning progress curriculum with the dynamic exploration bonus yields the best results, highlighting the power of a multi-faceted approach to guiding agent learning.

Key Results

The paper presents compelling quantitative results:

  • Uniform sampling without any bonus: The agent learned only 17 out of 107 items.
  • Uniform sampling with a fixed exploration bonus: This improved performance to 43 items.
  • Uniform sampling with a dynamic exploration bonus: This further increased the number of learned items to 70.
  • Bidirectional learning progress curriculum with dynamic exploration bonus: This achieved the highest performance, with the agent learning 82 out of 107 items.

Qualitatively, the learning progress curriculum was observed to elegantly follow the agent's learning curve, focusing on tasks at the frontier of its capabilities. The bidirectional curriculum also showed a remarkable ability to prevent catastrophic forgetting, a common issue in RL.

Limitations and Future Work

The authors acknowledge that this is "partial work" and that a more thorough literature review, additional experimental comparisons, and ablations would be required for a formal publication. They suggest several promising future directions:

  • Generalizing Task Grouping: Developing methods to dynamically group tasks for learning progress estimation, especially when explicit task labels are unavailable.
  • Scalability for Large Task Spaces: Investigating function approximation or neural network environment generators to estimate learning progress in extremely large task spaces where per-task estimation becomes computationally prohibitive.
  • Estimating Learning Progress Over Large Task Spaces: Exploring methods to estimate learning progress over large task spaces using function approximation or, relatedly, generating environments that are expected to feature high learning progress via a neural network environment generator.

Summary updated

BibTeX
@misc{kanitscheider2021multi,
  author = {Ingmar Kanitscheider and Joost Huizinga and David Farhi and William Hebgen Guss and Brandon Houghton and Raul Sampedro and Peter Zhokhov and Bowen Baker and Adrien Ecoffet and Jie Tang and Oleg Klimov and Jeff Clune},
  title = {{Multi-task curriculum learning in a complex, visual, hard-exploration domain: Minecraft}},
  year = {2021},
  eprint = {2106.14876},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2106.14876},
}
Figure