DiffuSeq: Sequence to Sequence Text Generation with Diffusion Models

Shansan Gong, Mukai Li, Jiangtao Feng, Zhiyong Wu, Lingpeng Kong
10/17/2022
cs.CLcs.LG
diffusion-flow

Official code: Shark-NLP/DiffuSeq (838 stars, Python, MIT, last commit 2024-03-01).

Abstract

Recently, diffusion models have emerged as a new paradigm for generative models. Despite the success in domains using continuous signals such as vision and audio, adapting diffusion models to natural language is under-explored due to the discrete nature of texts, especially for conditional generation.

Show full abstract

We tackle this challenge by proposing DiffuSeq: a diffusion model designed for sequence-to-sequence (Seq2Seq) text generation tasks. Upon extensive evaluation over a wide range of Seq2Seq tasks, we find DiffuSeq achieving comparable or even better performance than six established baselines, including a state-of-the-art model that is based on pre-trained language models. Apart from quality, an intriguing property of DiffuSeq is its high diversity during generation, which is desired in many Seq2Seq tasks. We further include a theoretical analysis revealing the connection between DiffuSeq and autoregressive/non-autoregressive models. Bringing together theoretical analysis and empirical evidence, we demonstrate the great potential of diffusion models in complex conditional language generation tasks. Code is available at \url{https://github.com/Shark-NLP/DiffuSeq}

View on arXivView PDF

Code Implementations(1)

Shark-NLP/DiffuSeqOfficial100%
MIT

[ICLR'23] DiffuSeq: Sequence to Sequence Text Generation with Diffusion Models

838112Python, ShellOct 17, 20222 years agoMIT
diffusion-modelssequence-to-sequencetext-generation

Similar Papers

Cite this paper

@article{gong2022diffuseq,
  title  = {DiffuSeq: Sequence to Sequence Text Generation with Diffusion Models},
  author = {Shansan Gong and Mukai Li and Jiangtao Feng and Zhiyong Wu and Lingpeng Kong},
  year   = {2022},
  eprint = {2210.08933},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.08933}
}

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

Discussion