[Paper Review] Understanding the (un)interpretability of natural image distributions using generative models
This paper investigates the interpretability of probability density functions learned by generative models on natural image distributions. It proposes estimating densities not in pixel space, but in the latent space of GANs, where distances correlate with semantic similarity, yielding intuitive inliers and outliers—demonstrating that latent-space densities are far more interpretable than pixel-space densities.
Probability density estimation is a classical and well studied problem, but standard density estimation methods have historically lacked the power to model complex and high-dimensional image distributions. More recent generative models leverage the power of neural networks to implicitly learn and represent probability models over complex images. We describe methods to extract explicit probability density estimates from GANs, and explore the properties of these image density functions. We perform sanity check experiments to provide evidence that these probabilities are reasonable. However, we also show that density functions of natural images are difficult to interpret and thus limited in use. We study reasons for this lack of interpretability, and show that we can get interpretability back by doing density estimation on latent representations of images.
Motivation & Objective
- To investigate why probability density estimates for natural image distributions, even when learned by powerful GANs, are difficult to interpret in pixel space.
- To explore whether density estimation in the latent space of GANs can restore interpretability by aligning density with semantic similarity.
- To evaluate whether high- and low-probability images in latent space correspond to intuitive notions of typicality and anomaly.
- To compare the behavior of pixel-space vs. latent-space density estimators in capturing semantic structure and distributional modes.
Proposed method
- Propose a method to extract explicit probability density estimates from GANs by leveraging the latent code z of a generated image, using the Jacobian determinant to adjust for the non-bijective mapping from z to image space.
- Train a regressor to predict the probability of any image based on its latent code z, effectively learning a density function over the latent space.
- Use the standard change-of-variables formula for non-bijective mappings, approximating the density using the Gaussian prior on z and the Jacobian of the generator.
- Perform sanity checks by comparing probabilities of real vs. generated images, and analyzing the visual quality of top- and bottom-probability samples.
- Compare pixel-space and latent-space density estimation using metrics like histogram spread and visual inspection of inliers/outliers.
- Use pre-trained GANs (e.g., StackGAN on CUB, StyleGAN on CIFAR/MNIST) to extract latent codes and evaluate density consistency across domains.
Experimental results
Research questions
- RQ1Why do high-probability images in pixel space often appear as simple, isolated objects with large backgrounds, contradicting intuitive notions of typicality?
- RQ2Can density estimation in the latent space of a GAN produce more interpretable inliers and outliers that align with semantic content?
- RQ3Why do GANs assign higher probabilities to MNIST digits (especially '1's) than to many real CIFAR-10 images, despite never having seen them?
- RQ4Does the lack of interpretability in pixel-space densities stem from the mismatch between Euclidean distance and semantic similarity?
- RQ5Can latent-space density estimation recover a more intuitive notion of distributional outliers, such as semantically anomalous images?
Key findings
- Images with the highest probability in pixel space are typically simple, isolated objects (e.g., a single '1' digit) with large, uniform backgrounds, contradicting intuitive expectations of typicality.
- Low-probability images in pixel space often exhibit semantic anomalies such as unnatural object configurations (e.g., a car with its hood open) or strange backgrounds (e.g., a green sky in an airplane image).
- Even when trained on CIFAR-10, GANs assign higher probabilities to MNIST digits than to most CIFAR-10 images, indicating that pixel-space densities do not reflect semantic distributional structure.
- In contrast, latent-space density estimation produces more uniform probability distributions and correctly identifies CIFAR-10 images as inliers and MNIST images as outliers when trained on CIFAR-10.
- The most likely images in latent space show diversity across classes and are semantically coherent, with high probability tied to well-defined, prominent foreground objects.
- The least likely images in latent space are semantically anomalous—e.g., objects in unusual poses or with inconsistent backgrounds—confirming that the model captures meaningful outlier behavior.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.