Smooth Diffusion: Crafting Smooth Latent Spaces in Diffusion Models
Authors:
- Jiayi GuoJGJiayi Guo
- Xingqian XuXXXingqian Xu
- Yifan PuYPYifan Pu
- Zanlin NiZNZanlin Ni
- Chaofei WangCWChaofei Wang
- Manushree VasuMVManushree Vasu
- Shiji SongSSShiji Song
- Gao HuangGHGao Huang
- Humphrey ShiHSHumphrey Shi
Preprint
Abstract
Recently, diffusion models have made remarkable progress in text-to-image (T2I) generation, synthesizing images with high fidelity and diverse contents. Despite this advancement, latent space smoothness within diffusion models remains largely unexplored. Smooth latent spaces ensure that a perturbation on an input latent corresponds to a steady change in the output image. This property proves beneficial in downstream tasks, including image interpolation, inversion, and editing. In this work, we expose the non-smoothness of diffusion latent spaces by observing noticeable visual fluctuations resulting from minor latent variations. To tackle this issue, we propose Smooth Diffusion, a new category of diffusion models that can be simultaneously high-performing and smooth. Specifically, we introduce Step-wise Variation Regularization to enforce the proportion between the variations of an arbitrary input latent and that of the output image is a constant at any diffusion training step. In addition, we devise an interpolation standard deviation (ISTD) metric to effectively assess the latent space smoothness of a diffusion model. Extensive quantitative and qualitative experiments demonstrate that Smooth Diffusion stands out as a more desirable solution not only in T2I generation but also across various downstream tasks. Smooth Diffusion is implemented as a plug-and-play Smooth-LoRA to work with various community models. Code is available at https://github.com/SHI-Labs/Smooth-Diffusion.Keywords
All Related Versions
This publication has 33 references indexed in Scilit:
- Uncovering the Disentanglement Capability in Text-to-Image Diffusion Models2023
- High-Resolution Image Synthesis with Latent Diffusion Models2022
- Vector Quantized Diffusion Model for Text-to-Image Synthesis2022
- Encoding in Style: a StyleGAN Encoder for Image-to-Image Translation2021
- In-Domain GAN Inversion for Real Image Editing2020
- Exploiting Deep Generative Prior for Versatile Image Restoration and Manipulation2020
- Analyzing and Improving the Image Quality of StyleGAN2020
- Image2StyleGAN++: How to Edit the Embedded Images?2020
- The Unreasonable Effectiveness of Deep Features as a Perceptual Metric2018
- Microsoft COCO: Common Objects in Context2014