Introduction
Large-scale text-to-image (T2I) diffusion models like Stable Diffusion have revolutionized content creation, yet they often lack the ability to represent specific, user-provided concepts. While a model can generate a generic "dog," it cannot inherently generate your dog without additional fine-tuning. Custom Diffusion addresses this gap by providing an efficient, high-fidelity method for adding new concepts into these models, enabling complex scenes that combine multiple personalized elements.
The Personalization Challenge
Existing personalization techniques face a trilemma of quality, efficiency, and flexibility. Textual Inversion optimizes only word embeddings; while lightweight, it often fails to capture intricate visual details. Conversely, DreamBooth fine-tunes the entire model, resulting in high-quality outputs but at the cost of massive file sizes (gigabytes per concept) and significant computational overhead. Furthermore, these methods often suffer from "language drift"—where the model loses its original understanding of words related to the new concept—and struggle with "multi-concept composition," the ability to render two distinct custom objects together.
Custom Diffusion Methodology
Custom Diffusion introduces a minimalist approach to fine-tuning that targets only the most critical parameters.
Selective Weight Update
The authors identified that the cross-attention layers—specifically the Key ($W^k$) and Value ($W^v$) projection matrices—are the primary site where text prompts map to image features. Despite making up only 3% of the total model parameters, these layers undergo the most significant changes during fine-tuning. By targeting only these weights, Custom Diffusion achieves high fidelity with significantly reduced storage requirements (roughly 75MB per concept compared to DreamBooth's 3GB).
Preventing Language Drift
To maintain the model's prior knowledge, the training process incorporates a small set of "real-world" regularization images retrieved from the LAION-400M dataset. These images are semantically similar to the target concept, ensuring that learning a new "moongate" does not distort the model's general understanding of the "moon."
Multi-Concept Merging
A standout feature of Custom Diffusion is its ability to compose multiple new concepts. Rather than retraining a model on all concepts simultaneously, the authors utilize a closed-form optimization (Lagrange multipliers) to mathematically "merge" separately fine-tuned models. This allows users to mix and match concepts trained at different times without needing to keep all original training images.
Results and Efficiency
Custom Diffusion demonstrates superior performance across several metrics, evaluated on benchmarks like the new CustomConcept101:
- Speed: Training takes approximately six minutes on two A100 GPUs, making it 2–4x faster than competing methods.
- Storage: At 75MB per concept, it is far more practical for consumer applications than the multi-gigabyte checkpoints required by DreamBooth.
- Compositional Quality: In human preference studies, Custom Diffusion was significantly preferred for multi-concept tasks. It successfully avoids common pitfalls where models omit one concept or blend two distinct objects into a single hybrid.
Conclusion and Future Work
Custom Diffusion provides a scalable and efficient path for personalized AI art. While it excels at two-concept compositions, scaling to three or more remains a challenge. Additionally, the method is bound by the inherent compositional limits of the base diffusion model. Future research may focus on overcoming these structural limitations and exploring the ethical implications of highly efficient personalization tools.
Summary updated