Exploring Representation-Aligned Latent Space for Better Generation
Wanghan Xu, Xiaoyu Yue, Zidong Wang, Yao Teng, Wenlong Zhang, Xihui Liu, Luping Zhou, Wanli Ouyang, Lei Bai
TL;DR
This work tackles the semantic sparsity of VAE latent spaces used in latent diffusion models and introduces Representation-Aligned Latent Space (ReaLS), which injects semantic priors by aligning VAE latents with DINOv2 features. By training an alignment network to map latents to both patch- and global-level semantic representations, and balancing KL and alignment losses, ReaLS yields a more structured latent space. Diffusion models trained in this space achieve notable gains in generation quality (FID improvements around 15%) and gain capability for training-free downstream tasks such as segmentation and depth estimation. The approach remains model-agnostic to diffusion backbones and shows promise for future exploration, including combining latent-space semantics with feature-space semantics (e.g., REPA) for even larger gains.
Abstract
Generative models serve as powerful tools for modeling the real world, with mainstream diffusion models, particularly those based on the latent diffusion model paradigm, achieving remarkable progress across various tasks, such as image and video synthesis. Latent diffusion models are typically trained using Variational Autoencoders (VAEs), interacting with VAE latents rather than the real samples. While this generative paradigm speeds up training and inference, the quality of the generated outputs is limited by the latents' quality. Traditional VAE latents are often seen as spatial compression in pixel space and lack explicit semantic representations, which are essential for modeling the real world. In this paper, we introduce ReaLS (Representation-Aligned Latent Space), which integrates semantic priors to improve generation performance. Extensive experiments show that fundamental DiT and SiT trained on ReaLS can achieve a 15% improvement in FID metric. Furthermore, the enhanced semantic latent space enables more perceptual downstream tasks, such as segmentation and depth estimation.
