Foundation Cures Personalization: Improving Personalized Models' Prompt Consistency via Hidden Foundation Knowledge

Yiyang Cai, Zhengkai Jiang, Yulong Liu, Chunyang Jiang, Wei Xue, Yike Guo, Wenhan Luo

TL;DR

FreeCure is a training-free framework that resolves a major flaw in facial personalization models: their tendency to ignore text prompts (like specific hairstyles or expressions) because strong identity embeddings override them. By running a dual-path inference branch to capture text-compliant features from the underlying foundation model and injecting them via a novel self-attention mechanism, FreeCure significantly improves prompt consistency without sacrificing identity fidelity.

What Problem Does This Paper Address?

Facial personalization models (such as PhotoMaker, InstantID, and PuLID) allow users to generate images of a specific person based on text prompts. While these models excel at maintaining identity fidelity (making the person look like the reference), they notoriously struggle with prompt consistency—the ability to accurately reflect text attributes like "blonde curly hair," "wearing a mask," or an "angry looking" expression.

The authors discover that the root cause lies within the cross-attention mechanisms. The identity embeddings injected by personalization encoders heavily dominate the cross-attention layers, suppressing the text tokens that describe facial attributes. Interestingly, if you simply deactivate the identity embedding, the underlying foundation model can generate the requested attributes perfectly. The foundation model's knowledge isn't destroyed; it is merely overridden. The challenge is: How do we extract this hidden foundation knowledge to fix attribute control without breaking the model's ability to preserve identity?

Methods

FreeCure introduces a training-free, plug-and-play framework that operates during inference via three core components:

  1. Dual Denoising Paradigm: For each generation step, the framework runs two parallel paths: Personalization Denoising (PD), which includes the identity embedding, and Foundation Denoising (FD), which replaces the identity embedding with a null/zero tensor.
  2. Foundation-Aware Self-Attention (FASA): To transfer the text-compliant attributes from the FD path to the identity-preserving PD path, FreeCure modifies the self-attention layers. It concatenates the Key ($K$) and Value ($V$) matrices from both paths. Crucially, it uses a localized spatial mask (generated via face-parsing models like BiSeNet or Segment-Anything) to ensure that the foundation model's features are only injected into specific attribute regions (e.g., just the hair or the sunglasses), leaving the rest of the face's identity intact.
  3. Asymmetric Prompt Guidance (APG): For abstract attributes that lack distinct spatial boundaries (like expressions), FreeCure uses an inversion-based process. It starts denoising from an intermediate latent timestep ($\gamma = 0.5$) where high-level identity layout is already established, using text prompts without identity embeddings to guide the expression naturally.

Datasets

The authors evaluated FreeCure using an extensive dataset consisting of:

  • 50 distinct identities: 30 derived from the standard CelebA-HQ dataset and 20 unique non-celebrity identities curated by the authors to test real-world robustness.
  • 20 attribute-focused prompts: Categorized by complexity, containing between 1 and 3 distinct facial attributes (e.g., combinations of hair color, expressions, and accessories).

Key Insights and Ideas

  • The "Overridden, Not Destroyed" Realization: Personalization training doesn't wipe out a foundation model's capabilities. The cross-attention maps show that identity embeddings simply amplify activation in facial regions so drastically that other tokens cannot express themselves.
  • Cross-Attention is Too Fragile: Attempting to interpolate or modify the cross-attention maps directly causes the model to rapidly lose identity fidelity (as shown in Figure 2).
  • Self-Attention as a Safe Harbor: Because personalization models introduce minimal modifications to self-attention layers, these layers safely preserve the hidden foundation knowledge and serve as the ideal place to inject attribute features using localized masks.
Figure 2: Analysis on cross-attention maps of facial personalization models. Left: token-wise attention map visualization. Right: interpolation experiment on PD and FD’s cross-attention maps.

Key Results

FreeCure was seamlessly integrated into a wide array of state-of-the-art personalization baselines spanning different architectures, including Stable Diffusion v1.5 (FastComposer, Face-Diffuser, Face2Diffusion), SDXL (InstantID, PhotoMaker, PuLID), and FLUX (PuLID-FLUX, InfiniteYou).

  • Quantitative Improvements: Across all baselines, FreeCure significantly boosted prompt consistency (PC). For example, it improved PuLID (FLUX) prompt consistency by +10.53% and FastComposer by +15.91%.
  • Complexity Scaling: The performance gains became even more pronounced as prompts grew more complex. For three-attribute prompts, FreeCure achieved a +14.44% relative improvement in prompt consistency on SDv1.5 models.
  • Qualitative Success: As shown in Figure 1, baselines often fail to generate complex prompts harmoniously or default to neutral expressions. FreeCure successfully restores missing attributes (like blue eyes, distinct hair textures, and precise expressions) while maintaining excellent identity fidelity.
Figure 1: Personalization models (a) demonstrate strong capability in preserving identity fidelity, albeit at the cost of reduced prompt consistency. A prevalent feature in most personalization models is that when their identity embedding inputs are deactivated, they regain the ability to exhibit highly accurate prompt consistency with respect to facial attributes (b), a characteristic closely aligned to their foundation models. Our proposed FreeCure effectively leverages the latent foundational knowledge inherent in personalized models, enhancing prompt consistency in scenarios involving complex facial attribute control while preserving the identity fidelity (c).

Limitations and Future Work

While highly effective, FreeCure inherits the maximum achievable capabilities and biases of its underlying foundation models. The authors note that it occasionally struggles with highly transparent objects (like glass bottles) and can exhibit minor attribute entanglement between the FD and PD processes. Additionally, exploring how FreeCure applies to emerging auto-regressive personalization architectures remains an open direction for future research.

Summary updated

BibTeX
@inproceedings{cai2025foundation,
  author = {Yiyang Cai and Zhengkai Jiang and Yulong Liu and Chunyang Jiang and Wei Xue and Yike Guo and Wenhan Luo},
  title = {{Foundation Cures Personalization: Improving Personalized Models' Prompt Consistency via Hidden Foundation Knowledge}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=KQ9KCDS4zp},
}
Figure