Diverse Text Generation via Variational Encoder-Decoder Models with Gaussian Process Priors

Wanyu Du, Jianqiao Zhao, Liwei Wang, Yangfeng Ji
4/4/2022
cs.CL
bayesian

Official code: wyu-du/GP-VAE (26 stars, Python, Apache-2.0, last commit 2022-06-27).

Abstract

Generating high quality texts with high diversity is important for many NLG applications, but current methods mostly focus on building deterministic models to generate higher quality texts and do not provide many options for promoting diversity. In this work, we present a novel latent structured variable model to generate high quality texts by enriching contextual representation learning of encoder-decoder models.

Show full abstract

Specifically, we introduce a stochastic function to map deterministic encoder hidden states into random context variables. The proposed stochastic function is sampled from a Gaussian process prior to (1) provide infinite number of joint Gaussian distributions of random context variables (diversity-promoting) and (2) explicitly model dependency between context variables (accurate-encoding). To address the learning challenge of Gaussian processes, we propose an efficient variational inference approach to approximate the posterior distribution of random context variables. We evaluate our method in two typical text generation tasks: paraphrase generation and text style transfer. Experimental results on benchmark datasets demonstrate that our method improves the generation quality and diversity compared with other baselines.

View on arXivView PDF

Code Implementations(1)

wyu-du/GP-VAEOfficial100%
Apache-2.0

This repository contains the data and code for the paper "Diverse Text Generation via Variational Encoder-Decoder Models with Gaussian Process Priors" (SPNLP@ACL2022)

263Python, ShellApr 1, 20224 years agoApache-2.0
gaussian-processeslstmparaphrase-generationpointer-generatorstyle-transfer+4 more

Similar Papers

Cite this paper

@article{du2022diverse,
  title  = {Diverse Text Generation via Variational Encoder-Decoder Models with Gaussian Process Priors},
  author = {Wanyu Du and Jianqiao Zhao and Liwei Wang and Yangfeng Ji},
  year   = {2022},
  eprint = {2204.01227},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2204.01227}
}

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

Discussion