# Generating Narrative Text in a Switching Dynamical System

arXiv: https://arxiv.org/abs/2004.03762 · HTML: https://mlsanity.com/paper/2004.03762/

## Key facts

- Cited by 3 papers in the map (data through 14 Oct 2026).
- First posted on arXiv 8 Apr 2020.

## Built on by (most cited first, 3 of 3)

- [Language modeling via stochastic processes](https://mlsanity.com/paper/2203.11370/) (2022)
- [Towards Inter-character Relationship-driven Story Generation](https://mlsanity.com/paper/2211.00676/) (2022)
- [Psychology-guided Controllable Story Generation](https://mlsanity.com/paper/2210.07493/) (2022)

## Abstract (arXiv)

Early work on narrative modeling used explicit plans and goals to generate stories, but the language generation itself was restricted and inflexible. Modern methods use language models for more robust generation, but often lack an explicit representation of the scaffolding and dynamics that guide a coherent narrative. This paper introduces a new model that integrates explicit narrative structure with neural language models, formalizing narrative modeling as a Switching Linear Dynamical System (SLDS). A SLDS is a dynamical system in which the latent dynamics of the system (i.e. how the state vector transforms over time) is controlled by top-level discrete switching variables. The switching variables represent narrative structure (e.g., sentiment or discourse states), while the latent state vector encodes information on the current state of the narrative. This probabilistic formulation allows us to control generation, and can be learned in a semi-supervised fashion using both labeled and unlabeled data. Additionally, we derive a Gibbs sampler for our model that can fill in arbitrary parts of the narrative, guided by the switching variables. Our filled-in (English language) narratives outperform several baselines on both automatic and human evaluations.
