用全局语义+局部细节双路由,提升专家模型的精准调用效率。
Glider: Global and Local Instruction-Driven Expert Router
- 设计多尺度路由:全局用LLM生成任务指令,局部做细粒度分发
- 在T0和FLAN任务上,保留强泛化性的同时,持稳内测任务性能
- 适合需要高精度任务响应的工业级部署场景
预训练模型的普及催生了大量领域专用的微调专家模型,推动了基于路由的“模型混合专家”(Model MoErging)方法发展,旨在通过组合专家模块提升系统性能与泛化能力。然而,现有方法常以牺牲已见任务表现来换取未知任务泛化性,限制了实际应用。我们发现,当前的逐标记路由机制忽略了输入任务的全局语义上下文,导致对已见任务的专家选择不准确。为此,提出全局与局部指令驱动的专家路由框架GLIDER,融合语义全局路由器与学习型局部路由器。全局路由器利用大模型的推理能力捕捉任务语义,生成指导跨层专家检索的任务指令;局部路由器则在各模块内进行细粒度标记级路由,实现更精准控制。基于T5的实验表明,GLIDER在保持对未见任务强泛化性的同时,显著提升已见任务性能。消融实验验证了多尺度路由与LLM驱动语义推理的重要性。
原文摘要 · Abstract (English)
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.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。