Abstract
Personalizing large-scale text-to-image diffusion models typically requires extensive fine-tuning, leading to massive checkpoint files and "language drift." We present SVDiff, a method that fine-tunes only the singular values of weight matrices. This approach results in remarkably compact checkpoints (~1.7MB), roughly 2,200x smaller than standard DreamBooth. Furthermore, we introduce "Cut-Mix-Unmix," a data augmentation technique and regularization loss that enables the generation of multiple distinct personalized subjects in a single scene without concept bleeding. Finally, we propose CoSINE for high-quality single-image editing.
Introduction
Large-scale diffusion models like Stable Diffusion have revolutionized content creation. However, adapting these models to specific subjects (e.g., a user's pet) or unique artistic styles remains a challenge. Existing methods like DreamBooth often require fine-tuning the entire model, which is storage-intensive and can cause the model to lose its general knowledge—a phenomenon known as language drift.
Moreover, generating multiple personalized subjects simultaneously often leads to "concept bleeding," where features of one subject incorrectly merge into another. SVDiff addresses these limitations by operating in a highly efficient "spectral shift" parameter space.
Methodology
SVDiff: Spectral Shift Fine-Tuning
The core of our approach is the observation that the weight matrices of a neural network can be decomposed using Singular Value Decomposition (SVD). For a weight matrix $W$, we have $W = U\Sigma V^T$. In SVDiff, we freeze the $U$ and $V$ matrices, which represent the fundamental "directions" or features learned during pre-training. We only fine-tune the diagonal matrix $\Sigma$, which contains the singular values representing the "strength" of these features.
The learned update, termed a "spectral shift" ($\delta$), is extremely low-dimensional. This allows for a checkpoint size of just 1.7MB, which is significantly smaller than even Low-Rank Adaptation (LoRA) techniques.
Cut-Mix-Unmix for Multi-Subject Generation
To overcome concept bleeding in multi-subject scenarios, we propose "Cut-Mix-Unmix." During training, we create composite images where Subject A and Subject B are placed side-by-side. We then use specific prompts (e.g., "a [V1] dog on the left and a [V2] cat on the right") to provide spatial supervision.
To further enforce separation, we introduce Unmix Regularization. This loss function is applied to the cross-attention maps, ensuring that the special token for one subject (e.g., [V1]) only attends to the pixels corresponding to that subject and not the other.
CoSINE: Single-Image Editing
Building on SVDiff, we introduce the CoSINE framework for editing existing images. By applying spectral shifts to an inverted image, we can perform complex edits—such as changing an object's color or adding new elements—while preserving the original image's structural integrity.
Experimental Results
Efficiency and Storage
SVDiff achieves unprecedented efficiency. While standard DreamBooth produces checkpoints of approximately 3.66GB, SVDiff's spectral shifts require only 1.7MB. This 2,200x reduction makes it feasible to store thousands of personalized models on a single device.
Qualitative Performance
SVDiff demonstrates superior performance in style-mixing, multi-subject generation, and single-image editing.
In user studies, SVDiff was preferred over full-weight fine-tuning 60.9% of the time for multi-subject tasks. Participants noted that SVDiff was significantly better at keeping subjects distinct and preventing feature leakage.
Resistance to Language Drift
Because SVDiff preserves the $U$ and $V$ matrices of the base model, it maintains the "prior" knowledge of the diffusion model better than full fine-tuning. This ensures that the model can still generate generic objects correctly even after being personalized to a specific subject.
Conclusion
SVDiff provides a powerful and efficient framework for diffusion model personalization. By focusing on the spectral shifts of weight matrices, we achieve massive storage savings and improved generation quality. While challenges remain in scaling to a very high number of subjects, SVDiff represents a significant step toward making personalized AI more accessible and versatile.
Summary updated