[论文解读] Effective LoRA Adapter Routing using Task Representations
LoRAuter 是一个训练无关的路由框架,利用任务表示来选择与融合 LoRA 适配器,在域内达到 Oracle 水平的性能并具备强大的跨域泛化能力,可扩展到超过 1500 个适配器。
Low-rank adaptation (LoRA) enables parameter efficient specialization of large language models (LLMs) through modular adapters, resulting in rapidly growing public adapter pools spanning diverse tasks. Effectively using these adapters requires routing: selecting and composing the appropriate adapters for a query. We introduce LORAUTER, a novel routing framework that selects and composes LoRA adapters using task representations rather than adapter characteristics. Unlike existing approaches that map queries directly to adapters, LORAUTER routes queries via task embeddings derived from small validation sets and does not require adapter training data. By operating at the task level, LORAUTER achieves efficient routing that scales with the number of tasks rather than the number of adapters. Experiments across multiple tasks show that LORAUTER consistently outperforms baseline routing approaches, matching Oracle performance (101.2%) when task-aligned adapters exist and achieving state-of-the-art results on unseen tasks (+5.2 points). We further demonstrate the robustness of LORAUTER to very large, noisy adapter pools by scaling it to over 1500 adapters.
研究动机与目标
- 为大规模 LoRA 适配器池在无可用的适配器训练数据条件下,提出高效路由的动机。
- 提出一个以任务表示驱动的路由框架,在黑盒设定下运行。
- demonstration 路由在任务层面的扩展性随任务数量增加,而非仅随适配器数量增加。
- 在从公开来源获取的大型、带噪声的适配器池扩展时,展示鲁棒性与可扩展性。
提出的方法
- 构建一个小型、具有代表性的任务数据库,配备轻量级验证集 (D_i) 针对 T 个任务。
- 通过基于竞赛的搜索(如 Successive Halving)将每个任务 t_i 映射到池 Phi 中最匹配的适配器 phi。
- 通过用固定指令对其部分验证查询进行编码,将任务表示为嵌入 e_i。
- 在推理阶段,将输入 x 编码为 e_x,按余弦相似度检索前-K 个相似任务,并通过预定义的任务到适配器映射 M 获取它们的适配器。
- 在输出空间以输入感知的融合方式组合前-K 个适配器:h' = Wx + sum_i w_i B_i A_i x,其中权重 w_i 来自任务概率 p_i 的推导。
- 在无训练、黑盒设定下工作,并通过对余弦相似度进行 softmax 的方式对任务亲和性进行概率解释。

实验结果
研究问题
- RQ1任务表示是否可以在没有适配器训练数据的条件下有效引导 LoRA 适配器的路由?
- RQ2在域内与跨域场景中,基于任务的路由相较于基线方法的表现如何?
- RQ3该方法是否可扩展到来自公开来源的大型、带噪声的适配器池?
- RQ4检索与组合对整体性能的影响如何,针对 OOD 输入,组合多个适配器是否有益?
- RQ5当真实任务标签不可用时,伪任务(聚类表示)有多有效?
主要发现
- LoRAuter 在非 OOD 设置下,对 Llama2-7B 的任务对齐性能达到 Oracle 的 101.2%,在某些情况下与 Oracle 相当甚至超越。
- 在 OOD 设置下,LoRAuter 分别达到 88.4%(7B)和 86.8%(13B),优于最强基线 5.2 个百分点。
- LoRAuter 能扩展到大规模适配器池(1500+),与较小的精心 curate 池相比具有竞争力(取决于设置的范围在 84.0-89.6% 之间)。
- 检索与组合组件对性能有叠加贡献;同时使用两者可获得最佳结果(如 7B 的非 OOD 达 101.2%)。
- 在半 OOD 设置和可用验证数据下,LoRAuter 提升至 92.7%(7B)和 91.1%(13B),持续优于基线。
- 使用 Successive Halving 将适配器评估成本相比均匀评估降低超过 2 倍,推动路由的可扩展性。

阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。