arXiv:2606.03723cs.LG2026-06中稿 · ICML

将多个LoRA合并为一个低秩适配器,提升模型部署效率

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

  • 先压缩后合并:在低秩空间中进行适配器融合,避免信息丢失
  • 实验表明性能优于现有方法,接近全参数合并效果
  • 适合需要高效管理多任务适配器的研究者和开发者

低秩适配(LoRA)可实现基础模型的参数高效微调,但任务特定适配器的泛滥导致能力碎片化,难以复用与部署。本文研究将 $T$ 个 LoRA 合并为单个秩为 $r$ 的 LoRA 的问题,以保留低秩结构优势。现有‘先合并后压缩’方法在全参数空间合并后通过截断SVD压缩至秩 $r$,但全参数合并可能破坏低秩结构,使压缩难以恢复有效表示。为此,本文提出‘先压缩后合并’(CtM)新流程:在合并前,仅使用 LoRA 权重计算共享 $r$ 维子空间,捕捉跨适配器共性结构;将每个适配器投影至该子空间,得到 $r\times r$ 坐标;在降维空间中应用标准合并规则。该方法保证输出为秩 $r$ LoRA,无需事后截断,并在由拼接的 LoRA 因子张成的核心空间中实现高效计算。多模型、多任务实验显示,CtM 持续优于现有单输出 LoRA 方法,且性能逼近全参数合并方法。

原文摘要 · Abstract (English)

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.

LoRA模型压缩适配器融合低秩

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。