Abstract
MagicFace is a novel, training-free framework designed to personalize human images using multiple reference concepts (such as a specific face and specific accessories) across any artistic style. By employing a two-stage attention mechanism—Reference-aware Self-Attention (RSA) and Region-grouped Blend Attention (RBA)—MagicFace achieves high-fidelity identity preservation and multi-concept integration without the need for time-consuming model fine-tuning or specialized encoders. This approach maintains the creative priors of the base model, allowing for seamless synthesis in diverse styles like oil paintings, sketches, and Ukiyo-e.
Introduction
Personalizing text-to-image models like Stable Diffusion typically involves either tuning-based methods (e.g., DreamBooth), which require slow per-subject optimization, or zero-shot methods (e.g., PhotoMaker) that utilize pre-trained encoders. However, these approaches often suffer from style rigidity, overfitting to photorealistic data, and a limited focus on single subjects. When attempting to combine multiple reference concepts—such as a specific person wearing a specific hat—existing models frequently encounter "identity mixing" or ignore one of the concepts entirely. MagicFace addresses these hurdles by mimicking the human drawing process: first establishing a coarse layout and then refining details, all without modifying the underlying model weights.
Methodology
The core of MagicFace is a coarse-to-fine generation pipeline that operates in two sequential stages during the denoising process:
- Semantic Layout Construction (RSA): In the early steps of generation, the model employs Reference-aware Self-Attention (RSA). The latent image queries features from all reference images simultaneously, helping the model establish a coherent global shape and posture for the subjects.
- Concept Feature Injection (RBA): Once the layout is established, the model switches to Region-grouped Blend Attention (RBA). MagicFace exploits the model's internal attention maps to perform "on-the-fly" semantic segmentation, identifying pixels belonging to specific concepts (e.g., "face" vs. "hat"). These pixels then query fine-grained features only from their corresponding reference images.
Additionally, a Weighted Mask Strategy allows users to manually scale the influence of specific masks, ensuring better identity preservation for critical features like faces.
Experimental Results
MagicFace was evaluated against state-of-the-art baselines including PhotoMaker, InstantID, and FlashFace. In multi-concept customization tasks, MagicFace achieved a Face Similarity score of 51.8, significantly outperforming FreeCustom (43.2) and ClassDiffusion (35.4). It also demonstrated superior prompt consistency, outperforming FlashFace by 3.2 points on the CLIP-T metric.
Qualitatively, MagicFace excels at artistic style preservation. Because the model weights remain untouched, it retains the full creative capabilities of the base model. This allows for the generation of specific identities in challenging styles, such as sketches or classical paintings, where fine-tuned models often fail.
Conclusion
MagicFace provides a flexible and efficient solution for multi-concept human image customization. By utilizing a training-free, attention-based mechanism, it avoids the computational overhead of fine-tuning while delivering superior results in both identity fidelity and stylistic variety. Future work will focus on resolving semantic overlap issues where identical tokens in a prompt can lead to identity mixing.
Summary updated