arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2401.02677cs.CVcs.AI
收藏

使用层级损失对Stable Diffusion XL进行渐进式知识蒸馏

Progressive Knowledge Distillation Of Stable Diffusion XL Using Layer Level Loss

Segmind;Hugging Face

Yatharth Gupta, Vishnu V. Jaddipal, Harish Prabhala, Sayak Paul, Patrick Von Platen

AI总结:

本文提出使用层级损失对Stable Diffusion XL进行渐进式知识蒸馏,通过移除U-Net中的残差网络和transformer块,构建了SSD-1B和Segmind-Vega两个紧凑型变体,在保持生成质量的同时显著减小了模型尺寸和延迟。

摘要:

Stable Diffusion XL (SDXL)凭借其多功能性和顶级的图像质量,已成为最佳的开源文本到图像(T2I)模型。高效解决SDXL模型的计算需求对于其更广泛的应用至关重要。在这项工作中,我们引入了两个缩小规模的变体,Segmind Stable Diffusion (SSD-1B)和Segmind-Vega,分别具有1.3B和0.74B参数的UNet,这是通过使用层级损失进行渐进式移除来实现的,重点是在保持生成质量的同时减小模型尺寸。我们在https://hf.co/Segmind上发布了这些模型权重。我们的方法涉及从SDXL的U-Net结构中消除残差网络和transformer块,从而显著减少了参数和延迟。我们的紧凑型模型通过利用迁移知识有效地模拟了原始SDXL,在与更大的数十亿参数级SDXL的对比中取得了有竞争力的结果。我们的工作强调了知识蒸馏结合层级损失在减小模型尺寸的同时保持SDXL高质量生成能力的有效性,从而促进了在资源受限环境中更易于部署的应用。

英文摘要:

Stable Diffusion XL (SDXL) has become the best open source text-to-image model (T2I) for its versatility and top-notch image quality. Efficiently addressing the computational demands of SDXL models is crucial for wider reach and applicability. In this work, we introduce two scaled-down variants, Segmind Stable Diffusion (SSD-1B) and Segmind-Vega, with 1.3B and 0.74B parameter UNets, respectively, achieved through progressive removal using layer-level losses focusing on reducing the model size while preserving generative quality. We release these models weights at https://hf.co/Segmind. Our methodology involves the elimination of residual networks and transformer blocks from the U-Net structure of SDXL, resulting in significant reductions in parameters, and latency. Our compact models effectively emulate the original SDXL by capitalizing on transferred knowledge, achieving competitive results against larger multi-billion parameter SDXL. Our work underscores the efficacy of knowledge distillation coupled with layer-level losses in reducing model size while preserving the high-quality generative capabilities of SDXL, thus facilitating more accessible deployment in resource-constrained environments.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