Elamur Research

Dungeons and Dragons as a Dialog Challenge for Artificial Intelligence

Paper · 2022 · Chris Callison-Burch, Gaurav Singh Tomar, Lara J. Martin et al.

Summary

A turn in Dungeons & Dragons can describe what a character sees, ask a question about the rules, or report a dice roll that changes what happens next. The other players need to know who is speaking, what has already happened, and which parts of the conversation describe events in the fictional world. The authors turn these demands into a challenge for dialogue systems. They study whether a system can write a plausible next turn and whether it can recover selected facts about the game from the conversation.

The study draws on written games played on the D&D Beyond forum. The corpus contains 896 campaigns, 815,106 turns, 532,270 dice rolls, and 58,187,526 words. The authors use rules and classifiers to attach partial state information to the posts, including who is playing, what kind of character they play, whether the party is in combat, and what action a turn describes. They also distinguish in-character writing, such as narration of a character’s actions, from out-of-character writing about mechanics or strategy. These annotations serve two purposes. A system writing the next turn can use them as instructions, while a separate system learns to predict them from the dialogue.

Adapting a general dialogue system to D&D improved all three qualities judged by human raters. The adapted responses made sense more often, fit the immediate situation more closely, and were more interesting on average. Giving the system information about the turn it was about to write produced the best development-set perplexity, which measures how much probability it assigns to the recorded text. The average human ratings showed little extra benefit from control information across all outputs. Its clearest benefit was the ability to request a particular kind of turn, such as an in-character response from a specified character. The raters found in-character turns substantially more interesting than out-of-character turns when the system could steer the upcoming response explicitly.

The state tracker outperformed a predictor that always chose the most common value on overall slot accuracy, scoring .82 against .73. Its accuracy fell to 58% when success required the tracked values to be correct together. The labels themselves cover only part of what players and the Dungeon Master keep track of. The experiments establish that a system can produce suitable individual contributions under some conditions, including responses steered by a character description. Sustaining a playable game with people would require an interactive evaluation and a fuller account of how the game state is maintained.

Deep dive: Dungeons and Dragons as a Dialog Challenge for Artificial Intelligence

Dungeons and Dragons as a Dialog Challenge tests whether a system can write the next turn of a role-playing game and infer the state behind the conversation. · about 35 minutes to read

The problem and its context

A game played through conversation

In the authors’ account of D&D, players create characters with different abilities and describe what they want those characters to do. A Dungeon Master, or DM, presents situations, narrates consequences, and speaks or acts for inhabitants of the world who have no player of their own. The group may consult rules and roll dice to settle whether an attempted action succeeds. What everyone says is part of how the game proceeds. A request to roll dice, a report of the result, and a description of what becomes visible can form successive pieces of the same event.

The paper illustrates this with a scene from The Adventure Zone. The party is taking a wagon along a trail when the DM asks the players to make perception checks. The players report their results. Magnus succeeds, and the DM narrates what Magnus sees up ahead. Magnus’s player then describes stopping the wagon and alerting his companions. A later question about the number of creatures nearby leads the DM to describe their positions. Each turn takes its meaning from the earlier ones. The reported roll matters because a check was requested, and the description of the creatures matters because the party has just learned that something is happening beside the road.

The scene also shows how quickly a conversation can change register. A player may talk about a modifier when reporting a roll and use the first person when portraying a character a moment later. The DM may describe the landscape and then ask the group to apply a rule. A system assigned to speak next needs a sense of which kind of contribution the situation calls for. When players ask for a mechanical clarification, a colorful description can leave the question unanswered. When the DM has invited someone to act, reciting a rule may leave the scene where it was.

People can also hold different parts of the relevant information. In the example, the DM works from an adventure book that contains details and rules for the encounter. The players hear the description delivered by the DM and learn additional details as their characters investigate or act. Someone who sees the public conversation can follow much of what happens, while details consulted privately may be unavailable. This distribution of information was already among the challenges that Martin and colleagues identified in proposing tabletop role-playing as a research problem.

The authors contrast this setting with Chess and Go, the earlier challenge games discussed by Ellis and Hendler. In the paper’s account, those games have a visible, well-defined position and deterministic rules governing changes to it. D&D includes chance, several participants, and open-ended decisions expressed in language. It also offers reasons to act that are difficult to capture in a score. A player can contribute to a scene by choosing an action that suits their character or makes the story engaging. A benchmark based on this game has to decide which part of that broader activity it can measure.

A test of local dialogue and partial state

The authors focus on two tasks that can be evaluated using records of past games. The first is next-utterance prediction. An utterance here is the text of a conversational turn, including narration and talk about the rules. Given recent turns, a system writes a continuation. The paper asks whether that continuation is plausible and interesting in context. It also asks how the continuation changes when the system is told who is speaking and what kind of contribution to make.

