Skip to main content
QUICK REVIEW

[Paper Review] MiniHack the Planet: A Sandbox for Open-Ended Reinforcement Learning Research

Mikayel Samvelyan, Robert Kirk|arXiv (Cornell University)|Sep 27, 2021
Reinforcement Learning in RoboticsComputer Science11 citations
TL;DR

MiniHack introduces a flexible, open-ended reinforcement learning (RL) sandbox built on NetHack's rich gridworld mechanics, enabling rapid prototyping of complex, procedurally generated environments via a human-readable DSL or Python API. It supports seamless integration of existing benchmarks, multi-modal observations, and advanced RL tasks—demonstrating state-of-the-art performance on navigation, skill acquisition, and unsupervised environment design with baselines like DQN, PPO, and A2C.

ABSTRACT

Progress in deep reinforcement learning (RL) is heavily driven by the availability of challenging benchmarks used for training agents. However, benchmarks that are widely adopted by the community are not explicitly designed for evaluating specific capabilities of RL methods. While there exist environments for assessing particular open problems in RL (such as exploration, transfer learning, unsupervised environment design, or even language-assisted RL), it is generally difficult to extend these to richer, more complex environments once research goes beyond proof-of-concept results. We present MiniHack, a powerful sandbox framework for easily designing novel RL environments. MiniHack is a one-stop shop for RL experiments with environments ranging from small rooms to complex, procedurally generated worlds. By leveraging the full set of entities and environment dynamics from NetHack, one of the richest grid-based video games, MiniHack allows designing custom RL testbeds that are fast and convenient to use. With this sandbox framework, novel environments can be designed easily, either using a human-readable description language or a simple Python interface. In addition to a variety of RL tasks and baselines, MiniHack can wrap existing RL benchmarks and provide ways to seamlessly add additional complexity.

Motivation & Objective

  • To address the gap between simple, controlled RL environments and complex, real-world benchmarks by enabling systematic, scalable environment design.
  • To provide a framework that allows researchers to incrementally increase environment complexity while retaining control for hypothesis testing.
  • To support diverse RL research areas such as unsupervised skill discovery, transfer learning, and language-assisted RL through rich, extensible environments.
  • To enable seamless porting and extension of existing benchmarks (e.g., MiniGrid, Boxoban) with NetHack’s entities and dynamics.
  • To offer standardized baselines and training configurations for DQN, PPO, and A2C to accelerate future research.

Proposed method

  • The framework uses NetHack’s domain-specific language (DSL) to define procedurally generated environments via human-readable des-files, enabling rapid environment creation with minimal code.
  • It compiles these descriptions into standard Gym-compatible RL environments, supporting symbolic, pixel-based, and textual observations.
  • The system allows extending existing benchmarks by injecting NetHack entities (e.g., monsters, doors, lava) and stochastic dynamics with just a few lines of code.
  • It supports multi-agent and adversarial training, including unsupervised environment design via the PAIRED algorithm, using LSTM-based policy networks for adversary and protagonist.
  • The framework integrates with popular RL libraries (e.g., RLlib, TorchBeast) and provides pre-configured training scripts and hyperparameters for baseline methods.
  • It enables end-to-end training with support for recurrent networks (LSTM) and standard RL components like prioritized experience replay and value function clipping.

Experimental results

Research questions

  • RQ1Can a modular, extensible framework enable researchers to systematically scale up from simple to complex RL environments while preserving experimental control?
  • RQ2To what extent can existing benchmarks be extended with rich, dynamic entities from NetHack without significant engineering overhead?
  • RQ3How effective is MiniHack in supporting advanced RL research, such as unsupervised environment design and multi-modal observation learning?
  • RQ4Can MiniHack serve as a unified platform for evaluating diverse RL capabilities, including exploration, credit assignment, and transfer learning?
  • RQ5How do standard RL algorithms (DQN, PPO, A2C) perform on MiniHack’s suite of navigation and skill acquisition tasks?

Key findings

  • Baseline agents trained with DQN, PPO, and A2C achieved stable learning curves across MiniHack’s navigation and skill acquisition tasks, with median returns improving over 500k timesteps.
  • The PAIRED algorithm successfully generated novel, challenging levels in MiniHack using an adversary policy trained with PPO, demonstrating feasibility of unsupervised environment design.
  • Ported environments from MiniGrid and Boxoban were successfully integrated into MiniHack and extended with NetHack entities, showing the framework’s interoperability.
  • The use of multi-modal observations (symbolic, pixel, text) in MiniHack enabled richer state representations, supporting complex reasoning tasks.
  • Training with 1 GPU and 10 CPUs achieved efficient wall-clock speed, with hyperparameters tuned for stable learning across all algorithms.
  • The framework’s modular design allowed for rapid environment creation—e.g., generating complex mazes or corridor systems in under 10 lines of DSL code.

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.