DreamIdentity: Improved Editability for Efficient Face-identity Preserved Image Generation

Zhuowei Chen, Shancheng Fang, Wei Liu, Qian He, Mengqi Huang, Yongdong Zhang, Zhendong MaoarXiv 2023 · DOI

Introduction

Large-scale text-to-image (T2I) models like Stable Diffusion excel at generating general imagery but struggle to maintain the identity of specific individuals. Existing solutions typically fall into two categories: optimization-based methods (e.g., DreamBooth), which are computationally expensive and slow, and encoder-based methods (e.g., ELITE), which often produce generic faces or suffer from "stiffness," where the model fails to adapt the subject to new poses, styles, or contexts.

DreamIdentity introduces a "zero-shot" framework that generates high-fidelity, identity-preserved images in just 0.04 seconds. By utilizing a specialized face encoder and a novel self-supervised training strategy, it overcomes the traditional trade-off between identity preservation and text-based editability.

Methodology

The framework's performance stems from two primary architectural and training innovations:

1. The $M^2$ ID Encoder

Unlike previous methods that rely on CLIP—a general-purpose vision model—DreamIdentity uses a Vision Transformer (ViT) backbone specifically pre-trained for face recognition. The encoder is designed to be Multi-scale and Multi-word:

  • Multi-scale: Features are extracted from multiple depths of the network (layers 3, 6, 9, and 12). This captures a hierarchy of information, from mid-level structural details like facial expressions to high-level identity markers.
  • Multi-word: To avoid the information bottleneck of a single embedding, the model projects facial features into two distinct pseudo-words ($S^*_1, S^*_2$) within the text embedding space, allowing for richer detail injection.

2. Self-Augmented Editability Learning

To address the "stiffness" of encoder-based models, the authors developed a self-supervised training task using celebrity "hallucinations." They used ChatGPT to identify 1,015 celebrities and Stable Diffusion to generate both "source" images and "edited" versions (e.g., "Johnny Depp as a chef"). The encoder is trained to map the source face to the edited target, teaching the model to decouple identity from context and background.

Key Results

DreamIdentity achieves state-of-the-art performance across speed, fidelity, and editability metrics:

  • Efficiency: At 0.04 seconds per embedding, it is approximately 30,000x faster than Textual Inversion and 6,000x faster than DreamBooth.
  • Identity Preservation: Using ArcFace distance, DreamIdentity achieved a similarity score of 0.467, outperforming the previous state-of-the-art encoder, ELITE (0.450).
  • Editability: The model demonstrated a 7% improvement in text-alignment over E4T, showing superior ability to follow complex prompts like "wearing a rainbow scarf" or "fauvism painting" while maintaining a recognizable face.
DreamIdentity demonstrates high-fidelity identity preservation across diverse editing prompts such as 'in the snow', 'with curly hair', and various artistic styles.

Discussion and Limitations

The research highlights that CLIP is not a face expert; switching to a face-specific backbone is critical for identity tasks. Furthermore, by training on edits rather than simple reconstructions, the model avoids overfitting to the input image's background and clothing.

However, the model's performance is sensitive to input quality; blurry or obstructed source images lead to degraded outputs. Additionally, the authors noted that inherent biases in the base diffusion model can sometimes interfere with editability, particularly when prompts conflict with gender stereotypes present in the training data. Future work will focus on improving robustness to low-quality inputs and further refining multi-embedding projections.

Summary updated

BibTeX
@misc{chen2023dreamidentity,
  author = {Zhuowei Chen and Shancheng Fang and Wei Liu and Qian He and Mengqi Huang and Yongdong Zhang and Zhendong Mao},
  title = {{DreamIdentity: Improved Editability for Efficient Face-identity Preserved Image Generation}},
  year = {2023},
  eprint = {2307.00300},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2307.00300},
}
Figure