The second task is game state tracking. A state variable records an aspect of the game or of a turn, such as whether a fight is underway or which character a player is portraying. The paper borrows the idea of slots and values from task-oriented dialogue tracking. A slot names a property and its value fills in the detail for the situation at hand. Character class is a slot, and wizard is a possible value. The text may supply indirect evidence. A player can describe an action without repeating their class, and a turn can occur during a fight without stating that combat is still underway.

The two tasks use much of the same information in different ways. For generation, a character detail may tell the system how to write the next turn. For tracking, the system has to return the detail as a prediction. This difference matters most for facts about the upcoming turn itself. An action supplied in advance can serve as an instruction from someone directing the scene. An action recovered from a completed post is a reading of what the player wrote. The task definitions give each use an identifiable input and output.

The choice of forum play gives the authors a record of collaborative writing. The posts arise from people carrying on a game. A campaign can move from social conversation to coordination, rules discussion, or narrative without leaving the same thread. Previous turns matter when the participants refer back to a decision, attribute an action to a particular player, or continue an encounter. The authors connect this property to an earlier criticism by Mosig and colleagues that turns in some dialogue datasets depend too little on their history.

How the study draws on earlier work

The paper places the challenge beside research on text adventures. In the authors’ account, those games offer more constrained vocabularies and more straightforward state than D&D. This makes research on selecting actions in a text game relevant to only part of what a role-playing group does. In D&D, a player can propose an action in ordinary language, and the DM can help determine what the proposal means for the scene. Work on generating a text adventure is closer to a different part of the DM’s job, the construction of a world and situations for players to encounter. One example of the earlier action-generation research is Keep CALM and Explore.

Fantasy game research also examined how characters managed by the game could both speak and act. That concern carries over to the DM’s role, since the same participant may describe an event, portray someone within it, and judge what changes. The paper discusses work on character and persona generation as another precedent. A character’s speech and actions can help establish an identity that persists across turns. In the D&D task, some of the information that would support that identity can be supplied explicitly from the game annotations. The earlier intersection of action and dialogue is represented by Learning to Speak and Act in a Fantasy Text Adventure Game.

The authors also draw on earlier work in text generation, especially storytelling. They describe a problem with maintaining coherence over a long narrative and discuss work that separates decisions about a plot from the writing of its sentences. That distinction helps explain the scope of the D&D setup. A good description can express a situation that has already been established, while deciding how a whole adventure should develop requires choices over a longer span. The paper concentrates on the text of the upcoming turn and the state that can be associated with a turn. It situates the work alongside Hierarchical Neural Story Generation.

Earlier dialogue research gives the authors both a starting system and a way of thinking about control. The paper describes work on guiding conversations toward goals and varying the style of responses. Its own design takes a cue from CTRL, which supplied an extra control code along with the text being continued. The D&D system uses explicit pieces of game information for a similar purpose. These inputs express distinctions the authors can vary deliberately, such as the identity of the next speaker or whether the response should take the form of narration. The paper credits CTRL for this approach.

The method, step by step

Collecting the written games

The researchers collect the main corpus from the D&D Beyond play-by-post forum with the company’s permission. In play-by-post games, participants contribute by writing posts and waiting for others to take their turns. The forum also provides a tag for rolling dice. A roll made through that mechanism leaves a recognizable trace in the post, giving the researchers a way to distinguish a recorded roll from an ordinary number in a sentence. Nearby words can then supply a clue to what the roll is for.

The text and roll markup provide different kinds of evidence. The wording can identify a person, refer to an object, or describe an action. The presence of rolls can signal when an encounter is underway. Posts may also explain why a roll is being made. For example, the language around a roll can distinguish an attempt that tests an ability from a roll that determines damage. The researchers organize these clues into named properties they can attach to turns.

A second forum, Giant in the Playground, supplies data for a different annotation problem. Some games there separate in-character and out-of-character writing onto different boards. The authors use this division to learn a distinction that is often mixed into the same D&D Beyond post. The D&D Beyond campaigns supply the main conversations for the experiments, while the separate boards supply examples of the two kinds of writing.

From forum posts to generation and state tracking

The steps in order.

From forum posts to generation and state trackingStep 1: Collect written campaigns and marked dice rolls1. Collect written campaigns and marked dice rollsStep 2: Extract character, combat, and action information2. Extract character, combat, and action informationStep 3: Fill missing state labels from post text3. Fill missing state labels from post textStep 4: Classify paragraphs by role-playing register4. Classify paragraphs by role-playing registerStep 5: Assemble dialogue histories and optional controls5. Assemble dialogue histories and optional controlsStep 6: Train systems for continuation and state prediction6. Train systems for continuation and state predictionStep 7: Evaluate generated turns and predicted state7. Evaluate generated turns and predicted state

Finding character details

The authors begin with rules for linguistic annotation. Some rules count names or terms across a player’s posts. Others look for patterns close to an expression such as a roll. The rules are heuristics, meaning that they use signs expected to be informative in typical cases. A campaign still has to be played through the conversation, so the same sign can have a different interpretation in a particular post.

