Introduction
Subject-driven image generation aims to recreate a specific object from a reference image in novel contexts. While models like DreamBooth have made significant strides, they often face a "selection crisis" when a reference photo contains multiple objects (e.g., two different cats). Existing methods typically struggle to isolate the desired target, leading to blended features or the generation of the wrong subject. Current solutions are either too vague, relying on imprecise text descriptions, or too labor-intensive, requiring manual pixel-perfect masks.
P3S-Diffusion addresses this hurdle by introducing point supervision. This approach allows users to identify a target subject with a simple click, providing a middle ground between vague text and expensive masking.
Methodology
The P3S-Diffusion architecture is built upon two primary innovations designed to enhance selective feature extraction and integration:
1. RNGR-Encoder
The Reduces Negative information and Generates spatial bias Representations (RNGR) encoder eliminates the need for external segmentation models. It utilizes a CLIP image backbone to calculate patch-level similarity between the user-selected point and the rest of the image. This process generates a rough mask to isolate the subject, followed by an inpainting step to remove background noise and "negative" (unwanted) subjects. The resulting "cleaned" subject is then encoded into a latent representation.
2. Multi-layer Condition Injection
Inspired by the success of ControlNet, the framework employs a trainable copy of a simplified U-Net to inject subject features into a frozen base model. This injection specifically targets self-attention and cross-attention layers, which are critical for maintaining the structural and semantic layout of the generated image.
3. Optimization Strategies
- Attention Consistency Loss ($L_{ac}$): To prevent "semantic drift"—where the model loses the subject's identity while attempting to follow complex text prompts—this loss function aligns the attention maps of the trainable copy with the original U-Net.
- Timestep-based Weight Scheduler: The authors found that constant subject feature injection can hinder editability. They implemented a quadratic weight scheduler that adjusts the influence of subject features over the denoising process, balancing identity preservation with prompt adherence.
Experimental Results
The researchers evaluated P3S-Diffusion using the DreamBench dataset, comparing it against established baselines including DreamBooth, Custom Diffusion, and BLIP-Diffusion.
- Subject Alignment: P3S-Diffusion achieved a DINOv2 score of 0.5491, significantly outperforming DreamBooth (0.4737) and SSR-Encoder (0.5323), indicating superior preservation of unique subject features.
- Stability and Consistency: The model demonstrated the lowest variance in both CLIP-Iv and DINO-v scores, ensuring consistent results across various random seeds.
- Qualitative Superiority: Visual comparisons confirm that P3S-Diffusion is uniquely capable of distinguishing between similar subjects in a single reference image and accurately generating the selected target in diverse new scenes.
Conclusion and Future Work
P3S-Diffusion demonstrates that point supervision is a highly effective and efficient method for guiding diffusion models. By leveraging similarity maps and dynamic feature injection, the framework provides a robust solution for selective personalization. While the model currently faces challenges with extremely intricate textures or low-saliency subjects, it sets a new standard for user-friendly, high-fidelity subject-driven generation. Future research will explore more sophisticated feature extractors to handle increasingly complex visual scenes.
Summary updated