TL;DR
This paper introduces "Infusion," a novel method for customizing text-to-image diffusion models that effectively prevents "concept overfitting." By decoupling attention maps and value features, Infusion allows for the learning of new concepts without sacrificing the model's general generative capabilities, achieving this with a remarkably small 11KB of trained parameters.
What Problem Does This Paper Address?
Text-to-image (T2I) models have become incredibly powerful at generating novel images from textual descriptions. However, a crucial need has emerged for customization: the ability to teach these models specific, user-defined concepts (e.g., a particular pet, a unique object, or a distinct style) so they can be incorporated into generated images. The primary challenge in this area is "concept overfitting." This occurs when the model, in its effort to learn a new concept, either forgets its general knowledge (concept-agnostic overfitting) or becomes too specialized, generating only variations of the new concept with limited diversity (concept-specific overfitting). Existing methods struggle to balance learning new concepts with preserving the model's original capabilities and generating diverse outputs.
Methods
The core of Infusion lies in its innovative approach to how it modifies the diffusion model's cross-attention mechanism. Instead of fine-tuning the entire model or large parts of it, Infusion decouples the "what" (content) and "where" (spatial layout) pathways within the cross-attention module.
- Concept-Agnostic Overfitting Prevention: Infusion preserves the original model's attention maps (the "where" pathway) and uses them for generating images. This ensures that the model's understanding of general spatial relationships and backgrounds remains intact, preventing it from forgetting its original capabilities.
- Concept-Specific Overfitting Prevention: For the "what" pathway, Infusion introduces a small, learnable "residual embedding" (only 11KB) that is injected into the value features of the specific concept token in the prompt. This embedding learns to represent the new concept without altering the foundational model's parameters.
- Metrics for Overfitting: To quantify overfitting, the authors introduce two metrics:
- Latent Fisher Divergence: Measures how much the model's score function for non-customized concepts changes after customization.
- Wasserstein Metric: Quantifies the deviation of the customized distribution from its original generative distribution, serving as a measure of diversity.
This decoupling allows Infusion to learn new concepts efficiently while retaining the original model's generative power and diversity.
Datasets
The paper mentions using datasets from prior works [24, 34] for training and evaluation. These datasets encompass diverse subjects like toys, animals, buildings, and personal items. They also refer to the LAION-400M dataset [37] in the context of evaluating overfitting. No new datasets were introduced.
Key Insights and Ideas
- Overfitting is not monolithic: The paper effectively categorizes overfitting into "concept-agnostic" and "concept-specific," providing a clearer understanding of the problem.
- Decoupling is key: The insight that separating the "what" and "where" pathways in cross-attention is crucial for preventing overfitting is a significant contribution. This allows for targeted learning of new concepts without disrupting the model's existing knowledge.
- Efficiency through small embeddings: The remarkable achievement of learning new concepts with only 11KB of parameters highlights the potential for highly efficient customization.
- New metrics for a nuanced problem: The introduction of Latent Fisher Divergence and Wasserstein metric provides a quantitative way to assess the specific types of overfitting, which is essential for developing and evaluating solutions.
Key Results
- Superior Customization: Infusion demonstrates robust performance in both single-concept and multi-concept generation, outperforming state-of-the-art methods like DreamBooth, Textual Inversion, Custom Diffusion, and Perfusion.
- High Text Alignment: Infusion achieved the highest text alignment score in quantitative comparisons.
- Efficiency: The method requires a mere 11KB of trained parameters for customization, making it highly efficient in terms of storage and computational cost.
- Overfitting Resistance: Infusion shows strong resistance to overfitting, maintaining good generation quality even at higher training steps, unlike some competitors that become overly specialized.
- Qualitative Improvements: Visual comparisons show Infusion generating more imaginative and faithful compositions that better align with textual descriptions and customized concepts.
Limitations and Future Work
- High-Fidelity Texture Preservation: The authors acknowledge that for tasks requiring extremely high-fidelity preservation of detailed textures, Infusion might have limitations. They suggest that in such cases, there's a trade-off between diversity and fidelity, potentially requiring more residual embeddings or further training.
- Future Work: The paper implies that future work could explore more intricate test texts to evaluate the model's generative capabilities more thoroughly and investigate methods to further enhance fidelity when needed.
Summary updated