TL;DR
Merging many LoRA adapters into a single model often results in "faded" outputs where specific subjects or styles lose their identity. This paper identifies a systematic "shrinkage" effect in standard least-squares merging methods and proposes a simple rescaling fix that restores signal strength, enabling high-fidelity merging of up to 30 adapters simultaneously across image generation, style transfer, and classification tasks.
What Problem Does This Paper Address?
Personalizing large-scale diffusion models usually involves training Low-Rank Adapters (LoRAs) for specific subjects or styles. However, deploying dozens of individual LoRAs is computationally expensive. Model merging aims to combine multiple adapters into one "super-adapter" to save costs.
Current state-of-the-art merging methods (like Subspace Routing or RegMean) use Ordinary Least Squares (OLS) to fit the merged weights so they reproduce the outputs of individual adapters. While this works for a few adapters, it fails as the number of tasks ($K$) grows. The generated images become generic and lose the specific features of the subjects. The authors discover that this isn't just random noise; it's a structural bias in OLS called shrinkage, which systematically dampens the desired task signal when the activation distributions of different tasks overlap.
Methods
The authors analyze OLS-based merging through a geometric lens. They show that the merged prediction $\hat{Y}$ can be decomposed into a "shrunk" version of the target signal ($\gamma Y$, where $\gamma < 1$) plus some interference ($U$).
To fix this, they propose Scaled SSR (and similar scaled versions of other OLS methods). The core idea is to multiply the merged update by a rescaling factor $\alpha$ to restore the signal strength. They provide two ways to find $\alpha$:
- A closed-form heuristic ($1/\gamma$): Calculated directly from calibration data (unlabeled inputs) at almost no extra cost.
- Line Search: A small validation sweep to find the optimal $\alpha$ that maximizes performance on a target metric (like DINO similarity).
Datasets
The researchers evaluated their approach across a diverse set of benchmarks:
- DreamBooth: 30 subjects (21 objects, 9 live subjects) merged into SD3.5-Medium and FLUX.1-dev.
- WikiArt: 20 different artistic styles for style transfer tasks.
- CIFAR-10 Concept Erasure: Merging adapters designed to remove specific concepts from a model.
- Image Classification: 20 tasks using CLIP ViT encoders.
- LLM Tasks: 9 tasks (NLI and generative) using Llama-3.1-8B and 20 adapters from LoRAHub on FLAN-T5.
Key Insights and Ideas
- Signal vs. Interference: OLS treats signal loss and interference noise as equally bad. However, neural networks are surprisingly robust to noise but very sensitive to weakened signals. Restoring the signal strength is far more important than perfectly suppressing interference.
- Shrinkage is Predictable: Because the shrinkage is a mathematical property of the OLS objective in overlapping subspaces, it can be quantified and corrected post-hoc without retraining.
- Unlocking Calibration Data: Previous studies suggested that adding more diverse calibration data didn't help merging. This paper shows that more data does help, but only if you use rescaling; otherwise, the increased overlap just leads to more shrinkage.
- Universality: While the paper focuses on image generation, the shrinkage phenomenon is fundamental to OLS merging, meaning the fix also improves LLMs and classification models.
Key Results
The improvements are most dramatic as the number of merged adapters increases.
- Subject Fidelity: On the DreamBooth task with 30 merged adapters, subject recovery (measured by the gap between the base model and single-LoRA performance) jumped from ~58% to 81% using rescaling.
- Qualitative Restoration: As seen in the qualitative results, standard merging (SSR) produces generic-looking objects, while Scaled SSR restores the specific identity of the "rc car" or "monster toy."
- Style Transfer: Specificity for artistic styles tripled when merging 20 adapters on FLUX.1-dev.
- Concept Erasure: Scaled SSR successfully erased multiple target concepts (e.g., bird, cat, frog) simultaneously while preserving unrelated classes (e.g., car), whereas unscaled methods often failed to fully remove the concepts.
Limitations and Future Work
- Post-hoc Nature: The current method is a post-hoc correction. A better approach might be to incorporate global task loss awareness directly into the merging optimization objective.
- Heuristic Failures: The $1/\gamma$ heuristic assumes the optimal signal scale is exactly 1.0. In some cases (like concept erasure), the "optimal" scale might be higher, requiring a validation line search.
- Activation Drift: The paper doesn't account for how activations change as they pass through multiple merged layers (activation drift), which is a known challenge in deep model merging.
- LLM Gains: While positive, the performance gains on LLMs were less pronounced than in image generation, suggesting that language model merging might involve different interference dynamics.
Summary updated