Skip to main content
QUICK REVIEW

[Paper Review] I Cast Detect Thoughts: Learning to Converse and Guide with Intents and Theory-of-Mind in Dungeons and Dragons

Pei Zhou, Andrew Zhu|arXiv (Cornell University)|Dec 20, 2022
Software Engineering ResearchComputer Science9 citations
TL;DR

This paper introduces G4C, a new task for training AI Dungeon Masters in Dungeons & Dragons to generate goal-directed, grounded guidance by explicitly modeling communicative intent and theory-of-mind (ToM). Using a reinforcement learning framework that rewards alignment between intended actions and ToM-predicted player responses, the method triples the rate of intent-fulfilling responses compared to standard NLG.

ABSTRACT

We propose a novel task, G4C, to study teacher-student natural language interactions in a goal-driven and grounded environment. Dungeons and Dragons (D&D), a role-playing game, provides an ideal setting to investigate such interactions. Here, the Dungeon Master (DM), i.e., the teacher, guides the actions of several players -- students, each with their own personas and abilities -- to achieve shared goals grounded in a fantasy world. Our approach is to decompose and model these interactions into (1) the DM's intent to guide players toward a given goal; (2) the DM's guidance utterance to the players expressing this intent; and (3) a theory-of-mind (ToM) model that anticipates the players' reaction to the guidance one turn into the future. We develop a novel reinforcement learning (RL) method for training a DM that generates guidance for players by rewarding utterances where the intent matches the ToM-anticipated player actions. Human and automated evaluations show that a DM trained to explicitly model intents and incorporate ToM of the players using RL generates better-quality guidance that is 3x more likely to fulfill the DM's intent than a vanilla natural language generation (NLG) approach.

Motivation & Objective

  • To study goal-driven, grounded natural language communication in interactive environments like Dungeons & Dragons.
  • To address the gap in existing dialogue agents that fail to model communicative intent and theory-of-mind (ToM) explicitly.
  • To develop a training framework that improves guidance quality by aligning generated utterances with both intended actions and predicted player reactions.
  • To construct a large-scale, high-quality dataset (G-Dragon) with intent and ToM annotations for training and evaluation.
  • To evaluate the effectiveness of explicit intent and ToM modeling in improving the coherence and goal-orientation of AI-generated guidance.

Proposed method

  • Construct the G4C task around three components: teacher intent, guidance utterance, and student action, all grounded in a shared narrative world.
  • Use inverse dynamic modeling (IDM) to extract high-quality labels for intent and action from 47k D&D transcripts collected by Callison-Burch et al. (2022).
  • Mine communicative intents from large language models (GPT-3) and use them as explicit context to condition guidance generation.
  • Train a reinforcement learning (RL) agent to generate guidance by predicting the player’s next action using a ToM model, then reward based on whether the predicted action matches the DM’s intended action.
  • Design a reward function that compares the ToM-predicted action with the desired intent, enabling the agent to optimize for intent fulfillment.
  • Integrate human and automated evaluation metrics to assess grounding, coherence, and intent fulfillment in generated guidance.

Experimental results

Research questions

  • RQ1Does explicitly modeling communicative intent improve the quality of AI-generated guidance in goal-driven, grounded dialogue?
  • RQ2Can theory-of-mind (ToM) modeling—predicting how players will react to guidance—enhance the effectiveness of AI-generated utterances?
  • RQ3To what extent does a reinforcement learning approach that aligns predicted player actions with intended actions improve intent fulfillment?
  • RQ4How does the performance of a ToM-augmented RL agent compare to a vanilla natural language generation (NLG) baseline in grounded, narrative-driven dialogue?
  • RQ5Can automated and human evaluation metrics reliably capture intent fulfillment and grounding in complex, narrative-based interactions?

Key findings

  • A DM trained with explicit intent modeling and ToM-based reinforcement learning generates guidance that is 3x more likely to fulfill the intended action than a vanilla NLG baseline.
  • The ToM-augmented RL agent significantly improves alignment between the DM’s intent and the player’s actual response, as measured by intent fulfillment rates.
  • Human evaluation confirms that ToM-enhanced guidance is more coherent, contextually grounded, and effective in steering players toward desired actions.
  • Automated evaluation metrics show strong correlation with human judgments, validating their use in assessing grounding and intent fulfillment.
  • The method outperforms standard NLG in generating guidance that is both contextually appropriate and strategically effective in narrative-driven role-playing games.
  • The G-Dragon dataset of 47k D&D dialogues provides a rich, high-quality resource for training and evaluating goal-driven, grounded dialogue systems.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.