Hybrid SD: Edge-Cloud Collaborative Inference for Stable Diffusion Models

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Yan, Chenqian, Liu, Songwei, Liu, Hongjian, Peng, Xurui, Wang, Xiaojian, Chen, Fangmin, Fu, Lean, Mei, Xing
Format: Preprint
Veröffentlicht: 2024
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866912095067439104
author Yan, Chenqian
Liu, Songwei
Liu, Hongjian
Peng, Xurui
Wang, Xiaojian
Chen, Fangmin
Fu, Lean
Mei, Xing
author_facet Yan, Chenqian
Liu, Songwei
Liu, Hongjian
Peng, Xurui
Wang, Xiaojian
Chen, Fangmin
Fu, Lean
Mei, Xing
contents Stable Diffusion Models (SDMs) have shown remarkable proficiency in image synthesis. However, their broad application is impeded by their large model sizes and intensive computational requirements, which typically require expensive cloud servers for deployment. On the flip side, while there are many compact models tailored for edge devices that can reduce these demands, they often compromise on semantic integrity and visual quality when compared to full-sized SDMs. To bridge this gap, we introduce Hybrid SD, an innovative, training-free SDMs inference framework designed for edge-cloud collaborative inference. Hybrid SD distributes the early steps of the diffusion process to the large models deployed on cloud servers, enhancing semantic planning. Furthermore, small efficient models deployed on edge devices can be integrated for refining visual details in the later stages. Acknowledging the diversity of edge devices with differing computational and storage capacities, we employ structural pruning to the SDMs U-Net and train a lightweight VAE. Empirical evaluations demonstrate that our compressed models achieve state-of-the-art parameter efficiency (225.8M) on edge devices with competitive image quality. Additionally, Hybrid SD reduces the cloud cost by 66% with edge-cloud collaborative inference.
format Preprint
id arxiv_https___arxiv_org_abs_2408_06646
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Hybrid SD: Edge-Cloud Collaborative Inference for Stable Diffusion Models
Yan, Chenqian
Liu, Songwei
Liu, Hongjian
Peng, Xurui
Wang, Xiaojian
Chen, Fangmin
Fu, Lean
Mei, Xing
Computer Vision and Pattern Recognition
Stable Diffusion Models (SDMs) have shown remarkable proficiency in image synthesis. However, their broad application is impeded by their large model sizes and intensive computational requirements, which typically require expensive cloud servers for deployment. On the flip side, while there are many compact models tailored for edge devices that can reduce these demands, they often compromise on semantic integrity and visual quality when compared to full-sized SDMs. To bridge this gap, we introduce Hybrid SD, an innovative, training-free SDMs inference framework designed for edge-cloud collaborative inference. Hybrid SD distributes the early steps of the diffusion process to the large models deployed on cloud servers, enhancing semantic planning. Furthermore, small efficient models deployed on edge devices can be integrated for refining visual details in the later stages. Acknowledging the diversity of edge devices with differing computational and storage capacities, we employ structural pruning to the SDMs U-Net and train a lightweight VAE. Empirical evaluations demonstrate that our compressed models achieve state-of-the-art parameter efficiency (225.8M) on edge devices with competitive image quality. Additionally, Hybrid SD reduces the cloud cost by 66% with edge-cloud collaborative inference.
title Hybrid SD: Edge-Cloud Collaborative Inference for Stable Diffusion Models
topic Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2408.06646