Fuse It More Deeply! A Variational Transformer with Layer-Wise Latent Variable Inference for Text Generation

Jinyi Hu, Xiaoyuan Yi, Wenhao Li, Maosong Sun, Xing Xie
7/13/2022
cs.CL

No official code found. Best implementation: OpenVLG/DELLA (35 stars, MIT, last commit 2022-08-20).

Abstract

The past several years have witnessed Variational Auto-Encoder's superiority in various text generation tasks. However, due to the sequential nature of the text, auto-regressive decoders tend to ignore latent variables and then reduce to simple language models, known as the KL vanishing problem, which would further deteriorate when VAE is combined with Transformer-based structures. To ameliorate this problem, we propose DELLA, a novel variational Transformer framework. DELLA learns a series of layer-wise latent variables with each inferred from those of lower layers and tightly coupled with the hidden states by low-rank tensor product. In this way, DELLA forces these posterior latent variables to be fused deeply with the whole computation path and hence incorporate more information. We theoretically demonstrate that our method can be regarded as entangling latent variables to avoid posterior information decrease through layers, enabling DELLA to get higher non-zero KL values even without any annealing or thresholding tricks. Experiments on four unconditional and three conditional generation tasks show that DELLA could better alleviate KL vanishing and improve both quality and diversity compared to several strong baselines.

View on arXivView PDF

Code Implementations(1)

OpenVLG/DELLACommunity100%
MIT

Official code for the NAACL 2022 paper "Fuse It More Deeply! A Variational Transformer with Layer-Wise Latent Variable Inference for Text Generation"

356PythonApr 28, 20224 years agoMIT
language-generationvae

Similar Papers

Cite this paper

@article{hu2022fuse,
  title  = {Fuse It More Deeply! A Variational Transformer with Layer-Wise Latent Variable Inference for Text Generation},
  author = {Jinyi Hu and Xiaoyuan Yi and Wenhao Li and Maosong Sun and Xing Xie},
  year   = {2022},
  eprint = {2207.06130},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2207.06130v2}
}

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

Discussion