[Paper Review] How To Avoid Being Eaten By a Grue: Exploration Strategies for Text-Adventure Agents
This paper proposes two novel exploration strategies—policy chaining and Go-Explore with knowledge graph-based cell representation—for text-adventure agents to overcome combinatorially large action spaces and pass critical bottlenecks in Zork1, such as lighting a lamp before being eaten by a grue. The best-performing method, KG-A2C-Explore, achieves a score of 44, surpassing prior methods and demonstrating that knowledge graphs combined with targeted exploration enable efficient long-horizon decision-making in partially observable environments.
Text-based games -- in which an agent interacts with the world through textual natural language -- present us with the problem of combinatorially-sized action-spaces. Most current reinforcement learning algorithms are not capable of effectively handling such a large number of possible actions per turn. Poor sample efficiency, consequently, results in agents that are unable to pass bottleneck states, where they are unable to proceed because they do not see the right action sequence to pass the bottleneck enough times to be sufficiently reinforced. Building on prior work using knowledge graphs in reinforcement learning, we introduce two new game state exploration strategies. We compare our exploration strategies against strong baselines on the classic text-adventure game, Zork1, where prior agent have been unable to get past a bottleneck where the agent is eaten by a Grue.
Motivation & Objective
- To address the challenge of combinatorially large action spaces in text-based games like Zork1, where standard reinforcement learning agents fail to explore effectively.
- To improve sample efficiency in partially observable environments by integrating knowledge graphs into exploration strategies.
- To enable agents to successfully pass long-horizon bottlenecks—such as lighting a lamp before encountering a grue—where delayed rewards make learning difficult.
- To evaluate whether knowledge graph-based state representations enhance exploration performance compared to text-only representations.
- To compare the effectiveness of policy chaining versus Go-Explore-based exploration in navigating acyclic, puzzle-based game structures.
Proposed method
- The authors extend KG-A2C, a knowledge graph-augmented A2C agent, by introducing two exploration strategies: policy chaining and Go-Explore with knowledge graph-based cell representation.
- Policy chaining involves detecting potential bottlenecks through backtracking and explicitly training policies to resolve them, improving sample efficiency in sequential decision-making tasks.
- Go-Explore is adapted by using the knowledge graph snapshot alongside the game state as a cell representation, enabling more meaningful state abstraction than text-only encodings.
- The knowledge graph is dynamically updated at each step using OpenIE to extract triples from observations, representing entities, relations, and their locations or states.
- Exploration is guided by weighted sampling of cells, with higher-priority cells being those with better scores or more advanced progress in the game.
- The agent uses a template-based action space with 237 templates and up to two entity fillers, reducing the effective action space from 1.64×10^14 to 1.15×10^8 actions per step.
Experimental results
Research questions
- RQ1Can knowledge graph-augmented exploration strategies significantly improve sample efficiency in text-based games with combinatorially large action spaces?
- RQ2Does using knowledge graph-based cell representations in Go-Explore lead to better exploration performance than text-only encodings?
- RQ3Is policy chaining—explicitly targeting and resolving bottlenecks—more sample-efficient than random or heuristic-based exploration in acyclic game structures?
- RQ4Can agents with knowledge graph state representations surpass the 40-point bottleneck in Zork1, where failure results from not lighting a lamp in time?
- RQ5How do knowledge graph representations compare to pure text-encoding baselines in enabling long-horizon planning under partial observability?
Key findings
- The KG-A2C-Explore method achieved a final score of 44, successfully passing the 40-point bottleneck in Zork1, which previous agents had failed to overcome.
- KG-A2C-chained achieved a score of 41.8, demonstrating that policy chaining with knowledge graphs enables faster convergence and higher sample efficiency than Go-Explore-based exploration.
- The A2C-Explore baseline reached a maximum score of 40 but failed to pass the bottleneck, indicating that text-only cell representations are insufficient for long-horizon exploration.
- Knowledge graph-based state representations significantly outperformed text-only representations, with KG-A2C achieving 34 points compared to A2C’s 32, even without enhanced exploration.
- Policy chaining was more sample-efficient than Go-Explore-based exploration, suggesting that explicit bottleneck detection accelerates learning in structured, acyclic game environments.
- The ablation study confirmed that knowledge graphs are critical for partial observability, and that enhanced exploration alone is insufficient without structured state representations.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.