edm_unet
A noise-conditioned U-Net denoiser from the EDM diffusion design space for image generation.
Diffusion and generative · 106 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.
At a glance
- Parameters
- 1.2M
- Operations
- 106
- Framework
- PyTorch
- Recurrent
- No
- Published
- NeurIPS 2022
- Cited by
- 699 (as of 29 October 2026)
- Authors
- Tero Karras, Miika Aittala, Timo Aila, Samuli Laine
- License
- CC-BY-NC-SA-4.0
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
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.
Details
- Stable ID
- m4477
- Graph hash
- de5ddc798b5848f6524d4317b06f5d0b0c2ad3b18f7efa15f792cc79cdfd3193
- Skeleton hash
- 62518fad762c6caff69d71f9229b56c0ebfb1061b962a87181d5bcb85691596d
- Architecture hash
- 133c0c4c9c4a1800fcd449cd3f2c9ea705113b6e1f9146b5790c5cf5ce8d98bd
- Diagram SHA-256
- 66999548a8a2c2250b6b0cca71f239c0e2d3ecb66f9a07f061cdff801759f526
- TorchLens version
- 2.35.3
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
How this diagram was made
menagerie.classics.ri_gan_misc:build_edm_unet: build({}) What it is
EDM is a diffusion model for image generation from a paper arguing that the theory and practice of diffusion-based generative models had become unnecessarily convoluted. The authors lay out a design space that separates the concrete design choices, and from it they identify changes to the sampling process, the training process and the preconditioning of the score networks.
The preconditioning wraps the trained network in a skip connection that depends on the noise level, which lets it estimate the clean signal, the noise, or something in between. The scaling factors are derived by requiring network inputs and training targets to have unit variance and by amplifying the network's errors as little as possible. The network layers themselves are the DDPM++ and NCSN++ architectures from earlier work, which the paper describes as variations of the same U-net backbone. For class conditioning and augmentation regularization, the authors extend those architectures with two optional conditioning inputs.
For sampling, the authors report that extensive tests led them to Heun's 2nd order method, also known as improved Euler or the trapezoidal rule. The paper reports an FID of 1.79 for class-conditional CIFAR-10 and 1.97 for unconditional CIFAR-10, with 35 network evaluations per image.
Key idea. The paper presents a design space that separates the concrete design choices of diffusion models and uses it to improve sampling, training and the preconditioning of score networks.
- EDM
- edm_unet
- EDMPrecond
- SongUNet
- Elucidating the Design Space of Diffusion-Based Generative Models
- diffusion model
- image generation
- score-based generative model
- preconditioned denoiser
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{karras2022elucidatingdesignspacediffusionbased,
title={Elucidating the Design Space of Diffusion-Based Generative Models},
author={Tero Karras and Miika Aittala and Timo Aila and Samuli Laine},
year={2022},
eprint={2206.00364},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2206.00364},
}