Insights From the NeurIPS 2021 NetHack Challenge

Eric Hambro, Sharada P. Mohanty, Dmitrii Babaev, Minwoo Byeon, Dipam Chakraborty, Edward Grefenstette, Minqi Jiang, Jo Daejin, Anssi Kanervisto, Jongmin Kim, Sungwoong Kim, Robert Kirk, Vitaly Kurin, Heinrich Küttler, Taehwon Kwon, Donghoon Lee, Vegard Mella, Nantas Nardelli, Ivan Nazarov, Nikita Ovsov, Jack Holder, Roberta Raileanu, Karolis Ramanauskas, Tim Rocktäschel, Danielle Rothermel, Mikayel Samvelyan, Dmitry Sorokin, Maciej Sypetkowski, Michal Sypetkowski

TL;DR

This paper summarizes the results of the NeurIPS 2021 NetHack Challenge, where participants built AI agents to conquer the notoriously difficult dungeon-crawler game, NetHack. The competition revealed that while deep reinforcement learning (RL) has made significant strides, traditional symbolic (rule-based) AI still vastly outperforms neural approaches in this complex environment. Furthermore, no agent came close to actually beating the game, cementing NetHack as a premier, unsolved grand challenge for AI research.

What Problem Does This Paper Address?

Progress in artificial intelligence requires benchmarks that push the limits of current sequential decision-making methods. To this end, the researchers turn to NetHack, a terminal-based, procedurally generated roguelike game considered one of the hardest video games in the world. It features hundreds of enemy and object types, complex stochastic dynamics, permadeath, and winning episodes that last hundreds of thousands of steps.

The NeurIPS 2021 NetHack Challenge tasked researchers with building an agent capable of "ascending" (winning the game) using the NetHack Learning Environment (NLE). The challenge aimed to drive community progress and set up a direct showdown between deep reinforcement learning (neural) and rule-based (symbolic) AI systems to see which paradigm handles extreme complexity and long-term planning better.

Methods

The organizers created a new NLE challenge environment that exposed the full complexity of the game. It expanded the action space to 113 actions (the full keyboard), provided rich observation spaces (glyphs, text messages, terminal characters, inventory), and enforced the randomization of the starting character's role and race to prevent agents from overfitting to a single playstyle.

Participants tackled the challenge using three main paradigms:

  • Symbolic (Team AutoAscend - Overall Winner): Built entirely from scratch without neural networks. It used a custom behavior tree with dynamic expansion, parsing ASCII pop-ups to maintain a knowledge base of the game state. It relied on priority-based "strategies" (e.g., combat, nutrition management) that could interrupt one another based on context.
  • Hybrid (Team RAPH - Top Neural Track): Used a hierarchical approach where a rule-based algorithmic system orchestrated lower-level skills. The combat skill was trained using deep RL on pasted fragments of hostile encounters, while exploration and inventory management were hard-coded.
  • Neural (Team Kakao Brain): Used an IMPALA-based actor-critic RL framework. To handle the massive action space, they separated actions hierarchically (e.g., choose action-type, then choose direction). They combined CNNs, GRUs, and Transformers to process the complex observation space and trained role-specific agents.
Example neural architecture used to process NetHack's complex observation space, combining CNNs for visual glyphs and MLPs for text and stats.

Datasets

The primary "dataset" is the procedurally generated NetHack Learning Environment (NLE) (specifically the new challenge task in v0.7.3), which serves as the training and evaluation ground. The paper also references a dataset of 20,000 ascending human runs from alt.org to calculate average winning scores for context, though this was not directly provided as a training dataset for the competition.

Key Insights and Ideas

  • Symbolic AI reigns supreme (for now): The top three overall agents were all purely symbolic. They easily incorporated human domain knowledge (like armor strength or monster abilities from the NetHack Wiki) and excelled at long-term planning.
  • RL struggles with hierarchy and sparse rewards: Deep RL agents had a hard time discovering "strategy-like" behaviors in an environment with 113 actions and incredibly sparse rewards. Credit assignment over hundreds of thousands of steps remains a massive hurdle for neural methods.
  • The "Score vs. Progress" misalignment: Because agents were evaluated on in-game score (as a proxy for progress), many learned to "game" the metric. Some agents intentionally restricted themselves to top-level dungeons to farm points safely or terminated episodes early to avoid dying and losing points, rather than taking the risks necessary to descend and win.
  • Character roles dictate performance: Agent performance was heavily tied to the starting character. "Easy" combat roles like Barbarian or Valkyrie scored orders of magnitude higher than complex, fragile roles like Tourist or Healer.

Key Results

  • Zero Ascensions: Not a single agent managed to win the game.
  • Symbolic vs. Neural: The best symbolic bot achieved a median score of 5,300. This was nearly three times higher than the best neural bot's median score. For top-scoring episodes, the symbolic lead extended to a fivefold advantage.
Median scores of the top agents, highlighting the significant performance gap between Symbolic (red) and Neural (blue) tracks.
  • RL Progress: Despite losing to symbolic bots, deep RL agents still showed a nearly 5x improvement in median score compared to the previous NeurIPS 2020 baseline.
  • A Long Way to Go: The winning median score of 5,300 is considered just above a "Beginner" level for human players. For context, the minimum score needed for a human to win is 12,200, but the average winning human run scores around 6.98 million.

Limitations and Future Work

The authors acknowledge that the evaluation metric (in-game score) was flawed, as it incentivized point-farming and safe play rather than actual game progression.

For future competitions, they suggest designing new metrics, such as checkpointing specific in-game achievements (e.g., reaching certain dungeon levels). They also recommend encouraging approaches that exploit external knowledge (like parsing the game's C code or the NetHack Wiki), learning from human terminal replays (ttyrec), or focusing on isolated skill acquisition using sandbox environments like MiniHack.

Summary updated

BibTeX
@inproceedings{hambro2021insights,
  author = {Eric Hambro and Sharada P. Mohanty and Dmitrii Babaev and Minwoo Byeon and Dipam Chakraborty and Edward Grefenstette and Minqi Jiang and Jo Daejin and Anssi Kanervisto and Jongmin Kim and Sungwoong Kim and Robert Kirk and Vitaly Kurin and Heinrich Küttler and Taehwon Kwon and Donghoon Lee and Vegard Mella and Nantas Nardelli and Ivan Nazarov and Nikita Ovsov and Jack 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