Abstract
Personalizing text-to-image (T2I) diffusion models to specific user-provided concepts—such as a unique pet or a specific artifact—remains a significant challenge in generative AI. Existing methods typically rely on either time-consuming optimization or domain-specific encoders that lack versatility. We present a domain-agnostic tuning-encoder that achieves high-fidelity personalization in seconds. By combining a dual-head architecture with a brief 12-step fine-tuning phase, the proposed method generalizes across diverse object categories while maintaining high editability and reducing VRAM requirements.
Introduction
Text-to-image models like Stable Diffusion have revolutionized content creation, yet personalizing them to specific concepts remains a bottleneck. Current approaches generally fall into two categories: optimization-based methods (e.g., DreamBooth, Textual Inversion) and encoder-based methods. Optimization-based approaches produce high-quality results but are computationally expensive, often requiring minutes of GPU time and multiple images. Conversely, encoder-based approaches offer near-instant inference but are typically "domain-specific," performing well on faces or cats but failing to generalize to the "long tail" of diverse real-world objects.
This paper addresses the challenge of creating an encoder that is both fast and universal. The goal is to maintain "editability"—the ability to place a specific object into new, imaginative scenes—without the model overfitting to the background of the original reference photo.
Methodology
The proposed framework utilizes a hybrid approach that combines a powerful pre-trained encoder with a highly accelerated fine-tuning phase. The architecture is built upon several key innovations:
Dual-Head Architecture
The encoder processes a single reference image and simultaneously predicts two distinct components: a Token Embedding (a "soft" word representing the object) and HyperNetwork offsets. These offsets function as Low-Rank Adaptation (LoRA) weights that modify the diffusion model’s internal parameters to capture the fine-grained details of the target concept.
Contrastive Embedding Regularization
A common failure mode in personalization is "attention-overfitting," where the model ignores the text prompt because the predicted token is out-of-distribution. To mitigate this, a novel contrastive loss is employed. This loss pushes the predicted embedding toward its nearest neighbors in the existing CLIP vocabulary, ensuring the token remains in "editable" regions of the latent space.
Prior-Preserving Dual-Path Adaptation
During the tuning phase, the model processes the prompt through two paths: one using the predicted soft embedding and one using a "hard" nearest-neighbor text token (e.g., the word "teapot"). By blending these paths, the model learns the specific identity of the target without losing the general semantic understanding of the category.
Fast Tuning
By using the encoder's output as an optimized initialization, the required optimization steps are reduced from thousands to fewer than 12. This drastically lowers the VRAM requirements and total processing time.
Experimental Setup
The encoder was pre-trained on a massive collection of approximately 3 million images from ImageNet-1K and Open-Images. This exposure to thousands of different classes is fundamental to the model's domain-agnostic capabilities. For evaluation, the authors utilized a benchmark of 17 diverse images—ranging from pets to buildings—sourced from landmark personalization studies.
Key Results
- Speed and Efficiency: The method achieves personalization in seconds rather than minutes. Furthermore, memory requirements were reduced from approximately 70GB (in previous state-of-the-art models like E4T) to under 30GB, increasing accessibility for consumer-grade hardware.
- Qualitative Fidelity: The model captures complex textures and unique shapes (such as patterned ceramics or specific wooden structures) more accurately than previous encoders like ELITE, even when those models were provided with additional segmentation masks.
- Quantitative Performance: CLIP-based similarity metrics indicate a superior trade-off between identity preservation (resemblance to the input) and editability (adherence to new prompts) compared to standard LoRA and Textual Inversion techniques.
Limitations and Future Work
Despite its versatility, the model's performance is tied to its training data. Concepts poorly represented in ImageNet, such as highly cluttered scenes or specific human facial nuances, can still pose challenges. The authors suggest that scaling training to even larger datasets, such as LAION, could further enhance the universal nature of the encoder. Additionally, future research will focus on reducing hardware requirements to make the tool compatible with mid-range consumer GPUs.
Summary updated