THEaiTRE: Artificial Intelligence to Write a Theatre Play

Rudolf Rosa, Ondrej Dusek, Tom Kocmi, David Marecek, Tomás Musil, Patrícia Schmidtová, Dominik Jurko, Ondrej Bojar, Daniel Hrbek, David Kosták, Martina Kinská, Josef Dolezal, Klára Vosecká

Introduction

In 1921, Karel Čapek’s play R.U.R. (Rossum’s Universal Robots) premiered, introducing the word "robot" to the global lexicon. A century later, the THEaiTRE project seeks to close the loop by using artificial intelligence to generate a full-length theatre script. While modern Large Language Models (LLMs) have demonstrated remarkable fluency in short-form prose, the transition to structured, dramatic storytelling presents unique challenges. THEaiTRE addresses these through a combination of hierarchical generation, character-specific modeling, and human-in-the-loop refinement.

The Challenge of Dramatic AI

Standard LLMs, such as GPT-2, often struggle with the specific constraints of theatrical writing. The researchers identified four primary failures in vanilla models:

  1. Lack of Plot: Scenes frequently wander without moving toward a resolution or dramatic climax.
  2. Character Inconsistency: Models often lose track of character voices or introduce new characters without narrative justification.
  3. Repetition: AI-generated text is prone to infinite loops and redundant phrasing.
  4. Data Scarcity: High-quality, machine-readable theatre scripts are rare compared to news or web data, and many are restricted by copyright.

The THEaiTRE Pipeline

To overcome these hurdles, the project utilizes a multi-stage, top-down generation pipeline. Rather than generating dialogue in a single pass, the system follows a structured hierarchy:

  • Hierarchical Generation: The process begins with a title, followed by a short synopsis, then detailed scene synopses, and finally the dialogue. This ensures the "big picture" guides the granular text.
  • Character-Specific Models: To maintain internal consistency, the team employs specialized models for different character personas. The script emerges from a simulated dialogue between these distinct LMs.
  • Human-in-the-Loop: Recognizing the current limitations of autonomous AI, the system allows theatre professionals to intervene. Experts select the most promising lines from multiple AI-generated options, steering the narrative toward dramatic effectiveness.

Data Engineering and Synthesis

A significant innovation of THEaiTRE is its approach to training data. Because pairs of "synopsis + script" are scarce, the researchers use abstractive summarization to "reverse-engineer" training sets. By summarizing existing plays into prompts, they create the necessary input/output pairs to teach the model how to expand a brief idea into a full scene.

Furthermore, the team utilizes Machine Translation (MT) to bridge the gap between English and Czech. By pivoting between these languages, they can leverage larger English datasets to improve the quality of generation in Czech, the primary language of the project's debut.

Preliminary Insights and Future Work

Initial tests with GPT-2 confirmed that while models can mimic the format of a script (e.g., character names followed by colons), they struggle with the dramatic situation. A scene is not merely dialogue; it is a conflict moving toward a goal, a concept AI currently lacks. The authors highlight that AI lacks an understanding of "dramatic situations," referencing Polti’s Thirty-Six Dramatic Situations.

The project also faces technical and legal hurdles:

  • Subtext: Theatre relies heavily on implicit meaning, which remains difficult for LMs to capture.
  • The "Conclusion" Problem: Ensuring scenes end naturally rather than abruptly is a persistent technical challenge.
  • Copyright: The inability to release the full training corpus limits replicability for the broader research community.

Conclusion

The THEaiTRE project represents a symbolic milestone in the history of robotics and literature. By moving beyond "dull and repetitive" AI prose toward structured drama, the researchers are exploring the boundaries of machine creativity. The first AI-generated play, scheduled for premiere in early 2021, will serve as a qualitative benchmark for how far AI has come since Čapek first imagined the robot a century ago.

Summary updated

Abstract

We present THEaiTRE, a starting project aimed at automatic generation of theatre play scripts. This paper reviews related work and drafts an approach we intend to follow. We plan to adopt generative neural language models and hierarchical generation approaches, supported by summarization and machine translation methods, and complemented with a human-in-the-loop approach.
BibTeX
@inproceedings{rosa2020theaitre,
  author = {Rudolf Rosa and Ondrej Dusek and Tom Kocmi and David Marecek and Tomás Musil and Patrícia Schmidtová and Dominik Jurko and Ondrej Bojar and Daniel Hrbek and David Kosták and Martina Kinská and Josef Dolezal and Klára Vosecká},
  title = {{THEaiTRE: Artificial Intelligence to Write a Theatre Play}},
  booktitle = {AI4Narratives @ IJCAI},
  year = {2020},
  url = {https://openreview.net/forum?id=jAaZIePKDDf},
}
Figure