A Systematic Survey of Text Worlds as Embodied Natural Language Environments

Peter A. Jansen

Introduction

Training "embodied" agents—whether robots or virtual characters—in photorealistic 3D environments presents significant challenges. These environments are computationally expensive, slow to scale, and often mired in "low-level" perceptual hurdles like object segmentation and pixel-perfect navigation. Such difficulties frequently distract from the core research objective: teaching agents how to reason, plan, and understand language.

Text Worlds, such as interactive fiction environments like Zork, provide a unique alternative. By stripping away pixels and rendering the environment exclusively through textual descriptions, these simulations allow researchers to isolate high-level cognitive tasks—such as compositional inference and long-term planning—while maintaining a low barrier to entry. The challenge shifts from "How do I see that door?" to "How do I use the concept of a 'key' to solve the 'locked door' problem?"

Taxonomy of Simulators

The field of embodied AI utilizes a spectrum of simulators, ranging from high-fidelity 3D engines to pure text-based environments. This survey categorizes these into four primary types: 3D Environment Simulators (e.g., AI2-Thor), Voxel-Based Simulators (e.g., Minecraft/MineRL), Gridworld Simulators (e.g., Nethack), and Text-based Simulators (e.g., TextWorld, Jericho).

Comparison of simulator types and their characteristics

While 3D simulators offer high visual realism, they are often limited by simplified action sets and expensive scaling. In contrast, text-based simulators facilitate the study of complex semantics and reasoning by forcing agents to navigate massive action spaces using natural language.

Environment Modeling and Agent Architectures

Most text worlds represent their internal state using an Object Tree—a hierarchical map of items and locations—and Action Rules (often defined via linear logic or PDDL) to determine how the world state changes in response to agent actions.

Example of an Object Tree hierarchy representing game state

Agent architectures for these environments have evolved beyond standard Reinforcement Learning (DQN) baselines. Modern approaches increasingly leverage:

  • Knowledge Graphs: Agents build internal maps of their "beliefs" about the world to track state over time.
  • Language Model Pruning: Models like GPT-2 are used to narrow down thousands of possible text commands to a few "common-sense" actions.
  • Reading Comprehension: Treating the game state as a passage of text to be queried for specific information.

Benchmarks and Datasets

The survey identifies several tiers of benchmarks used to evaluate agent performance:

  • Classic Interactive Fiction: Human-authored games like Zork and Anchorhead (accessed via the Jericho benchmark) serve as high-difficulty targets due to their narrative complexity.
  • Procedural Benchmarks: TextWorld allows for the generation of thousands of unique, simpler games (e.g., cooking tasks) to test an agent's ability to generalize across different scenarios.
  • Social/Dialog Environments: LIGHT provides a platform for agents to interact with other characters using situated dialog.
  • Hybrid Benchmarks: ALFWorld is a standout, aligning TextWorld tasks with the 3D ALFRED environment to facilitate research into transfer learning between text and vision.

Key Insights and Results

A primary challenge in Text Worlds is the Action Space Explosion. Unlike 3D sims where an agent might have 10 discrete actions, a Text World agent faces a combinatorial explosion of thousands of valid verb-noun phrases (e.g., "put the red apple in the small wooden crate"). Successful agents must use Common Sense as a Prior, incorporating external knowledge bases like ConceptNet to understand that "food" is likely in a "kitchen."

Results show a significant Difficulty Gap: agents reach near-human performance on "Easy" games (e.g., Detective at ~92% normalized score) but fail on "Hard" human-authored games (e.g., Anchorhead at <1%). However, models using semantic modeling (like INV-DY) or Knowledge Graphs (KG-A2C) consistently outperform "blind" RL agents. Furthermore, policy distillation has shown that agents pre-trained in text-only versions of a house can complete tasks in 3D versions much faster, demonstrating the power of Symbol Grounding via Text.

Limitations and Future Work

Despite progress, several hurdles remain. There is a "Complexity Ceiling" in procedural generation; we currently lack tools to automatically generate worlds with the narrative depth of human-authored classics. Additionally, the field requires better "World Engines"—middleware that can handle complex physical processes like liquids or electricity without manual scripting. Finally, current planning languages (like PDDL) often assume full observability, which contradicts the partial observability that makes Text Worlds a compelling research challenge.

Summary updated

BibTeX
@inproceedings{jansen2022systematic,
  author = {Peter A. Jansen},
  title = {{A Systematic Survey of Text Worlds as Embodied Natural Language Environments}},
  booktitle = {Wordplay @ NAACL},
  year = {2022},
  url = {https://openreview.net/forum?id=wAzgsRT_Uc3},
}
Figure