DreamIdentity: Enhanced Editability for Efficient Face-Identity Preserved Image Generation

Zhuowei Chen, Shancheng Fang, Wei Liu, Qian He, Mengqi Huang, Zhendong Mao

Introduction

Large-scale text-to-image (T2I) models like Stable Diffusion have revolutionized content creation, yet "personalizing" these models to generate a specific individual remains a significant challenge. Current solutions typically fall into two categories: optimization-based methods like DreamBooth, which require lengthy fine-tuning for every new identity, and encoder-based methods like ELITE, which are fast but often fail to separate a person's identity from the specific context of the input photo (lighting, background, etc.). This "reconstruction bias" severely limits the editability of the generated images.

DreamIdentity introduces an optimization-free framework that achieves high-quality, identity-preserved generation in just 0.04 seconds. By rethinking the encoder architecture and training strategy, it offers a 7% improvement in text-alignment over previous state-of-the-art methods.

Methodology: Bridging Speed and Editability

The core of DreamIdentity lies in two primary innovations: the $M^2$ ID Encoder and a self-augmented learning strategy.

The $M^2$ ID Encoder

A key insight of the paper is that general-purpose vision models like CLIP are insufficient for precise face identification. DreamIdentity instead utilizes a ViT-based backbone pre-trained on large-scale face recognition datasets. To capture the full spectrum of facial features, the model extracts multi-scale features from the 3rd, 6th, 9th, and 12th layers. These are then projected into multiple pseudo-word embeddings ($k=2$). This "multi-word" approach provides the necessary bandwidth to represent complex facial details without overwhelming the T2I model's ability to follow text prompts.

Self-Augmented Editability Learning

To solve the reconstruction bias, the authors developed a "self-augmented" training paradigm. Since paired data of the same person in various styles is scarce, they created a synthetic dataset using Stable Diffusion to generate images of over 1,000 celebrities in diverse roles (e.g., "as a nurse," "watercolor style"). By training the encoder to map a "clean" celebrity face to the embeddings required to generate these edited versions, the model learns to extract pure identity while ignoring environmental noise.

Key Results and Evaluation

DreamIdentity was evaluated using the FFHQ and a newly created self-augmented dataset, testing on 100 unseen faces to ensure robust generalization.

DreamIdentity demonstrates high-quality identity preservation across diverse prompts.

Performance and Quality

Quantitatively, DreamIdentity outperforms baselines in both text-alignment and face-similarity. Qualitatively, as seen in the figure above, the model successfully places subjects into complex prompts—such as "rainbow scarf" or "comic style"—where competing models often struggle to modify the subject's clothing or the overall image style.

The system's efficiency is perhaps its most significant advantage. At 0.04 seconds per face, it is orders of magnitude faster than DreamBooth (4 minutes) or Textual Inversion (20 minutes), enabling near-instantaneous personalization for end-users.

Conclusion and Future Directions

DreamIdentity effectively addresses the trade-off between speed and editability in personalized image generation. By moving away from general-purpose encoders and focusing on "editability-first" training, it provides a practical path for real-time applications. Future work may involve integrating tools like ControlNet for better pose and gaze control, as well as adapting the framework to newer base T2I models.

Summary updated

BibTeX
@inproceedings{chen2024dreamidentity,
  author = {Zhuowei Chen and Shancheng Fang and Wei Liu and Qian He and Mengqi Huang and Zhendong Mao},
  title = {{DreamIdentity: Enhanced Editability for Efficient Face-Identity Preserved Image Generation}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i2.27891},
}
Figure