Abstract
This paper introduces a novel three-stage training framework designed to extract fine-grained artistic styles from a single reference image and apply them to text-to-image (T2I) generation. By decoupling style from content using a newly curated dataset, Style30k-captions, the method enables precise stylistic control without the "content leakage" common in traditional style transfer techniques. The framework eliminates the need for per-style fine-tuning, offering a high-fidelity, zero-shot solution for artistic image synthesis.
Introduction
While models like Stable Diffusion have revolutionized text-to-image generation, controlling fine-grained style remains a significant challenge. Natural language is often too imprecise to describe nuanced artistic textures, specific brushstrokes, or complex lighting. Existing solutions typically fall into two traps: content-style coupling, where the model accidentally copies objects from the reference image, and high complexity, where methods like DreamBooth require expensive fine-tuning for every new style.
This research proposes a system that can take any single reference image, extract its "stylistic essence," and apply it to a new text prompt with high fidelity and zero content interference.
Methodology
The authors propose a three-stage training pipeline centered around Stable Diffusion v1.4:
- Stage 1: Style Vector Learning (Textual Inversion): For every image in the training set, a dedicated "style vector" (consisting of 8 tokens) is optimized. This vector acts as a pseudo-word in the CLIP embedding space that captures the image's unique style while the rest of the model remains frozen.
- Stage 2: Style Encoder Pre-training: A feed-forward module—comprising a CLIP-based vision encoder and a linear projection layer—is trained to predict the style vectors learned in Stage 1. This allows the system to extract style from any new image in a single pass.
- Stage 3: Joint Fine-tuning: The encoder and projection layer are fine-tuned end-to-end. This bridges the gap between mimicking Stage 1 vectors and optimizing for the final goal: generating high-quality images that satisfy the U-Net's requirements.
Data and Style-Content Decoupling
The study introduces Style30k-captions, a high-quality dataset derived from the Style30k collection (25,868 images across 1,121 artistic classes). To ensure style-content decoupling, the authors used GPT-4o to generate "content-only" captions. By meticulously engineering prompts to force the LLM to ignore artistic style, colors, and textures, the authors ensured that during training, the "style slots" in the prompt are the only place the model can learn stylistic information. This forces the model to look exclusively at the reference image for style and the text for content.
Key Results and Insights
Qualitative results across diverse artistic styles (EX.1-EX.6) demonstrating style-content decoupling. Image Generation Based on Image Style Extraction, page 7
The model successfully generates images that inherit the "vibe," brushstrokes, and lighting of a reference image while strictly following a text prompt for a completely different subject. Key findings include:
- Quantitative Fidelity: In Stage 3, the model achieved a Style Similarity score of 0.9305, outperforming both the Stage 1 optimization and Stage 2 feed-forward baselines.
- Superior Clustering: t-SNE visualizations show that the proposed style encoder clusters images by artistic style much more effectively than standard CLIP or VGG19 features.
- The Role of the Projection Layer: Ablation studies showed that the linear projection layer is vital; it acts as the essential "translator" between the vision encoder and the T2I backbone.
- Multi-Token Bandwidth: Using 8 tokens for the style vector provided the necessary capacity to capture complex, nuanced artistic styles that a single embedding could not represent.
Conclusion and Future Work
The proposed framework significantly reduces content leakage while maintaining high stylistic fidelity. However, the authors acknowledge that the current model is primarily trained on artistic styles. Future work could expand this to photographic styles, specific 3D renders, or architectural aesthetics. Additionally, further disentanglement could be achieved using advanced techniques like adversarial learning, and computational efficiency could be improved through knowledge distillation for real-time applications.
Summary updated