1 minute read

The paper introduces two new methods, LoRA Switch and LoRA Composite, for composing multiple Low-Rank Adaptations (LoRAs) for the task of text-to-image generation. The main idea is to explore a decoding-centric perspective, where the LoRA weights are kept intact, and the composition is achieved by selectively activating LoRAs during the denoising process of diffusion models. The paper also proposes ComposLoRA a testbed consisting of 480 composition sets used to measure the performance.

Method Overview

The authors introduce two new methods of composing LoRAs: LoRA Switch and LoRA composite.

  1. LoRA Switch (LoRA-S): This method activates a single LoRA at each denoising step, cycling through different LoRAs in a predetermined sequence and changing the active LoRA after each t steps. In this way, each LoRA contributes repeatedly to the image generation with the goal of achieving a better generation.

  2. LoRA Composite (LoRA-C): This method involves calculating unconditional and conditional score estimates for each LoRA individually at every denoising step. These scores are then averaged to provide balanced guidance throughout the image generation process, ensuring the cohesive integration of all elements represented by different LoRAs.

In order to test the results, the paper introduces ComposLoRA, a comprehensive testbed featuring several LoRAs and 480 composition sets, to evaluate the proposed methods. More exactly, from a collection of public LoRAs, the authors select 22 of them that are combined together in order to form the compositions. For evaluation, the authors propose a GPT-4V based framework, where GPT-4V assesses the image quality and the composition quality of the generated images.

Results

  • Extensive automatic and human evaluations demonstrate the superior performance of LoRA Switch and LoRA Composite compared to the prevalent LoRA merging approach, especially as the number of LoRAs in a composition increases.

  • LoRA Switch excels in composition quality, while LoRA Composite performs better in image quality.

Conclusion

The paper introduces two training-free methods, LoRA Switch and LoRA Composite. These methods overcome the limitations of current weight manipulation techniques and enable the effective integration of multiple LoRAs for composable image generation. For more details please consult the full paper and the project page.

Congrats to the authors for their work!

Zhong, Ming, et al. “Multi-LoRA Composition for Image Generation.” ArXiv, 26 Feb. 2024, arxiv.org/abs/2402.16843.

Updated: