Pre-train and Plug-in: Flexible Conditional Text Generation with Variational Auto-Encoders

Yu Duan, Canwen Xu, Jiaxin Pei, Jialong Han, Chenliang Li
11/10/2019
cs.CLcs.LGstat.ML

Official code: WHUIR/PPVAE (46 stars, Jupyter Notebook, last commit 2022-11-04).

Abstract

Conditional Text Generation has drawn much attention as a topic of Natural Language Generation (NLG) which provides the possibility for humans to control the properties of generated contents. Current conditional generation models cannot handle emerging conditions due to their joint end-to-end learning fashion.

Show full abstract

When a new condition added, these techniques require full retraining. In this paper, we present a new framework named Pre-train and Plug-in Variational Auto-Encoder (PPVAE) towards flexible conditional text generation. PPVAE decouples the text generation module from the condition representation module to allow "one-to-many" conditional generation. When a fresh condition emerges, only a lightweight network needs to be trained and works as a plug-in for PPVAE, which is efficient and desirable for real-world applications. Extensive experiments demonstrate the superiority of PPVAE against the existing alternatives with better conditionality and diversity but less training effort.

View on arXivView PDF

Code Implementations(1)

WHUIR/PPVAEOfficial100%

The official Keras implementation of ACL 2020 paper "Pre-train and Plug-in: Flexible Conditional Text Generation with Variational Auto-Encoders".

464Jupyter Notebook, PythonApr 4, 20204 years ago

Similar Papers

Cite this paper

@article{duan2019pretrain,
  title  = {Pre-train and Plug-in: Flexible Conditional Text Generation with Variational Auto-Encoders},
  author = {Yu Duan and Canwen Xu and Jiaxin Pei and Jialong Han and Chenliang Li},
  year   = {2019},
  eprint = {1911.03882},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1911.03882}
}

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

Discussion