TL;DR
Facial personalization models are excellent at preserving a subject's identity but often fail to follow text prompts (e.g., ignoring requests for "blonde hair" or an "angry expression"). This paper introduces FreeCure, a training-free framework that extracts the "hidden" prompt-following abilities of the underlying foundation model and injects them back into the personalized generation. By doing so, it dramatically improves prompt consistency for attributes like hair, expressions, and accessories without sacrificing the subject's likeness.
The Problem: Identity Fidelity vs. Prompt Consistency
In text-to-image generation, personalization models (like PhotoMaker, InstantID, or PuLID) allow users to generate images of a specific person in various contexts. However, these models suffer from a severe trade-off between identity fidelity and prompt consistency.
When you inject an "identity embedding" into the model to make the face look like your target subject, that embedding tends to overpower other descriptive tokens in the prompt. If you ask for "a man with blonde curly hair, laughing," the model will likely output a generic, neutral-faced portrait of the man with his original hair color. The authors discovered that identity embeddings disrupt the cross-attention layers, suppressing the activation of attribute-related tokens. The core challenge is restoring the model's ability to follow the prompt without altering the highly sensitive cross-attention layers that keep the face looking like the right person.
How FreeCure Works
The authors propose FreeCure, a plug-and-play, training-free framework compatible with existing diffusion models (SDv1.5, SDXL, and FLUX). It relies on two main techniques:
-
Dual Inference Paradigm & Foundation-Aware Self-Attention (FASA): The system runs two denoising processes simultaneously: a Personalization Denoising (PD) branch with the identity embedding, and a Foundation Denoising (FD) branch without it. To fix localized attributes (like hair or sunglasses), FreeCure uses an external segmentation model to create a spatial mask of the target attribute from the FD branch. Then, using a novel FASA module, it modifies the self-attention layers of the PD branch to pull key and value matrices from the FD branch—but only within the masked area. This effectively copies the correct attribute from the foundation model onto the personalized face.
-
Asymmetric Prompt Guidance (APG): For abstract attributes that lack clear spatial boundaries (like facial expressions), FASA isn't enough. Instead, the authors use an inversion-based trick. They invert the image using a blank template prompt, and then denoise it using the target prompt without the identity embedding. By starting this denoising process from an intermediate timestep (where the high-level identity is already established), the model successfully applies the requested expression.
Key Insights and Discoveries
- The "Unharmed but Overridden" Phenomenon: The most surprising finding is that personalization models haven't "forgotten" how to draw blonde hair or angry faces. If you simply deactivate the identity embedding during inference, the model perfectly follows the prompt. The foundation model's knowledge is intact; it just needs a backdoor to bypass the dominant identity embedding.
- Cross-Attention is Too Fragile to Touch: The authors initially tried fixing the problem by interpolating the cross-attention maps between the foundation and personalized branches. However, they found that even a tiny tweak to the cross-attention layers instantly destroyed the subject's identity.
- Self-Attention as the Safe Backdoor: Because personalization models mostly inject identity via cross-attention, the self-attention layers remain relatively untouched. FreeCure cleverly uses self-attention as the vehicle to transfer the correct visual features from the foundation branch to the personalized branch.
Key Results
FreeCure was tested on top of several state-of-the-art baselines (FastComposer, Face-Diffuser, Face2Diffusion, InstantID, PhotoMaker, PuLID, and InfiniteYou) using a curated dataset of 50 identities and complex, multi-attribute prompts.
- Quantitative Boost: FreeCure consistently improved Prompt Consistency (PC) across all models. For example, on FastComposer, PC jumped from 18.14% to 21.02% (+15.9% relative improvement). On the FLUX-based PuLID, PC improved by +10.5%.
- Complex Prompts: The more attributes a prompt has, the worse baseline models perform. FreeCure shines here: on 3-attribute prompts, it improved FastComposer's prompt consistency by a massive +16.37%.
- Qualitative Success: Visually, the results are striking. Where baselines completely ignore requests for "sunglasses," "pearl earrings," or "frowning," FreeCure seamlessly integrates these elements while maintaining a high degree of identity fidelity.
Limitations and Future Work
Because FreeCure is a plug-and-play adapter, its ceiling is dictated by the maximum capabilities and inherent biases of the underlying personalization and foundation models. It currently struggles with transferring certain transparent objects (like glass bottles) due to segmentation complexities, and can occasionally exhibit slight visual entanglement between the foundation and personalization processes. Looking ahead, applying FreeCure's logic to auto-regressive generation architectures presents a promising area for future research.
Summary updated