A Formal Game for Eliciting Story Structure from Authors

David L. Roberts, Andrew HansenINT@AIIDE 2012

Abstract

We address the problem of determining the structure of a set of plot points for an interactive narrative. To do so, we define a formal two-player game where a computer can play with an author to learn the structural representation of the story. This technique will allow for authors unfamiliar, or uncomfortable, with mathematical structures to create the inputs interactive narrative algorithms require. We include the underlying mathematical theory as a foundation of our approach, and characterize its effectiveness through a series of simulation experiments. Results indicate there is promise in using formal games to aid in authoring interactive narrative structures.

Introduction

Interactive narratives—stories where player choices significantly impact the outcome—require underlying computational models to manage plot logic. However, a significant "authoring bottleneck" exists: while creative writers excel at narrative flow, they often find the formal mathematical modeling required by narrative algorithms unintuitive. This paper, originally presented at the 2012 AIIDE Workshop on Intelligent Narrative Technologies, proposes a formal two-player game to bridge this gap, allowing a computer to learn story structure by asking authors to validate or correct specific plot sequences.

The Authoring Bottleneck

Traditionally, authors must manually specify precedence constraints (e.g., "Event A must happen before Event B") using complex graphs or logic-based planning languages. The authors argue that while writers may struggle to specify abstract rules, they are excellent at recognizing whether a specific sequence of events makes sense. By shifting the burden from rule-writing to example-editing, the authoring process becomes more accessible to non-technical creators.

Methodology: The Formal Game

The authors model story structure as a Partially Ordered Set (poset). A poset defines which events must precede others while allowing for parallel events that can occur in any order.

Figure 2: The transformation of a story's predecessor graph into a formal reflexive partial order.

The elicitation process is framed as a collaborative game between Alice (the Author) and Bob (the Builder/Computer):

  1. Query: Bob presents Alice with a sequence of plot points and asks if it is a reasonable story.
  2. Response: Alice either confirms the sequence or provides a corrected version.
  3. Update: Bob updates an adjacency matrix representing his "belief" about the story structure, tracking states such as "definite edge" or "possible edge."

Experimental Evaluation

The approach was evaluated using two real-world interactive fiction structures:

  • Tea for Three: 16 plot points, 11 constraints.
  • Anchorhead: 28 plot points, 30 constraints. Additionally, the researchers tested scalability using 100,000 synthetically generated posets.

Key Results and Insights

Simulations revealed a "sweet spot" for query size. The number of queries needed to learn a story is minimized when the computer asks about a subset of plot points that is roughly 70-75% of the total story size. Asking about too few points provides too little data, while asking about the whole story at once can be inefficient.

Figure 4: Number of queries required for 'Tea for Three' and 'Anchorhead' as a function of maximum query size, showing the efficiency gains at specific query lengths.
  • Efficiency: Tea for Three was learned in as few as 102 queries, while the larger Anchorhead took roughly 261. While this sounds like a high number, the authors argue it is a manageable task for an author compared to debugging complex logic.
  • Accuracy: The algorithm correctly identified the partial order in over 99.45% of synthetic cases.
  • Scaling: As plot points increase, the required queries grow super-linearly, suggesting that very large stories should be broken into smaller "chapters" for this method to remain feasible.

Conclusion and Future Work

This formal game approach demonstrates significant promise in making narrative modeling accessible. Future work includes expanding the model to handle "OR" constraints (where multiple paths satisfy a requirement), improving error tolerance for human mistakes, and developing a graphical user interface for real-world testing with authors.

Summary updated

BibTeX
@inproceedings{roberts2012formal,
  author = {David L. Roberts and Andrew Hansen},
  title = {{A Formal Game for Eliciting Story Structure from Authors}},
  booktitle = {INT@AIIDE},
  year = {2012},
}
Figure