Introduction
While Large Language Models (LLMs) have demonstrated remarkable fluency in generating short-form prose, maintaining logical consistency over long-form narratives remains a significant challenge. As stories scale in length, models frequently suffer from "narrative drift," where character motivations become inconsistent, logical contradictions emerge, and the plot falls into repetitive loops. These issues often stem from the limitations of standard context windows and the lack of a structured planning mechanism that can track evolving world states.
To address these challenges, the STORYTELLER framework introduces a structured plot-planning approach that moves beyond simple hierarchical prompting. By utilizing Subject-Verb-Object (SVO) triplets and a dynamic Narrative Entity Knowledge Graph (NEKG), STORYTELLER mimics the human cognitive loop of retrieving past events, evaluating new developments, and integrating them into a cohesive whole.
The STORYTELLER Framework
The STORYTELLER framework operates through a three-stage pipeline designed to bridge the gap between abstract creative ideas and granular, logically sound prose.
1. High-Level Story Generation
The process begins with a user-provided prompt. The system generates a foundational premise, a detailed synopsis, and a structured outline consisting of chapter titles and abstracts. This stage establishes the broad narrative arc before any specific plot points are developed.
2. Mid-Level Plot Structuring
This stage represents the core innovation of the framework. Rather than generating prose directly from an outline, the system constructs a sequence of "nodes" based on linguistically grounded SVO triplets (e.g., <Alex, visit, doctor>). This approach strips away stylistic "fluff" to focus purely on the causal chain of events. This stage is supported by two critical components:
- Narrative Entity Knowledge Graph (NEKG): Built using Neo4j, this graph tracks the relationships and states of characters and objects. Before a new plot node is finalized, the system queries the NEKG to ensure the proposed action is logically possible given the established history.
- Pseudo CPN Review: Recognizing that LLMs are often more effective at critiquing logic than generating it perfectly on the first attempt, the framework employs an internal "reviewer" loop. This module checks each plot node for coherence and redundancy, modifying or rejecting nodes that violate narrative logic.
3. Detailed Story Writing
In the final stage, the validated and reviewed plot nodes are converted into "Text Blocks." Because the underlying logic has already been verified through the SVO and NEKG layers, the model can focus entirely on stylistic quality and descriptive richness while adhering strictly to the pre-planned storyline.
Experimental Methodology
The researchers evaluated STORYTELLER using the WRITINGPROMPTS dataset, a collection of over 272,000 human-written stories from Reddit. For the experimental phase, 200 prompts tagged with [WP] were sampled to test the model across diverse genres and themes.
STORYTELLER was benchmarked against several state-of-the-art models, including GPT-4o, Llama-3.1-70B, and specialized long-form models like LongWriter-glm4-9b.
Key Results and Insights
The experimental results demonstrate that STORYTELLER significantly outperforms existing methods in both length and logical integrity:
- Human Preference: In head-to-head human evaluations, STORYTELLER achieved an 84.33% average win rate over the baselines.
- Automated Evaluation: Using GPT-4o as a judge, STORYTELLER scored 89.4 overall, compared to 62.7 for the next best model (LongWriter).
- Narrative Scale: The framework successfully generated high-quality stories averaging 7,594 words, nearly doubling the output length of standard GPT-4o models under identical instructions.
- Ablation Analysis: Removing the NEKG led to a sharp decline in coherence, confirming that structured, queryable memory is more effective for long-form logic than relying solely on the model's internal context window.
Conclusion and Future Work
STORYTELLER demonstrates that the key to long-form narrative generation lies in structured planning and rigorous logical verification. By anchoring stories in SVO triplets and a dynamic knowledge graph, the framework mitigates the common pitfalls of LLM-generated fiction.
While the framework marks a significant step forward, the authors note that a gap still exists between these outputs and full-length novels. Future research will focus on handling more complex narrative structures, such as non-linear timelines and multiple intertwining subplots, as well as optimizing the computational overhead required for the multi-stage review process.
Summary updated