To assign a character name, the system uses named entity recognition, which identifies mentions such as names in a stretch of text. It considers the turns from a given player in a campaign and picks the most frequent recognized name on the assumption that players commonly describe their own characters. The paper cites AllenNLP in connection with the language-processing tools used for this part of the annotation.

Class and fantasy race are separate character properties. Class distinguishes roles such as fighter and wizard and relates to what characters can do. Fantasy race refers to categories in the setting such as elf or dwarf. To estimate class, the rule counts a player’s mentions of the available classes and selects the most frequent one. For race, it first checks the player’s opening turn for a category and falls back to frequency when needed. The opening turn is treated as a likely place for an introduction. Across the rest of the game, repeated terms furnish evidence when that initial clue is absent.

The pronoun rule assigns the pronouns a player uses most often. Inventory uses a more local pattern. A regular expression, a rule for matching a pattern in text, looks for items mentioned after a possessive form associated with the character. The spells rule looks for casting language followed by a spell name. These procedures recover particular kinds of mentions. An inventory annotation can reflect an item that came up in the conversation, and an annotation for spells can reflect what the character was reported to cast.

The Dungeon Master is handled differently because a single DM may portray many inhabitants of the world over the course of a session. The first person to post is taken to be the DM. The ordinary character properties are cleared for that participant’s entries so that the annotation does not represent the DM as one persistent player character. Player identity can still mark who is writing, including in a conversation where the DM alternates between describing locations, handling rules, and speaking for different creatures.

Some labels are assigned using a player’s posts across the campaign. Others depend on activity around a given turn. A character name inferred from many mentions can help label a post in which the name never appears. Combat and action labels instead have to follow the unfolding encounter. This is why the paper treats game state as a collection of variables that change at different rates. Character identity can remain useful over many turns, while a turn-specific action may cease to apply as soon as someone else speaks.

Locating combat and actions

The combat rule looks for initiative, a game mechanic that determines the order in which participants act during an encounter. An initiative roll can mark the beginning of the combat interval. The rule also looks for attacks that precede initiative, which can occur when the encounter begins with a surprise attack. Subsequent attack rolls support keeping the combat status active. After a stretch with no rolls, the rule treats combat as over. This gives the researchers a way to assign the same broad status to successive posts even when those posts discuss different actions.

Within a span marked as combat, the annotation procedure extracts mentions of monsters and estimates how many of each kind are present. The paper’s wagon example shows the difference between a broad setting and a more detailed one. Knowing that the group is in combat helps situate an action. Answering a question about where the creatures are would require information about their number and position. The paper’s combat status is a coarse feature that can be used in the prediction experiments alongside more local information about what a player does.

For actions, the annotations use the type of die and the text near the roll. The rules treat a D20 roll as a check and use surrounding language to decide what kind of check is being made. The rule can search for an attack term or an ability such as acrobatics or investigation. Other dice can be used to determine damage after a successful attack check. Expressions for damage or healing help associate those rolls with their purpose. The annotations can thereby record an action in a compact form even if the post also contains a longer fictional description of it.

The paper reports that the rules yielded features for around 60% of conversational turns. It then trains a convolutional neural network, or CNN, on the turns for which the rules provide labels. In this role, the CNN learns to fill gaps in the annotations by looking at the current post text. The authors use span labeling when the value is a stretch of text to identify, as with names and inventory. For other fields, they use classification to assign values from the relevant categories. The procedure extends annotation coverage beyond the turns that match an extraction rule.

The post-level CNN and the game state tracker serve different purposes. The CNN helps prepare the annotated data and receives the current post alone. The state tracker is an experimental system trained to make use of dialogue history as well as the state supplied for past turns. The tracker is evaluated on a task defined using the resulting annotations. Keeping the two roles clear helps explain why the paper reports a separate set of estimates for annotation completion and a later set of accuracies for tracking state.

Distinguishing narration from talk about the game

In-character, abbreviated IC, refers to writing within the fiction. It includes a character speaking and a player narrating what the character does. Out-of-character, or OOC, refers to writing in which the participants address the game as players. Deciding how a rule applies, reporting a roll, and coordinating with others can all be OOC. A single event can have an IC description and an OOC account of the relevant mechanics. The paper illustrates this with a bow shot described in narrative terms on one board and explained through allowed actions and dice results on the other.

Because Giant in the Playground has separate boards for the two kinds of posts, their organization supplies labels for training a classifier. The authors apply that classifier to each paragraph of the D&D Beyond material. The paragraph is a useful unit for this step because one post can contain narration followed by rules or roll information. The control used in generation indicates whether the response should be written in character or out of character.

The distinction describes the function of a stretch of writing. It can be useful even when the text belongs to the same player, depicts the same action, and occurs during the same encounter. Telling the system that a wizard is due to respond identifies a role. Asking for IC writing also conveys that the desired turn should portray what happens in the world. Asking for OOC writing leaves room for a question about what the player is allowed to do or how an outcome should be determined.

Training the next-turn systems

