Papers › Efficient Spatially Sparse Inference for Conditional GANs and Diffusion Models

Efficient Spatially Sparse Inference for Conditional GANs and Diffusion Models

3 Nov 2022arXiv:2211.02048archive 2025-07-28

Muyang Li, Ji Lin, Chenlin Meng, Stefano Ermon, Song Han, Jun-Yan Zhu

During image editing, existing deep generative models tend to re-synthesize the entire output from scratch, including the unedited regions. This leads to a significant waste of computation, especially for minor editing operations. In this work, we present Spatially Sparse Inference (SSI), a general-purpose technique that selectively performs computation for edited regions and accelerates various generative models, including both conditional GANs and diffusion models. Our key observation is that users prone to gradually edit the input image. This motivates us to cache and reuse the feature maps of the original image. Given an edited image, we sparsely apply the convolutional filters to the edited regions while reusing the cached features for the unedited areas. Based on our algorithm, we further propose Sparse Incremental Generative Engine (SIGE) to convert the computation reduction to latency reduction on off-the-shelf hardware. With about 1%-area edits, SIGE accelerates DDPM by 3.0× on NVIDIA RTX 3090 and 4.6× on Apple M1 Pro GPU, Stable Diffusion by 7.2× on 3090, and GauGAN by 5.6× on 3090 and 5.2× on M1 Pro GPU. Compared to our conference version, we extend SIGE to accommodate attention layers and apply it to Stable Diffusion. Additionally, we offer support for Apple M1 Pro GPU and include more results with large and sequential edits.

PaperPDFCodeCode 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="2211.02048")

Code

Syntology Ran 4 of 17 code samples harvested from 1 repository linked to this paper; 13 have no recorded run. Of those that ran: 1 ran · fixture could not drive it; 3 ran with no contract checked.

By repository: official repository: 17 samples from 1 repository, 4 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

lmxyy/sige officialmentioned in papermentioned on GitHubpytorch 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

17 samples harvested; 4 ran; 0 honoured the contract we drafted; 13 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.

1ran · fixture could not drive it
3ran
13unverified

Licence: 17 of the 17 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 lmxyy/sige. “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.

Downsample lmxyy/sige/diffusion/models/ddpm_arch/sige_fused_unet.py official repository ran · metamorphic tier: invariant fingerprinted licence not identified · pointer only · 7a0f92aace8379bd · report
SIGEConv2d lmxyy/sige/diffusion/models/ddpm_arch/sige_fused_unet.py official repository ran fingerprinted licence not identified · pointer only · 335c75661060896d · report
SIGEModule lmxyy/sige/diffusion/models/ddpm_arch/sige_fused_unet.py official repository ran licence not identified · pointer only · d507545007f66e19 · report
get_timestep_embedding lmxyy/sige/diffusion/models/ddpm_arch/sige_fused_unet.py official repository ran · fixture could not drive it fingerprinted licence not identified · pointer only · b8dedf14898e5502 · report
Gather lmxyy/sige/diffusion/models/ddpm_arch/sige_fused_unet.py official repository unverified licence not identified · pointer only · e6819730eb3cbd0f · report
SIGEDownsample lmxyy/sige/diffusion/models/ddpm_arch/sige_fused_unet.py official repository unverified licence not identified · pointer only · 5fd30a8dc69ba054 · report
SIGEFusedAttnBlock lmxyy/sige/diffusion/models/ddpm_arch/sige_fused_unet.py official repository unverified licence not identified · pointer only · ab08502e82055fad · report
SIGEFusedResnetBlock lmxyy/sige/diffusion/models/ddpm_arch/sige_fused_unet.py official repository unverified licence not identified · pointer only · 4f54fe4195f44e4a · report
SIGEFusedUNet lmxyy/sige/diffusion/models/ddpm_arch/sige_fused_unet.py official repository unverified licence not identified · pointer only · 045129cab1cb8c3a · report
SIGEModel lmxyy/sige/diffusion/models/ddpm_arch/sige_fused_unet.py official repository unverified licence not identified · pointer only · 024f482cc587c98d · report
SIGEModuleWrapper lmxyy/sige/diffusion/models/ddpm_arch/sige_fused_unet.py official repository unverified licence not identified · pointer only · 8a575c88399bbcf7 · report
SIGEUpsample lmxyy/sige/diffusion/models/ddpm_arch/sige_fused_unet.py official repository unverified licence not identified · pointer only · f153297ee40e8b8d · report
Scatter lmxyy/sige/diffusion/models/ddpm_arch/sige_fused_unet.py official repository unverified licence not identified · pointer only · aae8fcf6a37d95da · report
ScatterGather lmxyy/sige/diffusion/models/ddpm_arch/sige_fused_unet.py official repository unverified licence not identified · pointer only · c3a4f27f51286763 · report
ScatterWithBlockResidual lmxyy/sige/diffusion/models/ddpm_arch/sige_fused_unet.py official repository unverified licence not identified · pointer only · 198eb290f706c5a3 · report
my_group_norm lmxyy/sige/diffusion/models/ddpm_arch/sige_fused_unet.py official repository unverified licence not identified · pointer only · 1dc30e6b525d42ae · report
reduce_mask lmxyy/sige/diffusion/models/ddpm_arch/sige_fused_unet.py official repository unverified licence not identified · pointer only · 153647897a024a30 · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

DiffusionSPEED

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