arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2503.05641cs.CLcs.AIcs.LG
收藏

基于技能的混合专家模型:通过推断技能实现异构推理的自适应路由

Skill-Based Mixture-of-Experts: Adaptive Routing for Heterogeneous Reasoning via Inferred Skills

The University of Texas at Austin(德克萨斯大学奥斯汀分校)

Justin Chih-Yao Chen, Sukwon Yun, Elias Stengel-Eskin, Tianlong Chen, Mohit Bansal

AI总结:

提出Skill-MoE框架,通过推断查询所需技能进行实例级专家选择,并采用批推理策略降低开销,在单GPU上集成16个专家模型,在多个推理基准上平均提升8.15%。

摘要:

结合现有的预训练大语言模型是处理多样化推理任务的一种有前景的方法。然而,任务级专家选择往往过于粗粒度,因为不同实例可能需要不同的专业知识。为了解决这个问题,我们提出了Skill-MoE,一个符号化的、基于技能的、无梯度的混合专家框架,用于实例级专家选择。Skill-MoE从每个查询中推断技能(例如,数学中的代数),根据技能相关性选择专家,并让每个专家生成自己的推理。然后,由选定的聚合器将得到的k个输出进行综合,该聚合器因其整合多样化响应的能力而被选中。虽然实例级选择显著提高了性能,但朴素实现会因重复的模型加载和卸载而产生巨大开销。我们通过一种批推理策略解决了这个问题,该策略将实例按分配的专家分组,使得每个模型只需加载一次。因此,Skill-MoE在单GPU上集成了16个专家模型,其运行时间与使用4个GPU的先前多智能体基线相当。在多个基准测试(MMLU-Pro、GPQA、AIME和MedMCQA)中,Skill-MoE相比最佳基线实现了平均8.15%的绝对提升。它还能很好地泛化到未见过的任务,并且无需昂贵的多轮交互即可超越基于讨论的方法。

英文摘要:

Combining existing pre-trained LLMs is a promising approach for diverse reasoning tasks. However, task-level expert selection is often too coarse-grained, since different instances may require different expertise. To address this, we propose Skill-MoE, a symbolic, skill-based, and gradient-free Mixture-of-Experts framework for instance-level expert selection. Skill-MoE infers skills (e.g., algebra in mathematics) from each query, selects experts based on skill relevance, and lets each expert generate its own reasoning. The resulting k outputs are then synthesized by an aggregator chosen for its ability to integrate diverse responses. While instance-level selection substantially improves performance, naively implementing it incurs heavy overhead from repeated model loading and offloading. We address this with a batch inference strategy that groups instances by assigned experts, allowing each model to be loaded only once. As a result, Skill-MoE integrates 16 expert models on a single GPU with runtime comparable to prior multi-agent baselines using 4 GPUs. Across diverse benchmarks (MMLU-Pro, GPQA, AIME, and MedMCQA), Skill-MoE achieves an average absolute improvement of 8.15% over the best baseline. It also generalizes well to unseen tasks and outperforms discussion-based methods without requiring expensive multi-round interactions.

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

↑