Abstract
In this paper, we use a large-scale play scripts dataset to propose the novel task of theatrical cue generation from dialogues. Using over one million lines of dialogue and cues, we approach the problem of cue generation as a controlled text generation task, and show how cues can be used to enhance the impact of dialogue using a language model conditioned on a dialogue/cue discriminator. In addition, we explore the use of topic keywords and emotions for controlled text generation. Extensive quantitative and qualitative experiments show that language models can be successfully used to generate plausible and attribute-controlled texts in highly specialised domains such as play scripts.
Introduction
While AI-driven story and dialogue generation have seen significant progress, the "silent" parts of a script—the theatrical cues—remain largely unexplored. Cues are essential; they bridge the gap between the written word and the physical performance, dictating everything from a character’s internal thoughts to lighting changes and stage exits.
The challenge is that cues are highly variable and context-dependent. A standard language model might generate more dialogue when prompted, or produce cues that are grammatically correct but tonally inconsistent with the scene. This research treats cue generation as a controlled text generation problem, seeking to ensure that the generated text is not only a "cue" (rather than dialogue) but also aligns with the intended emotion and topic of the scene.
Methods: Plug and Play Steering
The authors utilize the Plug and Play Language Model (PPLM) framework. Instead of fine-tuning a massive model like GPT-2 for every possible attribute, PPLM "steers" the model during the generation process. It uses smaller, lightweight "attribute models" to shift the hidden representations of the base model toward a desired goal.
The researchers implemented three specific steering mechanisms:
- Cue/Dialogue Discriminator: A binary classifier trained to distinguish between spoken dialogue and stage directions. This ensures the model actually produces a cue (usually in parentheses) rather than just continuing the conversation.
- Topic Control (LDA): Latent Dirichlet Allocation was used to automatically extract keywords, allowing users to steer cues toward specific themes (e.g., "lighting" vs. "character actions").
- Emotion Control (DeepMoji): To capture scene nuance, a pre-trained sentiment model (DeepMoji) mapped dialogue to emotions on Plutchik’s Wheel of Emotions, steering the generated cue to match that emotional state.
Dataset
The study introduced a substantial new dataset for this specialized domain:
- Play Scripts Dataset: 1,511 English-language play scripts scraped from the web.
- Scale: The collection includes over 775,000 lines of dialogue and 277,000 unique cues.
- Diversity: The scripts cover various genres, including Comedy, Romance, Satire, and Greek tragedy.
Results and Discussion
The researchers compared their PPLM-based approach against standard fine-tuned GPT-2 and Infilling (ILM) baselines using both automated metrics and human evaluation.
Quantitative Performance
The PPLM+CueDisc model achieved the highest scores in similarity metrics (LCSR and BI-SIM), significantly outperforming the fine-tuned GPT-2 baseline. This indicates the generated cues were much closer to the "ground truth" cues written by human playwrights.
Qualitative Insights
Human evaluation revealed that standard fine-tuning (GPT-2+FT) often fails to maintain the "cue" format, frequently slipping back into generating dialogue. The Cue/Dialogue Discriminator proved critical, achieving 92.5% cue accuracy compared to only 32.4% for the fine-tuned baseline. Furthermore, the PPLM+Emotion model produced the most diverse text, suggesting that emotional steering prevents the model from falling into repetitive, generic stage directions.
Conclusion
This work demonstrates that language models can be successfully adapted to generate plausible theatrical cues in specialized domains. While limitations exist—such as keyword repetition in topic control and the current lack of individual character personas—the PPLM approach offers a flexible, multi-attribute control system that avoids the need for exhaustive retraining. Future work will focus on persona consistency and improved text cleaning to further enhance script naturalness.
Summary updated