All models

Multinomial Diffusion

A diffusion model for categorical data such as text, which learns to remove categorical noise step by step.

Diffusion and generative · 1,055 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 (192 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

Parameters
51.5M
Operations
1,055
Framework
PyTorch
Recurrent
No
Published
NeurIPS 2021
Cited by
124 (as of 26 October 2026)
Authors
Emiel Hoogeboom, Didrik Nielsen, Priyank Jaini and others
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
m18586
Graph hash
0417af9533abc8788515c5502dd31986af865fc089b4bc7d7bab2d92e5a9f0f0
Skeleton hash
debebbf48225dde2ac12c1962ac8ed487e340176a9ae2d06153813ff834bdc6d
Architecture hash
548330463a1c2e57f78f96a1d461b6650494023b28ae0f4ccbea3c0eb945836e
Diagram SHA-256
6b5cc2655f48ad9239764411038e25c338203d1bf28160b4f21ccc33eaa476ce
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

Multinomial Diffusion is a diffusion model for categorical data such as language or image segmentation maps. The paper introduces it because generative flows and diffusion models had mostly been trained on ordinal data, for example natural images. It appears in the same paper as Argmax Flows, a second method for the same kind of data.

The diffusion process adds categorical noise step by step: at each timestep a value has a small chance of being resampled uniformly across the classes. A network learns the denoising process that runs the other way. Because predicting the noise is difficult for discrete data, the network predicts a probability vector for the clean data instead. In the text model that network is a 12-layer Transformer.

On the text8 and enwik8 language datasets, the paper reports that multinomial text diffusion performs better than the argmax coupling flow but worse than the autoregressive argmax flow. On cityscapes segmentation maps it reports 0.37 bits per pixel on test against 0.33 on train. The paper notes that this was the only model where overfitting was an issue and data augmentation was required.

Key idea. Multinomial Diffusion defines a diffusion process that gradually adds categorical noise and learns the denoising process, giving a likelihood-based generative model for categorical data.

  • multinomial diffusion
  • multinomial text diffusion
  • categorical diffusion
  • discrete diffusion
  • categorical data
  • text diffusion
  • language modeling
  • text8
  • enwik8

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

Cite the paper

@misc{hoogeboom2021argmaxflowsmultinomialdiffusion,
      title={Argmax Flows and Multinomial Diffusion: Learning Categorical Distributions}, 
      author={Emiel Hoogeboom and Didrik Nielsen and Priyank Jaini and Patrick Forré and Max Welling},
      year={2021},
      eprint={2102.05379},
      archivePrefix={arXiv},
      primaryClass={stat.ML},
      url={https://arxiv.org/abs/2102.05379}, 
}