What Secrets Do Your Manifolds Hold? Understanding the Local Geometry of Generative Models
Ahmed Imtiaz Humayun, Ibtihel Amara, Cristina Vasconcelos, Deepak Ramachandran, Candice Schumann, Junfeng He, Katherine Heller, Golnoosh Farnadi, Negar Rostamzadeh, Mohammad Havaei
TL;DR
This work analyzes the local geometry of pre-trained generative models by adopting continuous piecewise-linear (CPWL) theory and defining three descriptors: local scaling $\psi_\omega$, local rank $\nu_\omega$, and local complexity $\delta_z$. It demonstrates that these descriptors correlate with downstream generation aspects such as aesthetics, diversity, and memorization across diffusion-based architectures, including DDPM, Diffusion Transformer, and Stable Diffusion, and distinguishes on-manifold from off-manifold regions. The authors also show that training a reward model on local scaling enables geometry-guided denoising to boost texture, diversity, and perceptual quality at the instance level. Overall, the study links the learned manifold’s geometry to generation outcomes and proposes geometry-driven tools for OOD detection and targeted guidance, while acknowledging computational costs and dependence on training dynamics.
Abstract
Deep Generative Models are frequently used to learn continuous representations of complex data distributions using a finite number of samples. For any generative model, including pre-trained foundation models with Diffusion or Transformer architectures, generation performance can significantly vary across the learned data manifold. In this paper we study the local geometry of the learned manifold and its relationship to generation outcomes for a wide range of generative models, including DDPM, Diffusion Transformer (DiT), and Stable Diffusion 1.4. Building on the theory of continuous piecewise-linear (CPWL) generators, we characterize the local geometry in terms of three geometric descriptors - scaling ($ψ$), rank ($ν$), and complexity/un-smoothness ($δ$). We provide quantitative and qualitative evidence showing that for a given latent-image pair, the local descriptors are indicative of generation aesthetics, diversity, and memorization by the generative model. Finally, we demonstrate that by training a reward model on the local scaling for Stable Diffusion, we can self-improve both generation aesthetics and diversity using `geometry reward' based guidance during denoising.
