TL;DR
Self-conditioned Embedding Diffusion (SED) adapts continuous diffusion to natural language generation by diffusing directly within a low-dimensional, fixed token embedding space rather than token space. Combined with self-conditioning and classifier-free guidance, SED scales up to 420M parameters and produces text rivaling standard autoregressive (AR) models on generic unconditional and conditional generation tasks (such as infilling).
What Problem Does This Paper Address?
While continuous diffusion models have overtaken generative modeling for images, text generation remains heavily dominated by autoregressive (AR) models (like GPT). Text is fundamentally discrete, and past efforts to apply diffusion directly to language have mostly relied on discrete diffusion (corrupting discrete tokens via categorical transitions). However, discrete diffusion struggles with sample coherence and cannot easily exploit powerful techniques developed for continuous diffusion—most notably classifier-free guidance.
The authors ask: Can we operate continuous diffusion on continuous word embeddings to rival AR language models while unlocking non-causal capabilities like flexible bidirectional infilling?
Methods
SED builds a continuous diffusion pipeline directly over fixed token representations:
- Fixed Pretrained Embeddings: Rather than jointly learning embeddings (which causes training instability and representation collapse), SED uses fixed token embeddings derived from a pretrained BERT lookup table ($d_{\text{embed}} = 32$). Tokens are decoded via a learned linear readout matrix $R \in \mathbb{R}^{V \times D}$ trained with cross-entropy reconstruction loss alongside the diffusion MSE loss.
- Self-Conditioning: At sampling step $t$, the network takes both the noisy embedding $x_t$ and its own previous prediction of the clean embedding $\tilde{x}_0^{t+1}$ as input. During training, this is approximated with two forward passes (the second conditioned on the first via a stop-gradient).
- Span Masking for Conditional Generation: To enable text infilling, the model is trained with randomized span masks partitioning sequences into variable numbers of conditioned vs. infilled chunks.
- Classifier-Free Guidance: The authors adapt classifier-free guidance to text by randomly dropping conditioning tokens and previous self-conditioning during training. During sampling, predictions are extrapolated toward conditional estimates and away from unconditional ones with guidance scale $s \ge 1$.
Datasets
- C4 (Colossal Clean Crawled Corpus): Used for all training and evaluation. Tokenized using a 32,000-word SentencePiece vocabulary with 10% uniform padding insertion to handle variable-length sequences.
- No new benchmarks were introduced; models were evaluated on unconditional generation and suffix in-filling tasks derived from C4.
Key Insights and Ideas
- Low-dimensional embeddings preserve semantic corruption: Counter-intuitively, diffusing over high-dimensional embeddings (e.g., $d=896$) degrades performance (AR NLL 4.92 vs. 4.57 at $d=32$). In high dimensions, space is sparse; as noise increases, the nearest token neighbor abruptly jumps from the original word to an unrelated word. In lower dimensions, the noise walk smoothly transitions through semantically related words (e.g., brown $\to$ grey, quick $\to$ swift) before becoming noise, creating a much easier denoising objective.
- Guidance works for text: This is the first demonstrated application of classifier-free guidance to continuous text diffusion, providing a knob (scale $s$) to trade off diversity for sample coherence, directly mirroring nucleus sampling ($top\text{-}p$) in AR models.
- Span masking aids unconditional generation: Training on diverse infilling tasks surprisingly improves unconditional negative log-likelihood (NLL), likely because mixing easy (heavily conditioned) and hard (unconditional) tasks regularizes training.
Key Results
- Quality–Diversity Trade-off: On suffix in-filling evaluated by a 70B Chinchilla-style AR model, SED traces an AR NLL vs. unigram entropy Pareto frontier competitive with AR baselines. SED-L reaches ~3.0–3.5 AR NLL with moderate guidance ($s \in [2, 4]$).
- Human Evaluation: Human raters found SED-L comparable to standard AR models:
- SED-L vs. AR-S (conditional): 51.0% preference (effectively tied).
- SED-L vs. AR-L: 43.8% preference (unconditional) and 37.7% preference (conditional).
- Scaling from SED-S (135M) to SED-L (420M) increased win rates against SED-S to 63.4%.
- Ablations: On unconditional generation, bit-level diffusion yielded an AR NLL of 6.05; random embeddings achieved 5.31; pretrained embeddings achieved 4.57 (all with self-conditioning). Disabling self-conditioning caused NLL to spike to 5.66 even with pretrained embeddings.
Limitations and Future Work
- Sampling Efficiency: Sampling currently requires $T = 1000$ sequential network forward passes, making inference much slower than cached AR generation. The authors note fast-sampling algorithms (like progressive distillation) must be adapted to close this gap.
- Two-Stage Dependency: SED requires a separately trained model to supply fixed embeddings rather than learning them end-to-end.
- Evaluation Limitations: Automatic metrics (AR NLL and entropy) can be gamed by repetitive sequences and naturally favor AR models; developing dedicated benchmarks for infilling remains an open need.
Summary updated