arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.27444cs.CVcs.LG
收藏

LoRASpace:用于静态和动态多LoRA组合的池级共享子空间

LoRASpace: A Pool-Wide Shared Substrate for Static and Dynamic Multi-LoRA Composition

University of Moratuwa, Sri Lanka(莫拉图瓦大学);University of Michigan, USA(密歇根大学)

Thamirawaran Sathiyalogeswaran, Navindu De Silva, Chamikara Siriwardane, W. K. Alwis, Jason Mars, Udaya Sampath K. Perera Miriya Thanthrige, Ranga Rodrigo

AI总结:

该研究针对多LoRA组合的质量与推理速度权衡问题,提出无需训练的LoRASpace方法,通过构建池级共享子空间,实现静态模式的合并级质量与动态模式的超6倍加速。

摘要:

低秩适配(LoRA)将小型低秩矩阵附加到冻结的主干模型上,公共仓库中每个主干模型对应大量LoRA,每个LoRA针对不同概念或任务。在一次生成中组合多个LoRA需要权衡:将它们的权重合并为一次更新仅需一次前向传播,但针对不同概念训练的LoRA会相互干扰,导致质量下降;为每个LoRA单独运行前向传播(复合模式)可保持质量,但推理时间随活跃LoRA的数量线性增长。我们研究了现有多LoRA工作忽略的LoRA池的一个特性:在实际LoRA池中,堆叠的低秩因子所需的方向远少于其秩的总和。通过奇异值分解,我们找到了保留99%因子能量的最小子空间。在三个扩散模型LoRA池中,仅需要LoRA秩总和的46%至57%,且子空间大小随池规模呈亚线性增长。FLAN-T5任务上LoRA-Hub的48个LoRA子池显示出相当的重叠度(62%),而经多样性筛选的LoRA-Retriever基准接近无重叠基线(96%),因此是池的组成而非模态决定了压缩程度。我们基于这种重叠构建了LoRASpace,这是一种无需训练的方法,可为每个池计算一次子空间,并在两种推理模式中复用:静态模式以合并成本运行,动态模式用于依赖输入的路由。在扩散模型LoRA池中,静态LoRASpace的质量与复合模式相当,且成本与合并模式相同;在包含17个LoRA的池上,当有6个活跃LoRA时,动态LoRASpace比复合模式快6倍以上,主要原因是它仅运行一次主干前向传播而非六次。消融实验显示,相同秩的静态变体与LoRASpace性能相当,因此质量提升不依赖于池级基。在接近正交的LoRA-Retriever基准上,压缩程度较小,收益来自与外部检索的结合。

英文摘要:

Low-rank adaptation (LoRA) attaches small low-rank matrices to a frozen backbone, and public repositories host many LoRAs per backbone, each for a different concept or task. Combining several LoRAs in one generation forces a trade-off. Merging their weights into one update needs a single forward pass, but LoRAs trained for different concepts interfere and quality drops. Running each LoRA in its own forward pass (composite) preserves quality, but inference time grows linearly with the number of active LoRAs. We study a property of LoRA pools overlooked by prior multi-LoRA work. In real LoRA pools, the stacked low-rank factors need far fewer directions than their summed ranks. Using singular value decomposition, we find the minimal subspace that keeps 99% of the factor energy. On three diffusion pools, only 46% to 57% of the summed LoRA ranks is needed, and the subspace grows sub-linearly with pool size. A 48-LoRA sub-pool of LoRA-Hub on FLAN-T5 tasks shows comparable overlap (62%), while the diversity-curated LoRA-Retriever benchmark sits near the no-overlap baseline (96%), so pool composition rather than modality predicts where compression is large. We build on this overlap with LoRASpace, a training-free method that computes the subspace once per pool and reuses it in two inference modes, a static mode at merge cost and a dynamic mode for input-dependent routing. On the diffusion pools, static LoRASpace matches composite quality at merge cost, and dynamic LoRASpace is more than 6x faster than composite with six active LoRAs on a 17-LoRA pool, mainly because it runs one backbone pass instead of six. In an ablation, static variants at the same rank match LoRASpace, so the quality gain does not depend on the pool-wide basis. On the near-orthogonal LoRA-Retriever benchmark, compression is small and gains come from coupling with external retrieval.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