[Paper Review] NAIL: A General Interactive Fiction Agent
NAIL is a general-purpose interactive fiction agent that excels in parser-based text adventure games by using a modular architecture with specialized decision modules for navigation, object examination, interaction, and knowledge graph maintenance. It achieved state-of-the-art performance in the 2018 Text Adventure AI Competition, scoring 2.56% average completion across 20 unseen games—significantly outperforming prior agents like CARL and Golovin—thanks to its explicit knowledge graph, extensive use of examination actions, and a learned validity detector for action success prediction.
Interactive Fiction (IF) games are complex textual decision making problems. This paper introduces NAIL, an autonomous agent for general parser-based IF games. NAIL won the 2018 Text Adventure AI Competition, where it was evaluated on twenty unseen games. This paper describes the architecture, development, and insights underpinning NAIL's performance.
Motivation & Objective
- To develop a general-purpose, autonomous agent capable of playing arbitrary human-made parser-based interactive fiction games without prior game-specific training.
- To address the challenges of combinatorial action spaces, partial observability, and commonsense reasoning in text-based environments.
- To improve performance on unseen IF games by enabling rapid exploration, effective object interaction, and accurate state tracking through structured knowledge representation.
- To outperform existing agents in the 2018 Text Adventure AI Competition, particularly in score accumulation and generalization across diverse, unseen games.
Proposed method
- NAIL employs a modular architecture with specialized decision modules—Navigator, Examiner, Interactor, Hoarder, Idler, and specialized modules—each activated based on contextual cues from the game state.
- It maintains an explicit, human-interpretable knowledge graph that records locations, objects, inventory, and action outcomes, updated dynamically by decision modules.
- The Examiner module performs exhaustive 'examine' actions on candidate objects, using word embeddings and semantic similarity to prioritize potentially interactive items.
- The Interactor module uses a fine-tuned language model to generate contextually relevant actions for examined objects, guided by the knowledge graph.
- A learned Validity Detector predicts whether an action is likely to succeed, reducing invalid actions and improving knowledge graph accuracy.
- The agent uses a hierarchical decision control system where modules take over based on game state signals, such as 'pitch black' for darkness handling or 'you can't see anything' for navigation cues.
Experimental results
Research questions
- RQ1Can a modular, knowledge-augmented agent outperform existing IF agents in generalization across unseen, diverse interactive fiction games?
- RQ2To what extent does extensive examination of objects improve action selection and puzzle-solving in text-based games?
- RQ3How effective is a learned validity detector in distinguishing successful from failed actions without relying on game-specific reward signals?
- RQ4What is the contribution of each decision module to overall performance, and which components are most critical for score accumulation?
- RQ5Can a general-purpose agent achieve high performance with only 1,000 steps per game, simulating realistic human playtime?
Key findings
- NAIL achieved an average score of 2.56% completion across 20 unseen games in the 2018 Text Adventure AI Competition, significantly outperforming prior agents like CARL (1.59%) and Golovin (1.45%).
- The agent's core modules—Navigator, Examiner, and Interactor—accounted for the largest performance gains, increasing the score from 1.2% (with only Navigator) to 3.5% when all were active.
- NAIL performed 26% of its actions as 'examine' commands, far exceeding CARL (8%), Golovin (2%), and BYUAgent (0.2%), demonstrating the value of deep object inspection.
- The Validity Detector significantly improved action selection accuracy, reducing invalid actions and enhancing knowledge graph reliability.
- Ablation studies showed that removing the Examiner or Interactor modules caused the most significant performance drops, confirming their central role in puzzle solving.
- Even with only 100 steps per game, NAIL achieved 0.95% average completion, outperforming Golovin (0.99%) and RandomAgent (1.66%), indicating strong sample efficiency.
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.