[论文解读] FlexMoRE: A Flexible Mixture of Rank-heterogeneous Experts for Efficient Federatedly-trained Large Language Models
FlexMoRE 在联邦混合专家框架中引入秩异构低秩适配器,证明低秧秩专家在显著降低内存的同时可以达到甚至超过全尺寸专家的性能,且最佳秩随任务而异。
Recent advances in mixture-of-experts architectures have shown that individual experts models can be trained federatedly, i.e., in isolation from other experts by using a common base model to facilitate coordination. However, we hypothesize that full-sized experts may not be necessary for all domains and that instead low-rank adapters may be sufficient. Here, we introduce FlexMoRE, a Flexible Mixture of Rank-heterogenous Experts, which may be either full-sized experts or adapters of a suitable rank. We systematically investigate the trade-off between expert rank and downstream task performance by evaluating $6$ experts with ranks $2^0$ to $2^{14}$ resulting in experiments covering 150 mixtures (96 with 2 experts, 54 with 7 experts) that are evaluated across $120$ tasks. For our experiments, we build on FlexOlmo and turn its pre-trained experts into low-rank versions. Our regression analysis from expert rank to downstream task performance reveals that the best-performing rank is substantially higher for reasoning-heavy benchmarks than for knowledge-heavy benchmarks. These findings on rank sensitivity come with direct implications for memory efficiency: Using optimal ranks, FlexMoRE yields improved downstream task performance (average score $47.18$) compared to the baseline FlexOlmo-style mixture of full-sized experts (average score $45.46$) at less than one third the parameters ($10.75$B for FlexMoRE vs. $33.27$B for FlexOlmo). All code will be made available.
研究动机与目标
- 推动去中心化、数据治理友好型的领域特定大语言模型训练,无需集中数据共享。
- 通过引入低秩适配器作为MoE专家与全尺寸专家并行,来降低内存和计算开销。
- 系统性研究在不同任务和领域中,专家秩如何影响性能。
提出的方法
- 在同一路由框架内扩展 FlexOlmo 至 FlexMoRE,使全尺寸和低秩 MoE 专家并存。
- 通过对 base expert(W_i - W_0) 的差分的截断 SVD 进行事后 PHLoRA 自适应,推导出低秩专家。
- 将低秩适配器附着到全尺寸基准专家上,并通过域信息路由器 f(x) 进行路由。
- 计算输出为 y = sum over top-k routing probabilities times (M_n + B_n A_n),其中 B 和 A 来自 LoRA 分量。
- 分析秩敏感性 s(r) 其中 s(r)=α+β log2 r,以评估秩增加带来的性能提升。
- 在 120 个任务和多种专家数量下进行秩异构和秩同构的实验。
实验结果
研究问题
- RQ1在联邦 MoE 设置中,用低秩适配器替换全尺寸专家对下游性能有何影响?
- RQ2LoRA 秩与在推理密集型与知识密集型基准测试中的性能关系如何?
- RQ3秩异构的专家混合是否可以在数据治理约束下超越同质配置和集中全尺寸基线?
- RQ4在 MC9 与基线基准的平均性能之间,选择专家秩有哪些实用最佳实践?
主要发现
- 低秩专家在若干领域专家上可以匹配甚至超越全尺寸基线,在某些情形下实现最高 7.13% 的平均提升。
- 异构 FlexMoRE 配置(混合秩)持续优于同质配置和 FlexOlmo 基线。
- 基于 MC9 的秩选择在平均性能和内存效率上优于基于平均的选择,特别是在活跃专家数量较少或较多时。
- 最佳专家秩取决于任务;推理密集型基准在较高秩时达到峰值,而知识密集型基准在较低秩时达到峰值。
- 在所有配置中,FlexMoRE 显著降低内存占用(例如对某些专家可高达 99.96% 的减排),同时在全尺寸基线上实现性能提升。
- 最佳性能的典型峰值秩集中在 2^7 至 2^10 之间,知识任务峰值较低(如 MMLU),推理任务峰值较高(如 BBH)。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。