JeDi: Joint-Image Diffusion Models for Finetuning-Free Personalized Text-to-Image Generation

Yu Zeng, Vishal M. Patel, Haochen Wang, Xun Huang, Ting-Chun Wang, Ming-Yu Liu, Yogesh BalajiCVPR 2024

Abstract

Personalized text-to-image generation allows users to create images of specific possessions in novel scenes. However, existing methods typically require time-consuming finetuning or use encoders that sacrifice visual fidelity. We introduce Joint-Image Diffusion (JeDi), a finetuning-free technique that learns the joint distribution of multiple related text-image pairs sharing a common subject. By utilizing a novel coupled self-attention mechanism and a massive synthetic dataset, JeDi achieves state-of-the-art identity preservation and diversity without the need for per-subject optimization.

Introduction

Personalizing a text-to-image model usually involves a trade-off. Finetuning-based methods like DreamBooth offer high quality but require minutes of training per subject and often suffer from overfitting. Conversely, encoder-based methods provide instant results but often fail to capture fine-grained details, leading to generic outputs.

JeDi bridges this gap by treating personalization as a joint distribution problem. Instead of compressing a subject into a single vector, JeDi allows the model to attend directly to reference images during the generation process, maintaining high fidelity while remaining entirely finetuning-free.

JeDi demonstrates high-fidelity personalization across diverse contexts for subjects like a mouse and a cow sculpture without any finetuning.

Methodology: Coupled Self-Attention

The core innovation of JeDi is Coupled Self-Attention. In standard diffusion models, images in a batch are processed independently. JeDi modifies the U-Net architecture so that every pixel in the generated image can attend to every pixel in the reference images. This allows the model to adapt textures, shapes, and colors directly from the source material during denoising.

Furthermore, JeDi frames personalization as a specialized form of inpainting. At inference, reference images are treated as "known" parts of a set, and the model generates the "missing" target image based on a new text prompt. This process is enhanced by an image-based adaptation of classifier-free guidance, allowing users to balance faithfulness to the subject against adherence to the text prompt.

Data Strategy: The $S^3$ Dataset

To train a model to recognize "sameness" across different contexts, the authors developed the Synthetic Same-Subject ($S^3$) Dataset. This collection contains 1.6 million image sets. The pipeline uses ChatGPT for object descriptions and SDXL to create multi-pose collages of the same object, which are then processed with inpainting to ensure background diversity. This synthetic data is supplemented with frames from WebVid10M and Objaverse to provide naturalistic multi-view perspectives.

Key Results and Comparison

Quantitatively, JeDi significantly outperforms existing finetuning-free baselines like BLIP-Diffusion and ELITE in DINO and CLIP-I scores. Qualitatively, it avoids the common pitfalls of its competitors: it does not overfit to the background of reference images (a common issue for DreamBooth) and preserves unique identity better than encoder-based models.

Comparative results show that JeDi preserves input identity and maintains diversity, whereas DreamBooth often overfits and BLIP-Diffusion loses subject fidelity.

JeDi is highly efficient, generating personalized images in approximately 0.05 seconds per diffusion step on an A100 GPU. This makes it orders of magnitude faster than optimization-based approaches while delivering superior visual results on rare or unique subjects.

Conclusion and Future Work

JeDi represents a significant step forward in making personalized image generation accessible and high-quality. While currently limited to single-subject generation and subject to memory scaling constraints with high numbers of reference images, its success demonstrates that direct attention to reference pixels is a more powerful mechanism for identity preservation than feature compression. Future iterations may explore multi-subject support and integration with more advanced base architectures like SDXL.

Summary updated

BibTeX
@inproceedings{zeng2024jedi,
  author = {Yu Zeng and Vishal M. Patel and Haochen Wang and Xun Huang and Ting-Chun Wang and Ming-Yu Liu and Yogesh Balaji},
  title = {{JeDi: Joint-Image Diffusion Models for Finetuning-Free Personalized Text-to-Image Generation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2024},
  url = {https://openreview.net/forum?id=BKPQNSNoxD},
}
Figure