Mastering the Dungeon: Grounded Language Learning by Mechanical Turker Descent

Zhilin Yang, Saizheng Zhang, Jack Urbanek, Will Feng, Alexander Miller, Arthur Szlam, Douwe Kiela, Jason Weston

Introduction

Most natural language processing (NLP) models are trained on static datasets—fixed collections of text that remain unchanged throughout the learning process. However, humans do not learn language by reading an unmoving pile of books; we learn interactively by communicating within an environment.

Static datasets suffer from two primary issues:

  1. The "Goldilocks" Problem: Examples are often either too easy (the model already knows them) or too hard (the model cannot generalize from them), leading to inefficient training.
  2. Lack of Grounding: Language in these datasets is rarely tied to physical actions or environmental states, making it difficult for agents to learn how to execute commands in a simulated or real world.

To address these gaps, researchers introduce Mechanical Turker Descent (MTD), a novel "competitive-collaborative" training protocol. MTD gamifies the collection of grounded language data by incentivizing human teachers to compete for leaderboard bonuses. This system naturally generates a high-quality, human-curated curriculum that helps agents learn to navigate text adventure games far more effectively than static datasets.

The Mechanical Turker Descent (MTD) Framework

The core of the proposed solution is the MTD algorithm, which creates an interactive loop where human workers (Mechanical Turkers) act as teachers, adapting their "lessons" to the current skill level of the AI "student."

The Mechanical Turker Descent (MTD) training and evaluation loop.

The MTD process operates in distinct rounds:

  1. Training: $N$ Turkers each provide a set of labeled examples, mapping natural language commands to action sequences.
  2. Model Building: $N$ separate models are trained. Each Turker's model is trained on their newly provided data plus all shared data from previous rounds.
  3. Evaluation & Gamification: Each model is tested on the data provided by other Turkers. Turkers are then ranked on a leaderboard based on their model's accuracy, with high-ranking Turkers winning cash bonuses.
  4. Collaboration: At the end of the round, all new data is merged into a global pool for the next round.

To maximize learning efficiency, the authors also utilize an Action-Centric Seq2Seq (AC-Seq2Seq) model. Unlike standard models that treat an action like "get elven sword" as a single atomic unit, AC-Seq2Seq understands compositionality. It breaks actions into a type (get), argument 1 (elven sword), and argument 2 (none). It also uses a checklist to track used arguments and constrains the model to only suggest actions that are physically possible in the current game state.

Environment and Datasets

To test this framework, the researchers built GraphWorld, an environment where game states are represented as graphs (nodes are objects/locations, edges are relations). Using this, they created Mastering the Dungeon, a fantasy text adventure game featuring dragons, trolls, and treasure chests.

The text adventure game interface alongside its underlying GraphWorld state representation.

Data was collected through the MTD process over 5 rounds with 30 Turkers per round. This was compared against a "Collaborative-only" baseline dataset collected via traditional static methods (fixed payment per example, no leaderboard or feedback) to serve as a control.

Key Findings and Results

The gamified, interactive nature of MTD yielded significant improvements over traditional data collection:

  • Superior Performance: MTD outperformed the static baseline across all metrics. For the AC-Seq2Seq model, MTD achieved 41.8% accuracy compared to 33.4% for the static baseline—a substantial jump for a complex grounding task.
  • Ranking Improvements: In "Hits@1" (how often the correct action sequence was the model's top choice), MTD improved performance by 13.2 points over the baseline.
  • Incentivized Curriculum Learning: Because Turkers wanted to win the bonus, they naturally avoided providing "too easy" or "too hard" examples. They consistently found the "just right" frontier of the agent's ability, creating an organic curriculum.
  • High Human Engagement: Unsolicited feedback from Turkers suggested they found the MTD process "glorious," "fun," and "awesome." This starkly contrasts with traditional data labeling, which is often viewed as drudgery, and this high engagement likely contributed directly to the higher data quality.
  • Compositionality and Constraints: The AC-Seq2Seq model outperformed standard Seq2Seq by a wide margin. Furthermore, simply preventing the model from suggesting "impossible" actions (like walking through a wall) acted as a powerful inductive bias, narrowing the search space and speeding up language grounding.

Limitations and Future Directions

While MTD presents a strong step forward for grounded language learning, the authors note several areas for future work:

  • Sequence Length: Experiments were limited to action sequences of length 4. Real-world tasks or more complex games will require models capable of handling much longer sequences.
  • Round-Based Latency: The current setup requires waiting for a full "round" to finish before updating models. Moving toward a fully online MTD, where models update incrementally as Turkers submit data, could improve efficiency.
  • State Representation: The agent currently only sees a simplified graph version of the world state. Future iterations could involve grounding language in raw pixels or more complex 3D environments.
  • Scalability: As the environment grows, Turkers might start labeling disparate parts of the world, potentially leading to lower cross-evaluation scores. Suggesting specific "subject areas" for Turkers to focus on in each round could help maintain coordination at scale.

Summary updated

BibTeX
@inproceedings{yang2018mastering,
  author = {Zhilin Yang and Saizheng Zhang and Jack Urbanek and Will Feng and Alexander Miller and Arthur Szlam and Douwe Kiela and Jason Weston},
  title = {{Mastering the Dungeon: Grounded Language Learning by Mechanical Turker Descent}},
  booktitle = {International Conference on Learning Representations},
  year = {2018},
  url = {https://openreview.net/forum?id=SJ-C6JbRW},
}
Figure