Progressive Knowledge Distillation Of Stable Diffusion XL Using Layer Level Loss

Yatharth Gupta, Vishnu V. Jaddipal, Harish Prabhala, Sayak Paul, Patrick Von Platen
1/5/2024
cs.CVcs.AI

No official code found. Best implementation: segmind/SSD-1B (181 stars, Apache-2.0, last commit 2024-04-15).

Abstract

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.

View on arXivView PDF

Code Implementations(1)

segmind/SSD-1BCommunity100%
Apache-2.0

SSD-1B, an open-source text-to-image model, outperforming previous versions by being 50% smaller and 60% faster than SDXL.

18121PythonOct 15, 20232 years agoApache-2.0

Similar Papers

Cite this paper

@article{gupta2024progressive,
  title  = {Progressive Knowledge Distillation Of Stable Diffusion XL Using Layer Level Loss},
  author = {Yatharth Gupta and Vishnu V. Jaddipal and Harish Prabhala and Sayak Paul and Patrick Von Platen},
  year   = {2024},
  eprint = {2401.02677},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2401.02677v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2401.02677.svg)](https://codeofpaper.com/paper/2401.02677)

Discussion