Playing the Plot: Optimizing Narrative Structure with Strategic World Models

Ian Gemp, Yanchen Jiang, Renato Paes Leme, Georgios PiliourasNeurIPS Creative AI Track 2026

TL;DR

This paper introduces a game-theoretic framework that automatically optimizes the reveal order of a story's events (syuzhet) to maximize audience engagement. By modeling stories as extensive-form games and the audience as a Bayesian updater, the system autonomously discovers classic narrative techniques like in medias res and flashbacks purely from the mathematics of strategic play. The authors showcase this with an end-to-end pipeline that generates fully rendered, structurally optimized comic books.

What Problem Does This Paper Address?

Every storyteller faces a fundamental design problem: in what order should events be revealed to the audience? Narratologists distinguish between the fabula (the chronological sequence of events) and the syuzhet (the actual order in which those events are told). For example, a detective novel often starts at the end with the discovery of a body, working backward through flashbacks to build suspense.

While AI has made strides in generating narrative content ("what happens"), optimizing narrative structure ("how it is told") has remained an art governed by human intuition. This paper addresses this gap by formalizing narrative structure optimization as a mathematical scheduling problem, using game theory and information theory to maximize audience suspense and surprise.

Methods

The authors implement their framework through a fully automated, three-phase pipeline:

  1. Fabula Generation: A structuralist Large Language Model (LLM) pipeline generates a world, character profiles with distinct motivations, and a sequence of 5–7 causally linked chronological events.
  2. Game-Theoretic Core: The story is transformed into an extensive-form game where characters act as strategic players. An LLM constructs a game tree containing the true story path alongside counterfactual branches (plausible alternative actions characters could have taken). The system then solves for an approximate Coarse Correlated Equilibrium (CCE) using Counterfactual Regret Minimization (CFR).
  3. Syuzhet Optimization: The audience is modeled as a Bayesian observer updating its beliefs as events are revealed. Suspense is formalized as the audience's posterior variance over the protagonist's final payoff, and surprise is the squared shift in their expectations. The optimal reveal order ($\sigma^*$) is found by searching for the permutation of events that maximizes a total engagement objective, balanced against a cognitive load penalty (measured via Kendall-Tau distance) to prevent overly chaotic storytelling.

Finally, Phase III translates the optimized sequence into a complete comic book script and renders the visual panels using an AI image generation pipeline.

Figure 1: Pipeline Overview. Phase I generates the fabula (world, characters, chronological events) via a structuralist LLM pipeline. Phase II models the story as an extensive-form game, solves for an ϵ-CCE, and computes the optimal reveal order σ∗. Phase III generates a comic book that reveals events in the optimized order. Full pipeline details appear in Appendix A.

Datasets

The paper does not utilize standard pre-existing datasets. Instead, the authors evaluate their framework by generating a new corpus of 61 stories spanning diverse genres, including mystery, heist, thriller, and sci-fi, with each story containing between 3 and 7 fabula events.

Key Insights and Ideas

  • Stories as Extensive-Form Games: By modeling alternative plot directions as counterfactual game branches, the framework naturally captures the space of "what could have happened," which is exactly what maintains audience uncertainty and drives suspense.
  • Emergence from First Principles: Classic literary devices—such as in medias res openings, flashbacks, and local anachronies—emerge autonomously from the optimization math without any hardcoded genre heuristics or templates.
  • Cognitive Load Balancing: Purely maximizing surprise and suspense would result in incomprehensible, fragmented timelines. Introducing a chronological deviation penalty ensures that non-linear reordering must "earn" its cognitive cost through substantial engagement gains.
  • Equilibrium Entropy Matters: Non-linear structures are only beneficial when the game tree features broad equilibrium support (high entropy). If a story's counterfactuals are weak or predictable, the optimizer correctly defaults to a standard chronological layout.

Key Results

  • Frequent Non-Linearity: Out of 61 evaluation runs, the optimizer generated non-trivial, non-linear structures in 47.5% (29 runs) of the stories.
  • Distribution of Techniques: The discovered structures clustered into seven distinct narratological categories, led by Local Anachrony (19.7% of total runs) and In Medias Res (11.5%).
  • Quantifiable Pacing Gains: In a featured murder mystery case study ("Death by Iambic Pentameter"), the optimized in medias res structure front-loaded suspense and yielded a 73% improvement in the total engagement score ($J^* = 2.51$) compared to the chronological baseline ($J = 1.45$).

Limitations and Future Work

  • Scalability Constraints: Due to the combinatorial explosion of searching over event permutations, the exhaustive search approach is currently limited to stories with $N \le 9$ events. The authors suggest branch-and-bound methods or hierarchical optimization (e.g., chapter-level then scene-level) to scale to longer narratives.
  • Simplified Audience Model: The framework assumes a single, homogeneous Bayesian observer, whereas real-world audiences possess diverse prior knowledge and varying cognitive capacities.
  • Narrow Engagement Metrics: The optimization objective focuses exclusively on suspense and surprise, leaving out other vital narrative dimensions like empathy, thematic resonance, and prose rhythm.
  • Visual Artifacts: The automated comic generation pipeline still suffers from character inconsistency or visual rendering bugs roughly 10–15% of the time, requiring human editorial oversight for production-grade output.

Summary updated

BibTeX
@inproceedings{gemp2026playing,
  author = {Ian Gemp and Yanchen Jiang and Renato Paes Leme and Georgios Piliouras},
  title = {{Playing the Plot: Optimizing Narrative Structure with Strategic World Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=BcQST1O4Cz},
}
Figure