Re3: Generating Longer Stories With Recursive Reprompting and Revision

Kevin Yang, Yuandong Tian, Nanyun Peng, Dan Klein
10/13/2022
cs.CLcs.AI

Official code: yangkevin2/emnlp22-re3-story-generation (257 stars, Python, MIT, last commit 2022-12-21).

Abstract

We consider the problem of automatically generating longer stories of over two thousand words. Compared to prior work on shorter stories, long-range plot coherence and relevance are more central challenges here.

Show full abstract

We propose the Recursive Reprompting and Revision framework (Re3) to address these challenges by (a) prompting a general-purpose language model to construct a structured overarching plan, and (b) generating story passages by repeatedly injecting contextual information from both the plan and current story state into a language model prompt. We then revise by (c) reranking different continuations for plot coherence and premise relevance, and finally (d) editing the best continuation for factual consistency. Compared to similar-length stories generated directly from the same base model, human evaluators judged substantially more of Re3's stories as having a coherent overarching plot (by 14% absolute increase), and relevant to the given initial premise (by 20%).

View on arXivView PDF

Code Implementations(1)

MIT
25742Python, Jupyter NotebookOct 13, 20223 years agoMIT

Similar Papers

Cite this paper

@article{yang2022re,
  title  = {Re3: Generating Longer Stories With Recursive Reprompting and Revision},
  author = {Kevin Yang and Yuandong Tian and Nanyun Peng and Dan Klein},
  year   = {2022},
  eprint = {2210.06774},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.06774}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2210.06774.svg)](https://codeofpaper.com/paper/2210.06774)

Discussion