
louaaron (sedd small)
Language496 ops169.4M params
SEDD is a discrete diffusion language model: a time-conditioned transformer trained with the score entropy loss.
Language · 976 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
This model is built at the SEDD medium scale, which shares its hidden dimensions, number of blocks and number of heads with the corresponding GPT-2 model.
About this model's family
SEDD, short for Score Entropy Discrete Diffusion, is a diffusion model for language. The paper starts from the observation that diffusion models have fallen short on discrete data such as natural language, and that efforts to generalize score matching to discrete structures had not brought the same empirical gains. Its answer is score entropy, a loss that extends score matching to discrete spaces.
The network is based on the diffusion transformer architecture, which adds time conditioning to a standard encoder-only transformer, with minor modifications such as rotary positional encoding. Following previous work, the paper parameterizes the network with the total noise level instead of the time t. SEDD models have the same hidden dimensions, number of blocks and number of heads as their corresponding GPT-2 models, but use a separate word embedding matrix and output matrix. The paper reports around 90M parameters for SEDD small and around 320M non embedding parameters for SEDD medium, against 86M for GPT-2 small and 304M for GPT-2 medium.
For comparable model sizes, the paper reports that SEDD reduces perplexity by 25-75% relative to existing language diffusion approaches and outperforms GPT-2. The GPT-2 comparison was trained on OpenWebText, because the original WebText dataset has not been made available.
Key idea. The paper proposes score entropy, a loss that extends score matching to discrete spaces, and uses it to build discrete diffusion language models that it reports outperform GPT-2.
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
@misc{lou2024discretediffusionmodelingestimating,
title={Discrete Diffusion Modeling by Estimating the Ratios of the Data Distribution},
author={Aaron Lou and Chenlin Meng and Stefano Ermon},
year={2024},
eprint={2310.16834},
archivePrefix={arXiv},
primaryClass={stat.ML},
url={https://arxiv.org/abs/2310.16834},
}