NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

LongStory: Coherent, Complete and Length Controlled Long Story Generation

Kyeongman Park, Nakyeong Yang, Kyomin Jung

TL;DR

LongStory is a novel framework designed to generate long-form stories (up to 10,000 tokens) that maintain narrative coherence and drive toward a satisfying conclusion. By dynamically balancing long-term plot memory with short-term sentence continuity and using explicit structural tokens, it significantly outperforms existing baselines in narrative flow and story completeness.

What Problem Does This Paper Address?

While modern Large Language Models (LLMs) excel at generating short text snippets, writing a long, cohesive story remains a massive challenge. When forced to generate extended narratives recursively (paragraph by paragraph), standard language models suffer from two main flaws:

  1. Contextual Forgetting and Repetition: They lose track of the overarching plot, leading to logical contradictions or looping text.
  2. Lack of "Completeness": They don't know how to stick the landing. Humans naturally pace a story toward a proper resolution, but standard models often ramble indefinitely or cut off abruptly because they lack an internal sense of narrative structure.

The authors introduce LongStory to tackle these issues, focusing specifically on three pillars: coherence, completeness, and length control.

Methods

LongStory builds upon a recursive paragraph generation architecture using BART-large as its backbone, augmented by two novel mechanisms:

  1. Long and Short-Term Contexts Weight Calibrator (CWC): Instead of treating all past context equally, LongStory separates history into two streams: Memory ($M^t$, tracking the global narrative arc) and Cheating ($C^t$, a sliding window of the immediate past paragraphs to ensure local continuity). A lightweight gating model (BERT-tiny) dynamically calibrates the attention weights ($\beta$ and $\gamma$) for these two streams based on where the model is in the story.

  2. Long Story Structural Positions (LSP): To give the model a sense of time and pacing, the authors introduce explicit structural discourse tokens. Moving beyond simple intro/body/tail markers, LSP uses more granular tokens like <front>, <middle>, <ending>, and <next_is_ending>. This structural scaffolding signals to the generator exactly when it needs to start wrapping up the plot.

The LongStory architecture featuring the CWC and LSP modules.

Datasets

The model was trained and evaluated across three distinct datasets representing various narrative lengths and styles:

  • WritingPrompts: Short stories averaging 3.4 paragraphs (~768 tokens).
  • ReedsyPrompts: Mid-length stories averaging 12.3 paragraphs (~2,426 tokens).
  • Booksum (Chapter column): Long-form narratives averaging 27.7 paragraphs (~6,065 tokens).
Summary of the datasets used in the experiments.

Key Insights and Ideas

  • Defining "Completeness": The authors introduce a formal, automated metric for completeness. By training a discriminator (GPT-2) to distinguish true story endings from random body paragraphs, they quantify how effectively a model concludes a narrative.
  • The Relevance vs. Coherence Trade-off: In an ablation study ("Augmented CWC"), the authors allowed the model to dynamically tune the weight of the raw input prompt embeddings. Surprisingly, while this boosted token-matching relevance scores (ROUGE), it degraded narrative coherence and completeness. This reveals that strictly adhering to prompt keywords can disrupt the natural, logical flow of a story.
  • Local vs. Global Balance: Ablation tests showed that the global Memory module is critical for maintaining paragraph-to-paragraph flow, while the local Cheating module is essential for preventing the model from over-attending to distant, now-irrelevant details.

Key Results

LongStory was evaluated against strong baselines, including GPT-2, BART, and Plotmachine (a prominent outline-conditioned story generator), across target lengths of 5, 10, 20, 30, and 50 paragraphs.

  • Completeness: LongStory achieved massive gains here. For instance, at 50 paragraphs, LongStory hit a completeness score of 31.76, whereas Plotmachine scored -9.08 and GPT-2 scored 3.9, proving that the structural tokens successfully guided the model to a proper ending.
  • Coherence and Repetitiveness: LongStory consistently scored highest or second-highest in coherence across all lengths and demonstrated lower in-self-BLEU scores, indicating significantly less text repetition in long generations.

Limitations and Future Work

While LongStory shows a clear path forward for structural text generation, some limitations remain:

  • Base Model Scale: The framework was implemented using relatively small models (BART-large and BERT-tiny). The authors note that scaling this methodology up to state-of-the-art large language models could yield even more powerful results.
  • Keyword Dependency: The pipeline relies on keywords extracted via the RAKE algorithm as a proxy for a plot outline. Integrating a more sophisticated, hierarchical plot-planning model could further improve high-level narrative complexity.

Summary updated

BibTeX
@inproceedings{park2024longstory,
  author = {Kyeongman Park and Nakyeong Yang and Kyomin Jung},
  title = {{LongStory: Coherent, Complete and Length Controlled Long Story Generation}},
  booktitle = {PAKDD},
  year = {2024},
  url = {https://openreview.net/forum?id=ZXORy4lxCP},
}
Figure