Abstract
UniID is a novel tuning-free framework designed for high-fidelity face personalization in text-to-image models. By integrating text-embedding and adapter-based paradigms with a specialized "identity-focused" training phase and a novel "layer-wise normalized rescaling" strategy at inference, UniID achieves a superior balance between identity preservation and text controllability without requiring time-consuming model fine-tuning.
Introduction
Personalizing text-to-image models like Stable Diffusion typically involves a trade-off between speed and quality. Optimization-based methods (e.g., DreamBooth) offer high fidelity but are slow, requiring fine-tuning for every new identity. Conversely, tuning-free methods (e.g., IP-Adapter) are instant but suffer from a "controllability-fidelity" dilemma: text-embedding approaches follow prompts well but lose facial details, while adapter-based methods capture identity but often overfit to the reference image, causing the model to ignore text prompts (e.g., failing to change a subject's clothing or pose). UniID addresses these limitations by synergistically combining both paradigms.
The UniID Methodology
The UniID framework introduces a dual-branch architecture and specific training and inference strategies to decouple identity from scene composition.
Dual-Branch Architecture
UniID utilizes two complementary branches to inject identity information:
- Text Embedding Branch: Maps facial features into three specific embeddings within the text encoder's space, effectively giving the identity a unique "name" in the model's vocabulary.
- Adapter Branch: Employs a Q-Former to extract discriminative facial features, which are then injected into the diffusion model via auxiliary cross-attention layers.
Identity-Focused Training
To prevent the model from accidentally learning background or pose as part of an identity, UniID is trained exclusively on approximately 500,000 simple portrait images (sourced from FFHQ-Portrait, CelebA-HQ, and FaceID-6M) with minimal prompts. This "less is more" approach ensures the model captures only identity-relevant features, making it more flexible during inference.
Layer-wise Normalized Rescaling
A key discovery in this research is the "magnitude problem": injected identity signals can be up to 26x stronger than the original model's signals, effectively drowning out the text prompt. UniID implements a layer-wise normalization and rescaling strategy during inference to match the magnitude of the original layers, restoring the model's ability to follow complex text instructions.
Experimental Evaluation
UniID was evaluated against six state-of-the-art baselines, including PuLID and PhotoMaker, using a custom test set of 100 identities to avoid data leakage.
Quantitative and Qualitative Results
UniID outperformed all baselines in both identity preservation (measured via CurricularFace embeddings) and text controllability (measured via CLIP scores). Qualitatively, the model excels in challenging scenarios such as extreme style transfers (e.g., 8-bit pixel art), complex occlusions, and full-body shots.
User Preference
In a user study with 720 responses, participants preferred UniID over existing methods by significant margins, selecting it in 70% to 85% of comparisons.
Conclusion
UniID provides a robust, tuning-free solution for face personalization that maintains high identity fidelity without sacrificing text controllability. While the dual-branch architecture introduces a slight computational overhead, the resulting quality and flexibility represent a significant advancement in the field. Future work may extend this "training for identity, inference for controllability" philosophy to other personalization tasks, such as specific objects or artistic styles.
Summary updated