Charting the Shapes of Stories with Game Theory

Constantinos Daskalakis, Ian Gemp, Yanchen Jiang, Renato Paes Leme, Christos H. Papadimitriou, Georgios Piliouras · DOI

TL;DR

This paper introduces a novel approach to analyze stories by modeling them as game-theoretic structures, specifically extensive-form games. By leveraging Large Language Models (LLMs) to extract plot, characters, decisions, and counterfactuals, the authors demonstrate how to quantitatively understand narrative dynamics, character motivations, and even authorial intent.

What Problem Does This Paper Address?

Stories, while fundamental to human experience and knowledge transfer, have historically been difficult for computational analysis due to their inherent complexity and lack of clear mathematical structure. Previous attempts to quantify narrative have focused on one-dimensional sentiment arcs or character network analysis. This paper aims to bridge this gap by proposing a more sophisticated method that captures the intricate decision-making processes, incentives, and counterfactual possibilities within a story, treating them as formal game-theoretic objects. This allows for a deeper, quantitative understanding of narrative.

Methods

The core methodology involves using Large Language Models (LLMs), specifically Gemini, to:

  1. Extract Narrative Structure: Identify main characters, their decisions, and the sequence of events (the "game path").
  2. Explore Counterfactuals: Prompt the LLM to imagine alternative plotlines and character choices.
  3. Quantify Incentives and Payoffs: Elicit from the LLM the perceived happiness or unhappiness (payoffs) of characters for different outcomes, and probabilities for chance events.
  4. Construct Extensive-Form Games: Translate the extracted information into formal game trees, representing player decisions, information sets, chance nodes, and terminal payoffs.
  5. Compute Nash Equilibrium: Utilize game theory software (Gambit) to compute a limiting logit equilibrium (LLE) for the constructed game.
  6. Analyze Equilibrium: Interpret the equilibrium strategies and value functions to understand character rationality, plot twists, suspense, and the overall "shape" of the story.

The novelty lies in the end-to-end pipeline from natural language story to a formal game-theoretic model, powered by LLMs.

Datasets

The primary "dataset" used for demonstration is Shakespeare's "Romeo and Juliet." The authors also mention extending their approach to "Hamlet" and potentially other literary texts and real-life scenarios like business emails. No new benchmark datasets were introduced.

Key Insights and Ideas

  • Stories as Games: The fundamental idea is that narratives can be effectively represented as extensive-form games, allowing for rigorous game-theoretic analysis of character motivations and plot progression.
  • LLMs as Narrative Deconstructors: LLMs are powerful tools for extracting the complex, implicit information needed to build these game models, including counterfactuals and character incentives.
  • Rationalizing Narratives: The concept of a game "rationalizing" a story means that the actual story path occurs with positive probability in the game's equilibrium. This provides a formal criterion for evaluating game representations of narratives.
  • Quantifying Story "Shape": By analyzing the equilibrium value functions (expected future payoffs), the authors can derive quantitative measures of story "shape," including suspense and surprise, echoing earlier work by Vonnegut and others.
  • Authorial Intent and World-Building: The game-theoretic model can offer insights into the author's conception of the characters' world and their decision-making logic, by examining the rationality implied by the equilibrium.

Key Results

The paper presents a proof of concept using "Romeo and Juliet," constructing two game models (Game I and Game II) to represent different interpretations of Juliet's decision-making.

  • Game I (Simplified): Assumes perfect agency for Juliet, leading to a "happy ending" where Juliet fakes her death and Romeo lives. This game has zero surprise and zero suspense.
  • Game II (More Complex): Incorporates the psychological effect of grief on Juliet as a chance node. The equilibrium suggests a 50/50 chance of Juliet faking her death (leading to Romeo's suicide) or marrying Paris. This game exhibits high surprise and suspense.
  • Rationalization: The authors argue that Game II "rationalizes" the actual play better than Game I because its equilibrium supports the tragic outcome.
  • Fortune Curves: The value functions derived from the equilibria allow for plotting the expected fortune of characters, illustrating the dramatic arc of the tragedy.

Limitations and Future Work

  • Human Guidance: The current process still requires significant human guidance in prompting the LLM. Automating this is a stated future goal.
  • Ambiguity: Interpreting character motives and assigning payoffs is inherently subjective. The authors view this ambiguity as a feature, allowing for multiple rationalizations of a single story.
  • Narrative Complexity: Game-theoretic models have limitations in capturing the full richness of narrative, such as nuanced character development, emotions, and thematic depth.
  • Future Work:
    • Automating the game tree construction process.
  • Developing a more comprehensive framework for evaluating game-theoretic representations of stories.
  • Complementing game-theoretic analysis with other computational methods to capture broader narrative complexity.
  • Extending the approach to analyze a wider range of stories and real-life scenarios.

Summary updated

BibTeX
@misc{daskalakis2024charting,
  author = {Constantinos Daskalakis and Ian Gemp and Yanchen Jiang and Renato Paes Leme and Christos H. Papadimitriou and Georgios Piliouras},
  title = {{Charting the Shapes of Stories with Game Theory}},
  year = {2024},
  eprint = {2412.05747},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.05747},
}
Figure