Abstract
Dungeons & Dragons (D&D) is a tabletop roleplaying game with complex natural language interactions between players and hidden state information. Recent work has shown that large language models (LLMs) that have access to state information can generate higher quality game turns than LLMs that use dialog history alone. However, previous work used game state information that was heuristically created and was not a true gold standard game state. We present FIREBALL, a large dataset containing nearly 25,000 unique sessions from real D&D gameplay on Discord with true game state info. We recorded gameplay sessions of players who used the Avrae bot, which was developed to aid people in playing D&D online, capturing language, game commands and underlying game state information. We demonstrate that FIREBALL can improve natural language generation (NLG) by using Avrae state information, improving both automated metrics and human judgments of quality. Additionally, we show that LLMs can generate executable Avrae commands, particularly after finetuning.
The Challenge of Grounded Roleplay
Dungeons & Dragons presents a unique challenge for AI, sitting at the intersection of collaborative storytelling and complex, rule-bound mechanics. While Large Language Models (LLMs) excel at creative text generation, they often struggle to remain grounded in the "truth" of the game—such as current hit points, known spells, or character abilities.
Previous research attempted to bridge this gap using heuristically generated game states (often built with regex or noisy classifiers), which provided a shaky foundation for training. The FIREBALL project addresses this by providing a "true" game state dataset to help models understand player intent and generate narrations that avoid hallucinating impossible outcomes.
Methods and Task Design
The researchers partnered with the developers of Avrae, a popular Discord bot for managing D&D mechanics. By instrumenting the bot, they captured natural language utterances, structured game commands (e.g., !attack greataxe -t DW1), and the underlying game state before and after each command.
The study focused on two primary tasks:
- Utterance to Command: Translating roleplay (e.g., "Filgo swings his axe!") into executable Avrae commands.
- State to Narration: Converting mechanical results (e.g., a hit or miss) into creative narrative descriptions.
The FIREBALL Dataset
FIREBALL is significantly larger and more structured than previous D&D corpora. Unlike the Giant in the Playground or Critical Role datasets, FIREBALL provides the underlying mechanical "math" behind the dialogue. The dataset includes:
- 25,000 unique combat sessions.
- 8 million gameplay utterances.
- 2.1 million commands.
- 1.2 million unique game states.
- 160,000 unique actors (players and NPCs).
Key Results
The inclusion of game state information proved transformative. In the Utterance to Command task, the fine-tuned model with state information (FT+S) achieved a 72.6% pass rate for valid executable commands, a massive improvement over the 23.5% achieved by the model fine-tuned without state info (FT).
For the "State to Narration" task, FIREBALL-trained models significantly outperformed baselines in sensibility and specificity, as rated by 45 experienced D&D players. State-aware models also showed superior ROUGE and BERTScore results, indicating better alignment with how human players actually describe game events.
Insights and Discussion
- State is Essential: Without state data (names, health, abilities), models frequently guess wrong targets or use abilities the character doesn't possess.
- Reporting Bias: Human players often only narrate "critical" events (like a monster dying). Models trained on this can "hallucinate" kills even when the game state indicates the monster survived, highlighting a challenge in training on human narrative data.
- Executable Intent: LLMs can be fine-tuned to act as a natural language interface for complex software, allowing players to interact with the game without memorizing specific command syntax.
- Player Agency: Human evaluation revealed that players dislike when AI "takes control" of their character's voice, suggesting AI should serve as an assistant or inspiration rather than an autonomous actor.
Limitations and Future Directions
Currently, FIREBALL focuses on local context (triples of turns) rather than long-term campaign arcs. It also lacks spatial data (map coordinates), meaning models don't yet understand positioning mechanics like flanking. Future work could explore smaller, open-source models optimized for this specific task and expand beyond combat into inventory management and social roleplay.
Summary updated