EC-Diff: Fast and High-Quality Edge-Cloud Collaborative Inference for Diffusion Models
By: Jiajian Xie , Shengyu Zhang , Zhou Zhao and more
Potential Business Impact:
Makes AI create pictures faster and better.
Diffusion Models have shown remarkable proficiency in image and video synthesis. As model size and latency increase limit user experience, hybrid edge-cloud collaborative framework was recently proposed to realize fast inference and high-quality generation, where the cloud model initiates high-quality semantic planning and the edge model expedites later-stage refinement. However, excessive cloud denoising prolongs inference time, while insufficient steps cause semantic ambiguity, leading to inconsistency in edge model output. To address these challenges, we propose EC-Diff that accelerates cloud inference through gradient-based noise estimation while identifying the optimal point for cloud-edge handoff to maintain generation quality. Specifically, we design a K-step noise approximation strategy to reduce cloud inference frequency by using noise gradients between steps and applying cloud inference periodically to adjust errors. Then we design a two-stage greedy search algorithm to efficiently find the optimal parameters for noise approximation and edge model switching. Extensive experiments demonstrate that our method significantly enhances generation quality compared to edge inference, while achieving up to an average $2\times$ speedup in inference compared to cloud inference. Video samples and source code are available at https://ec-diff.github.io/.
Similar Papers
DiffusionX: Efficient Edge-Cloud Collaborative Image Generation with Multi-Round Prompt Evolution
CV and Pattern Recognition
Makes AI art faster and better.
ECCENTRIC: Edge-Cloud Collaboration Framework for Distributed Inference Using Knowledge Adaptation
Distributed, Parallel, and Cluster Computing
Makes smart devices faster and use less power.
Evolutionary Caching to Accelerate Your Off-the-Shelf Diffusion Model
CV and Pattern Recognition
Makes AI art programs create pictures much faster.