BootPIG: Bootstrapping Zero-Shot Personalized Image Generation Capabilities in Pretrained Diffusion Models

Senthil Purushwalkam, Akash Gokul, Shafiq Joty, Nikhil Naik

TL;DR

BootPIG is a new architecture that enables "zero-shot" personalization for text-to-image models, allowing users to generate images of specific objects (like a favorite toy or a specific pet) instantly without any per-object finetuning. By using a clever "bootstrapped" training process with synthetic data, the model can be trained in just one hour and outperforms existing state-of-the-art methods in both speed and fidelity.

What Problem Does This Paper Address?

While modern text-to-image models like Stable Diffusion are incredibly powerful, they struggle with "personalization." If you ask for "a dog in a hat," you get a generic dog. If you want your specific dog, you typically have to use techniques like DreamBooth, which require "test-time finetuning"—essentially training a mini-model for 20–60 minutes just for that one dog.

Existing "zero-shot" alternatives (which don't require finetuning) usually rely on external image encoders like CLIP. However, these often act as a bottleneck, losing the fine-grained details (like the specific pattern on a ceramic mug or the unique spots on a cat) that make an object "personal." Furthermore, these models often require massive datasets and days of compute to train.

Methods

The authors introduce BootPIG (Bootstrapping Zero-shot Personalized Image Generation), which relies on two primary innovations:

  1. The Architecture (Reference Self-Attention): Instead of using a separate image encoder, BootPIG uses two replicas of the Stable Diffusion UNet. One (the Reference UNet) extracts features from the user's reference image. The other (the Base UNet) generates the new image. They introduce a Reference Self-Attention (RSA) layer where the generation process "attends" to the features of the reference image. This allows the model to "borrow" exact textures and shapes directly from the source.
  2. Bootstrapped Training: To avoid the need for a massive, human-curated dataset of "same object in different scenes," the authors used an automated pipeline:
  3. ChatGPT generated diverse captions (e.g., "a tricycle on a driveway").
  4. Stable Diffusion generated the images.
  5. Segment Anything Model (SAM) extracted the main object to create a "reference image" on a white background. This created 200,000 synthetic triplets (Reference Image, Target Image, Caption) to train the model.

Datasets

  • Training: A synthetic dataset of 200,000 triplets generated using the ChatGPT + Stable Diffusion + SAM pipeline described above.
  • Evaluation: The DreamBooth dataset, a standard benchmark containing 30 subjects (ranging from clocks to dogs) and 25 diverse prompts per subject.

Key Insights and Ideas

  • AI Training AI: The most striking insight is that a model can learn to personalize by training on images generated by itself (or its peers). By using synthetic data, the authors bypassed the "data scarcity" problem that usually plagues personalization research.
  • Minimalist Architecture: Unlike other methods that add heavy new modules, BootPIG makes minimal modifications to the original UNet. By reusing the weights of the pretrained model for the Reference UNet, it ensures the features being "passed" are already in a "language" the generator understands.
  • Efficiency is King: While other zero-shot models take days to train, BootPIG reaches state-of-the-art performance in just one hour on 16 A100 GPUs. This makes the approach highly accessible for rapid iteration.

Key Results

  • Quantitative Superiority: On the DreamBooth benchmark, BootPIG achieved a CLIP-I score of 79.7 and a DINO score of 67.4 (measuring subject fidelity), outperforming other zero-shot methods like BLIP-Diffusion and ELITE.
  • Prompt Alignment: It maintained a higher CLIP-T score (31.1) than competitors, meaning it follows the text prompt (e.g., "wearing a hat") more accurately without letting the reference image "overpower" the instructions.
  • User Preference: In a human study, users preferred BootPIG generations over DreamBooth (a finetuning method) and ELITE (a zero-shot method) for both subject fidelity and how well the image matched the text prompt.

Limitations and Future Work

  • Appearance-Changing Prompts: The model struggles when a prompt asks to fundamentally change the object's shape (e.g., "a cube-shaped dog"). Because it was trained on synthetic data where the reference and target objects match perfectly, it hasn't learned how to "deform" an object while keeping its identity.
  • Multiple Instances: Occasionally, the model generates multiple copies of the reference object in a single scene.
  • Base Model Constraints: BootPIG is built on top of Stable Diffusion 2.1; therefore, it inherits any underlying biases or limitations in image quality present in that base model.
  • Future Directions: The authors suggest that improving the synthetic data to include "shape-shifting" examples could help the model handle more complex creative prompts.

Summary updated

BibTeX
@inproceedings{purushwalkam2024bootpig,
  author = {Senthil Purushwalkam and Akash Gokul and Shafiq Joty and Nikhil Naik},
  title = {{BootPIG: Bootstrapping Zero-Shot Personalized Image Generation Capabilities in Pretrained Diffusion Models}},
  booktitle = {Workshops @ ECCV},
  year = {2024},
  doi = {10.1007/978-3-031-91907-7\_15},
}

Loading related content...

Figure