CUPID: Contextual Understanding of Prompt-conditioned Image Distributions
Yayan Zhao, Mingwei Li, Matthew Berger
TL;DR
CUPID addresses the challenge of understanding prompt-conditioned image distributions from text-to-image diffusion models by focusing on object-level densities. It introduces density-based embeddings (dSNE) that map high-dimensional object features to a low-dimensional space while preserving density estimates, enabling analysis of typical vs. rare object styles and object dependencies via joint densities $P_d(z_{i,s}, z_{j,t})$ and marginals $P_d(z_{i,s})$. The method relies on RAM-based object localization and Swin features to extract object representations, and KDE-based density estimation to quantify distributions, with conditional densities and PMI to reveal dependencies. An interactive visualization combines 1D violin density plots, 2D marginalized density scatterplots, linked brushing, and projection steering to verify prompt faithfulness, discover unspecified objects, and analyze scene-assembly biases.results on SDXL-generated scenes reveal language-understanding gaps and biases in object co-occurrence and perspective, illustrating CUPID’s potential as a diagnostic and discovery tool for prompt-conditioned image synthesis.
Abstract
We present CUPID: a visualization method for the contextual understanding of prompt-conditioned image distributions. CUPID targets the visual analysis of distributions produced by modern text-to-image generative models, wherein a user can specify a scene via natural language, and the model generates a set of images, each intended to satisfy the user's description. CUPID is designed to help understand the resulting distribution, using contextual cues to facilitate analysis: objects mentioned in the prompt, novel, synthesized objects not explicitly mentioned, and their potential relationships. Central to CUPID is a novel method for visualizing high-dimensional distributions, wherein contextualized embeddings of objects, those found within images, are mapped to a low-dimensional space via density-based embeddings. We show how such embeddings allows one to discover salient styles of objects within a distribution, as well as identify anomalous, or rare, object styles. Moreover, we introduce conditional density embeddings, whereby conditioning on a given object allows one to compare object dependencies within the distribution. We employ CUPID for analyzing image distributions produced by large-scale diffusion models, where our experimental results offer insights on language misunderstanding from such models and biases in object composition, while also providing an interface for discovery of typical, or rare, synthesized scenes.
