atlas

Research map / Image generation / Text-to-image diffusion

Accelerating Text-to-Image Editing via Cache-Enabled Sparse Diffusion Inference

AAAI 2024 · Image generation › Text-to-image diffusion · approach: Text-driven synthesis and semantic guidance · 12 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes FISEdit, a cache-enabled sparse diffusion inference engine that detects text-edit-affected image regions via cross-attention-guided masks and recomputes only those regions, reusing cached features elsewhere, for faster text-to-image editing.

Problem

Interactive text-to-image editing with small prompt modifications requires repeated full diffusion inference, which is slow even on GPUs, despite only a small image region typically changing.

Approach

Automatically derive a fine-grained difference mask from cached vs. edited cross-attention maps (Prompt-to-Prompt style, OTSU thresholding), then run U-Net sparsely on the affected region using adaptive pixel-wise sparse convolution, approximate normalization with cached statistics, and approximate attention, while reusing cached activations for the rest.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use FISEdit for 5% edits instead of SDTPStable Diffusion v2 text-to-image editing · LAION-Aesthetics, 5% edit, NVIDIA TITAN RTXU-Net calls per second: 4.4×Helped
Use FISEdit for 5% edits instead of SDTPStable Diffusion v2 text-to-image editing · LAION-Aesthetics, 5% edit, NVIDIA A100U-Net calls per second: 3.4×Helped
Add CUDA kernel improvements (ablation)FISEdit · 512×512throughput: 5.42it/s -> 6.80it/sHelped
Add CUDA kernel improvements (ablation)FISEdit · 768×768throughput: 1.83it/s -> 2.73it/sHelped
Add tiled sparse convolution without APSC (ablation)FISEdit with CUDA kernel improvements · 512×512throughput: 6.80it/s -> 6.86it/sHelped
Add tiled sparse convolution without APSC (ablation)FISEdit with CUDA kernel improvements · 768×768throughput: 2.73it/s -> 3.17it/sHelped
Add APSC to tiled sparse convolution (ablation)FISEdit with CUDA kernel improvements · 512×512throughput: 6.86it/s -> 7.2it/sHelped
Add APSC to tiled sparse convolution (ablation)FISEdit with CUDA kernel improvements · 768×768throughput: 3.17it/s -> 3.61it/sHelped
Add approximate attention (ablation)FISEdit with CUDA kernels and convolution with APSC · 512×512throughput: 7.2it/s -> 10.17it/sHelped
Add approximate attention (ablation)FISEdit with CUDA kernels and convolution with APSC · 768×768throughput: 3.61it/s -> 8.13it/sHelped
Apply FISEdit to low-resolution image editingFISEdit · 256×256 imagesediting performanceHurt

Surprising findings

Limitations

Experimental setup

Datasets: InstructPix2Pix human-written edit dataset (LAION-Aesthetics based, 454,445 examples)

Benchmarks: InstructPix2Pix edit dataset (LAION-Aesthetics)

Metrics: image-image similarity directional CLIP similarity FID CLIP accuracy MACs it/s

Baselines: SDTP SDIP Prompt-to-Prompt SDEdit InstructPix2Pix DIFFEdit PPAP Pix2Pix-Zero

Builds on: Prompt-to-Prompt SBNet SIGE DIFFEdit

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy