Skip to main content
QUICK REVIEW

[Paper Review] How to Avoid Being Eaten by a Grue: Structured Exploration Strategies for Textual Worlds

Prithviraj Ammanabrolu, Ethan Tien|arXiv (Cornell University)|Jun 12, 2020
Topic ModelingComputer Science31 references24 citations
TL;DR

This paper introduces MC!Q*BERT, an agent that uses a knowledge graph and intrinsic motivation to detect and overcome bottleneck states in text-based games—critical challenges where delayed rewards and sparse feedback hinder standard reinforcement learning. It achieves the first known success in solving the infamous Grue bottleneck in Zork, outperforming prior state-of-the-art agents across nine games by combining structured exploration with policy chaining.

ABSTRACT

Text-based games are long puzzles or quests, characterized by a sequence of sparse and potentially deceptive rewards. They provide an ideal platform to develop agents that perceive and act upon the world using a combinatorially sized natural language state-action space. Standard Reinforcement Learning agents are poorly equipped to effectively explore such spaces and often struggle to overcome bottlenecks---states that agents are unable to pass through simply because they do not see the right action sequence enough times to be sufficiently reinforced. We introduce Q*BERT, an agent that learns to build a knowledge graph of the world by answering questions, which leads to greater sample efficiency. To overcome bottlenecks, we further introduce MC!Q*BERT an agent that uses an knowledge-graph-based intrinsic motivation to detect bottlenecks and a novel exploration strategy to efficiently learn a chain of policy modules to overcome them. We present an ablation study and results demonstrating how our method outperforms the current state-of-the-art on nine text games, including the popular game, Zork, where, for the first time, a learning agent gets past the bottleneck where the player is eaten by a Grue.

Motivation & Objective

  • To address the challenge of sparse and delayed rewards in text-based games, where standard RL agents fail to explore effectively due to combinatorially large action spaces.
  • To detect and overcome bottleneck states—critical decision points requiring long-range dependencies that are not directly rewarded—using structural analysis of the game world.
  • To improve sample efficiency and exploration by enabling agents to learn chains of policy modules that sequentially resolve dependencies to progress through the game.
  • To demonstrate that intrinsic motivation based on knowledge graph construction enables agents to avoid premature convergence on locally optimal but globally suboptimal trajectories.

Proposed method

  • The agent, Q*BERT, builds a knowledge graph by asking questions about the game state, encoding location and inventory dependencies as vertices in a directed acyclic graph (DAG).
  • MC!Q*BERT uses this knowledge graph to compute intrinsic rewards that signal progress toward resolving dependencies, especially those not directly rewarded by the game.
  • It applies topological sorting to the dependency graph to identify bottleneck states as vertices that are the only ones on a level and precede higher-reward states.
  • The agent employs a structured exploration strategy that prioritizes actions leading to dependency fulfillment, using intrinsic rewards to guide exploration beyond immediate rewards.
  • Policy chaining is used to combine modular policies that resolve individual bottlenecks, enabling sequential traversal of complex dependency chains.
  • An ablation study evaluates the necessity of intrinsic motivation and improved graph construction, showing their combined effect is essential for performance.

Experimental results

Research questions

  • RQ1Can intrinsic motivation derived from a knowledge graph improve exploration in text-based games with sparse and delayed rewards?
  • RQ2How effectively can a knowledge graph-based method detect bottleneck states that are not directly rewarded but are essential for progression?
  • RQ3Does structured exploration with policy chaining outperform default exploration strategies like ε-greedy in combinatorially large state-action spaces?
  • RQ4To what extent does intrinsic motivation prevent premature convergence on locally optimal trajectories in games with ill-placed rewards?

Key findings

  • MC!Q*BERT achieves the first known solution to the Grue bottleneck in Zork, where agents are eaten if they enter the dark cellar without a light source.
  • The inclusion of intrinsic motivation significantly improves bottleneck detection, preventing the agent from settling on locally high-reward paths like collecting the Egg or reaching the Cellar prematurely.
  • Agents without intrinsic motivation fail to learn how to acquire the lantern or drain the reservoir, missing critical dependencies needed to progress.
  • The combination of improved knowledge graph construction and intrinsic motivation leads to consistently higher maximum scores across nine text games, outperforming both Q*BERT and KG-A2C.
  • Ablation studies confirm that neither graph improvements nor structured exploration alone are sufficient—only their combination enables robust bottleneck resolution.
  • The method demonstrates that knowledge graph-based intrinsic rewards are crucial for guiding exploration in environments with sparse and deceptive reward signals.

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.