Modular Customization of Diffusion Models via Blockwise-Parameterized Low-Rank Adaptation

Mingkang Zhu, Xi Chen, Zhongdao Wang, Bei Yu, Hengshuang Zhao, Jiaya JiaarXiv 2025

Abstract

Recent diffusion model customization has shown impressive results in incorporating subject or style concepts with a handful of images. However, the modular composition of multiple concepts into a customized model, aimed to efficiently merge decentralized-trained concepts without influencing their identities, remains unresolved. Modular customization is essential for applications like concept stylization and multi-concept customization using concepts trained by different users. Existing post-training methods are only confined to a fixed set of concepts, and any different combinations require a new round of retraining. In contrast, instant merging methods often cause identity loss and interference of individual merged concepts and are usually limited to a small number of concepts. To address these issues, we propose BlockLoRA, an instant merging method designed to efficiently combine multiple concepts while accurately preserving individual concepts' identity. With a careful analysis of the underlying reason for interference, we develop the Randomized Output Erasure technique to minimize the interference of different customized models. Additionally, Blockwise LoRA Parameterization is proposed to reduce the identity loss during instant model merging. Extensive experiments validate the effectiveness of BlockLoRA, which can instantly merge 15 concepts of people, subjects, scenes, and styles with high fidelity.

Introduction

Customizing diffusion models like Stable Diffusion to generate specific subjects or styles is typically achieved through Low-Rank Adaptation (LoRA). While effective for single concepts, merging multiple independently trained LoRAs into a single model is notoriously difficult. Existing approaches generally fall into two categories: post-training methods, which are slow and require retraining for every new combination, and instant merging methods, which often suffer from identity interference (concepts bleeding into each other) and identity loss (loss of subject detail).

Methodology: BlockLoRA

To overcome these limitations, we introduce BlockLoRA, a framework designed for the modular and instant merging of multiple customized concepts. BlockLoRA relies on two primary innovations:

Randomized Output Erasure (ROE)

Interference often occurs because LoRAs take a "shortcut" during training, modifying the base class distribution rather than learning a unique representation. ROE randomly erases parts of the LoRA's residual output during the customization phase. This forces the model to learn a robust and redundant representation for the specific concept, creating a unique "niche" that avoids collisions during merging.

Blockwise LoRA Parameterization

To eliminate mathematical weight conflicts, we assign each LoRA a disjoint subset of parameters. By dividing the weight residual matrix into blocks and restricting each LoRA to its assigned block via a binary mask, we ensure zero cosine similarity and zero sign conflicts between merged models.

Comparison of merging strategies: (a) Instant merging leads to weight interference; (b) Post-training is inefficient; (c) BlockLoRA ensures orthogonal, conflict-free merging.

Experimental Results

We evaluated BlockLoRA using a custom dataset of 15 distinct concepts, including people (e.g., Hinton, LeCun), subjects (e.g., Thanos), and styles (e.g., watercolor).

High-Capacity Merging

BlockLoRA successfully merges up to 15 concepts into a single model—a significant leap over previous instant merging methods that typically struggle beyond three concepts. Quantitatively, BlockLoRA achieved an Image Alignment score of 0.775, outperforming DB-LoRA (0.703) and Orthogonal Adaptation (0.749).

A complex multi-concept generation featuring Thanos, Hermione, and Harry Potter, demonstrating high-fidelity merging without identity interference.

Efficiency and Control

Unlike post-training methods that can take over an hour to merge concepts, BlockLoRA achieves high-quality results in under a second. Furthermore, it maintains compatibility with spatial control tools like ControlNet, allowing for precise placement of multiple customized characters in a single scene.

Conclusion and Future Work

BlockLoRA provides a scalable, "plug-and-play" solution for multi-concept diffusion model customization. While it currently requires pre-defined parameter blocks, future work will explore dynamic allocation strategies to further enhance the flexibility of this modular framework.

Summary updated

BibTeX
@misc{zhu2025modular,
  author = {Mingkang Zhu and Xi Chen and Zhongdao Wang and Bei Yu and Hengshuang Zhao and Jiaya Jia},
  title = {{Modular Customization of Diffusion Models via Blockwise-Parameterized Low-Rank Adaptation}},
  year = {2025},
  eprint = {2503.08575},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2503.08575},
}
Figure