All models

SEDD-medium

SEDD is a discrete diffusion language model: a time-conditioned transformer trained with the score entropy loss.

Language · 976 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (26 KB)

Open in a new tab

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.

At a glance

Family
SEDD
Parameters
424.2M
Operations
976
Framework
PyTorch
Recurrent
No
Published
ICML 2024
Cited by
5 (as of 29 October 2026)
Authors
Aaron Lou, Chenlin Meng, Stefano Ermon
License
MIT
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m11700
Graph hash
f9970240475bc450521abf72c4aa1be0f99bf1709f843f1c37a558af36b6249b
Skeleton hash
ebb4580641037985510fa683d4ddf9775d3b8df88af60b0ff1ad2a3b16e11bfd
Architecture hash
9eb19bb4a1dbdabb9330190c679da154b2a3350092a601e890286586beb343e1
Diagram SHA-256
7fbbd5aac20324e54c717b5a52071a0a48b18a4492d167ce04e1615989f03164
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

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.

  • SEDD
  • Score Entropy Discrete Diffusion
  • sedd-small
  • sedd-medium
  • discrete diffusion
  • text diffusion
  • diffusion language model
  • score entropy
  • language modeling

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@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}, 
}