TL;DR
Imagine ten hospitals each fine-tuning an AI model on private patient scans they can never legally share. How do you combine their isolated expertise into a single, master model without moving data, using labels, or running expensive new training? LoRAccord solves this by merging lightweight model updates in closed form and finding the exact right "volume knob" for the combined weights—purely by checking how well the merged model agrees with the individual specialists on a few dozen unlabeled inputs.
What Problem Does This Paper Address?
Sharing model weights is easy; sharing medical records or proprietary regional data is a legal nightmare. Today, organizations adapt open vision-language models using LoRA (Low-Rank Adaptation—a technique that freezes the massive base model and trains tiny, plug-in weight matrices). If Hospital A trains a LoRA for MRIs and Hospital B trains one for X-rays, we want a single unified adapter that handles both, served in one pass without a complex routing mechanism.
Existing "model merging" methods force an uncomfortable trade-off. Weights-only approaches (like simply averaging the LoRAs) require zero data, but accuracy plummets when tasks are dissimilar. Gradient-based methods learn how to blend the models using unlabeled data, which eats up GPU memory and time.
A sweet spot exists called RegMean: each party sends summary statistics of how their data activates each layer, allowing a central merger to align the adapters via closed-form linear regression. However, RegMean hardcodes a global scaling factor of $1/K$ when combining $K$ adapters. While $1/K$ is mathematically optimal for a single isolated layer, deep networks run end-to-end—meaning layer-by-layer errors compound, and $1/K$ leaves substantial accuracy on the table.
Methods
LoRAccord upgrades closed-form merging with three clean, training-free steps:
- Base-Model Gram Matrices: Instead of recording layer input statistics (Gram matrices, which capture second-moment token correlations) inside each fine-tuned model like RegMean does, holders record them once using the frozen base model on just 32 to 64 unlabeled inputs. Because these statistics don't depend on any adapter, they can be reused for any future merge.
- Closed-Form Regression & Factor Stacking: The merger solves the least-squares regression per layer to orient each adapter toward the input directions its task actually uses. By algebraically stacking the resulting matrices, LoRAccord outputs one exact LoRA adapter that folds cleanly into the base model at zero extra serving cost.
- Label-Free Scale Calibration via Agreement: Rather than fixing the global scale at $1/K$, LoRAccord sweeps a small grid of candidate scalars $c$. For each $c$, it checks how often the merged model's final answers agree with each specialist adapter on its own unlabeled inputs, picking the $c^\star$ with maximum consensus.
Datasets
The authors test across both multi-task (different capabilities) and multi-site (same task, skewed data) setups:
- Vision (CLIP): Eight image classification datasets from the KnOTS benchmark (SUN397, Stanford Cars, RESISC45, EuroSAT, SVHN, GTSRB, MNIST, DTD).
- Medical VLMs: MergeMedBench (8 imaging modalities from OmniMedVQA, including CT, MRI, X-ray, and ultrasound) and 8 medical classification/VQA tasks on Gemma-4-31B (BreakHis, TBX11K, DDR, LAG, PathVQA, SLAKE, VQA-RAD, VQA-Med 2019).
- Language Models: Six natural language inference (NLI) tasks on Llama-3-8B and up to 32 generation tasks from Lots-of-LoRAs on Mistral-7B.
- Newly Introduced Multi-Site Split: To simulate hospitals with skewed patient populations, the authors partition OmniMedVQA’s dermoscopy data across 10 simulated sites using uneven Dirichlet distributions over seven image sources.
Key Insights and Ideas
- The optimal merge scale is a moving target: On CLIP backbones, the best scaling factor sits below $1/K$; on medical VLMs, it sits above $1/K$. Hardcoding a constant fails—picking $c=0.2$ is great for Qwen3-VL-2B, yet costs 26 accuracy points on CLIP ViT-B/32.
- Agreement beats entropy as a compass: Prior unlabeled methods like AdaMerging minimize prediction entropy (forcing the model to sound confident). LoRAccord shows entropy can pick terrible scales—losing up to 13.2 points on CLIP—whereas simple output agreement with the expert adapters tracks true test accuracy with a Spearman rank correlation of $\rho \ge 0.97$. On all seven ablation pools, this label-free pick selects the exact same scale that labeled validation data would choose.
- The $1/K$ penalty worsens as more collaborators join: As $K$ grows, $1/K$ shrinks every update toward zero, while the true optimal scale plateaus around $0.2$–$0.25$. Calibrating $c$ becomes more critical the larger the federation gets.
Key Results
LoRAccord achieves the highest average performance across every vision, vision-language, and language pool tested:
- Multi-task Vision & VLMs: Beats RegMean by +8.8 points on CLIP ViT-B/32 (79.8% vs. 71.0% normalized accuracy) and +4.7 points on InternVL2-1B (95.9% vs. 91.1%). On the massive Gemma-4-31B, it reaches 98.1%, outperforming learned AdaMerging by +7.6 points.
- Multi-site Dermoscopy: Merges 10 skewed site adapters into one LoRA that achieves 96.8% raw accuracy—beating the best individual hospital site by 8.0 points, beating a 10-model ensemble (at $10\times$ inference cost), and landing within 2 points of an oracle model trained on pooled, shared data.
- Speed: Runs in minutes on a single GPU without gradients—completing the ViT-B/32 merge in 3.8 seconds, compared to 123 seconds for AdaMerging ($32\times$ faster).
Limitations and Future Work
- No formal privacy guarantees: While raw images and labels never leave their owners, sharing unencrypted layer Gram matrices carries no formal differential privacy guarantee (though the authors note secure aggregation protocols can hide individual Grams).
- Requires in-distribution unlabeled inputs: Finding the scale requires a small pool of unlabeled inputs drawn from each task's distribution—either held by the merger or evaluated via one extra lightweight scoring round with the data holders. Future work is not explicitly discussed in the paper.
Summary updated