How to Continually Adapt Text-to-Image Diffusion Models for Flexible Customization?

Jiahua Dong, Wenqi Liang, Hongliu Li, Duzhen Zhang, Meng Cao, Henghui Ding, Salman Khan, Fahad Khan

Introduction

Large-scale Latent Diffusion Models (LDMs) have demonstrated an extraordinary ability to generate high-quality images from textual descriptions. However, personalizing these models to recognize specific subjects—such as a particular pet or a unique artistic style—remains a challenge, particularly in dynamic environments. Most existing customization techniques, such as LoRA, assume a static training phase where concepts are learned once. In practice, users often require Concept-Incremental Flexible Customization (CIFC), where new concepts are added sequentially over time.

This paper introduces the Concept-Incremental Diffusion Model (CIDM), a framework designed to facilitate the continuous learning of personalized concepts without sacrificing the model's ability to recall previously learned subjects or compose multiple subjects into a single scene.

The Challenges of Incremental Learning

The transition from static customization to incremental learning introduces two primary hurdles:

  1. Catastrophic Forgetting: As the model is fine-tuned on a new concept (e.g., a specific cat), it tends to overwrite the parameters associated with previously learned concepts (e.g., a specific dog), leading to a loss of identity fidelity for earlier tasks.
  2. Concept Neglect: When generating images involving multiple learned concepts (e.g., "the specific dog and the specific cat playing together"), models often fail to render all subjects correctly, either omitting one or blending their features into a generic representation.

The CIDM Framework

To address these issues, the researchers developed CIDM, which integrates three core technical components:

1. Concept Consolidation Loss (CCL)

CIDM employs a two-step optimization strategy during training. First, it captures task-specific knowledge through "layer-wise concept tokens." Unlike standard methods that use a single global token, CIDM injects textual embeddings into specific transformer layers, allowing the model to capture fine-grained textures and structural details independently. Second, it optimizes for task-shared knowledge to identify commonalities across customization tasks. To prevent identity bleeding, an orthogonal subspace regularizer ensures that the mathematical representations of different concepts remain independent.

2. Elastic Weight Aggregation (EWA)

During the inference phase, CIDM moves away from static weight averaging. Instead, the Elastic Weight Aggregation module adaptively merges low-rank weights based on their relevance to the user's text prompt. By calculating semantic relations, EWA acts as a dynamic selection mechanism, ensuring that only the weights relevant to the requested concepts contribute to the final image generation.

3. Context-Controllable Synthesis (CCS)

To mitigate concept neglect in multi-subject scenes, CIDM introduces Context-Controllable Synthesis. This module allows users to provide bounding boxes for specific subjects. The model then utilizes layer-wise regional cross-attention and a specialized region noise estimation strategy to steer the denoising process, ensuring each subject is accurately placed and rendered within its designated area.

Experimental Setup and Results

The authors established a new Concept-Incremental Learning (CIL) benchmark to evaluate the framework. This benchmark consists of 10 sequential tasks, including seven distinct objects and three unique artistic styles. Notably, the dataset includes semantically similar concepts (e.g., different breeds of dogs) to test the model's discriminative capabilities.

Quantitative Performance

Evaluated on both Stable Diffusion v1.5 and SDXL backbones, CIDM consistently outperformed state-of-the-art (SOTA) methods like CLoRA and L2DM:

  • Image-Alignment: Improved by 1.1% to 8.0%, indicating higher fidelity to the training subjects.
  • Text-Alignment: Improved by 1.2% to 4.8%, demonstrating better adherence to complex prompts.

Qualitative Observations

Visual comparisons reveal that CIDM maintains sharp, distinct identities even after ten sequential training tasks. While competing models often produce distorted objects or lose the nuances of a learned style, CIDM successfully renders up to four distinct personalized subjects in a single scene without identity interference.

Limitations and Future Directions

Despite its success, CIDM faces challenges when the number of highly similar concepts (e.g., dozens of different golden retrievers) becomes very large. Additionally, the current spatial control mechanism relies on manual bounding box inputs. Future research will explore the integration of Multi-modal Large Language Models (MLLMs) for automated layout generation and the extension of this incremental framework to personalized video generation.

Summary updated

BibTeX
@inproceedings{dong2024how,
  author = {Jiahua Dong and Wenqi Liang and Hongliu Li and Duzhen Zhang and Meng Cao and Henghui Ding and Salman Khan and Fahad Khan},
  title = {{How to Continually Adapt Text-to-Image Diffusion Models for Flexible Customization?}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=O4RCFjVUBJ},
}
Figure