Papers › High-Resolution Image Synthesis with Latent Diffusion Models

High-Resolution Image Synthesis with Latent Diffusion Models

20 Dec 2021CVPR 2022 1arXiv:2112.10752archive 2025-07-28

Robin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser, Björn Ommer

By decomposing the image formation process into a sequential application of denoising autoencoders, diffusion models (DMs) achieve state-of-the-art synthesis results on image data and beyond. Additionally, their formulation allows for a guiding mechanism to control the image generation process without retraining. However, since these models typically operate directly in pixel space, optimization of powerful DMs often consumes hundreds of GPU days and inference is expensive due to sequential evaluations. To enable DM training on limited computational resources while retaining their quality and flexibility, we apply them in the latent space of powerful pretrained autoencoders. In contrast to previous work, training diffusion models on such a representation allows for the first time to reach a near-optimal point between complexity reduction and detail preservation, greatly boosting visual fidelity. By introducing cross-attention layers into the model architecture, we turn diffusion models into powerful and flexible generators for general conditioning inputs such as text or bounding boxes and high-resolution synthesis becomes possible in a convolutional manner. Our latent diffusion models (LDMs) achieve a new state of the art for image inpainting and highly competitive performance on various tasks, including unconditional image generation, semantic scene synthesis, and super-resolution, while significantly reducing computational requirements compared to pixel-based DMs. Code is available at https://github.com/CompVis/latent-diffusion .

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2112.10752")

Code

Syntology Ran 19 of 28 code samples harvested from 6 repositories linked to this paper; 9 have no recorded run. Of those that ran: 4 ran · violated contract; 11 ran · our draft was wrong; 1 ran · fixture could not drive it; 3 ran with no contract checked.

By repository: community (archive-listed): 26 samples from 6 repositories, 17 ran; 2 identical to code first harvested elsewhere. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

41 repositories listed; official and paper-mentioned ones first.

Francis-Rings/MotionEditor mentioned on GitHubpytorch report
Francis-Rings/MotionFollower mentioned on GitHubpytorch report
SnailDev/github-hot-hub mentioned on GitHubpytorchMIT report
ankanbhunia/Handwriting-Transformers mentioned on GitHubpytorch report
baaivision/vid2vid-zero mentioned on GitHubpytorch report
benearnthof/fm_boosting mentioned on GitHubpytorch report
camilocarvajalreyes/sfws-stable-diffusion mentioned on GitHubpytorchNOASSERTION report
clarken92/vfm mentioned on GitHubpytorch report
compvis/fm-boosting mentioned on GitHubpytorch report
compvis/stable-diffusion mentioned on GitHubpytorchNOASSERTION report
deforum/stable-diffusion mentioned on GitHubpytorchNOASSERTION report
fhshen2022/prunerepaint mentioned on GitHubpytorch report
geekyutao/inpaint-anything mentioned on GitHubpytorchApache-2.0 report
glouppe/info8010-deep-learning mentioned on GitHubpytorch report
joanrod/figure-diffusion mentioned on GitHubpytorchNOASSERTION report
joanrod/ocr-vqgan mentioned on GitHubpytorch report
joh-fischer/PlantLDM mentioned on GitHubpytorch report
lilijiangg/autodiffusion mentioned on GitHubpytorchMIT report
lonnyzhang423/github-hot-hub mentioned on GitHubpytorchMIT report
lorenzo-stacchio/Stable-Diffusion-Inpaint mentioned on GitHubpytorchMIT report
mayuelala/followyourpose mentioned on GitHubpytorchMIT report
microsoft/visual-chatgpt mentioned on GitHubNOASSERTION report
quereste/implicit-deepfake mentioned on GitHubpytorch report
showlab/Tune-A-Video mentioned on GitHubpytorchApache-2.0 report
showlab/loveu-tgve-2023 mentioned on GitHubpytorch report
spengliang/smoothvideo mentioned on GitHubpytorchApache-2.0 report
stability-ai/stablediffusion mentioned on GitHubpytorchnot reachable when probed 2026-09-17 — repositories for recent papers often appear after camera-ready report
vainf/diff-pruning mentioned on GitHubjax report
yangling0818/contextdiff mentioned on GitHubjax report
zgctroy/layoutdiffusion mentioned on GitHubpytorch report
keras-team/keras-cv tfNOASSERTION report
mindspore-lab/mindone mindsporenot reachable when probed 2026-09-17 — repositories for recent papers often appear after camera-ready report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

