SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2410.21638 · NeurIPS · 2024

Adapting Diffusion Models for Improved Prompt Compliance and Controllable Image Synthesis

Nuno Vasconcelos, Deepak Sridhar, Abhishek Peri, Rohith Rachala

arXiv · PDF · Open in the Atlas

Code that ran

7 of 10 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 2 violated it and 0 have no contract verdict; 4 failures of our instrument; 3 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2410.21638.json · badge: /api/ran/2410.21638.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
DeepakSridhar/fgdm canonical (classifier label)
classifier basis: census
7 ran · 3 no recorded run
FunctionStatusWhere it lives
HWC3 Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
DeepakSridhar/fgdm/controlnet/annotator/util.py
pointer only (licence: NONE) · get_code("f9ec7d70add02b6f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, DeepakSridhar/fgdm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_input Ran
ran, honoured the contract we drafted
DeepakSridhar/fgdm/controlnet/seg2image_inference.py
pointer only (licence: NOASSERTION) · get_code("6d9f74466755a154")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, DeepakSridhar/fgdm (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_state_dict Ran
ran; our contract draft was wrong, not the code
DeepakSridhar/fgdm/controlnet/cldm/model.py
pointer only (licence: NONE) · get_code("cfc17707f35e7ec4")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, DeepakSridhar/fgdm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

isimage Ran
ran, violated the contract we drafted
DeepakSridhar/fgdm/controlnet/ldm/util.py
pointer only (licence: NONE) · get_code("b1368330cf0f5642")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, DeepakSridhar/fgdm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

ismap Ran
ran, violated the contract we drafted
DeepakSridhar/fgdm/controlnet/ldm/util.py
pointer only (licence: NONE) · get_code("d72762b700feee6f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, DeepakSridhar/fgdm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

nms Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
DeepakSridhar/fgdm/ldm/models/hed.py
pointer only (licence: NOASSERTION) · get_code("6cce57d1077b8c49")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, DeepakSridhar/fgdm (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

resize_image Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
DeepakSridhar/fgdm/controlnet/annotator/util.py
pointer only (licence: NOASSERTION) · get_code("50fd68f6989503c6")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, DeepakSridhar/fgdm (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

load_state_dict Not yet run
unverified (harvested, no recorded run)
DeepakSridhar/fgdm/controlnet/cldm/model.py
pointer only (licence: NONE) · get_code("df733a879693145d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, DeepakSridhar/fgdm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

log_txt_as_img Not yet run
unverified (harvested, no recorded run)
DeepakSridhar/fgdm/controlnet/ldm/util.py
pointer only (licence: NOASSERTION) · get_code("6b4c1a8ce5fb7282")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, DeepakSridhar/fgdm (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

process Not yet run
unverified (harvested, no recorded run)
DeepakSridhar/fgdm/controlnet/initialize_cn.py
pointer only (licence: NOASSERTION) · get_code("1e3d3e4a492c1249")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, DeepakSridhar/fgdm (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 8 are also present in other papers whose code we hold (8 with at least one paper dated earlier, 4 the same month, 4 later) and 2 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
ismap 69 other papers
54 dated earlier, 3 the same month, 9 later, 3 same year, order not determinable
2204.06125 (2022-04)
Hierarchical Text-Conditional Image Generation with CLIP Latents
2206.02779 (2022-06)
Blended Latent Diffusion
2208.13753 (2022-08)
Frido: Feature Pyramid Diffusion for Complex Scene Image Synthesis
and 66 more not named here
isimage 61 other papers
49 dated earlier, 2 the same month, 8 later, 2 same year, order not determinable
2206.02779 (2022-06)
Blended Latent Diffusion
2208.13753 (2022-08)
Frido: Feature Pyramid Diffusion for Complex Scene Image Synthesis
2210.12965 (2022-10)
High-Resolution Image Editing via Multi-Stage Blended Diffusion
and 58 more not named here
get_state_dict 29 other papers
23 dated earlier, 2 the same month, 3 later, 1 same year, order not determinable
2304.04269 (2023-04)
HumanSD: A Native Skeleton-Guided Diffusion Model for Human Image Generation
2305.02034 (2023-05)
SAMRS: Scaling-up Remote Sensing Segmentation Dataset with Segment Anything Model
2305.11147 (2023-05)
UniControl: A Unified Diffusion Model for Controllable Visual Generation In the Wild
and 26 more not named here
load_state_dict 25 other papers
20 dated earlier, 2 the same month, 2 later, 1 same year, order not determinable
2304.04269 (2023-04)
HumanSD: A Native Skeleton-Guided Diffusion Model for Human Image Generation
2305.02034 (2023-05)
SAMRS: Scaling-up Remote Sensing Segmentation Dataset with Segment Anything Model
2305.11147 (2023-05)
UniControl: A Unified Diffusion Model for Controllable Visual Generation In the Wild
and 22 more not named here
HWC3 18 other papers
17 dated earlier, 1 same year, order not determinable
2305.10973 (2023-05)
Drag Your GAN: Interactive Point-based Manipulation on the Generative Image Manifold
2305.16322 (2023-05)
Uni-ControlNet: All-in-One Control to Text-to-Image Diffusion Models
2305.17098 (2023-05)
ControlVideo: Conditional Control for One-shot Text-driven Video Editing and Beyond
and 15 more not named here
resize_image 13 other papers
12 dated earlier, 1 same year, order not determinable
2305.16322 (2023-05)
Uni-ControlNet: All-in-One Control to Text-to-Image Diffusion Models
2305.17098 (2023-05)
ControlVideo: Conditional Control for One-shot Text-driven Video Editing and Beyond
2308.09592 (2023-08)
StableVideo: Text-driven Consistency-aware Diffusion Video Editing
and 10 more not named here
log_txt_as_img 8 other papers
8 dated earlier
2305.02034 (2023-05)
SAMRS: Scaling-up Remote Sensing Segmentation Dataset with Segment Anything Model
2312.04831 (2023-12)
Towards Enhanced Image Inpainting: Mitigating Unwanted Object Insertion and Preserving Color Consistency
2312.06573 (2023-12)
ControlNet-XS: Rethinking the Control of Text-to-Image Diffusion Models as Feedback-Control Systems
and 5 more not named here
nms 6 other papers
6 dated earlier
2308.08545 (2023-08)
TeCH: Text-guided Reconstruction of Lifelike Clothed Humans
2312.04524 (2023-12)
RAVE: Randomized Noise Shuffling for Fast and Consistent Video Editing with Diffusion Models
2312.07315 (2023-12)
NVS-Adapter: Plug-and-Play Novel View Synthesis from a Single Image
and 3 more not named here

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Recent advances in generative modeling with diffusion processes (DPs) enabled breakthroughs in image synthesis. Despite impressive image quality, these models have various prompt compliance problems, including low recall in generating multiple objects, difficulty in generating text in images, and meeting constraints like object locations and pose. For fine-grained editing and manipulation, they also require fine-grained semantic or instance maps that are tedious to produce manually. While prompt compliance can be enhanced by addition of loss functions at inference, this is time consuming and does not scale to complex scenes. To overcome these limitations, this work introduces a new family of Factor Graph Diffusion Models (FG-DMs) that models the joint distribution of images and conditioning variables, such as semantic, sketch, depth or normal maps via a factor graph decomposition. This joint structure has several advantages, including support for efficient sampling based prompt compliance schemes, which produce images of high object recall, semi-automated fine-grained editing, text-based editing of conditions with noise inversion, explainability at intermediate levels, ability to produce labeled datasets for the training of downstream models such as segmentation or depth, training with missing data, and continual learning where new conditioning variables can be added with minimal or no modifications to the existing structure. We propose an implementation of FG-DMs by adapting a pre-trained Stable Diffusion (SD) model to implement all FG-DM factors, using only COCO dataset, and show that it is effective in generating images with 15% higher recall than SD while retaining its generalization ability. We introduce an attention distillation loss that encourages consistency among the attention maps of all factors, improving the fidelity of the generated conditions and image. We also show that training FG-DMs from scratch on MM-CelebA-HQ, Cityscapes, ADE20K, and COCO produce images of high quality (FID) and diversity (LPIPS).

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2410.21638")
get_code_for_paper("2410.21638")
have("2410.21638")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2410.21638.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2410.21638.svg)](https://syntology.ai/paper/2410.21638)

Connect an agent — have() is free.