Diffusion & generation

Timestep embedding

Tells the network how noisy the input currently is, so one network can handle every denoising stage.

First page of Denoising Diffusion Probabilistic ModelsPopularized inJun 2020Denoising Diffusion Probabilistic ModelsHo et al. · arXiv 2006.11239 ↗
Timestep embedding: telling the net how noisyt samples a stack of sinusoids · the pattern becomes a conditioning vectortinjected into every block

The same network weights must denoise both nearly-pure noise and nearly-finished images. The current timestep is therefore encoded (usually sinusoidally, then through a small MLP) and injected into every block, letting the network condition its behavior on how far along the denoising process is.

Adoption over time

Share of new models that have included timestep embeddings over time.

5%202220232024202520265%20222023202420252026

See it in real models

Open any of these on hfviewer to find this block in the interactive architecture graph.

Comfy-Org/MiniMax-H3 architecture graphComfy-Org/MiniMax-H3↓ 17.3M · ♡ 2kOpen in visualizer MiniMaxAI/MiniMax-H3 architecture graphMiniMaxAI/MiniMax-H3image-text-to-video · ↓ 4.0M · ♡ 4kOpen in visualizer Comfy-Org/Krea-2 architecture graphComfy-Org/Krea-2↓ 2.2M · ♡ 465Open in visualizer ResembleAI/chatterbox architecture graphResembleAI/chatterboxtext-to-speech · ↓ 2.0M · ♡ 2kOpen in visualizer google/diffusiongemma-26B-A4B-it architecture graphgoogle/diffusiongemma-26B-A4B-itimage-text-to-text · ↓ 1.8M · ♡ 1kOpen in visualizer nvidia/diffusiongemma-26B-A4B-it-NVFP4 architecture graphnvidia/diffusiongemma-26B-A4B-it-NVFP4text-generation · ↓ 800k · ♡ 122Open in visualizer Tongyi-MAI/Z-Image-Turbo architecture graphTongyi-MAI/Z-Image-Turbotext-to-image · ↓ 794k · ♡ 5kOpen in visualizer microsoft/VibeVoice-ASR architecture graphmicrosoft/VibeVoice-ASRautomatic-speech-recognition · ↓ 697k · ♡ 1kOpen in visualizer microsoft/VibeVoice-Realtime-0.5B architecture graphmicrosoft/VibeVoice-Realtime-0.5Btext-to-speech · ↓ 645k · ♡ 1kOpen in visualizer Comfy-Org/MiniMax-Music-3 architecture graphComfy-Org/MiniMax-Music-3↓ 516k · ♡ 211Open in visualizer openbmb/VoxCPM2 architecture graphopenbmb/VoxCPM2text-to-speech · ↓ 327k · ♡ 2kOpen in visualizer unsloth/MiniMax-H3-GGUF architecture graphunsloth/MiniMax-H3-GGUFimage-text-to-video · ↓ 305k · ♡ 207Open in visualizer

Browse all 138 models with this in the catalog →

Related concepts

hfviewer renders the full architecture of 4,000+ Hugging Face models as interactive graphs. Hover any block to see what it does, with this model’s real numbers.

Browse all model graphs →