Skip to main content
QUICK REVIEW

[Paper Review] Self-conditioned Embedding Diffusion for Text Generation

Robin Strudel, Corentin Tallec|arXiv (Cornell University)|Nov 8, 2022
Topic ModelingComputer Science21 citations
TL;DR

This paper introduces Self-conditioned Embedding Diffusion (SED), a continuous diffusion model operating on token embeddings to enable both conditional and unconditional text generation, achieving competitive results with autoregressive models and potential inference efficiency on accelerators.

ABSTRACT

Can continuous diffusion models bring the same performance breakthrough on natural language they did for image generation? To circumvent the discrete nature of text data, we can simply project tokens in a continuous space of embeddings, as is standard in language modeling. We propose Self-conditioned Embedding Diffusion, a continuous diffusion mechanism that operates on token embeddings and allows to learn flexible and scalable diffusion models for both conditional and unconditional text generation. Through qualitative and quantitative evaluation, we show that our text diffusion models generate samples comparable with those produced by standard autoregressive language models - while being in theory more efficient on accelerator hardware at inference time. Our work paves the way for scaling up diffusion models for text, similarly to autoregressive models, and for improving performance with recent refinements to continuous diffusion.

Motivation & Objective

  • Motivate diffusion for text as a continuous space alternative to discrete diffusion methods.
  • Develop a continuous diffusion process in token embedding space to model text.
  • Incorporate self-conditioning and fixed embeddings to improve diffusion-based text generation.
  • Enable conditional generation via span masking and classifier-free guidance.
  • Evaluate diffusion-based text generation against autoregressive baselines on standard tasks.

Proposed method

  • Perform diffusion in a fixed embedding space by mapping tokens through a fixed embedding matrix E.
  • Train a denoising network to predict x0 from noisy embeddings x_t with a simplified loss over the forward-backward diffusion process.
  • Use a readout matrix R to map the denoised embedding back to token logits without updating E.
  • Apply self-conditioning by feeding the previous x0 estimate into the denoising network during sampling.
  • Implement span masking to create conditioning/infill tasks and enable conditional generation.
  • Use classifier-free guidance to interpolate between unconditional and conditional predictions during sampling.

Experimental results

Research questions

  • RQ1Can continuous diffusion on fixed token embeddings achieve quality comparable to autoregressive models for text generation?
  • RQ2How do self-conditioning, embedding choices, and span masking affect unconditional and conditional text generation?
  • RQ3Can diffusion-based models leverage guidance to improve sample fidelity on text tasks?

Key findings

  • SED models achieve sample quality competitive with autoregressive baselines of similar size on conditional and unconditional tasks.
  • Applying guidance (classifier-free) substantially improves sample quality for Sed models.
  • Self-conditioning and pretrained embeddings significantly improve performance and topic coherence.
  • Increasing embedding dimension shows a threshold effect, with benefits up to a point before degradation.
  • Span masking enhances unconditional generation and supports diverse conditioning scenarios.
  • Scaling from 135M to 420M parameters improves AR NLL and human preferences, indicating stronger performance with model size.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.