Plug-and-Blend: A Framework for Controllable Story Generation with Blended Control Codes

Zhiyu Lin, Mark Riedl
3/23/2021
cs.CLcs.AIcs.HC

Official code: xxbidiao/plug-and-blend (24 stars, Python, MIT, last commit 2022-03-29).

Abstract

Large pre-trained neural language models (LM) have very powerful text generation capabilities. However, in practice, they are hard to control for creative purposes.

Show full abstract

We describe a Plug-and-Play controllable language generation framework, Plug-and-Blend, that allows a human user to input multiple control codes (topics). In the context of automated story generation, this allows a human user loose or fine-grained control of the topics and transitions between them that will appear in the generated story, and can even allow for overlapping, blended topics. Automated evaluations show our framework, working with different generative LMs, controls the generation towards given continuous-weighted control codes while keeping the generated sentences fluent, demonstrating strong blending capability. A human participant evaluation shows that the generated stories are observably transitioning between two topics.

View on arXivView PDF

Code Implementations(1)

MIT

Codebase for public release of the plug-and-blend framework.

245Python, Jupyter NotebookMar 31, 20214 years agoMIT

Similar Papers

Cite this paper

@article{lin2021plugandblend,
  title  = {Plug-and-Blend: A Framework for Controllable Story Generation with Blended Control Codes},
  author = {Zhiyu Lin and Mark Riedl},
  year   = {2021},
  eprint = {2104.04039},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2104.04039}
}

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/2104.04039.svg)](https://codeofpaper.com/paper/2104.04039)

Discussion