The experiments use a 64B parameter version of LaMDA that had been pretrained on conversations. The paper describes LaMDA as a dialogue system based on a Transformer and uses fine-tuning to adapt it. Fine-tuning continues training a system that already has learned to process and produce text, using examples of the task it is now meant to perform. The checkpoint supplies general conversational ability. The D&D data gives the adapted systems examples of what the different participants say during play. The starting system is LaMDA.

The ordinary conversation training setup holds back the last turn in a sequence. In the paper’s general description, the number of turns given as context is

n − 1

Here n is the number of turns in the sequence. The minus sign subtracts the final turn, counted as 1, from the length of that sequence. The final turn is the prediction target. In the next-utterance comparison, the input contains the 7 most recent turns and the target is turn 8. The systems share this local window so the comparison can vary the type of information attached to it.

The paper describes response generation as an input-output mapping.

f(current state, history) → next utterance

The symbol f stands for the function learned for generation. Parentheses enclose its inputs, and the comma separates them. current state means the supplied attributes of the turn to be written, where the experimental setting includes them. history is the sequence of preceding conversational turns, which can be accompanied by their own attributes. The arrow points to the output, and next utterance is the text generated for the upcoming turn. The expression summarizes the task. The variants omit or include different parts of the available state information.

The unadapted LLM-Dialog serves as the generic dialogue baseline. LLM-DND is fine-tuned on the forum conversations and receives their text without explicit control features. LLM-DND-PREV-CTRL adds the features associated with past turns. The other controlled settings give the generator information about the turn being predicted. LLM-DND-CURR-CTRL, also called the current-control system, adds attributes for that turn alone. LLM-DND-ALL-CTRL adds attributes for past turns as well.

The features supplied for a turn can identify the player, the character name and properties, combat status, action, and whether the writing is IC or OOC. The paper gives an example of the training representation containing character race, class, pronouns, and inventory alongside the post. Each feature has a potential role in generation. Player identity can connect a response to the same person’s earlier contributions in the group conversation. Character name and pronouns can guide reference. Combat status can make certain kinds of actions more plausible. The action label can give the generator something concrete to describe.

A control value for a past turn gives the system an explicit reading of material already in the conversation. A value for the upcoming turn gives it a specification for the response. For instance, specifying combat as part of the history can clarify the context of past actions. Specifying a character and an action on the upcoming turn constrains what the new prose should be about. During fine-tuning the system learns associations between these specifications and the words people actually wrote. At generation time the settings can be changed as inputs, without training a new system or editing the generated prose afterward.

The development-set training discussion describes a LaMDA checkpoint pretrained for 600K steps and a further 60K steps of fine-tuning. The study uses an unadapted dialogue system for comparison and varies the inputs used in the D&D-adapted runs. That design allows the authors to ask separately what comes from learning the domain and what comes from giving explicit descriptions of the speaker, state, or desired response.

Training the state tracker

For state prediction, the system reads the current turn and returns its labels. The paper gives a separate mapping for this task.

f(current utterance, previous state, history) → new state

Here f denotes the learned function for game state tracking. The items in parentheses are the inputs, separated by commas. current utterance is the text of the turn being analyzed. previous state is state information supplied for earlier turns. history is the preceding conversation. The arrow points to new state, the predicted values for the current turn. The role of the current text has changed since the generation task. In generation it is the target to write, and in tracking it is part of the evidence.

The game state system, LLM-DND-GST, is fine-tuned on the annotated D&D Beyond material. In the task description, it receives previous turns and their state variables along with the current turn’s text. The authors assess its ability to fill individual slots, including character properties, combat status, and actions. Earlier state can help with a property that persists, such as the name of a character. The wording of the current post can be especially informative when the output concerns what happened on that turn.

The task accommodates inference from information that appears elsewhere or only indirectly. A character’s class can be supplied through past state even when the current speaker never names it. A fight can be ongoing during a question about someone’s position. The state tracker is meant to recover the relevant assignments under these conditions. The paper makes the forum dataset available for research on these dialogue and tracking tasks.

Experiments and results

The corpus and the comparisons

The main play-by-post corpus contains 896 campaigns. The paper reports averages of 8 players, 910 turns, 64,941 words, and 594 dice rolls per campaign. The corresponding corpus totals are 815,106 turns, 58,187,526 words, and 532,270 rolls. The averages describe the scale of the campaigns from which the local dialogue windows are drawn. A window used for generation contains a small stretch of the recorded conversation, even though a campaign can run through many such stretches and retain characters and situations across them.

The generation evaluation has an automatic part and a human part. The automatic comparison asks how the systems score against the turns that actually followed their inputs on the development set. The human comparison asks how well individual continuations work when read in context. The generic dialogue baseline gives a point of comparison for adaptation to D&D. The adapted system with text alone gives a point of comparison for the controlled settings. In the human experiment the authors also include the recorded next turn, which they call the gold response.

