Compress then Merge: From Multiple LoRAs into One Low-Rank Adapter
About
Low-rank adaptation (LoRA) enables parameter-efficient specialization of foundation models, but the proliferation of task-specific adapters fragments capabilities across many adapters, complicating reuse and deployment. We study the problem of merging $T$ LoRAs into a single rank-$r$ LoRA, thereby preserving the benefits of low-rank structure. Existing Merge-then-Compress pipelines treat the rank constraint as an afterthought: they merge adapters in the full parameter space, then compress the merged result to rank $r$ via truncated SVD. However, full-parameter merging may destroy the low-rank structure, making it difficult for subsequent compression to recover an effective rank-$r$ LoRA. We propose Compress-then-Merge (CtM), a reversed pipeline that enforces the rank-$r$ bottleneck before merging: CtM computes shared $r$-dimensional subspaces using only the LoRA weights to capture cross-adapter common structure, projects each adapter into the shared subspaces to obtain $r\times r$ coordinates, and then applies standard merging rules in this reduced space. CtM guarantees a rank-$r$ LoRA by construction, avoiding post-hoc truncation, and enables efficient computation in the core space spanned by concatenated LoRA factors. Experiments across multiple models and tasks show that CtM consistently outperforms existing single-LoRA-output baselines while narrowing the performance gap to full-parameter merging methods.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Natural Language Inference | NLI benchmarks (MNLI, QNLI, SNLI, RTE, SICK, SCITAIL) (test) | MNLI Accuracy96.18 | 35 | |
| Image Classification | 8-Vision benchmark (EuroSAT, GTSRB, SVHN, RESISC45, DTD, Cars, MNIST, SUN397) (test) | Accuracy (EuroSAT)64.95 | 29 | |
| Image Classification | 16 Vision Tasks Suite (Cars, DTD, EuroSAT, GTSRB, MNIST, RESISC45, SUN397, SVHN, Caltech101, CUB-200, Flowers102, OfficeHome, Oxford-IIIT Pet, Food101, FER2013, FashionMNIST) ViT-B/32 (test) | Cars Accuracy80.46 | 16 | |
| Multimodal Generative Tasks | MM-MergeBench (test) | Accuracy56.65 | 12 | |
| Data-to-text generation | E2E-NLG | ROUGE-199.7 | 8 | |
| Question Answering | ARC Challenge | Exact Match (EM)117.4 | 8 | |
| Coreference Resolution | WSC | Exact Match (EM)108 | 8 | |
| Paraphrase Detection | Glue QQP | Exact Match (EM)89.19 | 8 | |
| Data-to-text generation | WebNLG | -- | 8 |