NGEP: A Graph-based Event Planning Framework for Story Generation

Chen Tang, Zhihao Zhang, Tyler Loakman, Chenghua Lin, Frank Guerin

Abstract

Generating long-form, coherent narratives remains a significant challenge for neural language models, which often struggle with logical consistency and repetitive structures. This paper introduces NGEP (Neural Graph-based Event Planning), a hybrid framework that combines the structured logic of an automatically constructed event graph with the flexibility of a neural "advisor." By grounding the story's "blueprint" in a graph derived from real-world transitions, NGEP produces narratives that are more coherent, diverse, and controllable than those generated by pure black-box models.

Introduction

While modern large language models (LLMs) demonstrate impressive local fluency, they frequently encounter "hallucinations" and a lack of global narrative logic when generating extended stories. A common strategy to mitigate this is the "plan-then-write" approach, where a model first generates a high-level storyline (an event sequence) before expanding it into full prose. However, existing neural planners often produce repetitive or illogical event sequences. NGEP addresses these limitations by introducing a planning stage grounded in observed data transitions, ensuring the narrative "skeleton" remains robust and logical.

Methodology

The NGEP framework operates through a three-stage pipeline:

  1. Event Graph Construction: Utilizing the spaCy NLP library, the system extracts structured "events" (verb phrases) from a large story corpus. These events form the nodes of a directed graph, where edges represent the temporal flow observed in the training data.
  2. Graph-based Planning: During inference, the system traverses this graph to determine the next event. The selection process considers the current context, node weights (weighted degree), and a specific repetition penalty designed to prevent the model from entering narrative loops.
  3. Neural Advisor: To handle "dead ends" where the graph lacks outgoing edges, NGEP incorporates a BART-based neural advisor. This component predicts the next logical event based on the preceding context, acting as a safety net that maintains story momentum.
Overview of the NGEP framework, illustrating the transition from training stories to event graph construction and the subsequent planning process guided by a neural advisor.

The final predicted event sequence is then fed into a downstream writing model, such as BART or T5, to generate the final prose.

Experimental Setup

The researchers evaluated NGEP using the ROCStories dataset, a collection of nearly 100,000 five-sentence stories capturing everyday commonsense scenarios. This is a standard benchmark for evaluating how well models understand causal and temporal relationships.

Results and Discussion

NGEP demonstrates significant improvements over baseline models in both narrative fidelity and diversity.

  • Fidelity and Overlap: As shown in the performance metrics, NGEP and its associated components consistently outperform standard Seq2Seq and BART planners on automated metrics such as ROUGE and BLEU. This indicates that the planned storylines align more closely with human-authored narratives.
  • Diversity and Reduced Repetition: NGEP achieves notably higher Distinct-n scores (D-1 and D-2), reflecting a wider vocabulary and more unique event transitions. Furthermore, the framework significantly reduces the Intra-story Repetition Aggregate (IR-A), resulting in stories that are less "loopy" and more varied.
Quantitative comparison of NGEP against baseline models across ROUGE (R), BLEU (B), and Distinct (D) metrics.

A key insight from the study is the effectiveness of the repetition penalty. By penalizing highly common "generic" events (nodes with high in-degree), the model is encouraged to explore more interesting and specific narrative paths, avoiding repetitive loops.

Conclusion

NGEP provides a transparent and controllable method for story planning by bridging the gap between structured knowledge and neural generation. While the framework currently relies on temporal transitions, future work could extend the graph to include explicit causal relations or emotional arcs. Additionally, incorporating entity tracking would further enhance the model's ability to handle complex, multi-character narratives in longer formats.

Summary updated

BibTeX
@inproceedings{tang2022ngep,
  author = {Chen Tang and Zhihao Zhang and Tyler Loakman and Chenghua Lin and Frank Guerin},
  title = {{NGEP: A Graph-based Event Planning Framework for Story Generation}},
  booktitle = {AACL/IJCNLP},
  year = {2022},
  doi = {10.18653/v1/2022.aacl-short.24},
}
Figure