Measuring Style Similarity in Diffusion Models
Gowthami Somepalli, Anubhav Gupta, Kamal Gupta, Shramay Palta, Micah Goldblum, Jonas Geiping, Abhinav Shrivastava, Tom Goldstein
TL;DR
This work tackles the challenge of attributing and measuring artistic style in diffusion-based image generation. It introduces LAION-Styles, a large multi-label dataset, and Contrastive Style Descriptors (CSD), a two-part learning objective that jointly captures style while remaining invariant to content. The authors demonstrate state-of-the-art zero-shot style retrieval on DomainNet and WikiArt, analyze Stable Diffusion 2.1 to reveal varying degrees of style replication across artists, and provide practical insights into how prompts influence style copying. By offering a public dataset and code, the paper provides a valuable toolkit for artists and practitioners to assess and understand style attribution and copying in generative models.
Abstract
Generative models are now widely used by graphic designers and artists. Prior works have shown that these models remember and often replicate content from their training data during generation. Hence as their proliferation increases, it has become important to perform a database search to determine whether the properties of the image are attributable to specific training data, every time before a generated image is used for professional purposes. Existing tools for this purpose focus on retrieving images of similar semantic content. Meanwhile, many artists are concerned with style replication in text-to-image models. We present a framework for understanding and extracting style descriptors from images. Our framework comprises a new dataset curated using the insight that style is a subjective property of an image that captures complex yet meaningful interactions of factors including but not limited to colors, textures, shapes, etc. We also propose a method to extract style descriptors that can be used to attribute style of a generated image to the images used in the training dataset of a text-to-image model. We showcase promising results in various style retrieval tasks. We also quantitatively and qualitatively analyze style attribution and matching in the Stable Diffusion model. Code and artifacts are available at https://github.com/learn2phoenix/CSD.
