Compress then Merge: From Multiple LoRAs into One Low-Rank Adapter

Zhengbao He, Ruiqi Ding, Zhehao Huang, Ruikai Yang, Tao Li +1 more
6/2/2026
cs.LG

No official code found. Best implementation: ZhengbaoHe/compress-then-merge (11 stars, Apache-2.0, last commit 2026-05-21).

Abstract

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.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

[ICML 2026] Official repository for paper "Compress then Merge: From Multiple LoRAs into One Low-Rank Adapter"

112May 9, 20265 months agoApache-2.0

Similar Papers

Cite this paper

@article{he2026compress,
  title  = {Compress then Merge: From Multiple LoRAs into One Low-Rank Adapter},
  author = {Zhengbao He and Ruiqi Ding and Zhehao Huang and Ruikai Yang and Tao Li and Xiaolin Huang},
  year   = {2026},
  eprint = {2606.03723},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.03723v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2606.03723.svg)](https://codeofpaper.com/paper/2606.03723)

Discussion