Insights From the NeurIPS 2021 NetHack Challenge

Eric Hambro, Sharada P. Mohanty, Dmitrii Babaev, Minwoo Byeon, Dipam Chakraborty, Edward Grefenstette, Minqi Jiang, DaeJin Jo, 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 Parker-Holder, Roberta Raileanu, Karolis Ramanauskas, Tim Rocktäschel, Danielle Rothermel, Mikayel Samvelyan, Dmitry Sorokin, Maciej Sypetkowski, Michal Sypetkowski

TL;DR

The NeurIPS 2021 NetHack Challenge revealed a striking reality in modern AI: in complex, procedurally generated environments, symbolic "rule-based" systems still soundly defeat deep reinforcement learning (RL). While neural agents achieved a 5x improvement over previous baselines, the winning symbolic bot tripled the median score of the best neural entry, yet even the top agents remain orders of magnitude away from actually winning the game.

What Problem Does This Paper Address?

NetHack is a legendary, brutally difficult "dungeon crawler" that has long served as a "Grand Challenge" for artificial intelligence. Unlike Atari games or Chess, NetHack is procedurally generated, features permadeath, and requires agents to manage hundreds of item types and complex environmental stochastics over hundreds of thousands of steps.

The authors summarize the results of the first major competition using the NetHack Learning Environment (NLE). The goal was to see if modern RL—which has conquered Go and StarCraft—could handle a game where "common sense" strategies (like not eating a rotten corpse) and long-term planning are vital. The challenge specifically forced agents to play as random character roles (e.g., Valkyrie, Wizard, Tourist), preventing teams from overfitting their models to a single, easy playstyle.

Methods

The competition saw a fascinating clash between three distinct architectural philosophies:

  1. Symbolic Agents (The Winners): Team AutoAscend used a custom behavior tree capable of dynamic expansion. They parsed the game's ASCII pop-ups and maintained a complex internal state of the dungeon. Their combat was governed by heuristic scoring functions rather than learned policies.
  2. Neural Agents: These relied on end-to-end RL. The Sample Factory baseline used asynchronous PPO with an RNN layer, treating the game screen as an RGB image. Team KakaoBrain improved on this by separating the action space into categories (direction, item use, spell casting) and using Transformers to process observations.
  3. Hybrid Agents: Team RAPH combined these worlds, using a high-level rule-based system to orchestrate lower-level "skills." While navigation and eating were hard-coded, they trained a deep RL agent specifically for the "fighting" skill.

The organizers provided two primary baselines for the neural track: TorchBeast (based on the IMPALA architecture) and Sample Factory.

Figure 2: The TorchBeast baseline architecture, which embeds glyphs and messages before passing them to an LSTM.
Figure 3: The Sample Factory baseline, which treats the terminal output as an RGB image for a Nature DQN-style CNN.

Datasets

The primary "dataset" was the NetHack Learning Environment (NLE) v0.7.3, a Gym-compatible interface for NetHack 3.6.6.

  • Training: Neural teams trained on massive scales; for example, Team KakaoBrain trained for 10 billion steps using 16 V100 GPUs.
  • Evaluation: Agents were tested on 4,096 episode rollouts to ensure statistical significance, with performance measured by the number of "ascensions" (wins), followed by median and mean in-game scores.

Key Insights and Ideas

  • The Strategic Gap: Symbolic bots excelled because it is easy for humans to code "strategy-like" subroutines (e.g., "Find Minetown" or "Nutrition Management"). Neural agents struggled with hierarchical RL, often failing to discover these long-term patterns in a sparse-reward environment.
  • Domain Knowledge is King: Symbolic bots easily integrated information from the NetHack Wiki (like monster resistances or armor values). RL agents, starting from scratch, had to learn these the hard way, often dying before they could.
  • Role Sensitivity: Performance was extremely "heavy-tailed." Agents performed orders of magnitude better as "easy" roles like Valkyries or Barbarians compared to "hard" roles like Wizards or Tourists.
  • Metric Gaming: Because the tie-breaker was median score, some agents were observed using "early termination" strategies—quitting an episode early if the score was low to avoid dragging down the median.

Key Results

The results showed a clear hierarchy in performance, as visualized in the final rankings:

Figure 1: Final Rankings of Top 8 Teams
  • Symbolic Dominance: The top three overall places went to symbolic agents. The winner, AutoAscend, achieved a median score of ~5,300.
  • Neural Progress: The best neural/hybrid agent (RAPH) reached a median score of ~1,700, a 5x improvement over the previous year's baseline.
  • The Unsolved Game: Despite the progress, zero agents ascended. Even the best bot's score is considered "Beginner" level by human standards. A typical ascending human run scores around 6.98 million; the best agent's top outlier score was only around 100,000.

Limitations and Future Work

The authors acknowledge that the current evaluation metric (median score) might inadvertently encourage "safe" play rather than risky moves necessary for winning the game.

Future challenges may move toward achievement-based checkpointing (e.g., reaching specific dungeon levels or obtaining quest items) to better steer agents toward ascension. There is also a call for agents to "source-dive" into the game's C code or learn from human replays (ttyrecs) to bridge the massive gap between current AI and human experts. NetHack remains one of the most formidable frontiers for reinforcement learning research.

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 DaeJin Jo 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 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