Introduction
Automatic storytelling aims to generate coherent and engaging narratives. Most current models follow a "plan-then-write" approach, generating a linear sequence of keywords or plot points before fleshing them out into sentences. However, this strictly sequential planning often fails to capture the complex, non-linear web of interactions—characters, events, and themes—that human writers naturally navigate. This limitation frequently results in stories that lack global coherence or feel repetitive.
To address this, we present GraphD-CVAE, a framework that moves beyond linear planning by representing a story’s internal structure as a graph. By connecting keywords and sentences in a non-linear map, the model mimics human conceptualization, leading to more consistent and linguistically diverse narratives.
Methodology: Graph-Infused Storytelling
The GraphD-CVAE framework decomposes the storytelling process into three distinct stages:
- Keyword Extraction: The model first identifies critical "anchor" words within a story using the RAKE algorithm.
- Story Graph Construction: Instead of a simple list, the model constructs a graph where vertices represent keywords and full sentences. Edges are weighted by co-occurrence, capturing the intricate relationships between specific ideas and narrative segments. This allows for "multi-level" interactions, such as explicitly linking a keyword in the first sentence to a resolution in the final sentence.
- Dual CVAE Architecture: The core of the system consists of two interconnected Variational Autoencoders (VAEs). The Content CVAE generates the textual narrative, while the Graph CVAE generates the structural "map." These modules are "infused" with each other: latent variables from the Graph CVAE guide the text generation, ensuring structural adherence, while the content informs the graph to maintain contextual relevance.
Experimental Setup
The model was evaluated on two benchmarks of varying complexity:
- ROCStories: A dataset of ~98,000 high-quality, five-sentence stories focused on everyday causal and temporal relations.
- CMU Movie Summary Corpus: A more challenging dataset of ~42,000 movie summaries. These summaries are significantly longer (averaging 310 words), providing a rigorous test for maintaining long-range structural consistency.
Key Results and Insights
GraphD-CVAE demonstrated superior performance across both automatic metrics and human evaluation.
Automatic Metrics
The model achieved the highest BLEU scores (measuring overlap with human text) and Distinctness scores (measuring vocabulary diversity) on both datasets. For instance, on ROCStories, it reached a BLEU-1 of 30.08, significantly outperforming the "Plan and Write" baseline (27.49).
Human Evaluation
In blind A/B testing, human judges consistently preferred GraphD-CVAE over strong baselines. The model was rated higher in terms of logical consistency, wording diversity, and overall quality across both short-form and long-form datasets.
Key Insights
- Non-Sequential Planning is Key: The graph structure effectively helps the model "remember" to close narrative loops, maintaining logic even in longer summaries.
- Structure vs. Content Specialization: The dual-CVAE approach recognizes that content generation and structural planning are distinct tasks. Separating them allows for better specialization and more robust "storyline guidance."
- Scalability: The model's continued success on the longer CMU Movie Summary dataset suggests that graph-based structures are particularly effective for managing the complexity of long-form narratives.
Conclusion and Future Directions
While GraphD-CVAE significantly improves story consistency, maintaining logic in very long narratives remains a challenge. Future work could involve incorporating external knowledge graphs for common-sense reasoning, or specialized character/action graphs to track individual narrative arcs. Additionally, integrating this graph-infused approach with large-scale pre-trained language models could further enhance the fluency and creativity of generated stories.
Summary updated