28 samples harvested; 19 ran; 0 honoured the contract we drafted; 9 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

4ran · violated contract
11ran · our draft was wrong
1ran · fixture could not drive it
3ran
9unverified

Licence: 5 of the 28 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 6 repositories linked to this paper, official or community; each sample names its own and says which. Some samples are identical code Syntology first harvested from another repository; for those, this paper's copy is not located and its licence is not recorded. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

interpolate_fn lorenzo-stacchio/Stable-Diffusion-Inpaint/ldm/models/diffusion/dpm_solver/dpm_solver.py community (archive-listed) ran · our draft was wrong fingerprinted MIT (permissive) · 6a35b62fbc80f70a · report
bits_to_decimal yangling0818/contextdiff/ContextDiff_image/diffusers/examples/community/bit_diffusion.py community (archive-listed) ran · our draft was wrong no licence file found · pointer only · 71cce9a0eff16fa1 · report
decimal_to_bits yangling0818/contextdiff/ContextDiff_image/diffusers/examples/community/bit_diffusion.py community (archive-listed) ran · our draft was wrong fingerprinted no licence file found · pointer only · 92770f5c18857083 · report
default lorenzo-stacchio/Stable-Diffusion-Inpaint/ldm/modules/attention.py community (archive-listed) ran · violated contract MIT (permissive) · 424012cb37b31172 · report
disabled_train lorenzo-stacchio/Stable-Diffusion-Inpaint/ldm/models/diffusion/classifier.py community (archive-listed) ran · violated contract MIT (permissive) · 4cb732f513d69dfd · report
exists lorenzo-stacchio/Stable-Diffusion-Inpaint/ldm/modules/attention.py community (archive-listed) ran · violated contract MIT (permissive) · aa5486a3650902d8 · report
expand_dims lorenzo-stacchio/Stable-Diffusion-Inpaint/ldm/models/diffusion/dpm_solver/dpm_solver.py community (archive-listed) ran · our draft was wrong MIT (permissive) · e6110366588c5c65 · report
get_noise_pred_single spengliang/smoothvideo/tuneavideo/util.py community (archive-listed) ran Apache-2.0 (permissive) · 0b088617d5525751 · report
get_time_embedding explainingai-code/StableDiffusion-PyTorch/models/blocks.py community (archive-listed) ran · fixture could not drive it fingerprinted MIT (permissive) · d3705ec829eb39f1 · report
model_wrapper lorenzo-stacchio/Stable-Diffusion-Inpaint/ldm/models/diffusion/dpm_solver/dpm_solver.py community (archive-listed) ran MIT (permissive) · c38c4cd486f7a766 · report
next_step spengliang/smoothvideo/tuneavideo/util.py community (archive-listed) ran Apache-2.0 (permissive) · fb032d6fa7e6196d · report
normalization labmlai/annotated_deep_learning_paper_implementations/labml_nn/diffusion/stable_diffusion/model/autoencoder.py community (archive-listed) ran · our draft was wrong MIT (permissive) · 08dcc8265812cbef · report
spatial_average explainingai-code/StableDiffusion-PyTorch/models/lpips.py community (archive-listed) ran · our draft was wrong fingerprinted MIT (permissive) · 29e5e72bcd006dcd · report
spherical_dist_loss yangling0818/contextdiff/ContextDiff_image/diffusers/examples/community/clip_guided_stable_diffusion.py community (archive-listed) ran · our draft was wrong fingerprinted no licence file found · pointer only · 36a34f4a30080b93 · report
swish labmlai/annotated_deep_learning_paper_implementations/labml_nn/diffusion/stable_diffusion/model/autoencoder.py community (archive-listed) ran · our draft was wrong fingerprinted MIT (permissive) · 8efb92cd06aefbfb · report
uniform_on_device lorenzo-stacchio/Stable-Diffusion-Inpaint/ldm/models/diffusion/ddpm.py community (archive-listed) ran · our draft was wrong MIT (permissive) · d48d8354986e3b0e · report
uniq lorenzo-stacchio/Stable-Diffusion-Inpaint/ldm/modules/attention.py community (archive-listed) ran · our draft was wrong MIT (permissive) · 9a299fe5ae09e407 · report
build_model zgctroy/layoutdiffusion/layout_diffusion/layout_diffusion_unet.py community (archive-listed) unverified MIT (permissive) · f07113626bc2a9ae · report
get_config_value explainingai-code/StableDiffusion-PyTorch/utils/config_utils.py community (archive-listed) unverified MIT (permissive) · 97f9c554227c4d08 · report
get_down_block spengliang/smoothvideo/tuneavideo/models/unet_blocks.py community (archive-listed) unverified Apache-2.0 (permissive) · a362e5b7a1be4609 · report
get_up_block spengliang/smoothvideo/tuneavideo/models/unet_blocks.py community (archive-listed) unverified Apache-2.0 (permissive) · 01feceecb56a7ffb · report
init_prompt spengliang/smoothvideo/tuneavideo/util.py community (archive-listed) unverified Apache-2.0 (permissive) · a0a4d94af120c56f · report
make_batch lorenzo-stacchio/Stable-Diffusion-Inpaint/inpaint_utils.py community (archive-listed) unverified MIT (permissive) · af3d3fd0371ecf63 · report
nondefault_trainer_args lorenzo-stacchio/Stable-Diffusion-Inpaint/main_inpainting.py community (archive-listed) unverified MIT (permissive) · 87fbedd0c27cf378 · report
plot_row_original_mask_output lorenzo-stacchio/Stable-Diffusion-Inpaint/inpaint_utils.py community (archive-listed) unverified MIT (permissive) · e4de1fdad679dd5c · report
resize_if lorenzo-stacchio/Stable-Diffusion-Inpaint/inpaint_utils.py community (archive-listed) unverified MIT (permissive) · 682145f66bb2762b · report
chunk identical code first harvested elsewhere ran · our draft was wrong licence of this copy not recorded · 8241c0562bc710fd · report
numpy_to_pil identical code first harvested elsewhere ran · violated contract licence of this copy not recorded · 1e63d588563eb90a · report

