Abstract
Personalizing Text-to-Image (T2I) models often requires multiple reference images and frequently suffers from attribute tangling or catastrophic overfitting. We present OSTAF (One-Shot Tuning for Attribute-Focused personalization), a novel method designed to extract and apply specific visual attributes—such as texture, shape, or style—from a single reference image. By exploiting the functional divergence between a diffusion model's encoder and decoder, and utilizing a lightweight hypernetwork for parameter updates, OSTAF achieves high-fidelity customization with superior prompt adherence compared to existing one-shot baselines.
Introduction
While large-scale T2I models like Stable Diffusion have revolutionized content creation, fine-grained control over specific attributes remains a challenge. Users often wish to "borrow" a unique texture (e.g., the skin of a dragon fruit) or a specific silhouette (e.g., a pet's sitting pose) and apply it to a new category. Standard personalization techniques like DreamBooth typically require 3-5 images and often fail to disentangle these attributes, leading to "attribute tangling" where the model cannot separate an object's shape from its texture.
Furthermore, "one-shot" learning—personalization from a single image—is notoriously prone to overfitting. The model often collapses into a state where it simply reproduces the reference image, ignoring the user's text prompts. OSTAF addresses these issues through a surgical approach to model fine-tuning.
Methodology
The Architectural Split
The core innovation of OSTAF is based on an empirical discovery: in the U-Net architecture of diffusion models, the encoder primarily handles structural and shape information, while the decoder manages appearance, texture, and style. This functional split allows for disentangled attribute control without the need for complex loss functions.
Hypernetwork-Driven Updates
To prevent the instability and overfitting common in direct fine-tuning, OSTAF employs a lightweight hypernetwork consisting of four linear layers. Instead of updating the model weights directly, the hypernetwork predicts weight offsets ($\Delta w$) for the attention layers. This approach acts as a natural regularizer, ensuring that parameter updates remain low-rank and smooth.
During inference, users can adjust a coefficient ($\lambda$) to control the intensity of the customization, allowing for a flexible balance between the reference attribute and the base model's generative capabilities.
Experimental Setup
The Attribute Benchmark
To evaluate attribute-focused personalization, the authors introduced the Attribute Benchmark, categorized into three domains:
- Shape: 13 images of humans, animals, and buildings.
- Appearance: 12 images of unique materials and textures (e.g., knitted patterns, marble).
- Style: 9 images curated for artistic style transfer.
Evaluation Metrics
Performance was measured using CLIP-T for text alignment, DINO similarity for appearance consistency, Intersection over Union (IoU) for shape fidelity, and Gram matrix distance for style accuracy.
Results and Discussion
Quantitative Performance
OSTAF consistently outperformed state-of-the-art methods like Prospect and IP-Adapter. In appearance tasks, OSTAF achieved a DINO similarity of 0.4149, surpassing Prospect's 0.3849. In shape tasks, it reached an IoU of 0.4938, significantly higher than the 0.4656 achieved by baselines.
Efficiency and Human Preference
OSTAF is computationally efficient, requiring approximately 10 minutes of fine-tuning on a single NVIDIA A40 GPU—roughly twice as fast as its closest competitors. In user studies, participants preferred OSTAF for its ability to maintain the "essence" of the reference attribute while strictly following complex text prompts, a feat where tuning-free methods often fail.
Conclusion and Future Work
OSTAF provides a robust framework for one-shot, attribute-specific personalization. By isolating the roles of the U-Net encoder and decoder, it achieves a level of disentanglement previously difficult in T2I models. Future research will focus on reducing the 10-minute tuning latency and extending this attribute-focused logic to video generation to ensure temporal consistency in style and character movement.
Summary updated