Insights from the NeurIPS 2021 NetHack Challenge

Eric Hambro, Sharada Mohanty, Dmitrii Babaev, Minwoo Byeon, Dipam Chakraborty, Edward Grefenstette, Minqi Jiang, Daejin Jo, Anssi Kanervisto, Jongmin Kim, Sungwoong Kim, Robert Kirk, Vitaly Kurin, Heinrich Kuttler, Taehwan Kwon, Donghoon Lee, Vegard Mella, Nantas Nardelli, Ivan Nazarov, Nikita Ovsov, Jack Parker-Holder, Roberta Raileanu, Karolis Ramanauskas, Tim Rocktäschel, Danielle Rothermel, Mikayel Samvelyan, dmitry sorokin, Maciej Sypetkowski, Michal Sypetkowski · DOI

TL;DR

The NeurIPS 2021 NetHack Challenge aimed to push AI agents to "ascend" in the notoriously difficult roguelike game NetHack. While the challenge saw significant community progress and a new baseline, symbolic AI agents handily outperformed deep reinforcement learning (RL) approaches, highlighting the current limitations of RL in complex, long-horizon tasks. Crucially, no agent came close to winning, underscoring NetHack's potential as a challenging long-term benchmark for AI research.

What Problem Does This Paper Address?

Developing AI agents capable of mastering complex, open-ended environments with sparse rewards and long-term planning horizons remains a significant challenge in artificial intelligence. Traditional benchmarks often fall short in capturing the full spectrum of difficulties present in real-world or highly complex simulated environments. The NetHack Challenge sought to address this by using the classic, procedurally generated dungeon-crawler game NetHack as a testbed. NetHack is known for its immense complexity, deep state space, and permadeath, making it a formidable opponent for AI. The challenge aimed to drive progress in sequential decision-making, compare neural (deep RL) and symbolic AI approaches, and establish a robust benchmark for future AI research.

Methods

The competition utilized the NetHack Learning Environment (NLE), a Gym-compatible environment designed to expose the full complexity of NetHack 3.6.6. This environment featured an expanded action space, a comprehensive observation space including structured data like glyphs and blstats, and enforced randomized starting conditions (race, role, alignment, gender) to encourage generalist agents. Participants were challenged to develop agents that could win the game. The competition was structured into two phases: a development phase and a test phase, with submissions evaluated on metrics including the number of ascensions, median score, and mean score. Two baselines were provided for neural agents: the TorchBeast baseline (based on IMPALA) and the Sample Factory baseline (using asynchronous PPO). Symbolic agents, on the other hand, were developed from scratch.

Datasets

The primary "dataset" for this challenge was the NetHack Learning Environment (NLE) itself, which provided a procedurally generated and challenging environment for reinforcement learning. No specific pre-collected datasets were used for training; agents learned through interaction with the NLE. The challenge's success was measured against previous state-of-the-art results on NetHack and a NeurIPS 2020 baseline.

Key Insights and Ideas

  • Symbolic AI Dominance: Symbolic agents significantly outperformed neural (deep RL) agents, with the top three overall best agents being symbolic. This highlights that current deep RL methods struggle with the long-term planning, strategic reasoning, and domain knowledge integration required for NetHack.
  • Hybrid Approaches Show Promise: The winning neural agent (RAPH) was a hybrid model, leveraging symbolic methods alongside a neural network, suggesting that combining the strengths of both paradigms is a fruitful direction.
  • NetHack's Enduring Difficulty: Despite significant community effort and progress, no agent came close to achieving a full "ascension" in NetHack. This underscores the game's suitability as a long-term, challenging benchmark for AI research, pushing the boundaries of current AI capabilities.
  • Role-Specific Performance: Agent performance was heavily influenced by the chosen starting role, with "easier" roles yielding much higher scores. This suggests that agents often specialized in exploiting the strengths of certain roles rather than developing truly generalizable strategies.
  • "Score-Hacking" Strategies: Some agents employed strategies that optimized for in-game score rather than actual progress towards ascension, such as early episode termination. This points to the need for more nuanced evaluation metrics that better reflect true game progression.

Key Results

  • Symbolic Bots Outperform: The best symbolic bot achieved a median score nearly threefold that of the best neural bot.
  • Significant RL Progress: Deep RL agents still showed substantial progress, achieving a nearly fivefold improvement in median score compared to the NeurIPS 2020 baseline.
  • No Ascensions: Not a single participating agent managed to "ascend" in NetHack, with the winning agent achieving a median score of 5,300, which is considered only "Beginner" level.
  • High Entry Barrier: The challenge saw 483 entrants and 631 submissions, indicating strong community engagement.

Limitations and Future Work

The authors acknowledge that the current evaluation metrics might incentivize score optimization over genuine progress. Future work could focus on refining these metrics, potentially by incorporating achievement checkpointing (similar to Junethack) to better guide agents towards ascension. They also suggest exploring the integration of external knowledge (e.g., NetHack Wiki, game source code), learning from human play recordings, and using more specialized environments like MiniHack for skill acquisition. The paper also highlights that hierarchical RL remains an open research problem, and effectively incorporating human prior knowledge into RL agents is still a challenge.

Summary updated

BibTeX
@inproceedings{hambro2021insights,
  author = {Eric Hambro and Sharada Mohanty and Dmitrii Babaev and Minwoo Byeon and Dipam Chakraborty and Edward Grefenstette and Minqi Jiang and Daejin Jo and Anssi Kanervisto and Jongmin Kim and Sungwoong Kim and Robert Kirk and Vitaly Kurin and Heinrich Kuttler and Taehwan Kwon and Donghoon Lee and Vegard Mella and Nantas Nardelli and Ivan Nazarov and Nikita Ovsov and Jack Parker-Holder and Roberta Raileanu and Karolis Ramanauskas and Tim Rocktäschel and Danielle Rothermel and Mikayel Samvelyan and dmitry sorokin and Maciej Sypetkowski and Michal Sypetkowski},
  title = {{Insights from the NeurIPS 2021 NetHack Challenge}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=U3blkIpKa1},
}
Figure