SSD-LM: Semi-autoregressive Simplex-based Diffusion Language Model for Text Generation and Modular Control

Xiaochuang Han, Sachin Kumar, Yulia Tsvetkov
10/31/2022
250 citations
cs.CLcs.LG
diffusion-flow

Official code: xhan77/ssd-lm (78 stars, Python, last commit 2022-11-13).

Abstract

Despite the growing success of diffusion models in continuous-valued domains (e.g., images), similar efforts for discrete domains such as text have yet to match the performance of autoregressive language models. In this work, we present SSD-LM -- a diffusion-based language model with two key design choices.

Show full abstract

First, SSD-LM is semi-autoregressive, iteratively generating blocks of text, allowing for flexible output length at decoding time while enabling local bidirectional context updates. Second, it is simplex-based, performing diffusion on the natural vocabulary space rather than a learned latent space, allowing us to incorporate classifier guidance and modular control using off-the-shelf classifiers without any adaptation. We evaluate SSD-LM on unconstrained text generation benchmarks, and show that it matches or outperforms strong autoregressive GPT-2 models across standard quality and diversity metrics, while vastly outperforming diffusion-based baselines. On controlled text generation, SSD-LM also outperforms competitive baselines, with an extra advantage in modularity.

View on arXivView PDF

Code Implementations(1)

xhan77/ssd-lmOfficial100%

Semi-autoregressive Simplex-based Diffusion Language Model for Text Generation and Modular Control

787Python, ShellOct 28, 20224 years ago

Similar Papers

Cite this paper

@article{han2022ssdlm,
  title  = {SSD-LM: Semi-autoregressive Simplex-based Diffusion Language Model for Text Generation and Modular Control},
  author = {Xiaochuang Han and Sachin Kumar and Yulia Tsvetkov},
  year   = {2022},
  eprint = {2210.17432},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.17432}
}

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

Discussion