Paraphrase Generation with Latent Bag of Words

Yao Fu, Yansong Feng, John P. Cunningham
1/7/2020
cs.CLcs.LG

Official code: FranxYao/dgm_latent_bow (121 stars, MIT, last commit 2021-10-09). Most starred: FranxYao/Deep-Generative-Models-for-Natural-Language-Processing, a community implementation (393 stars, last commit 2022-12-12, 3.2× the official stars). 1 more implementation below.

Abstract

Paraphrase generation is a longstanding important problem in natural language processing. In addition, recent progress in deep generative models has shown promising results on discrete latent variables for text generation. Inspired by variational autoencoders with discrete latent structures, in this work, we propose a latent bag of words (BOW) model for paraphrase generation. We ground the semantics of a discrete latent variable by the BOW from the target sentences. We use this latent variable to build a fully differentiable content planning and surface realization model. Specifically, we use source words to predict their neighbors and model the target BOW with a mixture of softmax. We use Gumbel top-k reparameterization to perform differentiable subset sampling from the predicted BOW distribution. We retrieve the sampled word embeddings and use them to augment the decoder and guide its generation search space. Our latent BOW model not only enhances the decoder, but also exhibits clear interpretability. We show the model interpretability with regard to \emph{(i)} unsupervised learning of word neighbors \emph{(ii)} the step-by-step generation procedure. Extensive experiments demonstrate the transparent and effective generation process of this model.\footnote{Our code can be found at \url{https://github.com/FranxYao/dgm_latent_bow}}

View on arXivView PDF

Code Implementations(2)

MIT

Implementation of NeurIPS 19 paper: Paraphrase Generation with Latent Bag of Words

12113PythonJul 29, 20195 years agoMIT
deep-generative-modelgumbel-softmaxlatent-variable-modelsnatural-language-generationparaphrase-generation

DGMs for NLP. A roadmap.

39333Apr 9, 20193 years ago
approximate-inferencedecodingdiscrete-structuresgenerative-adversarial-networksgenerative-model+15 more

Similar Papers

Cite this paper

@article{fu2020paraphrase,
  title  = {Paraphrase Generation with Latent Bag of Words},
  author = {Yao Fu and Yansong Feng and John P. Cunningham},
  year   = {2020},
  eprint = {2001.01941},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2001.01941}
}

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

Discussion