Transformer-based Conditional Variational Autoencoder for Controllable Story Generation

Le Fang, Tao Zeng, Chaochun Liu, Liefeng Bo, Wen Dong +1 more
1/4/2021
73 citations
cs.CLcs.AIcs.LG
transformer-attention

Official code: fangleai/TransformerCVAE (164 stars, Python, last commit 2022-06-16).

Abstract

We investigate large-scale latent variable models (LVMs) for neural story generation -- an under-explored application for open-domain long text -- with objectives in two threads: generation effectiveness and controllability. LVMs, especially the variational autoencoder (VAE), have achieved both effective and controllable generation through exploiting flexible distributional latent representations.

Show full abstract

Recently, Transformers and its variants have achieved remarkable effectiveness without explicit latent representation learning, thus lack satisfying controllability in generation. In this paper, we advocate to revive latent variable modeling, essentially the power of representation learning, in the era of Transformers to enhance controllability without hurting state-of-the-art generation effectiveness. Specifically, we integrate latent representation vectors with a Transformer-based pre-trained architecture to build conditional variational autoencoder (CVAE). Model components such as encoder, decoder and the variational posterior are all built on top of pre-trained language models -- GPT2 specifically in this paper. Experiments demonstrate state-of-the-art conditional generation ability of our model, as well as its excellent representation learning capability and controllability.

View on arXivView PDF

Code Implementations(1)

Transformer-based Conditional Variational Autoencoder for Controllable Story Generation

16419PythonMar 31, 20204 years ago

Similar Papers

Cite this paper

@article{fang2021transformerbased,
  title  = {Transformer-based Conditional Variational Autoencoder for Controllable Story Generation},
  author = {Le Fang and Tao Zeng and Chaochun Liu and Liefeng Bo and Wen Dong and Changyou Chen},
  year   = {2021},
  eprint = {2101.00828},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2101.00828}
}

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

Discussion