PCAE: A Framework of Plug-in Conditional Auto-Encoder for Controllable Text Generation

Haoqin Tu, Zhongliang Yang, Jinshuai Yang, Siyu Zhang, Yongfeng Huang
10/7/2022
cs.CL

Official code: ImKeTT/PCAE (26 stars, Python, MIT, last commit 2023-04-10).

Abstract

Controllable text generation has taken a gigantic step forward these days. Yet existing methods are either constrained in a one-off pattern or not efficient enough for receiving multiple conditions at every generation stage.

Show full abstract

We propose a model-agnostic framework Plug-in Conditional Auto-Encoder for Controllable Text Generation (PCAE) towards flexible and semi-supervised text generation. Our framework is "plug-and-play" with partial parameters to be fine-tuned in the pre-trained model (less than a half). Crucial to the success of PCAE is the proposed broadcasting label fusion network for navigating the global latent code to a specified local and confined space. Visualization of the local latent prior well confirms the primary devotion in hidden space of the proposed model. Moreover, extensive experiments across five related generation tasks (from 2 conditions up to 10 conditions) on both RNN- based and pre-trained BART [26] based auto-encoders reveal the high capability of PCAE, which enables generation that is highly manipulable, syntactically diverse and time-saving with minimum labeled samples. We will release our code at https://github.com/ImKeTT/pcae.

View on arXivView PDF

Code Implementations(1)

ImKeTT/PCAEOfficial100%
MIT

[KBS] PCAE: A Framework of Plug-in Conditional Auto-Encoder for Controllable Text Generation PyTorch Implementation

261PythonAug 22, 20223 years agoMIT
bartcontrollable-generationdeep-learningnlpplug-and-play-language-models+2 more

Similar Papers

Cite this paper

@article{tu2022pcae,
  title  = {PCAE: A Framework of Plug-in Conditional Auto-Encoder for Controllable Text Generation},
  author = {Haoqin Tu and Zhongliang Yang and Jinshuai Yang and Siyu Zhang and Yongfeng Huang},
  year   = {2022},
  eprint = {2210.03496},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.03496}
}

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

Discussion