ProSpect: Prompt Spectrum for Attribute-Aware Personalization of Diffusion Models

Yuxin Zhang, Weiming Dong, Fan Tang, Nisha Huang, Haibin Huang, Chongyang Ma, Tong-Yee Lee, Oliver Deussen, Changsheng Xu · DOI

TL;DR

This paper introduces ProSpect, a novel method for personalizing diffusion models by treating image generation as a multi-stage process. By analyzing how diffusion models generate images from low to high frequency information across different steps, ProSpect creates a "Prompt Spectrum Space" that allows for finer-grained control and disentanglement of visual attributes like material, style, and layout, enabling more flexible and accurate image editing.

What Problem Does This Paper Address?

Current methods for personalizing text-to-image diffusion models often struggle to precisely control and edit specific visual attributes (like material, style, or layout) of a single input image. While techniques like Textual Inversion and DreamBooth can incorporate new concepts, they often lack the ability to disentangle these attributes, leading to a loss of fidelity or unintended changes. This makes it difficult to perform fine-grained edits, such as changing only the material of an object while preserving its shape and style, or transferring a specific layout to a new scene. The core challenge is to represent and manipulate these distinct visual attributes independently within the diffusion model's generation process.

Methods

The paper's core innovation lies in understanding that diffusion models generate images progressively, starting with low-frequency information (like layout) and moving towards high-frequency details (like texture and material). They propose:

  • Prompt Spectrum Space (P*): Instead of a single textual conditioning for the entire diffusion process, P* divides the generation steps into multiple stages. Each stage is associated with a specific textual embedding, creating a "spectrum" of prompts that evolve over time.
  • ProSpect (Prompt Spectrum): This is a method for representing an image as a collection of these per-stage textual token embeddings. It essentially "inverts" an input image into a sequence of prompts, each corresponding to a specific stage of the diffusion model's generation.
  • Attribute Grouping: The learned embeddings in P* are grouped into categories based on the diffusion stage they influence: low-frequency (layout), medium-frequency (content), and high-frequency (material/style). This grouping is crucial for disentanglement.
  • Attribute Transfer and Editing: By replacing or modifying specific embeddings within the ProSpect representation, users can selectively edit attributes. For example, keeping the layout embeddings the same while changing the material embeddings allows for material transfer.

Datasets

The paper does not explicitly mention specific training datasets. However, it uses existing benchmarks and concepts for evaluation, including:

  • Nine concepts from previous papers for quantitative evaluation, covering objects like cats, teddy bears, and faces, with both easy and difficult prompts.
  • 30 pairs of attribute-object combinations (material, style, layout) for evaluating attribute distribution.
  • Reference images and text prompts are used throughout the experiments to demonstrate ProSpect's capabilities.

Key Insights and Ideas

  • Diffusion Models Generate by Frequency: The paper provides strong evidence that diffusion models generate images in order of increasing signal frequency: layout (low-frequency) first, then content (medium-frequency), and finally material/style (high-frequency). This is a fundamental insight into how these models work.
  • Stage-Specific Conditioning is Key: The step-by-step nature of diffusion models is not just a process but a mechanism that can be exploited for attribute disentanglement. Conditioning at different stages allows for targeted manipulation of specific visual aspects.
  • A Single Image Holds a "Prompt Spectrum": ProSpect demonstrates that a single reference image can be decomposed into a sequence of textual conditions that capture its various attributes at different stages of generation, offering a richer representation than a single concept embedding.
  • Disentanglement Enables True Editing: By separating attributes into different stages, ProSpect allows for more precise control, enabling users to change one attribute (e.g., material) without affecting others (e.g., layout or content), which is a significant improvement over previous methods.

Key Results

  • Improved Disentanglement and Controllability: ProSpect shows superior disentanglement and controllability compared to state-of-the-art methods like Textual Inversion and DreamBooth, as evidenced by both qualitative examples and quantitative evaluations (CLIP similarity scores).
  • Better Fidelity and Editability Balance: The method achieves a better balance between preserving the fidelity of the reference image and allowing for flexible editing, outperforming baselines in user studies.
  • Diverse Applications: ProSpect successfully demonstrates attribute-aware generation for material transfer, style transfer, and layout transfer, including complex scenarios like multi-attribute generation and image-to-image layout transfer.
  • Efficiency: ProSpect's training is noted to be faster than some other methods, taking approximately 20 minutes per image on an NVIDIA RTX 3090.

Limitations and Future Work

  • Domain Gap Limitations: While ProSpect can disentangle attributes, transferring materials between images with very large domain gaps might not always result in visually aesthetic outcomes.
  • Background Interference: In cases where the background is composed of similar objects, attribute modification might undesirably affect the entire image.
  • Speed: Although faster than some methods, ProSpect is still not as fast as certain encoder-based methods due to its iterative optimization process across multiple steps.
  • Future Work: The authors plan to further refine attribute disentanglement by exploring more detailed attribute divisions and recombination methods, as well as investigating the mutual impact of different textual conditions.

Summary updated

BibTeX
@article{zhang2023prospect,
  author = {Yuxin Zhang and Weiming Dong and Fan Tang and Nisha Huang and Haibin Huang and Chongyang Ma and Tong-Yee Lee and Oliver Deussen and Changsheng Xu},
  title = {{ProSpect: Prompt Spectrum for Attribute-Aware Personalization of Diffusion Models}},
  journal = {ACM Trans. Graphics},
  year = {2023},
  doi = {10.1145/3618342},
}
Figure