Game state tracking has a separate baseline. For each slot, it predicts the most frequent value. A common-value predictor has a real advantage when one label dominates, even though it cannot respond to the circumstances depicted in a post. This baseline helps put the tracker’s accuracy in context, especially for a field such as combat status.

Predicting the words in the recorded turn

The authors report perplexity and token accuracy for the development set. Perplexity measures how much probability the system gives the actual sequence of tokens, the pieces of text it predicts. Lower perplexity means the recorded text was less surprising to the system. Token accuracy measures how often its leading prediction matches the recorded token. Both measures refer to the text people actually wrote. The human evaluation serves a different purpose by letting a proposed continuation be judged on its own merits.

Next-turn perplexity on the D&D development set

The setting conditioned on the upcoming turn assigns the highest probability to the recorded text by this measure.

Next-turn perplexity on the D&D development setGeneric dialogue: 2.65Generic dialogue2.65D&D text only: 2.50D&D text only2.50Previous-turn controls: 2.51Previous-turn controls2.51Current-turn controls (this paper): 2.34Current-turn controls (this paper)2.34Previous- and current-turn controls: 2.37Previous- and current-turn controls2.37
The numbers
System or settingPerplexity
Generic dialogue2.65
D&D text only2.50
Previous-turn controls2.51
Current-turn controls (this paper)2.34
Previous- and current-turn controls2.37

On the same development set, the generic dialogue system records token accuracy of 44.61. Fine-tuning on D&D text alone raises it to 46.92, and giving historical controls yields 46.84. Token accuracy reaches 49.67 with current-turn controls, the strongest result on this metric. Supplying controls for both the history and the upcoming turn yields 49.02. The ordering matches the perplexity comparison at the top. The settings with information about the upcoming turn score best, and the use of earlier controls alone comes close to the text-only setting.

The paper also plots the development measure during training. Its final results give an explicit comparison among the types of conditioning. The strong current-control result is informative about the value of a specification for the turn. For instance, telling the system which character is due to act and what action to describe narrows the range of likely words. These results concern the recorded continuation under the tested input conditions. Human raters can credit an alternative course of action even if it leads to wording different from the record.

How people judged the responses

The human study uses 6 professional raters selected for interest in fantasy and familiarity with role-playing. All were fantasy fans. The rater survey records that 5 out of the 6 had played D&D or another role-playing game and that 3 had experience as both player and game master. The raters judged 500 system outputs, with 3-way redundancy, so each output received independent judgments from multiple raters. They read the recent dialogue and a list identifying the players and their characters’ names and classes. The outputs they rated included system continuations and the response that actually followed the conversation.

The first judgment, called sense, is binary. The rater considers whether the text reads coherently, is plausible given the prior turns, and respects the rules as far as the rater can tell. A fluent sentence can still fail if it is inconsistent with what has just happened. This measure brings several requirements together because a response must be understandable and usable as part of the game.

Specificity, the other binary judgment, concerns whether the response fits this point in the narrative. A move mentioned in a response can be perfectly intelligible in a D&D game yet seem out of place in the current scene. Conversely, a short answer can qualify as specific if the prior turn called for it. The paper uses the term for relevance and continuity. The level of descriptive detail is a separate matter.

The interest judgment is on a scale of 10. The rater considers whether a contribution might catch a player’s attention or show creativity, wit, or insight in the situation. The authors adapt their procedure from an earlier evaluation of Meena. They include interest because a playable or engaging contribution can call for more than a coherent answer to a question. The antecedent for the evaluation procedure is Towards a Human-like Open-Domain Chatbot.

The paper reports pairwise agreement of 0.8 for the binary judgments, with a chance-adjusted Randolph Kappa of 0.6. The chance adjustment accounts for agreement that can occur just from the raters’ use of the available categories. For the interest judgments, the authors report Kendall’s Tau of 0.46, a measure of how similarly raters order the responses. The distinction matters because the figures describe agreement under different forms of judgment, one binary and the other graded.

What the raters preferred

The generic dialogue baseline receives a sense score of 0.81 and a specificity score of 0.85 in the human evaluation. LLM-DND, the adapted system using text alone, scores 0.9 for sense and 0.9 for specificity. Previous-turn controls yield 0.86 for sense and 0.88 for specificity. Current-turn controls yield 0.88 for sense and 0.9 for specificity. With controls on both history and target, the scores are 0.87 and 0.88, respectively. The recorded human turns score 0.92 for sense and 0.92 for specificity.

Mean human interest ratings for D&D next-turn responses

Every D&D-adapted setting exceeds the generic dialogue baseline, with the recorded turns receiving the highest rating.

Mean human interest ratings for D&D next-turn responsesGeneric dialogue: 3.57Generic dialogue3.57D&D text only: 3.91D&D text only3.91Previous-turn controls (this paper): 3.96Previous-turn controls (this paper)3.96Current-turn controls: 3.96Current-turn controls3.96Previous- and current-turn controls: 3.92Previous- and current-turn controls3.92Recorded human turn: 4.17Recorded human turn4.17
The numbers
System or settingInterest on a 10-point scale
Generic dialogue3.57
D&D text only3.91
Previous-turn controls (this paper)3.96
Current-turn controls3.96
Previous- and current-turn controls3.92
Recorded human turn4.17

