arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.07172cs.LGcs.CL
收藏

Glider:全局与局部指令驱动的专家路由器

Glider: Global and Local Instruction-Driven Expert Router

The University of North Carolina at Chapel Hill(北卡罗来纳大学教堂山分校)

Pingzhi Li, Prateek Yadav, Jaehong Yoon, Jie Peng, Yi-Lin Sung, Mohit Bansal, Tianlong Chen

AI总结:

针对现有模型融合方法重未见任务泛化、轻已见任务性能的问题,提出融合全局语义路由与局部token路由的GLIDER,兼顾两类任务表现,验证了多尺度语义路由的有效性。

摘要:

高性能预训练模型的普及催生了大量针对特定领域的微调专家模型,这推动了强大且自适应的基于路由的“模型MoErging(模型融合)”方法的发展,其目标是利用专家模块构建一个性能或泛化能力更优的聚合系统。然而,现有MoErging方法通常以牺牲已见任务的性能为代价,优先追求对未见任务的泛化能力,这限制了其在实际部署场景中的实用性。我们发现,当前的token级路由机制忽略了输入任务的全局语义上下文,这种token间的独立性阻碍了对已见任务的有效专家选择,因为路由决策未能纳入任务的语义属性。为解决这一问题,我们提出全局与局部指令驱动的专家路由器(GLIDER),它集成了多尺度路由机制,包含语义全局路由器和可学习的局部路由器。全局路由器利用大语言模型(LLM)强大的语义上下文推理能力来优化专家选择:给定输入查询和LLM,该路由器生成语义任务指令,指导在所有层中检索最相关的专家。这一全局指导由局部路由器补充,局部路由器负责每个模块内的token级路由决策,实现更精细的控制并提升对未见任务的性能。我们使用基于T5的模型在T0和FLAN任务上开展的实验表明,GLIDER在大幅提升已见任务性能的同时,保持了对未见任务的强泛化能力。我们还进行了消融实验以深入分析GLIDER的各组件。实验结果凸显了我们的多尺度路由对MoErging方法的重要性,该路由利用了LLM驱动的语义推理能力。

英文摘要:

The availability of performant pre-trained models has led to a proliferation of fine-tuned expert models that are specialized to particular domains. This has enabled the creation of powerful and adaptive routing-based "Model MoErging" methods with the goal of using expert modules to create an aggregate system with improved performance or generalization. However, existing MoErging methods often prioritize generalization to unseen tasks at the expense of performance on held-in tasks, which limits its practical applicability in real-world deployment scenarios. We observe that current token-level routing mechanisms neglect the global semantic context of the input task. This token-wise independence hinders effective expert selection for held-in tasks, as routing decisions fail to incorporate the semantic properties of the task. To address this, we propose, Global and Local Instruction Driven Expert Router (GLIDER) that integrates a multi-scale routing mechanism, encompassing a semantic global router and a learned local router. The global router leverages LLM's advanced reasoning capabilities for semantic-related contexts to enhance expert selection. Given the input query and LLM, the router generates semantic task instructions that guide the retrieval of the most relevant experts across all layers. This global guidance is complemented by a local router that facilitates token-level routing decisions within each module, enabling finer control and enhanced performance on unseen tasks. Our experiments using T5-based models for T0 and FLAN tasks demonstrate that GLIDER achieves substantially improved held-in performance while maintaining strong generalization on held-out tasks. We also perform ablations experiments to dive deeper into the components of GLIDER. Our experiments highlight the importance of our multi-scale routing that leverages LLM-driven semantic reasoning for MoErging methods.

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

↑