arxiv.org·2026/10/20·Thamirawaran Sathiyalogeswaran / Navindu De Silva 等
针对多LoRA组合中合并成本低但质量差、复合质量高但成本随活跃LoRA线性增长的问题,作者测量池级秩填充比 ρ=D/∑iri,发现三个扩散池ρ低至 0.46,LoRA-Hub子池约0.62,多样性LoRA-Retriever接近无重叠0.96,表明池构成而非模态决定压缩潜力。据此构建免训练池级共享子空间 LoRASpace:单个SVD得到(U,V),静态模式把时不变权重折成单一增量、以合并成本推理,动态模式在D维子空间内按上下文路由且仅跑一次主干。在SDXL Pool C上动态模式较composite实现 6.1倍加速;Pool A上静态LoRASpace的CLIP-T比composite高 +0.74,消融显示增益来自秩D截断正则化而非池级基选择。LoRA-Retriever上单独基底低于ambient mixture,搭配INSTRUCTOR检索才恢复,与高ρ下压缩仅在检索耦合时有益的预测一致;作者建议ρ低时部署基底、ρ高时仅用于路由或检索,中间用held-out提示词做τ扫描决定。
为什么重要 CivitAI/HF多LoRA组合是实际推理工作流,论文给出ρ判定标准与单快照复用机制,直接指导内存受限部署适合 在SD1.5/SDXL上组合多LoRA、受24GB显存约束、需要动态路由的推理工程师
低秩适配(LoRA)将小型低秩矩阵附加到冻结骨干上,公共仓库为每个骨干托管许多 LoRA,每个 LoRA 面向不同概念或任务。在一次生成中组合多个 LoRA 会迫使进行权衡。把它们的权重合并为一个更新只需一次前向传播,但为不同概念训练的 LoRA 会相互干扰,导致质量下降。让每个 LoRA 在各自前向传播中运行(composite)可以保持质量,但推理时间会随活跃 LoRA 数量线性增长。
我们研究了先前多 LoRA 工作忽视的一个 LoRA 池属性。在真实 LoRA 池中,堆叠后的低秩因子所需方向远少于它们的秩和。使用奇异值分解,我们找到保留 99% 因子能量的最小子空间。在三个扩散池上,只需要总 LoRA 秩的 46% 到 57%,并且子空间随池规模呈次线性增长。LoRA-Hub 在 FLAN-T5 任务上的一个 48-LoRA 子池显示出可比的重叠(62%),而多样性筛选的 LoRA-Retriever 基准接近无重叠基线(96%),因此池组成而非模态决定了哪里可以实现大幅压缩。
我们基于这种重叠构建了 LoRASpace,这是一种训练无关的方法,每个池只计算一次子空间,并在两种推理模式中复用:一种是以合并成本运行的静态模式,另一种是用于输入依赖路由的动态模式。在扩散池上,静态 LoRASpace 以合并成本匹配 composite 质量;在 17-LoRA 池上有六个活跃 LoRA 时,动态 LoRASpace 比 composite 快 6x 以上,主要原因是它只运行一次骨干通过而不是六次。在一项消融中,同秩的静态变体与 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.
动态加速
N=6 vs
LoRASpace耗时
N=5,vs 187s
静态merge耗时
N=5
峰值内存
其他基线超22GB
注释 · RTX 3090,50步DPM-Solver++,10242,PEFT基线峰值均超22GB出自 图2
substrate独立
Macro Task
ambient mixtur
Macro Task
hybrid检索
1.52 samp/s
ambient吞吐
samp/s
注释 · hybrid检索耦合恢复54.51并提速1.52 vs 1.47 samp/s,验证ρ预测出自 §4.6



EVIDENCE / METHODS
表格
三个扩散池ρ仅0.46–0.57,LoRA-Retriever近无重叠ρ=0.96
| 池 | K | Σri | D均值 | ρ |
|---|---|---|---|---|
| Pool A (SD1.5) | 11 | 784 | 446 | 0.57 |
| Pool B (SD1.5) | 17 | 1112 | 521 | 0.47 |
| Pool C (SDXL) | 17 | 1792 | 819 | 0.46 |
| LoRA-Hub (FLAN-T5-Large) | 48 | 768 | 474 | 0.62 |
| LoRA-Retriever (LLaMA-2-7B) | 48 | 384 | 368 | 0.96 |
注释 · ρ=D/Σri,能量阈值τ=0.99,越低表示池内方向重叠越多,所有值逐字来自表2出自 表2
原版排版与图表 · 手机无法内嵌时可在浏览器打开。PDF 插件内选文不能传给网页助手。