Across the adapted settings, the authors report that responses make sense 6.75% more often than those of the generic baseline, are specific 4% more often, and gain 0.37 points in interest. These are the paper’s averages over the adaptation comparison. The response-level judgments show a consistent gain from learning on D&D conversations. They also show why the authors examine control through targeted examples and through the IC and OOC comparison. The extra information has modest effects when averaged across all rated outputs, and the text-only adaptation itself receives the highest sense score among the systems.

The original human response gives a reference point for what real players wrote under the circumstances. It is rated using recent context and character information, just like the proposed continuations. Its averages reflect what a rater can judge from that view of the conversation. That gives the human comparison a practical meaning. It measures how a turn reads to someone who has been brought up to speed on the immediate situation.

Recovering the game state

In the state-tracking experiment, the learned tracker scores .82 across all evaluated slots, compared with .73 for the majority predictor. Slot accuracy measures how frequently a field receives the annotated value. For instance, a name prediction is evaluated as a name assignment, and a combat prediction is evaluated as the label for whether combat is underway. The aggregate combines such decisions. The paper reports the following overall comparison.

Average slot accuracy on the D&D game state tracking task

The learned tracker exceeds the majority-value predictor across the evaluated slots.

Average slot accuracy on the D&D game state tracking taskMajority-value predictor: .73Majority-value predictor.73D&D state tracker (this paper): .82D&D state tracker (this paper).82
The numbers
System or settingSlot accuracy
Majority-value predictor.73
D&D state tracker (this paper).82

The learned tracker scores .76 on character class, .78 on character name, .79 on character race, .89 on character pronouns, and .85 on character actions. The majority predictor scores .58 for class, .58 for name, .75 for race, .58 for pronouns, and .80 for actions. Combat is the exception to the general pattern. The tracker scores .82 and the majority predictor scores .89. That result puts the overall gain in perspective. The aggregate includes fields that benefit from learned predictions and a field where a simple prediction based on frequency is stronger.

The paper also reports 58% joint accuracy for the tracker. Joint accuracy counts a turn as correct only when all the required state values are right together. The distinction has an immediate consequence for the gameplay interpretation. A description may draw on the speaker’s identity, the status of the encounter, and the current action at once. Correct predictions for some of those properties can coexist with a state assignment that gives the wrong situation to a system writing the response. The joint result expresses how frequently the whole evaluated assignment is right for a turn.

What the ablations show

Where the control information helps

The paper varies the placement of state information, giving it to the system for earlier turns, for the upcoming turn, or for both. This comparison isolates a choice about input design. When the setting gives controls only for earlier turns, the system sees a structured account of events it can also read in the conversational text. In the development comparison, this setting performs close to D&D adaptation using text alone. The stronger automatic scores appear in the settings that specify the properties of the upcoming response, with current-turn control alone scoring best.

This pattern is consistent with the distinct roles of the two inputs. Historical annotations might make some facts easier to find in the window. The next turn can still be written by different speakers for different purposes. A control on that turn can resolve some of those choices before generation starts. The tests establish that this specification helps predict the recorded wording under these conditions. They leave open how much benefit comes from each individual feature, since properties of the target turn are supplied together.

The human evaluation adds another distinction. Learning from the domain improves the rated output across sense, specificity, and interest. Moving from text-only adaptation to explicit controls changes those averages much less. Current-turn control ties the text-only setting on specificity and receives a lower sense score. It ties previous-turn control for the highest average interest score among the systems. The expected benefit of control can therefore depend on what the evaluator wants. If the task is to offer any plausible continuation, many different speakers or actions may fit. If a particular character has been asked to take the turn, the ability to specify that character matters directly.

There is also a difference between total information and relevant information. The setting with history and target controls receives more explicitly marked properties than the setting with target controls alone. The latter performs better on the reported development metrics. That comparison supports keeping the location of the controls in view when interpreting the results. Its evidence concerns the whole combination of features and how they are presented. It leaves the effect of individual historical fields, including cases where a past state value would settle a specific ambiguity, unresolved.

Changing the character while keeping the scene

The qualitative comparison uses a passage from the wagon encounter to show what the controls can do. The authors keep the recent scene fixed and generate responses from the generic system, the text-only D&D system, and the current-control system. The generic continuation turns to a discussion about Discord that does not follow the scene. The text-only adaptation offers a spell-casting response with a question about whether the action is allowed. It has picked up the kind of activity going on in the game.

The current-control system is then asked to reply as different characters. The fighter’s continuation refers to the party’s companions, the wagon, and the immediate danger. The wizard’s continuation uses a spell and character dialogue. The cleric’s continuation uses a battle cry invoking a deity associated with the character. The point of the comparison is the change in the continuation when the authors change the selected role while retaining the scene. The different responses make the effects of the character specification easier to see than a comparison of averages over many unrelated turns.

