Exploring the latent space of diffusion models directly through singular value decomposition
Li Wang, Boyan Gao, Yanran Li, Zhao Wang, Xiaosong Yang, David A. Clifton, Jun Xiao
TL;DR
The paper tackles the challenge of interpreting and editing the latent space of diffusion models by performing Singular Value Decomposition directly on latent codes across diffusion time steps. It reveals three key properties of latent subspaces and introduces an Attribute Vector Integration framework that learns to embed new attributes from paired prompts without data collection or auxiliary spaces, using a learned singular-value predictor and targeted loss terms. Extensive experiments across vision datasets and text-to-image pipelines demonstrate improved attribute control with preserved identity fidelity, supported by theoretical analysis of edit fidelity. The approach offers a data-free, theoretically grounded pathway to flexible image editing within the diffusion latent space, with potential for broad impact on controllable image synthesis and manipulation.
Abstract
Despite the groundbreaking success of diffusion models in generating high-fidelity images, their latent space remains relatively under-explored, even though it holds significant promise for enabling versatile and interpretable image editing capabilities. The complicated denoising trajectory and high dimensionality of the latent space make it extremely challenging to interpret. Existing methods mainly explore the feature space of U-Net in Diffusion Models (DMs) instead of the latent space itself. In contrast, we directly investigate the latent space via Singular Value Decomposition (SVD) and discover three useful properties that can be used to control generation results without the requirements of data collection and maintain identity fidelity generated images. Based on these properties, we propose a novel image editing framework that is capable of learning arbitrary attributes from one pair of latent codes destined by text prompts in Stable Diffusion Models. To validate our approach, extensive experiments are conducted to demonstrate its effectiveness and flexibility in image editing. We will release our codes soon to foster further research and applications in this area.
