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

DOC: Improving Long Story Coherence With Detailed Outline Control

Kevin Yang, Dan Klein, Nanyun Peng, Yuandong Tian · DOI

Introduction

While Large Language Models (LLMs) excel at generating fluent short-form text, they notoriously struggle with "long-haul" coherence. When tasked with writing stories spanning 3,000 words or more, even advanced models like GPT-4 tend to drift off-topic, contradict earlier plot points, or ignore their initial plans entirely. Previous hierarchical generation frameworks, such as $Re^3$, utilized high-level plans that were often too sparse to provide meaningful guidance for long stretches of text. Furthermore, these systems relied primarily on prompting, which lacks the precision to prevent a model from wandering during the drafting phase.

To address these challenges, we present the Detailed Outline Control (DOC) framework. DOC shifts the creative burden from the drafting stage to a rigorous planning stage, combining a hierarchical "Detailed Outliner" with a "Detailed Controller" that enforces plans at the token level.

The DOC Framework

The DOC framework operates through a two-stage process that ensures plot consistency from the initial premise to the final generated passage.

The DOC framework: A two-stage process involving a Detailed Outliner and a Detailed Controller.

Detailed Outliner

Instead of a simple three-point summary, the Detailed Outliner recursively expands a brief premise into a detailed, hierarchical tree (typically to a depth of 3). This component utilizes:

  • Breadth-First Expansion: Generating children nodes for each plot point to build a comprehensive narrative structure.
  • Filtering and Reranking: A combination of sentence similarity and a custom-trained RoBERTa-based "ordering model" ensures sub-events are relevant and logically sequenced.
  • State Tracking: The system explicitly detects and tracks settings and characters for every outline item, ensuring consistency in the "who" and "where" of the story.

Detailed Controller

To ensure the drafting model adheres to the detailed plan, DOC adapts FUDGE (Future-aware Discriminator-Guided Generation). Unlike standard prompting, the controller operates at the token level. It employs an auxiliary discriminator (an OPT-350m model) to calculate the probability that a partial sentence will eventually satisfy the current outline item. The controller then adjusts the main model's logits to steer it toward the goal.

A key innovation is the use of dynamic control strength. Rather than a static constraint, control strength starts at zero for each passage and increases as the model writes, ensuring the generation stays focused as it reaches the conclusion of a specific plot point. Additionally, the controller is trained on "hard negatives"—passages that begin on-topic but eventually stray—allowing it to recognize and correct drift before it compromises the narrative.

Experimental Evaluation

The framework was evaluated using 20 complex premises (30-60 words each) and compared against the $Re^3$ baseline and a ROLLING-OPT approach. Training data included the WritingPrompts dataset for the FUDGE discriminator and 1,000 InstructGPT-generated stories for the ordering model.

Results

In pairwise human evaluations, DOC demonstrated significant improvements across all primary metrics. As shown in the table below, DOC achieved substantial absolute gains over $Re^3$ in coherence (+22.5%), relevance (+28.2%), and interestingness (+20.7%).

Comparative performance of DOC against baselines on human evaluation metrics.

In interactive human-in-the-loop settings where users edited the plans, the preference for DOC was even more pronounced. On the "Intent" metric—measuring how well the story followed the author's specific goal—DOC scored 80.0%, a dramatic increase over the 17.3% achieved by $Re^3$.

Discussion and Future Work

While DOC significantly improves plot coherence, some limitations remain. The model still occasionally makes low-level factual errors, such as swapping character names or genders mid-story. Furthermore, because the drafting phase relies heavily on the outline, hallucinations in the planning stage can derail the entire narrative. The computational cost of token-level control is also higher than pure prompting due to the multiple passes required for every generated word.

Future research will focus on expanding DOC to other domains, such as Wikipedia articles or movie scripts, and improving low-level factual consistency to eliminate character-swapping errors.

Summary updated

BibTeX
@inproceedings{yang2023doc,
  author = {Kevin Yang and Dan Klein and Nanyun Peng and Yuandong Tian},
  title = {{DOC: Improving Long Story Coherence With Detailed Outline Control}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2023},
  doi = {10.18653/v1/2023.acl-long.190},
}
Figure