Papers › DOC: Improving Long Story Coherence With Detailed Outline Control

DOC: Improving Long Story Coherence With Detailed Outline Control

20 Dec 2022arXiv:2212.10077archive 2025-07-28

Kevin Yang, Dan Klein, Nanyun Peng, Yuandong Tian

We propose the Detailed Outline Control (DOC) framework for improving long-range plot coherence when automatically generating several-thousand-word-long stories. DOC consists of two complementary components: a detailed outliner and a detailed controller. The detailed outliner creates a more detailed, hierarchically structured outline, shifting creative burden from the main drafting procedure to the planning stage. The detailed controller ensures the more detailed outline is still respected during generation by controlling story passages to align with outline details. In human evaluations of automatically generated stories, DOC substantially outperforms a strong Re3 baseline (Yang et al., 2022) on plot coherence (22.5% absolute gain), outline relevance (28.2%), and interestingness (20.7%). Humans also judged DOC to be much more controllable in an interactive generation setting.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2212.10077")

Code

Syntology Ran 2 of 16 code samples harvested from 1 repository linked to this paper; 14 have no recorded run. Of those that ran: 2 ran with no contract checked.

By repository: official repository: 16 samples from 1 repository, 2 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

yangkevin2/doc-story-generation officialmentioned in papermentioned on GitHubpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

16 samples harvested; 2 ran; 0 honoured the contract we drafted; 14 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

2ran
14unverified

Licence: 0 of the 16 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from yangkevin2/doc-story-generation. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

add_general_args yangkevin2/doc-story-generation/story_generation/common/util.py official repository ran MIT (permissive) · cf7a81e403862bdc · report
num_to_char yangkevin2/doc-story-generation/story_generation/common/util.py official repository ran MIT (permissive) · 8ffd1cad03ea46da · report
add_controller_args yangkevin2/doc-story-generation/story_generation/common/controller/controller_util.py official repository unverified MIT (permissive) · 9307b391bd31f8fe · report
calculate_repetition_length_penalty yangkevin2/doc-story-generation/story_generation/rewrite_module/heuristics.py official repository unverified MIT (permissive) · d6064e3f75255c0c · report
construct_infobox_prompt yangkevin2/doc-story-generation/story_generation/edit_module/entity.py official repository unverified MIT (permissive) · b0fb798dd04bc58d · report
create_character_summary yangkevin2/doc-story-generation/story_generation/plan_module/plan.py official repository unverified MIT (permissive) · ba042c1588023178 · report
detect_first_second_person yangkevin2/doc-story-generation/story_generation/rewrite_module/heuristics.py official repository unverified MIT (permissive) · 2199e84e623c96f3 · report
display_contiguous_context_section yangkevin2/doc-story-generation/story_generation/plan_module/outline.py official repository unverified MIT (permissive) · b2a505cd86276f0d · report
generate_initial_entity_strings yangkevin2/doc-story-generation/story_generation/plan_module/plan.py official repository unverified MIT (permissive) · 4964c6b035fac8e5 · report
generate_outline yangkevin2/doc-story-generation/story_generation/plan_module/plan.py official repository unverified MIT (permissive) · 650c4fbd8b023711 · report
infer_is_character yangkevin2/doc-story-generation/story_generation/edit_module/entity.py official repository unverified MIT (permissive) · 91208f6978255726 · report
infer_is_group yangkevin2/doc-story-generation/story_generation/edit_module/entity.py official repository unverified MIT (permissive) · 9d496b4e93eed96a · report
is_imperative_interrogative yangkevin2/doc-story-generation/story_generation/plan_module/outline.py official repository unverified MIT (permissive) · b717fef2496260a8 · report
longformer_classifier_collate yangkevin2/doc-story-generation/story_generation/common/controller/models/longformer_classifier.py official repository unverified MIT (permissive) · 4951e5ec12bc0cfb · report
simple_name_check yangkevin2/doc-story-generation/story_generation/plan_module/name_util.py official repository unverified MIT (permissive) · fa3bc34fda104374 · report
simple_outline_section_check yangkevin2/doc-story-generation/story_generation/plan_module/outline.py official repository unverified MIT (permissive) · 512b9c4c5bdd35ef · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

ALIGN

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections