[Paper Review] Dungeons and Dragons as a Dialog Challenge for Artificial Intelligence
This paper introduces a large-scale, real-world dataset of 896 Dungeons & Dragons play-by-post games—featuring 800,000 dialogue turns, 58 million words, and 532,000 dice rolls—framed as a dialogue challenge for AI. It trains a fine-tuned large language model (LaMDA) to generate in-character or out-of-character responses and track game state, showing that conditioning on game state and roleplay style significantly improves response quality, though state tracking remains a challenge.
AI researchers have posited Dungeons and Dragons (D&D) as a challenge problem to test systems on various language-related capabilities. In this paper, we frame D&D specifically as a dialogue system challenge, where the tasks are to both generate the next conversational turn in the game and predict the state of the game given the dialogue history. We create a gameplay dataset consisting of nearly 900 games, with a total of 7,000 players, 800,000 dialogue turns, 500,000 dice rolls, and 58 million words. We automatically annotate the data with partial state information about the game play. We train a large language model (LM) to generate the next game turn, conditioning it on different information. The LM can respond as a particular character or as the player who runs the game--i.e., the Dungeon Master (DM). It is trained to produce dialogue that is either in-character (roleplaying in the fictional world) or out-of-character (discussing rules or strategy). We perform a human evaluation to determine what factors make the generated output plausible and interesting. We further perform an automatic evaluation to determine how well the model can predict the game state given the history and examine how well tracking the game state improves its ability to produce plausible conversational output.
Motivation & Objective
- To address the lack of large-scale, history-dependent, multi-party dialog datasets for evaluating complex narrative and roleplaying AI.
- To investigate whether large language models can generate plausible, in-character dialogue in a collaborative, narrative-driven game like D&D.
- To evaluate the impact of conditioning on game state and conversational style (in-character vs. out-of-character) on response quality.
- To explore the feasibility of using LLMs for game state tracking in a dynamic, multi-agent narrative environment.
- To provide a benchmark dataset and model framework for future research in interactive, creative, and context-aware dialogue systems.
Proposed method
- Collected 896 real D&D play-by-post games from online forums, resulting in 815,106 dialogue turns and 58 million words.
- Automatically annotated game state variables (e.g., character attributes, combat status, actions) using heuristic rules based on dialogue context.
- Fine-tuned a LaMDA-based language model on D&D-specific dialog data, including in-character and out-of-character turns.
- Conditioned the model on conversational history, character descriptions, and game state features to generate contextually appropriate responses.
- Performed human evaluation to assess plausibility and interest of generated responses under different conditioning settings.
- Conducted automatic evaluation of game state tracking performance using fine-tuned LLMs, comparing results with and without state conditioning.
Experimental results
Research questions
- RQ1How does conditioning on game state information affect the quality and plausibility of LLM-generated D&D dialogue turns?
- RQ2To what extent can a large language model generate in-character, roleplay-accurate responses that are both engaging and contextually appropriate?
- RQ3Can an LLM effectively track and predict game state variables (e.g., combat status, inventory, HP) from dialogue history alone?
- RQ4How does the distinction between in-character and out-of-character dialogue affect model performance and perceived quality?
- RQ5What impact does multi-party, history-dependent dialogue have on the performance of LLMs in narrative roleplaying scenarios?
Key findings
- Conditioning the LLM on game state significantly improves the quality and contextual appropriateness of generated dialogue, particularly in aligning responses with character class and game context.
- Controlling for in-character vs. out-of-character style results in substantially more interesting and plausible responses, as confirmed by human evaluation.
- Despite fine-tuning, the LLM's performance in automatic game state tracking remains low, indicating that current LMs struggle with structured, multi-faceted state tracking.
- The dataset demonstrates strong history dependence, with dialogue quality highly sensitive to prior turns, validating its use as a challenging benchmark for dialogue systems.
- The model generates evocative, narrative-rich responses suitable for use as DM inspiration, suggesting utility as an aid for novice Dungeon Masters.
- Heuristic game state annotation is incomplete and error-prone, highlighting the need for more precise, programmatic state extraction in future work.
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.