TL;DR
SSD-LM is a novel diffusion-based language model that generates text semi-autoregressively by diffusing over vocabulary simplexes. It is the first diffusion model for text to match or outperform strong GPT-2 baselines in quality and diversity while enabling "plug-and-play" modular control using off-the-shelf classifiers.
Introduction
For years, Autoregressive Language Models (AR-LMs) like GPT have dominated text generation. By generating text token-by-token from left to right, these models have achieved significant success but retain notable drawbacks: they lack bidirectional context during generation and can suffer from repetitive, degenerate outputs.
Diffusion models—which have revolutionized image generation—offer a promising alternative by iteratively refining noisy inputs. However, adapting them to text is challenging due to the discrete nature of language, the requirement for fixed output lengths in standard diffusion, and the complexity of controlling models that operate in learned latent spaces.
Methodology
SSD-LM (Semi-autoregressive Simplex-based Diffusion Language Model) addresses these challenges through two primary design innovations:
- Semi-autoregressive Generation: Instead of diffusing an entire sequence at once, SSD-LM generates text in blocks (e.g., 25 tokens). It uses the preceding block as context to generate the next, allowing for variable-length output while maintaining local bidirectional refinement within each block.
- Simplex-based Diffusion: Rather than diffusing in a hidden latent space, SSD-LM operates directly on the vocabulary simplex (the probability distribution over all possible words). Tokens are mapped to an "almost-one-hot" logit representation, and Gaussian noise is added to these logits.
Because the model operates in the standard vocabulary space, it can utilize gradients from any off-the-shelf classifier to guide the diffusion process at test time without additional training, enabling modular, "plug-and-play" control.
Experimental Results
The model was pretrained on OpenWebText (9 billion tokens) to ensure a fair comparison with GPT-2. Evaluation spanned unconstrained generation, the ROCStories benchmark, and sentiment-controlled generation tasks.
Performance Against GPT-2
On unconstrained generation, SSD-LM matched or outperformed GPT-2 (Medium, Large, and XL) across standard metrics like MAUVE (measuring proximity to human text) and diversity metrics.
Comparison with Prior Diffusion Models
On the ROCStories benchmark, SSD-LM achieved a MAUVE score of 87.22, vastly outperforming the previous state-of-the-art text diffusion model, Diffusion-LM, which scored 46.11.
Modular Control
In sentiment-controlled tasks, SSD-LM achieved higher classifier accuracy (94.1%) than competitive baselines like PPLM or GeDi, while maintaining significantly better fluency (lower perplexity).
Key Insights and Limitations
SSD-LM successfully bridges the gap between the flexibility of GPT-style models and the iterative refinement of diffusion. By using the vocabulary as the interface, it allows the model to "speak the same language" as existing NLP tools, making it a highly flexible component in AI pipelines.
However, several limitations remain:
- Sample Efficiency: The model requires more training steps than AR-LMs because loss is only calculated on the specific block being diffused.
- Decoding Speed: Diffusion is inherently slower than autoregressive sampling; generating 25 tokens took approximately 25 seconds in the authors' setup due to the multiple iterations required.
- Block Size Sensitivity: The choice of block size during training versus decoding involves a trade-off that requires further optimization.
Summary updated