FreeU : Free Lunch in Diffusion U-Net

S-Lab, Nanyang Technological University

We propose FreeU, a method that substantially improves diffusion model sample quality at no costs: no training, no additional parameter introduced, and no increase in memory or sampling time.

Video

Abstract

In this paper, we uncover the untapped potential of diffusion U-Net, which serves as a "free lunch" that substantially improves the generation quality on the fly. We initially investigate the key contributions of the U-Net architecture to the denoising process and identify that its main backbone primarily contributes to denoising, whereas its skip connections mainly introduce high-frequency features into the decoder module, causing the network to overlook the backbone semantics. Capitalizing on this discovery, we propose a simple yet effective method-termed "FreeU" - that enhances generation quality without additional training or finetuning. Our key insight is to strategically re-weight the contributions sourced from the U-Net's skip connections and backbone feature maps, to leverage the strengths of both components of the U-Net architecture. Promising results on image and video generation tasks demonstrate that our FreeU can be readily integrated to existing diffusion models, e.g., Stable Diffusion, DreamBooth, ModelScope, Rerender and ReVersion, to improve the generation quality with only a few lines of code. All you need is to adjust two scaling factors during inference.

FreeU Framework

We propose FreeU, a method that substantially improves diffusion model sample quality at no costs: no training, no additional parameter introduced, and no increase in memory or sampling time.

Text to Image

Samples generated by SD-XL with or without FreeU.

Samples generated by Stable Diffusion with or without FreeU.

ControlNet

Samples generated by ControlNet with or without FreeU.

Latent Consistency Model

Samples generated by LCM with or without FreeU.

ScaleCrafter

4096 × 4096 SD-XL Images generated by ScaleCrafter with or without FreeU.

Text to Video

Samples generated by ModelScope with or without FreeU.

Personalized Text to Image

Samples generated by DreamBooth with or without FreeU.

Relation Inversion

Samples generated by ReVersion with or without FreeU.

Video-to-Video

Samples generated by Rerender with or without FreeU.

BibTeX

@inproceedings{si2023freeu,
  author    = {Si, Chenyang and Huang, Ziqi and Jiang, Yuming and Liu, Ziwei},
  title     = {FreeU: Free Lunch in Diffusion U-Net},
  booktitle = {CVPR},
  year      = {2024},
}