TL;DR
This paper introduces Concept Neuron Selection (CNS), a novel method for continually personalizing diffusion models. CNS efficiently identifies and fine-tunes concept-specific neurons, enabling models to learn new concepts incrementally without forgetting previous ones or degrading their general image generation capabilities.
What Problem Does This Paper Address?
Diffusion models, like Stable Diffusion, are powerful tools for generating images from text prompts. However, adapting these models to generate user-specific concepts (e.g., a particular pet, a unique style) is challenging, especially when dealing with multiple concepts over time. Existing personalization methods often struggle with "catastrophic forgetting," where learning a new concept causes the model to forget previously learned ones. Furthermore, combining multiple personalized concepts can lead to attribute binding issues, where concepts are mixed up in the generated images. This paper addresses the need for a practical, efficient, and robust method for continual personalization that overcomes these limitations.
Methods
The core of CNS lies in its Concept Neuron Selection strategy. This involves three main steps:
- Base Neuron Selection: The method identifies neurons in the cross-attention layers of diffusion models that are highly responsive to a target concept's images. This is done by calculating an importance score based on the magnitude of the key/value weights and the text embedding of the concept's caption. Neurons exceeding a certain threshold are considered "base neurons."
- General Neuron Selection: To distinguish concept-specific neurons from those responsible for general image generation, CNS collects a set of diverse "calibration prompts." By analyzing the neurons activated by these prompts, a "general neuron mask" is created.
- Concept Neuron Separation: By combining the "base neuron mask" and the "general neuron mask," CNS identifies the truly concept-specific neurons by excluding the general ones. This results in a "concept neuron mask" for each new concept.
Once these concept-specific neurons are identified, CNS employs an incremental fine-tuning scheme. This scheme uses a regularization loss ($L_{reg}$) to preserve knowledge from previously learned concepts and the original pre-trained model. This regularization ensures that fine-tuning on a new concept doesn't overwrite or degrade existing capabilities, thus mitigating catastrophic forgetting and preserving zero-shot performance. Crucially, CNS is fusion-free, meaning it doesn't require storing multiple LoRA weights or performing complex fusion operations at inference time.
Datasets
The paper uses a dataset composed of 20 concepts, including 8 real-world animals, 6 real-world objects, 3 styles, and 3 real-world scenes for evaluation. The authors leverage Stable Diffusion (SD-1.5) as their pre-trained text-to-image generation model.
Key Insights and Ideas
- Concept-Specific Neurons Exist: The paper provides strong evidence that specific neurons within diffusion models are highly correlated with particular visual concepts, allowing for targeted fine-tuning.
- General vs. Specific: Distinguishing between neurons that contribute to general image generation and those that are concept-specific is crucial for effective personalization without compromising the model's core abilities.
- Incremental Regularization is Key: The proposed regularization loss ($L_{reg}$) is vital for enabling continual learning. It acts as a safeguard, preventing new concepts from overwriting or corrupting previously learned information.
- Fusion-Free Personalization is Achievable: CNS demonstrates that effective multi-concept personalization can be achieved without the computational overhead and complexity of merging multiple model weights or LoRAs.
Key Results
- State-of-the-Art Performance: CNS achieves state-of-the-art performance in both single- and multi-concept personalization, outperforming existing methods like Mix-of-Show and Continual Diffusion.
- High Alignment Scores: In quantitative comparisons (Table 1), CNS achieves high CLIP-I (image alignment) and CLIP-T (text alignment) scores, particularly excelling in multi-concept text alignment, indicating it preserves semantic details from text descriptions.
- Efficiency: CNS is fusion-free and requires no additional model weights to be stored or test-time optimization, significantly reducing memory and processing time compared to methods like Mix-of-Show.
- Robustness to Forgetting: Ablation studies (Figure 5) show that CNS, with its concept neuron selection and regularization, effectively prevents performance degradation on previously learned concepts as new ones are added.
Limitations and Future Work
- Limitations: While CNS shows strong performance, the paper notes that it is slightly lower than Mix-of-Show on single-concept image alignment. The authors also acknowledge that the general neuron selection relies on a fixed set of calibration prompts, which might not cover all possible general image generation aspects.
- Future Work: The authors suggest that the proposed concept neuron selection scheme can be extended to tackle more advanced tasks like knowledge editing and unlearning. They also propose exploring its application beyond image modalities.
Summary updated