Nebula: A discourse aware Minecraft Builder

Akshay Chaturvedi, Kate Thompson, Nicholas Asher

Abstract

In collaborative virtual environments, translating natural language instructions into precise actions remains a significant challenge due to the inherent ambiguity and context-dependence of human dialogue. We introduce Nebula, a Minecraft-building agent based on Llama-3-8B. Unlike previous models that treat instructions in isolation, Nebula leverages entire conversation histories and structured "Narrative Arcs" to interpret underspecified commands, anaphora, and mid-task corrections. Our results show that Nebula nearly doubles the performance of previous state-of-the-art models on the Minecraft Dialogue Corpus (MDC), achieving a net-action F1 score of 0.392.

Introduction

The "language-to-action" paradigm is a cornerstone of modern robotics and virtual assistant research. In a collaborative setting like Minecraft, a user might say, "put it next to that one." For an AI agent, executing this command requires more than just parsing the current sentence; it requires understanding the "discourse"—the evolving context of the conversation and the current state of the world.

Example of dialogue turns and world state updates in the Minecraft building task.

Most existing models struggle with this because they process instructions as isolated events. Nebula addresses this by treating dialogue as a structured narrative, allowing it to resolve ambiguities that would otherwise lead to failure.

Problem Statement: The Challenge of Context

Human conversation is messy. In the context of building, instructions are often:

  1. Underspecified: "Put a tower in a corner" without specifying which one.
  2. Anaphoric: Referring to previous objects ("it," "that one").
  3. Corrective: "No, move it one space to the left" after an initial attempt.

Previous state-of-the-art models, such as the "Neural Builder," often failed because they only considered the immediate preceding turn, losing the broader context necessary to resolve these linguistic hurdles.

Methodology

Nebula was developed by fine-tuning Llama-3-8B using QLoRA (Quantized Low-Rank Adaptation). The core innovation lies in how the model processes input:

  • Full Context Windows: Nebula is provided with the entire linguistic and action history of the session, rather than truncated snippets.
  • Narrative Arcs: The researchers utilized discourse structures called "Narrative Arcs." These arcs group related turns—such as an initial instruction, a clarifying question from the builder, and the final confirmation—into a single coherent unit.
A complex narrative arc showing discourse relations between Architect instructions and Builder actions.
  • Synthetic Fine-Tuning: To bolster spatial reasoning, the model underwent targeted training on synthetic datasets. This "taught" the model fundamental concepts like relative positioning and negative constraints (e.g., "not touching") before it was exposed to complex human dialogue.

Datasets

The evaluation of Nebula relied on several key benchmarks:

  • Minecraft Dialogue Corpus (MDC): A collection of human-human dialogues between an "Architect" (instructor) and a "Builder" (executor).
  • Minecraft Structured Dialogue Dataset (MSDC): An augmented version of MDC that includes semantic relations and Narrative Arcs, providing the structural backbone for Nebula's discourse awareness.
  • Synthetic Levels 1 & 2: Custom benchmarks designed to test specific capabilities, such as building basic shapes (Level 1) and handling complex spatial/anaphoric relations (Level 2).

Key Results

Nebula represents a significant leap in performance over previous architectures:

  • Performance Gains: On the MDC test set, Nebula achieved a net-action F1 score of 0.392, nearly doubling the 0.20 score of the previous state-of-the-art Neural Builder.
  • Spatial Reasoning: Targeted fine-tuning on synthetic data led to dramatic improvements. For instance, accuracy on "not touching" instructions soared from 7.5% to 97.8%.
  • Shape Construction: On the Level-1 synthetic dataset, Nebula's shape-building accuracy improved from 73% to 87%, demonstrating a better grasp of complex geometries like diamonds and cubes.

Discussion and Future Work

Nebula demonstrates that discourse awareness is "sufficient" for high-performance collaborative agents. By focusing on the Narrative Arc, the model captures the necessary context without requiring infinite memory.

However, limitations remain. The current spatial vocabulary is relatively narrow, and the model's "intuitive" evaluation metric—which rewards valid interpretations of underspecified commands—needs further refinement for real-world datasets. Future research will focus on expanding the model's spatial reasoning and transitioning Nebula from simulated environments to real-world human-robot interaction.

Conclusion

Nebula proves that for AI to truly collaborate with humans, it must understand the flow of conversation. By integrating discourse structure with powerful large language models, we move closer to virtual assistants that can build, assist, and learn within complex, dynamic environments.

Reference: Chaturvedi, A., Thompson, K., & Asher, N. (2024). Nebula: A Discourse-Aware Minecraft Builder. Findings of EMNLP 2024.

Summary updated

BibTeX
@inproceedings{chaturvedi2024nebula,
  author = {Akshay Chaturvedi and Kate Thompson and Nicholas Asher},
  title = {{Nebula: A discourse aware Minecraft Builder}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2024},
  doi = {10.18653/v1/2024.findings-emnlp.374},
}
Figure