SwiftBrush V2: Make Your One-Step Diffusion Model Better Than Its Teacher

Trung Tuan Dao, Thuan Hoang Nguyen, Thanh Le, Duc Hong Vu, Khoi Nguyen, Cuong Pham, Anh Tuan Tran

Abstract

SwiftBrush v2 is a state-of-the-art one-step text-to-image diffusion model that achieves a significant milestone: it outperforms its multi-step "teacher" model. By combining adversarial initialization, Variational Score Distillation (VSD), and a novel clamped CLIP loss, the researchers achieved a record-breaking FID of 8.14 on the COCO benchmark. This work demonstrates that one-step generation can deliver high quality and diversity, challenging the traditional trade-offs in model distillation.

Introduction

Standard diffusion models, such as Stable Diffusion (SD), generate high-fidelity images but are computationally expensive, typically requiring 25–50 sampling steps to iteratively denoise an image. This high latency limits their utility in real-time or on-device applications. To address this, researchers have developed "one-step" models, which generally fall into two categories:

  1. Adversarial Methods (e.g., SD Turbo): These models use GAN-like training to produce high-quality images in a single step. However, they often suffer from "mode collapse," leading to a lack of diversity in generated outputs—different prompts may result in very similar visual styles.
  2. Distillation Methods (e.g., SwiftBrush v1): These models use Variational Score Distillation (VSD) to learn from a teacher model. While they offer better diversity, they often produce blurry images or visual artifacts that detract from the overall quality.
High-quality, diverse images generated by SwiftBrush v2 in a single step.

SwiftBrush v2 breaks this quality-diversity trade-off, proving that a distilled student model can indeed surpass its multi-step teacher in both fidelity and variety.

Methodology

The authors introduced several key modifications to the standard distillation pipeline to achieve these results:

  • Smart Initialization: Instead of training from scratch, the student model is initialized with weights from SD Turbo. This provides a strong foundation for image quality and sharpness before the distillation process begins.
  • Clamped CLIP Loss: CLIP loss is frequently used to improve the alignment between text prompts and generated images. However, over-optimization can lead to "deep-fried" images with over-saturated colors and unnatural textures. SwiftBrush v2 employs a ReLU-based clamping mechanism that halts optimization once a specific alignment threshold is reached, thereby preserving natural image textures while ensuring the output matches the prompt.
  • Resource-Efficient Training: By utilizing LoRA (Low-Rank Adaptation) and TinyVAE (a compressed image decoder), the researchers enabled high-quality training on consumer-grade hardware (such as 40GB A100 GPUs) without sacrificing performance.
  • Model Merging: The final SwiftBrush v2 model is a fusion of two specialized models: one fine-tuned for high diversity and another trained for high alignment using LoRA and CLIP loss. These are combined via simple weight interpolation to balance the strengths of both approaches.

Datasets and Evaluation

The model was trained on a massive prompt-only dataset of 3.3 million prompts (1.3M from JourneyDB and 2M from LAION). Since the distillation process is "image-free," it only requires text prompts, making it highly scalable. A smaller set of 200K image-text pairs from LAION-Aesthetic was used for final regularization to polish the results.

Evaluation was conducted on the MS COCO-2014 validation set, focusing on FID (quality), CLIP score (alignment), and Precision/Recall (fidelity/diversity).

Key Results and Insights

SwiftBrush v2 achieved a state-of-the-art FID of 8.14 on COCO-2014, significantly better than its 25-step teacher (SDv2.1, which scores 9.64) and previous one-step models like DMD (FID 11.49).

Comparison of SwiftBrush v2 against SD Turbo, SDv2.1, and SwiftBrush v1. SwiftBrush v2 (Ours) is the only model to achieve high quality, high diversity, and high speed simultaneously.

Crucially, the model maintains high diversity, achieving a Recall of 0.52, which is substantially higher than SD Turbo’s 0.35. This indicates that SwiftBrush v2 generates a much wider variety of images for the same prompts, avoiding the mode collapse seen in adversarial models. Human preference studies further support these findings, with participants consistently rating SwiftBrush v2 as equal to or better than the multi-step teacher in both quality and diversity.

Conclusion and Future Work

SwiftBrush v2 demonstrates that one-step diffusion models can match or exceed the performance of their multi-step counterparts. By intelligently combining adversarial initialization with score distillation and alignment losses, the authors have created a model that is both fast and high-performing. While the model still inherits some compositional limitations from its teacher, it represents a major advancement in efficient image generation. Future research will explore auxiliary losses targeting cross-attention mechanisms to further improve spatial reasoning.

Summary updated

BibTeX
@inproceedings{dao2024swiftbrush,
  author = {Trung Tuan Dao and Thuan Hoang Nguyen and Thanh Le and Duc Hong Vu and Khoi Nguyen and Cuong Pham and Anh Tuan Tran},
  title = {{SwiftBrush V2: Make Your One-Step Diffusion Model Better Than Its Teacher}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-73007-8\_11},
}
Figure