Tasks

DenoisingImage GenerationImage InpaintingImage ReconstructionLayout-to-Image GenerationSuper-ResolutionText-to-Image GenerationUnconditional Image GenerationVocal Bursts Intensity Prediction

1 archive task tag without a task page not shown.

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Image Generation CelebA-HQ 256x256 LDM-4 FID 5.11 #3 of 19 Archive leaderboard report
Image Generation ImageNet 512x512 Latent Diffusion (LDM-4-G) FID 3.60 #45 of 52 Archive leaderboard report
Image Generation ImageNet 512x512 Latent Diffusion (LDM-4-G) Inception score 247.67 #45 of 52 Archive leaderboard report
Image Reconstruction Ultra-High Resolution Image Reconstruction Benchmark SD-VAE (16x16) PSNR 26.86 #1 of 6 Archive leaderboard report
Image Reconstruction Ultra-High Resolution Image Reconstruction Benchmark SD-VAE (16x16) rFID 1.07 #1 of 6 Archive leaderboard report
Layout-to-Image Generation COCO-Stuff 256x256 LDM-4 (200steps) FID 40.96 #2 of 5 Archive leaderboard report
Layout-to-Image Generation COCO-Stuff 256x256 LDM-8 (100steps) FID 42.06 #4 of 5 Archive leaderboard report
Layout-to-Image Generation LayoutBench LDM AP 9.9 #2 of 3 Archive leaderboard report
Text-to-Image Generation COCO (Common Objects in Context) Latent Diffusion (LDM-KL-8-G) FID 12.63 #34 of 69 Archive leaderboard report
Text-to-Image Generation Conceptual Captions LDM-4 FID 17.01 #3 of 5 Archive leaderboard report
Text-to-Image Generation DrawBench Stable Diffusion 1.5 Aesthetics (Laion Aesthtetics Predictor) 5.4292 #8 of 8 Archive leaderboard report
Text-to-Image Generation DrawBench Stable Diffusion 1.5 Human Preference Alignement (HPSv2) 0.2646 #8 of 8 Archive leaderboard report
Text-to-Image Generation DrawBench Stable Diffusion 1.5 Text Alignement (SentenceBERT) 0.5997 #8 of 8 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

Introduced by this paper: Latent Diffusion Model

DiffusionInpaintingLatent Diffusion Model

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections