FISEdit: Accelerating Text-to-image Editing via Cache-enabled Sparse Diffusion Inference

Zihao Yu, Haoyang Li, Fangcheng Fu, Xupeng Miao, Bin CuiarXiv 2023 · DOI

Abstract

Text-to-image diffusion models are computationally intensive, often regenerating entire images for minor iterative edits. We present FISEdit, a training-free inference engine that accelerates editing by treating it as a sparse update problem. By automatically detecting affected regions and reusing cached feature maps for unchanged areas, FISEdit achieves up to a 4.4x speedup on modern GPUs while maintaining high image fidelity and preserving the original image's identity better than existing baselines.

Introduction

Diffusion models have transformed generative AI but remain bottlenecked by high computational costs during iterative editing. When a user modifies a prompt (e.g., adding a hat to a dog), standard frameworks typically perform a full regeneration. This approach is highly inefficient; analysis of human-edited datasets reveals that the average edited area is less than 30% of the total image. FISEdit addresses this by introducing spatial awareness into the diffusion pipeline, enabling automated, high-speed localized editing without requiring users to manually draw masks.

Methodology

The FISEdit pipeline leverages three core technical pillars to enable sparse inference. First, it employs Fine-Grained Mask Generation, which automatically identifies modified regions by comparing latent features against cached data from the initial generation using a modified OTSU thresholding. Second, Adaptive Pixel-Wise Sparse Convolution (APSC) partitions these masks into optimal blocks for GPU processing, ensuring high hardware utilization even with irregular edit shapes. Finally, the system utilizes Approximate Normalization and Attention, reusing statistics and performing sparse computations on high-resolution maps to bypass traditional self-attention bottlenecks.

The FISEdit pipeline utilizes a cache-enabled architecture to perform sparse denoising steps, significantly reducing redundant computation by reusing activations and parameters.

Experimental Evaluation and Results

The framework was evaluated on the LAION-Aesthetics and InstructPix2Pix datasets. Results demonstrate a significant reduction in Multiply-Accumulate Operations (MACs)—up to 5x for small edits. On hardware, FISEdit provides a 4.4x speedup on NVIDIA TITAN RTX and 3.4x on A100 GPUs for 5% edit areas. Even with larger edits (30% of the image), it remains roughly 2.2x to 2.5x faster than standard pipelines.

Qualitative analysis confirms that FISEdit excels at preserving the "identity" of the original image. Unlike methods like SDEdit or InstructPix2Pix, which often cause global "drifting" or background changes, FISEdit restricts updates strictly to the semantically relevant regions by leveraging cross-attention maps as semantic anchors.

Qualitative comparison showing FISEdit's superior ability to preserve original image context and identity compared to other state-of-the-art editing frameworks.

Conclusion and Future Work

FISEdit offers a powerful, training-free solution for accelerating interactive image editing. While currently optimized for high-resolution workflows (512px and 768px), its ability to leverage temporal and spatial redundancy marks a significant step toward real-time, energy-efficient generative AI. Future work includes integrating this cache-enabled system into large-scale cloud services to handle similar user requests incrementally, further reducing the global energy footprint of generative AI.

Summary updated

BibTeX
@misc{yu2023fisedit,
  author = {Zihao Yu and Haoyang Li and Fangcheng Fu and Xupeng Miao and Bin Cui},
  title = {{FISEdit: Accelerating Text-to-image Editing via Cache-enabled Sparse Diffusion Inference}},
  year = {2023},
  eprint = {2305.17423},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.17423},
}
Figure