The labels in this example identify packages of character information, including class and other attributes. A shift from the fighter to the wizard changes several inputs together, so the comparison illustrates control of a role as a whole. The generated replies are evidence that the system can use such a request to offer different contextually appropriate ideas. The demonstration covers the immediate turn. Maintaining recognizable portrayals as the characters make new choices and carry commitments across a campaign remains a separate challenge.

In-character and out-of-character responses

The authors also compare ratings on IC and OOC responses. Here the reported values are the IC scores minus the OOC scores for each system or the recorded human responses. This comparison addresses a feature that can vary even when the same player takes the turn. A player may narrate a character’s action, then explain a rule associated with it. A system that can steer the register can be asked for the kind of writing appropriate to the immediate purpose.

In the generic dialogue setting, the difference in interest is +0.06. The text-only D&D setting has an interest difference of +0.4, and the previous-control setting has a difference of +0.6. The current-control setting gives an interest difference of +0.93, while the setting with controls for both the history and the target gives +0.81. The recorded turns show an IC advantage of +1.02 on interest. The authors connect this pattern to the affordances of the two registers. Fictional narration invites evocative detail and a recognizable character voice. Mechanics discussion frequently has a narrower purpose, such as settling which check to make.

Sense and specificity also show IC advantages in the settings with control of the upcoming turn. For the current-control system the IC-minus-OOC value is +0.06 for sense and +0.06 for specificity. In the setting that controls both history and target, the values are +0.07 for sense and +0.06 for specificity. For the recorded human responses, the corresponding differences are +0.07 and +0.05. The ratings support the authors’ claim that setting the register can change the kind of turn the system produces and that the resulting turns can be judged differently.

The recorded turns help interpret the ratings. Real players’ IC writing also receives higher interest scores. Some of the difference can therefore reflect the job each kind of turn performs. A concise OOC answer may be exactly what people need to move on, even if a rater gives it a lower interest score. The comparison demonstrates the benefit of requesting engaging narration when narration is wanted. It leaves the usefulness of a rules clarification to other aspects of the evaluation, such as whether the answer makes sense and suits the context.

Annotation coverage and slot difficulty

The paper’s appendix gives a separate analysis of the CNN used to complete annotations from the current post. The availability of rule-derived labels depends on the variable. For character names, the reported availability is 42%, and inventory is available at 11%. The table gives 20% for actions and 100% for combat. It reports availability of >58% for character race, >75% for class, and 42% for pronouns. These are coverage figures for the annotation procedure. They describe how much labeled material the rules supply for different fields.

For some fields the appendix reports macro AUC, a measure of how well the classifier ranks possible labels, averaged across classes. The values are 0.45 for race, 0.71 for class, 0.92 for pronouns, and 0.92 for actions. Combat has a reported accuracy of 0.91 in this analysis. The table indicates no performance score for the name and inventory span labelers. These results estimate performance for the annotation completion procedure and use the appendix’s own evaluation measures. The slot accuracies for the history-based tracker refer to a separate experiment.

This analysis helps explain why a single impression of annotation quality would be misleading. The rules find some kinds of evidence more readily than others, and the gaps can concern fields for which one post offers very little information. A player who describes looking down a trail may give no name for their character and mention no possession. The earlier conversation or other turns from that player may still supply those details. The design reflects that difference by combining rules that can draw on the campaign with a completion system limited to the current post.

The slot-by-slot state-tracking results provide another view of the problem. Pronouns and names benefit substantially over the majority predictions in the reported comparison, while combat favors the majority value. How well the rule extractor covers a field and how much a learned tracker improves over a frequency baseline are different measurements. A combat label can be available for every turn, and the most common label can already be a strong predictor. A name can be harder to recover automatically during annotation yet benefit from knowing who has been speaking and from state supplied earlier in the conversation.

Limitations

Limits identified by the authors

The authors emphasize that the human evaluation is static. Raters read an existing passage and assess a continuation in isolation. They do not play through the consequences of that response or decide how to react to it as members of the group. They also do not see how the system would handle their replies. An interaction study would be needed to make claims about how it plays alongside people. The study’s ratings measure how individual contributions read under a fixed presentation of the scene.

The annotations are approximate and incomplete. The authors point to errors that may come from extracting labels heuristically and to fields unavailable through their procedure. Hit points, the game’s numerical record of a character’s or creature’s health, are one missing variable they name. They also identify gaps in detailed attack information. The authors describe beginning a collaboration with the developer of Avrae, a Discord bot for D&D that records some of those fields. This is a path they identify for getting richer data. The tracking results reported in the paper concern their forum annotations.

The authors interpret the joint tracking accuracy as likely too low for useful tracking of a full game. They also state that their systems cannot play autonomously as the Dungeon Master. They suggest a narrower application in which a novice DM might use a suitably written contribution as inspiration for their own narration. The evaluation gives evidence about the quality and steerability of sample text. Whether such suggestions help people run games was outside the evaluation.

Limits visible in the setup

The success of current-turn control depends on having someone or something provide the control values. Asking for a particular character to narrate a given action is a well-defined use of the system. In an autonomous setting, choices about the next speaker and what they intend to do would have to come from elsewhere. The strongest development comparison gives the system information about the target turn. Its results therefore measure continuation given that information. They leave the selection of those inputs as a separate problem.

The tracking task supplies previous state variables along with the history and current utterance. This setup measures whether the system can identify the current labels under the stated conditions. In a live system that feeds its own predictions back into later turns, a wrong assignment could persist. For example, misidentifying which character belongs to a player could affect later interpretations of that player’s actions. The reported slot and joint results leave open whether such errors would accumulate, remain local, or be corrected by later dialogue. The experiments also leave the quality of a loop that writes turns from its own predicted state unmeasured.

Some character labels are produced using information across a campaign. That can be appropriate for annotating a record after the fact. For live play, the available evidence depends on how much of the campaign has already happened and which details have been made public. An introduction may be the only clue to a character’s identity at first. More reliable evidence can arrive later. The study’s label construction and the requirements of online inference therefore raise different questions about what information is available at a particular turn.

The target labels also define a limited test of understanding. Knowing the combat flag, a character’s class, and a possible action can make it easier to write an appropriate sentence. The DM in the example needs additional information to resolve the encounter. They may consult an adventure book, apply a rule, settle the effect of a roll, and convey the consequence in language. The experiments cover labels for parts of this process. They give no separate measure of whether a generated action can be adjudicated correctly under all relevant rules or whether a trackable world state would remain consistent after carrying it out.

Automatic generation metrics give credit for predicting the recorded text. D&D can have several reasonable continuations at the same point. A player could follow up on a danger, ask about the environment, or coordinate with another character depending on their goals. The human study broadens the assessment to those kinds of alternatives, within the view the rater is given. The raters have recent turns plus character information, and their judgments can depend on clues outside that window that are unavailable to them. A longer-running obligation or earlier decision could change the appropriateness of an otherwise sensible proposal.

The corpus comes from a forum whose posting practices and dice markup make these methods practical. The transfer of labels for IC and OOC writing from a second forum makes it possible to handle register, and it also introduces a dependence on how each community writes. The paper applies the technique to the written posts in its study. Its results leave open how the same procedures would fare in spoken sessions or in groups that distinguish narrative and rules talk differently. The core observation concerns dialogue grounded in genuine collaborative play, under the conditions represented in these records.

Finally, the human analysis combines readers’ judgments about fluency, context, and rules in the sense score. A gain on this measure can arise from better performance on several of those aspects. It is therefore good evidence that the adapted responses read more plausibly as D&D turns, with less resolution about which particular problems have been solved. The controlled examples provide a closer look at role choice and register. The evidence becomes thinner for long-term character consistency, strategic play, and adjudication across multiple interactions.

What came after

The later citations connect the D&D challenge to two questions that can be distinguished in the original experiments. One concerns how a system portrays a role. The other concerns how it represents what people know about the situation. The D&D paper brings both into view through the same conversations, but it measures role portrayal through generated responses and selected aspects of situation tracking through slot predictions.

Character-LLM places the trainable role-playing agent at the center of its research question. This connects most directly to the D&D paper’s demonstration that a generator can respond as a specified character. In the D&D comparison, the same recent conversation supports different turns once the system is given different character information. A study organized around a trainable agent for a role puts the portrayal itself in focus. The citation establishes the connection to role-playing research. Whether the later study used the forum corpus or adopted its specific controls is unspecified. Character-LLM

Theory of Mind in Large Language Models takes up assessment and enhancement of theory of mind. The point of contact is the original paper’s observation that information about a game can be distributed across participants. In the wagon scene, the DM knows details from the adventure, and the characters learn different things as the checks are resolved. Tracking that combat has begun is a question about the encounter. Tracking which participant knows that a creature is hidden nearby is a question about an individual’s information. The later citation connects the challenge to this latter line of inquiry. An adoption of the D&D slots, setting, or evaluation is unspecified. Theory of Mind in Large Language Models

Cite

Cite as Chris Callison-Burch, Gaurav Singh Tomar, Lara J. Martin, Daphne Ippolito, Suma Bailis and David Reitter. 2022. Dungeons and Dragons as a Dialog Challenge for Artificial Intelligence. Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/2022.emnlp-main.637

@inproceedings{callisonburch2022dungeons,
  title = {{Dungeons and Dragons as a Dialog Challenge for Artificial Intelligence}},
  author = {Chris Callison-Burch, Gaurav Singh Tomar, Lara J. Martin, Daphne Ippolito, Suma Bailis and David Reitter},
  booktitle = {Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing},
  year = {2022},
  doi = {10.18653/v1/2022.emnlp-main.637},
  url = {https://doi.org/10.18653/v1/2022.emnlp-main.637}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/burch-2022-dungeons-dragons-as-dialog-challenge/