arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2509.19781cs.LG
收藏

更快、更小、更智能:面向在线MoE推理的任务感知专家合并

Faster, Smaller, and Smarter: Task-Aware Expert Merging for Online MoE Inference

National Key Research and Development Program of China(国家重点研发计划);Shenzhen Science and Technology Program(深圳科技计划);National Natural Science Foundation of China(国家自然科学基金)

Ziyi Han, Xutong Liu, Ruiting Zhou, Xiangxiang Dai, John C. S. Lui

AI总结:

本文提出Tanbr,一种基于树结构的自适应神经老虎机路由器,通过估计任务分布实现高效可靠的在线MoE推理,减少延迟和内存使用并保持高准确性。

摘要:

稀疏专家混合(SMoE)已成为一种优选架构,用于在不增加计算成本的情况下扩展Transformer容量,因为它只为每个输入激活一小部分专家。然而,将这种方案应用于在线推理仍然具有挑战性,因为完整SMoE模型的规模较大,专家路由的复杂性在资源受限的边缘网络中尤为突出。此外,在线推理期间,任务信息通常不可用,使基于任务级别的路由容易出错。在本工作中,我们提出了一种新型的树结构自适应神经老虎机路由器,即Tanbr,以实现高效且可靠的在线MoE推理。与依赖显式任务标签不同,Tanbr从历史数据中估计时间上的任务分布,并利用它在给定的预训练MoE中指导任务感知的专家合并。为处理合并权重的大型连续空间,Tanbr采用二叉树逐步划分空间并生成更细的候选权重。然后,它应用神经老虎机来学习从合并权重到模型性能的非线性映射,并决定最优的专家合并。我们证明,Tanbr在连续决策空间上实现了次线性遗憾界,即O(√T log T)在T轮次内,尽管其在连续决策空间上运行,其遗憾界与现有方法相匹配。广泛的实验表明,Tanbr将推理延迟减少了至少45%,内存使用减少了高达25%,同时在与许多最先进的方法相比时保持了较高的准确性。

英文摘要:

Sparse Mixture of Experts (SMoE) has become a preferred architecture for scaling Transformer capacity without increasing computational cost, as it activates only a small subset of experts for each input. However, deploying such an approach for \textit{online inference} remains challenging due to the large size of a full SMoE model and the complexity of expert routing, especially in resource-constrained edge networks. Moreover, during the online inference, task information is often unavailable, making the task-level routing error-prone. In this work, we propose a novel tree-structured adaptive neural bandit router, \texttt{Tanbr}, to enable efficient and reliable online MoE inference. Instead of relying on explicit task tags, \texttt{Tanbr} estimates the task distribution over time from historical data and uses it to guide task-aware expert merging within a given pre-trained MoE. To handle the large continuous space of merging weights, \texttt{Tanbr} employs a binary tree to progressively partition the space and generate finer candidate weights. It then applies a neural bandit to learn the non-linear mapping from merging weight to model performance and decides optimal expert merging. We prove that \texttt{Tanbr} achieves a sublinear regret bound of {\small $\mathcal{O}(\sqrt{T} \log(T))$} over {\small $T$} rounds, despite operating over a continuous decision space, matching regret bounds compared to existing methods. Extensive experiments show that \texttt{Tanbr} reduces inference latency by at least {\small $45\%$} and memory usage by up to {\small $25\%$}, while maintaining a high accuracy compared to many state-of-the-art methods.

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

↑