Pick-and-Draw: Training-free Semantic Guidance for Text-to-Image Personalization

Henglei Lv, Jiayu Xiao, Liang Li, Qingming Huang

TL;DR

Pick-and-Draw is a training-free, plug-and-play semantic guidance method that significantly boosts both identity consistency and generative diversity in text-to-image personalization. By decoupling the generation process into appearance transfer ("picking") and layout generation ("drawing"), it mitigates the severe overfitting common in fine-tuning methods. Remarkably, it can achieve high-fidelity personalization using as few as a single reference image without updating any model weights.

What Problem Does This Paper Address?

Text-to-image personalization allows users to guide diffusion models to generate images of a specific subject—like a unique toy or a pet dog—in diverse new contexts based on text prompts.

However, existing fine-tuning methods (such as DreamBooth or Textual Inversion) suffer from severe overfitting and mode collapse, especially when only a single or few reference images are available. Instead of learning the abstract concept of the subject, the diffusion network simply memorizes the entire reference image, including its specific pose, background, and lighting. Consequently, when a user asks to see their dog "swimming in water," the model struggles to break away from the original indoor background it memorized. Balancing subject fidelity (identity consistency) with text-prompt flexibility (generative diversity) remains a major hurdle.

Methods

Pick-and-Draw introduces a training-free inference-time surgery that guides the latent denoising process using two separate energy functions. The pipeline mimics a human painting process: picking colors from an appearance palette and drawing outlines based on a structural template.

Figure 2: Overall pipeline of our proposed Pick-and-Draw. We iteratively refine the generative outcomes via appearance picking and layout drawing, which is achieved by optimizing a designed score function. In appearance picking, we pick saliency-aware features from certain cross attention decoder layers, and transfer the appearance cues by minimizing the Unidirectional Relaxed Earth Movers Distance (UREMD), aiming to boost identity consistency. For layout drawing, we extract cross attention maps in every cross attention layer, smooth them with a Gaussian kernel, then minimize the Frobenius norm to draw the subject outline. This localizes the appearance transfer within the subject- relative regions and introduces novel layout from the vanilla Stable Diffusion, so as to improve generative diversity.
  1. Appearance Picking Guidance: The reference image is first inverted into the diffusion latent space using Null-Text Inversion to recreate its feature trajectory. Layer-wise cross-attention maps are thresholded to create a salient binary mask around the target subject, isolating its features to construct an "appearance palette." During the generation of the new image, the model minimizes the Unidirectional Relaxed Earth Mover’s Distance (UREMD) between the generated features and the reference palette. This ensures the fine-grained visual textures of the subject are transferred without rigidly locking down its shape or position.

  2. Layout Drawing Guidance: To ensure the model doesn't overfit to the reference image's pose or background, a parallel generation is run using vanilla Stable Diffusion with the target text prompt to act as a layout template. Pick-and-Draw extracts cross-attention maps from all layers of both the personalized and vanilla models, applies a Gaussian smoothing kernel to eliminate noise, and minimizes the Frobenius norm between them. This forces the personalized model to inherit the rich, diverse layout and contextual priors of the base model.

Datasets

The authors evaluated their approach on DreamBench, the standard benchmark for text-to-image personalization.

  • Composition: 30 unique subjects (21 objects and 9 live subjects/pets).
  • Evaluation Setup: 25 distinct text prompts per subject testing recontextualization and property modification.
  • Scale: 4 images were generated per prompt, resulting in a total evaluation dataset of 3,000 images.

Key Insights and Ideas

  • Decoupling Content from Structure: Rather than forcing a neural network to compromise its weights to learn a new object, guiding the latent space via attention maps allows independent control over what the subject looks like versus where and how it is positioned.
  • Granularity of Attention Layers: The authors observed that different layers of the UNet contain varying structural resolutions. Specifically, $32 \times 32$ resolution maps in the decoder are optimal for semantic appearance picking because they capture distinct regions of the subject while ignoring background noise.
Illustration of cross-attention maps at different resolutions
  • Zero-Shot Personalization: Surprisingly, Pick-and-Draw can be applied directly to vanilla Stable Diffusion without any prior fine-tuning. If the base model naturally generates an object of a similar shape and size, this method can inject the reference identity on the fly.

Key Results

The authors integrated Pick-and-Draw into three prominent baselines: Textual Inversion, DreamBooth, and BLIP-Diffusion.

Quantitative Performance

Evaluated via DINO/CLIP-I (subject fidelity) and CLIP-T (image-text alignment) scores on DreamBench:

  • DreamBooth Integration: Boosted the DINO score from 0.616 to 0.696 and improved the CLIP-T score from 0.297 to 0.303.
  • Stable Diffusion (Zero-Shot): Directly applying Pick-and-Draw to vanilla Stable Diffusion raised its DINO score from 0.320 to 0.552, achieving performance comparable to fully fine-tuned Textual Inversion without a single training step.

Qualitative Performance

As shown in the qualitative results, baselines without Pick-and-Draw frequently fail to generate complex backgrounds (like a "blue house" or "sunflowers") or completely distort the subject during geometric modifications. Pick-and-Draw successfully isolates the subject's identity, allowing it to seamlessly blend into highly diverse environments.

Figure 1: Given a single reference image, Pick-and-Draw con- sistently improves identity consistency and image-text alignment over various personalization methods, including Textual Inversion, DreamBooth, and BLIP-Diffusion. The text prompt is “A photo of a dog in water”. Additionally, Directly applying Pick-and-Draw on vanilla Stable Diffusion also produces acceptable outcomes.

Limitations and Future Work

While powerful, Pick-and-Draw is bounded by the capabilities of the underlying vanilla diffusion model. If vanilla Stable Diffusion generates a flawed or highly inaccurate layout prior for a given prompt (e.g., drawing an object at an incorrect scale or orientation), the layout guidance will pass this error down, causing the appearance transfer to fail or look incomplete.

Additionally, if the baseline model's generated subject shape differs too drastically from the reference image, the appearance transfer can become artifacted. The authors suggest that future work should focus on making training-free single-image personalization more robust to extreme pose and shape variations.

Summary updated

Abstract

Diffusion-based text-to-image personalization have achieved great success in generating subjects specified by users among various contexts. Even though, existing finetuning-based methods still suffer from model overfitting, which greatly harms the generative diversity, especially when given subject images are few. To this end, we propose Pick-and-Draw, a training-free semantic guidance approach to boost identity consistency and generative diversity for personalization methods. Our approach consists of two components: appearance picking guidance and layout drawing guidance. As for the former, we construct an appearance palette with visual features from the reference image, where we pick local patterns for generating the specified subject with consistent identity. As for layout drawing, we outline the subject's contour by referring to a generative template from the vanilla diffusion model, and inherit the strong image prior to synthesize diverse contexts according to different text conditions. The proposed approach can be applied to any personalized diffusion models and requires as few as a single reference image. Qualitative and quantitative experiments show that Pick-and-Draw consistently improves identity consistency and generative diversity, pushing the trade-off between subject fidelity and image-text fidelity to a new Pareto frontier.
BibTeX
@inproceedings{lv2024pick,
  author = {Henglei Lv and Jiayu Xiao and Liang Li and Qingming Huang},
  title = {{Pick-and-Draw: Training-free Semantic Guidance for Text-to-Image Personalization}},
  booktitle = {ACM Multimedia},
  year = {2024},
  doi = {10.1145/3664647.3680658},
}
Figure