LoRAverse: A Submodular Framework to Retrieve Diverse Adapters for Diffusion Models

Mert Sonmezer, Matthew Zheng, Pinar Yanardag

TL;DR

This paper introduces LoRAverse, a novel framework that addresses the challenge of selecting diverse and relevant LoRA adapters for diffusion models from a vast database. By framing adapter selection as a submodular optimization problem, LoRAverse effectively balances prompt relevance with output diversity, leading to richer and more varied image generation compared to existing methods.

What Problem Does This Paper Address?

Diffusion models have become incredibly powerful for generating custom images, and LoRA (Low-Rank Adaptation) adapters have revolutionized their personalization. These adapters allow users to fine-tune models for specific styles, objects, or characters without extensive retraining. However, the sheer volume of available LoRA adapters (over 100,000 on platforms like Civit.ai) presents a significant challenge. Users struggle to navigate this vast landscape, often resorting to trial-and-error to find a combination of adapters that are both relevant to their prompt and produce diverse outputs. Existing methods often fall short: simple top-K retrieval can lead to redundant adapters, while LLM-based approaches can introduce biases and limit diversity. This paper aims to solve the problem of efficiently and effectively selecting a diverse yet relevant subset of LoRA adapters from a massive database.

Methods

LoRAverse employs a two-stage architecture:

  1. Concept Extractor: This module uses a large language model (LLM) to parse the user's prompt and extract key concepts or keywords. This segmentation helps in understanding the nuanced aspects of the desired image.
  2. Submodular Retriever: This is the core innovation. It frames the adapter selection problem as a combinatorial optimization task. The retriever aims to maximize a monotone submodular function that balances two objectives:
  3. Relevance: How well the selected LoRA adapters align with the user's prompt and extracted concepts. This is measured using embeddings from a Vision Language Model (VLM).
  4. Diversity: Encouraging the selection of adapters from different semantic clusters. This is achieved by penalizing the selection of additional models from already-represented clusters.

A greedy algorithm is used to find an almost-optimal solution for this submodular function, ensuring a good trade-off between relevance and diversity. The framework also includes a safety checker to filter out inappropriate adapters.

Datasets

  • LoRA Adapter Databases: The paper leverages large collections of LoRA models from platforms like Civit.ai and Hugging Face.
  • MS-COCO and PartiPrompts: These datasets were used for generating image sets for evaluation.
  • Realistic-Vision-v6 and Counterfeit-v3: These are mentioned as prominent model checkpoints used for image generation during experiments.

Key Insights and Ideas

  • Submodularity for Diversity: The core insight is that the problem of selecting diverse adapters can be effectively modeled using submodular functions. This mathematical framework naturally captures the diminishing returns of adding more adapters from the same semantic group, thus promoting diversity.
  • Concept-Driven Retrieval: Decomposing the prompt into distinct concepts allows for more targeted and effective adapter retrieval, preventing misalignment that can occur when relying solely on the full prompt embedding.
  • Balancing Relevance and Diversity: The framework explicitly balances relevance (alignment with the prompt) and diversity (variety of styles/concepts) using tunable hyperparameters, allowing users to prioritize one over the other.
  • Algorithmic vs. LLM-based Selection: LoRAverse's purely algorithmic approach to adapter selection, without relying on external LLM APIs for the retrieval process itself, offers a more controlled and potentially less biased alternative to methods like Stylus.

Key Results

  • Qualitative Improvements: LoRAverse consistently produces more diverse image sets compared to baselines like Stylus and SD v1.5, as demonstrated in qualitative comparisons (Figure 3).
  • Quantitative Diversity Gains: The method significantly improves diversity metrics such as Truncated CLIP Entropy (TCE) and Truncated Inception Entropy (TIE), while maintaining comparable text-image alignment (CLIP score). For example, TCE increased by 16.5% and TIE by 5.1% with only a 3.1% decrease in CLIP score.
  • VLM-as-a-Judge Evaluation: GPT-4o evaluations showed LoRAverse achieving a clear advantage in diversity, while maintaining competitive visual quality and textual alignment.
  • User Study: Human evaluators demonstrated a higher preference for LoRAverse, particularly for its diversity.
  • Inference Time: LoRAverse adds an average overhead of 26 seconds to SD v1.5's generation time, primarily due to adapter clustering. This overhead is manageable and decreases proportionally with batch size.

Limitations and Future Work

  • Inference Overhead: The primary limitation acknowledged is the added inference time due to the concept extraction and submodular retrieval process, especially for prompts with many concepts. The authors note that this overhead decreases with larger batch sizes.
  • Clustering Dependency: The submodular retriever's effectiveness relies on the quality of the adapter clustering. While HDBSCAN is used, further research into more robust clustering methods could be beneficial.
  • Hyperparameter Tuning: The balance between relevance ($\lambda_1$) and diversity ($\lambda_2$) requires careful tuning, and the paper suggests that adjusting these parameters can significantly influence the output.
  • Future Work: The authors suggest exploring more sophisticated submodular functions and investigating how to further optimize the inference speed. They also hint at the potential for LoRAverse to be extended to other generative models beyond diffusion models.

Summary updated

BibTeX
@inproceedings{sonmezer2025loraverse,
  author = {Mert Sonmezer and Matthew Zheng and Pinar Yanardag},
  title = {{LoRAverse: A Submodular Framework to Retrieve Diverse Adapters for Diffusion Models}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2025},
}
Figure