Latent Diffusion for Language Generation

Justin Lovelace, Varsha Kishore, Chao Wan, Eliot Shekhtman, Kilian Q. Weinberger
12/19/2022
cs.CLcs.LG
diffusion-flow

Official code: justinlovelace/latent-diffusion-for-language (155 stars, Python, MIT, last commit 2024-02-27).

Abstract

Diffusion models have achieved great success in modeling continuous data modalities such as images, audio, and video, but have seen limited use in discrete domains such as language. Recent attempts to adapt diffusion to language have presented diffusion as an alternative to existing pretrained language models.

Show full abstract

We view diffusion and existing language models as complementary. We demonstrate that encoder-decoder language models can be utilized to efficiently learn high-quality language autoencoders. We then demonstrate that continuous diffusion models can be learned in the latent space of the language autoencoder, enabling us to sample continuous latent representations that can be decoded into natural language with the pretrained decoder. We validate the effectiveness of our approach for unconditional, class-conditional, and sequence-to-sequence language generation. We demonstrate across multiple diverse data sets that our latent language diffusion models are significantly more effective than previous diffusion language models.

View on arXivView PDF

Code Implementations(1)

MIT
15523Python, ShellDec 12, 20222 years agoMIT

Similar Papers

Cite this paper

@article{lovelace2022latent,
  title  = {Latent Diffusion for Language Generation},
  author = {Justin Lovelace and Varsha Kishore and Chao Wan and Eliot Shekhtman and Kilian Q. Weinberger},
  year   = {2022},
  eprint = {2212.09462},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2212.09462}
}

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

Discussion