Introduction
Generating long-form theatrical and movie scripts presents a significant challenge for large language models (LLMs). While models like GPT-2 excel at short-range text generation, they often struggle with multi-character narratives, frequently suffering from character inconsistency and repetitive, dull dialogue. To address these issues, we present DialogueScript, a system that orchestrates distinct "personality" agents to produce coherent and engaging long-form scripts.
Methodology
DialogueScript employs a three-pillar approach to manage character identity and narrative flow:
- Sentiment-Based Character Clustering: Rather than complex psychological profiling, character personalities are simplified into three categories: Positive, Neutral, and Negative. Using a RoBERTa-based sentiment classifier, characters from existing scripts were grouped into these buckets. Three separate GPT-2 Small models were then fine-tuned on these specific sentiment-driven datasets.
- Simulated Dramatic Networks (DN): To govern turn-taking and speaker order, the system utilizes "Dramatic Networks." This framework uses three parameters—Centrality (probability of starting an exchange), Loyalty (likelihood of addressing a specific peer), and Reciprocity (probability of replying)—to create more organic character interactions.
- NLI-Score for Evaluation: Traditional metrics like BLEU are often inadequate for creative writing. We introduce the NLI-Score, which leverages Natural Language Inference to evaluate if a new sentence is "neutral" (adding fresh information) rather than a "contradiction" (inconsistent) or "entailment" (redundant) relative to the preceding context.
Datasets
The models were fine-tuned on a diverse corpus of dramatic writing, including ScriptBase (1,276 movie scripts) and a collection of 786 TV show episodes scraped from IMSDb and Forever Dreaming. A vanilla GPT-2 Medium model served as the baseline for comparison.
Results and Discussion
The DialogueScript framework, particularly when combined with Dramatic Networks (DN), significantly outperformed the baseline across both automated and human metrics.
Automated Metrics
As shown in Figure 1, the DialogueScript models produced scripts with substantially higher lexical diversity. For instance, the 2-gram vocabulary for DialogueScript variants ranged from approximately 308 to 428, compared to only 88 for the baseline. Furthermore, the NLI-Score demonstrated a 0.50 Pearson correlation with human judgments, validating it as a reliable metric for narrative consistency.
Human Evaluation
Human evaluators rated the models on a 5-point Likert scale across several dimensions: Coherence (Coh), Consistency (Con), Originality (Orig), and Overall Impression. The DialogueScript + DN model achieved a superior Overall Impression score of 3.8 and a high Originality score of 4.7, starkly contrasting with the baseline's 2.5 in both categories (see Figure 2).
Conclusion
DialogueScript demonstrates that using sentiment as a proxy for persona and employing structured orchestration via Dramatic Networks can effectively mitigate the common pitfalls of long-form script generation. While the current three-bucket sentiment model is a simplification, it provides a scalable foundation for more nuanced character modeling in the future. Future work will explore scaling this multi-agent approach to larger language models and implementing dynamic narrative "beats" to improve scene structure.
Summary updated