TL;DR
Zero-shot generative model adaptation often suffers from mode collapse and repetitive artifacts because it applies a single, fixed text prompt to guide all images into a new domain. This paper introduces Image-specific Prompt Learning (IPL), a method that dynamically generates customized text prompts for each individual image. This simple shift creates diverse, precise adaptation directions, significantly boosting image quality and variety across both GANs and diffusion models.
What Problem Does This Paper Address?
Zero-shot model adaptation (like StyleGAN-NADA) allows us to retrain a generative model (e.g., changing "Photos of Humans" to "Disney Characters") using only text prompts, completely bypassing the need for target-domain training images. While highly efficient, existing methods rely on a single, manually designed prompt pair (e.g., "a photo of a human" $\rightarrow$ "a photo of a Disney character") to guide the entire transformation.
Because every single image is pushed in the exact same direction, the model suffers from a form of "mode collapse." The resulting images end up with creepy, homogeneous artifacts—like every Disney character having identical deep nasolabial folds, or every Ukiyo-e face having blue eyebrows. The authors identify that this shared, fixed direction suppresses unique image features, leading to repetitive, low-quality outputs.
Methods
To inject individuality into the adaptation process, the authors propose Image-specific Prompt Learning (IPL), which operates in two distinct stages:
- Stage 1: Prompt Learning via Latent Mapper: Instead of hardcoding a text prompt, they train a small, 4-layer fully-connected network (a latent mapper) to take a source image's latent code ($w$) and output a set of customized prompt vectors. This mapper is trained using a contrastive learning loss (to maximize similarity between the specific image and its generated prompt matrix) and a domain regularization loss (to ensure the learned prompts don't contain features that conflict with the target domain, like keeping "round ears" when translating to an elf).
- Stage 2: Latent Mapper Guided Generator Training: The trained mapper is plugged into the generator adaptation pipeline. Instead of using a standard global Directional CLIP Loss, they introduce an Adaptive Directional CLIP Loss. This calculates a unique text adaptation direction for every single image pair on-the-fly using the dynamically generated prompts.
Datasets
The authors evaluated their approach using several standard vision datasets as source domains:
- FFHQ (Flickr-Faces-HQ): Used as the source domain for human faces.
- AFHQ (Animal Faces-HQ): Specifically the Dog subset, used as the source domain for animal photos.
- CelebA-HQ: Used to evaluate real-world image inversion and translation.
The target domains were defined purely by text labels, including: "Disney", "Anime painting", "Wall painting", "Ukiyo-e", "Pixar character", "Tolkien elf", "Werewolf", "Cartoon", "Pointillism", and "Cubism". No target images were used from these domains.
Key Insights and Ideas
- The "One-Size-Fits-All" Prompt Constraint: Fixed prompts act as an overly restrictive regularizer. By forcing diverse source images through an identical text-space vector, the generator learns to output repetitive, domain-wide artifacts to satisfy the CLIP loss.
- Regularization is Essential for Open Prompts: If you let a network freely learn image-specific prompts, it might over-index on source features that ruin the target style. The domain regularization loss acts as a crucial guardrail, ensuring the learned prompt vectors stay aligned with the target domain's essence.
- Architecture Agnosticism: Because IPL operates entirely within the latent space and text embedding space, it is completely independent of the underlying generative architecture. It works equally well enhancing StyleGANv2 or Diffusion Models.
Key Results
- Alleviating Mode Collapse: Qualitatively, IPL successfully removes the repetitive artifacts seen in NADA, yielding cleaner, more diverse images that preserve the source identity much better.
- Quantitative Superiority: IPL beats NADA across all 10 evaluation settings on the Inception Score (IS), proving a massive boost in image quality and diversity. For instance, on Photo $\rightarrow$ Disney, IS improved from 2.721 to 3.089; on Photo $\rightarrow$ Cartoon, it jumped from 6.505 to 8.658.
- Better Feature Preservation: It achieved higher Structural Consistency Scores (SCS) and Identity Similarity (ID) scores in almost all categories, meaning faces actually look like the original person after transformation.
- User Preference: A user study with 121 participants showed an overwhelming 80.5% average preference for IPL over NADA.
Limitations and Future Work
- Interpretability Gap: Because the prompt vectors are learned directly as continuous embeddings in CLIP space, they don't map cleanly back to real words. Looking at the nearest neighbors in vocabulary space often yields loosely related terms or gibberish, making it hard to audit exactly what the prompts are capturing.
- Extreme Domain Shifts: While IPL handles stylistic shifts beautifully, large semantic gaps (like turning a "Human" into a "Cat") remain highly challenging for zero-shot methods, though IPL still shows slight structural improvements (whiskers, cat-like eyes) over competitors.
Summary updated