Abstract
Customizing diffusion models to generate multiple specific concepts simultaneously remains a significant challenge due to attribute entanglement and high training overhead. We present LoRACLR, a post-training method that merges independent Low-Rank Adaptation (LoRA) models using a contrastive objective. By aligning weight spaces to attract positive concept pairs and repel negative ones, LoRACLR enables high-fidelity generation of up to 12 distinct concepts without requiring original training data.
Introduction
The ability to personalize diffusion models like Stable Diffusion has been revolutionized by LoRA. However, combining multiple LoRAs—such as placing several specific individuals in a single scene—often leads to "attribute entanglement," where facial features or styles bleed into one another. Existing solutions typically require expensive joint retraining or per-image optimization. LoRACLR addresses these issues by treating model merging as a contrastive learning problem, allowing for "off-the-shelf" merging that preserves unique identities.
Methodology: Contrastive Weight Adaptation
LoRACLR introduces a contrastive objective directly in the model's weight space. Unlike simple weighted averaging, this method optimizes a weight delta ($\Delta W$) based on feature pairs:
- Attraction: Ensures the merged model's output for a specific concept remains close to the original individual LoRA's output.
- Repulsion: Explicitly separates the feature representations of different concepts (e.g., Concept A vs. Concept B) to prevent identity leakage.
This process occurs post-training and does not require the original images used to train the constituent LoRAs, making it highly compatible with community-shared models.
Key Results and Evaluation
LoRACLR demonstrates superior scalability and identity preservation compared to existing baselines.
Identity Preservation
Using the ArcFace face recognition model for quantitative evaluation, LoRACLR achieved an Identity Alignment score of 0.828. This significantly outperforms Orthogonal Adaptation (0.745) and Mix-of-Show (0.706). User studies further confirm these findings, with participants rating LoRACLR's identity capture at 3.42/5, well above competing methods.
Efficiency and Scalability
A key advantage of LoRACLR is its efficiency. Merging 12 concepts takes approximately 5 minutes on an NVIDIA A100, compared to up to 120 minutes for methods requiring scratch-based fine-tuning. Furthermore, the method maintains high identity scores even as the number of concepts in a single scene increases to 12.
Conclusion
LoRACLR provides a robust and efficient framework for multi-concept diffusion model customization. By leveraging contrastive learning in the weight space, it effectively eliminates attribute entanglement while maintaining compatibility with existing LoRA ecosystems. Future work will explore extending this approach to newer diffusion architectures and addressing the ethical implications of high-fidelity identity preservation.
Summary updated