All models

louaaron (sedd small)

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

Language · 496 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
169.4M
Operations
496
Framework
PyTorch
Recurrent
No
Published
ICML 2024
Cited by
5 (as of 29 October 2026)
Authors
Aaron Lou, Chenlin Meng, Stefano Ermon
Name in source
louaaron:sedd-small
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
m5664
Graph hash
e570da229184db731aea6226b33dc80eaf4569c79509e79ce448f7bc032790ca
Skeleton hash
cbb2b2598b28c207a55c8f42adc664119b9de4e5aa97b11052b2cff4db0a80dc
Architecture hash
cb49e41b397f681dca363aa11c645d9d20d9bdcd9103fe54d7aa68e34951af01
Diagram SHA-256
c1fd9e7d3c5a169a27e07cd6dfd9b2ce49b4c161e9604089f51c4fba3a0149a2
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 SEDD small, published for use with the inference code in the Score-Entropy-Discrete-Diffusion repository.

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