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

MoE$^2$: 面向边缘大语言模型的协同推理优化

MoE$^2$: Optimizing Collaborative Inference for Edge Large Language Models

Lyudong Jin, Yanning Zhang, Yanhan Li, Shurong Wang, Howard H. Yang, Jian Wu, Meng Zhang

AI总结:

针对边缘LLM协同推理的能量与延迟约束问题,提出MoE²框架及两级专家选择机制与离散单调优化算法,实现性能与资源的最优权衡,效果优于基线。

摘要:

大语言模型(LLM)已在各类自然语言处理任务中展现出卓越性能。挖掘边缘LLM的异构能力对各类新兴应用至关重要,可提升成本效益并降低延迟。本文提出一种面向边缘LLM的新型协同推理框架——Mixture-of-Edge-Experts(MoE$^2$,边缘专家混合模型)。我们构建了门控与专家选择的联合问题,以在能量和延迟约束下优化推理性能。与传统MoE问题不同,由于边缘LLM的组合特性及多属性异构性,LLM专家选择的难度显著提升。为此,我们提出一种两级专家选择机制,借此揭示了门控参数在不同专家选择下的保优性,该特性可实现训练与选择过程的解耦,大幅降低复杂度。此外,我们利用目标函数的单调性,设计了一种离散单调优化算法以实现最优专家选择。我们采用搭载NVIDIA Jetson AGX Orin和NVIDIA RTX 4090 GPU的边缘服务器开展大量实验。结果验证了多种LLM模型的性能提升,表明MoE$^2$方法可在不同延迟与能量预算间实现最优权衡,且在各类系统资源约束下性能优于基线方法。

英文摘要:

Large language models (LLMs) have demonstrated remarkable capabilities across a wide range of natural language processing tasks. Exploiting the heterogeneous capabilities of edge LLMs is crucial for diverse emerging applications, as it enables greater cost-effectiveness and reduced latency. In this work, we introduce \textit{Mixture-of-Edge-Experts (MoE$^2$)}, a novel collaborative inference framework for edge LLMs. We formulate the joint gating and expert selection problem to optimize inference performance under energy and latency constraints. Unlike conventional MoE problems, LLM expert selection is significantly more challenging due to the combinatorial nature and the heterogeneity of edge LLMs across various attributes. To this end, we propose a two-level expert selection mechanism through which we uncover an optimality-preserving property of gating parameters across expert selections. This property enables the decomposition of the training and selection processes, significantly reducing complexity. Furthermore, we leverage the objective's monotonicity and design a discrete monotonic optimization algorithm for optimal expert selection. We implement edge servers with NVIDIA Jetson AGX Orins and NVIDIA RTX 4090 GPUs, and perform extensive experiments. Our results validate that performance improvements of various LLM models and show that our MoE$^2$ method can achieve optimal trade-offs among different delay and energy budgets, and outperforms baselines under various system resource constraints.

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

↑