InstGenIE: Generative Image Editing Made Efficient with Mask-aware Caching and Scheduling

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Jiang, Xiaoxiao, Li, Suyi, Yang, Lingyun, Feng, Tianyu, Di, Zhipeng, Lu, Weiyi, Zhu, Guoxuan, Lin, Xiu, Liu, Kan, Yu, Yinghao, Lan, Tao, Yang, Guodong, Qu, Lin, Zhang, Liping, Wang, Wei
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866916760332009472
author Jiang, Xiaoxiao
Li, Suyi
Yang, Lingyun
Feng, Tianyu
Di, Zhipeng
Lu, Weiyi
Zhu, Guoxuan
Lin, Xiu
Liu, Kan
Yu, Yinghao
Lan, Tao
Yang, Guodong
Qu, Lin
Zhang, Liping
Wang, Wei
author_facet Jiang, Xiaoxiao
Li, Suyi
Yang, Lingyun
Feng, Tianyu
Di, Zhipeng
Lu, Weiyi
Zhu, Guoxuan
Lin, Xiu
Liu, Kan
Yu, Yinghao
Lan, Tao
Yang, Guodong
Qu, Lin
Zhang, Liping
Wang, Wei
contents Generative image editing using diffusion models has become a prevalent application in today's AI cloud services. In production environments, image editing typically involves a mask that specifies the regions of an image template to be edited. The use of masks provides direct control over the editing process and introduces sparsity in the model inference. In this paper, we present InstGenIE, a system that efficiently serves image editing requests. The key insight behind InstGenIE is that image editing only modifies the masked regions of image templates while preserving the original content in the unmasked areas. Driven by this insight, InstGenIE judiciously skips redundant computations associated with the unmasked areas by reusing cached intermediate activations from previous inferences. To mitigate the high cache loading overhead, InstGenIE employs a bubble-free pipeline scheme that overlaps computation with cache loading. Additionally, to reduce queuing latency in online serving while improving the GPU utilization, InstGenIE proposes a novel continuous batching strategy for diffusion model serving, allowing newly arrived requests to join the running batch in just one step of denoising computation, without waiting for the entire batch to complete. As heterogeneous masks induce imbalanced loads, InstGenIE also develops a load balancing strategy that takes into account the loads of both computation and cache loading. Collectively, InstGenIE outperforms state-of-the-art diffusion serving systems for image editing, achieving up to 3x higher throughput and reducing average request latency by up to 14.7x while ensuring image quality.
format Preprint
id arxiv_https___arxiv_org_abs_2505_20600
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle InstGenIE: Generative Image Editing Made Efficient with Mask-aware Caching and Scheduling
Jiang, Xiaoxiao
Li, Suyi
Yang, Lingyun
Feng, Tianyu
Di, Zhipeng
Lu, Weiyi
Zhu, Guoxuan
Lin, Xiu
Liu, Kan
Yu, Yinghao
Lan, Tao
Yang, Guodong
Qu, Lin
Zhang, Liping
Wang, Wei
Distributed, Parallel, and Cluster Computing
Artificial Intelligence
Machine Learning
Generative image editing using diffusion models has become a prevalent application in today's AI cloud services. In production environments, image editing typically involves a mask that specifies the regions of an image template to be edited. The use of masks provides direct control over the editing process and introduces sparsity in the model inference. In this paper, we present InstGenIE, a system that efficiently serves image editing requests. The key insight behind InstGenIE is that image editing only modifies the masked regions of image templates while preserving the original content in the unmasked areas. Driven by this insight, InstGenIE judiciously skips redundant computations associated with the unmasked areas by reusing cached intermediate activations from previous inferences. To mitigate the high cache loading overhead, InstGenIE employs a bubble-free pipeline scheme that overlaps computation with cache loading. Additionally, to reduce queuing latency in online serving while improving the GPU utilization, InstGenIE proposes a novel continuous batching strategy for diffusion model serving, allowing newly arrived requests to join the running batch in just one step of denoising computation, without waiting for the entire batch to complete. As heterogeneous masks induce imbalanced loads, InstGenIE also develops a load balancing strategy that takes into account the loads of both computation and cache loading. Collectively, InstGenIE outperforms state-of-the-art diffusion serving systems for image editing, achieving up to 3x higher throughput and reducing average request latency by up to 14.7x while ensuring image quality.
title InstGenIE: Generative Image Editing Made Efficient with Mask-aware Caching and Scheduling
topic Distributed, Parallel, and Cluster Computing
Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2505.20600