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

MoE$^2$: 엣지 대규모 언어 모델을 위한 협업 추론 최적화

Jin, Lyudong, Zhang, Yanning, Li, Yanhan, Wang, Shurong, Yang, Howard H., Wu, Jian 외 1명 · arXiv · 2025년 1월 16일

- **연구 문제** 엣지 장치에서 LLM을 운용할 때 자원 제약과 전문가별 이질성을 함께 고려해 응답 성능, 지연, 에너지 균형을 맞추는 문제를 다룹니다.
- **연구 방법** MoE2는 엣지 서버별 게이팅 네트워크와 두 단계 전문가 선택을 사용하며, 지연과 에너지 제약 아래 부분집합 선택을 단조 최적화로 수행합니다.
- **주요 결과** MMLU 시뮬레이션에서 MoE2는 Single Agent, Majority Voting, A.E.A.보다 높은 정확도를 보였고, 테스트베드 실험에서도 제약 조건별로 기준선과 비교되었습니다.

## 엣지 LLM 협력 추론의 문제

엣지 장치에서 LLM을 직접 운용하려면 연산량과 메모리 요구가 장치의 자원을 쉽게 넘어섭니다. 원문은 이를 해결하기 위해 이질적인 엣지 LLM 전문가들을 협력시키는 방식을 제안하며, 그 목표를 응답 성능, 지연 시간, 에너지 소비의 균형으로 설정합니다. 기존 MoE는 주로 게이팅 값만으로 전문가를 고르지만, 엣지 LLM은 능력, 에너지 소비, 지연 시간이 서로 달라 이 방식을 그대로 적용하기 어렵습니다. 따라서 이 연구는 전문가 부분집합 선택과 게이팅 파라미터 학습을 지연 및 에너지 제약 아래에서 함께 다룹니다.

## 두 단계 전문가 선택과 게이팅 구조

MoE2는 각 엣지 서버에 배치된 게이팅 네트워크와 두 단계 전문가 선택 메커니즘으로 구성됩니다. 게이팅 네트워크는 임베딩 모델과 다층 퍼셉트론으로 전문가별 게이팅 값을 만들고, 선택된 부분집합 S 안에서 정규화된 가중치로 각 전문가의 다음 토큰 분포를 결합합니다. 조정 수준에서는 지연과 에너지 제약을 만족하도록 부분집합을 최적화로 고르고, 세부 수준에서는 입력 프롬프트에 따라 라우팅으로 전문가를 고릅니다. 원문은 이 구조가 게이팅 파라미터의 최적성을 부분집합으로 확장하는 성질을 활용해 학습과 선택을 분리한다고 설명합니다.

![Figure 1: An overview of the MoE 2 framework, which leverages a gating net- work and a two-level expert selection mechanism for efficient task processing. Mobi…](https://refivu.com/papers/31dce8fb-fdb7-4dff-a3e9-3ba86acbdc7b/figures/figure-9ccd2bf613a44572eb3cd93bfbb90e86.png?thumb=512)

**Fig. 1** . An overview of the MoE 2 framework, which leverages a gating net- work and a two-level expert selection mechanism for efficient task processing. Mobile users send prompts, which are routed to a subset of edge servers with LLM experts. The expert selection method is carefully designed to enable a scalable and efficient framework for diverse LLM applications.

[원문](https://arxiv.org/abs/2501.09410v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Jin, Lyudong, Zhang, Yanning, Li, Yanhan, Wang, Shurong, Yang, Howard H., Wu, Jian, Zhang, Meng · MoE$^2$: Optimizing Collaborative Inference for Edge Large Language Models · 원문 그림 인용 · 원본 PDF 1쪽에서 그림 영역을 추출했습니다.

## 게이팅 최적성의 부분집합 확장과 단조성

Theorem 1은 게이팅 네트워크가 충분히 큰 폭의 MLP일 때, 임의의 부분집합 S에 대한 최적 게이팅 값이 전체 집합 N의 최적 게이팅 값을 정규화한 비율과 같다고 명시합니다. 이 명제는 조건부 성질이므로, 고정된 MLP 폭과 게이팅 구조 조건 밖의 모든 설정으로 일반화되지 않습니다. Theorem 2는 S′가 S에 포함될 때 최소 손실이 증가하지 않는다는 단조 개선 성질을 제시하며, 이는 부분집합 탐색의 근거로 쓰입니다. 원문은 이 두 결과를 근거로 게이팅 학습을 부분집합 선택과 분리할 수 있다고 설명합니다.

## 부분집합 단조 최적화와 추론

학습 단계는 먼저 전체 집합 N에 대해 확률적 경사하강으로 θ\*(N)을 얻고, 이후 지연과 에너지 제약의 정규 헐을 이용해 Subset Monotonic Optimization을 수행합니다. 이 알고리즘은 현재 최고 값 CBV보다 나쁜 부분집합을 제거하고, 가장 큰 손실을 가진 부분집합을 제약 집합으로 투영하여 후보 꼭짓점 집합을 갱신합니다. 추론 단계에서는 선택된 부분집합 S의 게이팅 값으로 상위 k개 전문가를 고르고, 그 가중치로 전문가 출력 분포를 결합해 토큰을 샘플링합니다.

![Figure 2: A detailed illustration of the MoE 2 framework, which consists of training stage and inference stage. In the training stage, the gating network param…](https://refivu.com/papers/31dce8fb-fdb7-4dff-a3e9-3ba86acbdc7b/figures/figure-f94959ad3cde59115599b059eba57567.png?thumb=512)

**Fig. 2** . A detailed illustration of the MoE 2 framework, which consists of training stage and inference stage. In the training stage, the gating network parameters θ are derived by optimizing L(θ, S) over all LLM N . Then, the subset selection S are obtained by Subset Monotonic Optimization algorithm to satisfy system constraints. In the inference stage, the gating network computes the gating values for each LLM experts, and Top- k mechanism selects a smaller subset from S of k LLMs with the highest gating values for responding to prompt x.

[원문](https://arxiv.org/abs/2501.09410v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Jin, Lyudong, Zhang, Yanning, Li, Yanhan, Wang, Shurong, Yang, Howard H., Wu, Jian, Zhang, Meng · MoE$^2$: Optimizing Collaborative Inference for Edge Large Language Models · 원문 그림 인용 · 원본 PDF 4쪽에서 그림 영역을 추출했습니다.

## MMLU 정확도 비교

시뮬레이션에서는 Qwen2.5-3B-Instruct, Qwen2.5-7B-Instruct, Llama-3.2-3B-Instruct, Mistral-7B-Instruct-v0.3을 기반 모델로 사용하고, 여덟 개의 클러스터 기반 도메인 전문가를 구성합니다. MMLU는 fine-tuning 데이터에 포함되지 않았으며, 학습 세트 80%로 게이팅 네트워크를 학습하고 나머지 20%로 평가합니다. 원문은 MoE2가 Single Agent, Majority Voting, A.E.A.보다 각각 14.4%, 7.3%, 16.4% 높은 정확도를 보인다고 보고합니다. 이 결과는 해당 MMLU 설정과 시뮬레이션 조건에서 얻은 것입니다.

![Figure 3: Performance comparison on the MMLU dataset. The MoE 2 archi- tecture achieves the highest accuracy, which outperforms the Single Agent, Majority V ot…](https://refivu.com/papers/31dce8fb-fdb7-4dff-a3e9-3ba86acbdc7b/figures/figure-0177070386e6c884d753a43d82906029.png?thumb=512)

**Fig. 3** . Performance comparison on the MMLU dataset. The MoE 2 archi- tecture achieves the highest accuracy, which outperforms the Single Agent, Majority V oting and A. E. A. by 14.4%, 7.3%, 16.4%, respectively.

[원문](https://arxiv.org/abs/2501.09410v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Jin, Lyudong, Zhang, Yanning, Li, Yanhan, Wang, Shurong, Yang, Howard H., Wu, Jian, Zhang, Meng · MoE$^2$: Optimizing Collaborative Inference for Edge Large Language Models · 원문 그림 인용 · 원본 PDF 9쪽에서 그림 영역을 추출했습니다.

![Figure 6: Clustering Result of MMLU. The prompts are clustered based on their embedding. The results show that similar subjects fall into one cluster. For exam…](https://refivu.com/papers/31dce8fb-fdb7-4dff-a3e9-3ba86acbdc7b/figures/figure-c4736e2deaf2fe6faad850ec7e0e2202.png?thumb=512)

**Fig. 6** . Clustering Result of MMLU. The prompts are clustered based on their embedding. The results show that similar subjects fall into one cluster. For example, cluster 4 mainly contains math-related and physical-related subjects and cluster 7 includes medical-related subjects. This result coincides with the intuition of us to distinguish domains.

[원문](https://arxiv.org/abs/2501.09410v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Jin, Lyudong, Zhang, Yanning, Li, Yanhan, Wang, Shurong, Yang, Howard H., Wu, Jian, Zhang, Meng · MoE$^2$: Optimizing Collaborative Inference for Edge Large Language Models · 원문 그림 인용 · 원본 PDF 12쪽에서 그림 영역을 추출했습니다.

## 테스트베드 지연·에너지 제약 실험

테스트베드에서는 N=8 엣지 서버를 사용하며, 서버 0, 1, 2는 RTX 4090 기반이고 나머지 서버는 Jetson AGX Orin 64GB 기반입니다. 표 II에서 IV는 지연 제약 1초, 2초, 3초와 여러 에너지 예산에서 MoE2, SMO M.V., Rand. M.V.의 정확도를 비교합니다. 1초 지연 제약에서 MoE2는 50J에서 Rand. M.V.보다 4.2% 높습니다. 2초 지연 제약에서는 SMO M.V.보다 평균 1.38%, Rand. M.V.보다 평균 9.4% 높습니다. 3초 지연 제약에서는 저에너지와 중간 에너지 예산에서 SMO M.V.와 비슷하고, 35J와 50J에서 SMO M.V.보다 각각 3.2%와 3.3% 높습니다.

![Figure 4: Implementation of an edge LLM testbed on NVIDIA Jetson AGX Orin 64GB, connected to NVIDIA GeForce RTX 4090 via a local area network](https://refivu.com/papers/31dce8fb-fdb7-4dff-a3e9-3ba86acbdc7b/figures/figure-7637e183dd66a27994e7eebe9318c848.png?thumb=512)

**Fig. 4** . Implementation of an edge LLM testbed on NVIDIA Jetson AGX Orin 64GB, connected to NVIDIA GeForce RTX 4090 via a local area network.

[원문](https://arxiv.org/abs/2501.09410v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Jin, Lyudong, Zhang, Yanning, Li, Yanhan, Wang, Shurong, Yang, Howard H., Wu, Jian, Zhang, Meng · MoE$^2$: Optimizing Collaborative Inference for Edge Large Language Models · 원문 그림 인용 · 원본 PDF 9쪽에서 그림 영역을 추출했습니다.

## 적용 범위와 남은 질문

원문은 MoE2가 지연 및 에너지 제약 아래에서 전문가 부분집합과 게이팅을 함께 다루는 방법이라고 설명하지만, 결과는 MMLU, 특정 기반 모델, 특정 엣지 하드웨어와 시뮬레이션 설정에서 얻어진 것입니다. Theorem 1은 충분히 큰 폭의 MLP라는 조건에서 성립하는 명제이므로, 이 결론을 다른 게이팅 구조나 모든 프롬프트 분포로 옮기면 안 됩니다. 원문도 동적 시스템 조건, 엣지 학습과 클라우드-엣지 배포, 다중 모달 LLM과 fine-tuning 없는 에이전트를 향후 과제로 제시합니다.

## 논문 정보

- **저자**: Jin, Lyudong, Zhang, Yanning, Li, Yanhan, Wang, Shurong, Yang, Howard H., Wu, Jian, Zhang, Meng
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2025년 1월 16일
- **등록일**: 2026년 11월 6일
- **수정일**: 2025년 1월 16일
- **버전**: v1
- **arXiv**: 2501.09410
- **분류**: cs.NI · cs.AI · cs.LG
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

[논문 원문 ↗](https://arxiv.org/abs/2501.09410v1) · [원문 PDF ↗](https://arxiv.org/pdf/2501.09410v1)

AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.

## 초록

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.

## 원문 인용

Jin, Lyudong, Zhang, Yanning, Li, Yanhan, Wang, Shurong, Yang, Howard H., Wu, Jian, Zhang, Meng (2025). MoE$^2$: Optimizing Collaborative Inference for Edge Large Language Models. arXiv:2501.09410v1. https://arxiv.org/abs/2501.09410v1

**BibTeX**

```
@misc{lyudong2025optimizing,
  title = {{MoE$^2$: Optimizing Collaborative Inference for Edge Large Language Models}},
  author = {Jin, Lyudong and Zhang, Yanning and Li, Yanhan and Wang, Shurong and Yang, Howard H. and Wu, Jian and Zhang, Meng},
  year = {2025},
  eprint = {2501.09410},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2501.09410v1}
}
```

## 이 논문의 용어

- [accuracy](https://refivu.com/terms/1995c0cd6282-accuracy)
- [LoRA](https://refivu.com/terms/84da7a415b66-low-rank-adaptation-lora)
- [MMLU](https://refivu.com/terms/3036c0ba5adb-mmlu)
- [K-means](https://refivu.com/terms/43bff6ec1a4e-k-means)
- [Mixture-of-Experts](https://refivu.com/terms/2e4496944f4c-mixture-of-experts)
- [majority voting](https://refivu.com/terms/20e954015dfd-majority-voting)
- [universal approximation theorem](https://refivu.com/terms/d94c6d38e5b4-universal-approximation-theorem)
- [gating network](https://refivu.com/terms/e7cdc00558dc-gating-network)
- [mGTE](https://refivu.com/terms/cbeef9538c5b-mgte)

## 다른 논문 해설

- [Prophet: Prompting Large Language Models with Complementary Answer Heuristics for Knowledge-based Visual Question Answering](https://refivu.com/papers/3151fb77-33ba-4ee5-a72b-a95fb7293932-prophet-prompting-large-language-models-with-complementary.md)
- [HuntGPT: Integrating Machine Learning-Based Anomaly Detection and Explainable AI with Large Language Models (LLMs)](https://refivu.com/papers/b050833e-0d12-4b4b-b5d8-471ef2df91cb-huntgpt-integrating-machine-learning-based-anomaly-detection.md)
- [Using large language models to estimate features of multi-word expressions: Concreteness, valence, arousal](https://refivu.com/papers/76fd510f-cd7e-4a68-b362-5c8cca20383a-using-large-language-models-to-estimate-features-of.md)
- [Strong and weak alignment of large language models with human values](https://refivu.com/papers/be542b1a-1c29-4f81-beba-ffa28ae6b9f7-strong-and-weak-alignment-of-large-language-models.md)
- [Dr.ICL: Demonstration-Retrieved In-context Learning](https://refivu.com/papers/996dd357-1e54-4c56-bfef-88bcdef0091c-dr-icl-demonstration-retrieved-in-context-learning.md)
- [Large Language Model-Based Uncertainty-Adjusted Label Extraction for Artificial Intelligence Model Development in Upper Extremity Radiography](https://refivu.com/papers/9b222a13-ea6f-4ce3-a329-e7ff28964ff8-large-language-model-based-uncertainty-adjusted-label.md)
- [Distributed Leader Follower Formation Control of Mobile Robots based on Bioinspired Neural Dynamics and Adaptive Sliding Innovation Filter](https://refivu.com/papers/53dc3beb-1ad5-4886-94c8-f56fe0352e43-distributed-leader-follower-formation-control-of-mobile.md)
- [Convolutional Neural Networks for Image Spam Detection](https://refivu.com/papers/cd113ca3-61f1-413a-ba58-020e520ba62b-convolutional-neural-networks-for-image-spam-detection.md)
- [Safety-aware Goal-oriented Semantic Sensing, Communication, and Control for Robotics](https://refivu.com/papers/65da64db-624f-4242-b316-854fed3c79f4-safety-aware-goal-oriented-semantic-sensing-communication.md)
- [Rethinking Semi-Supervised Medical Image Segmentation: A Variance-Reduction Perspective](https://refivu.com/papers/be0fa0b3-1c61-4a38-9b58-d8236ac50124-rethinking-semi-supervised-medical-image-segmentation-a.md)
- [Emotion Recognition for Challenged People Facial Appearance in Social using Neural Network](https://refivu.com/papers/b76f0153-6eed-4a57-a403-f580b829a9b4-emotion-recognition-for-challenged-people-facial-appearance.md)
- [Safe Reinforcement Learning with Dual Robustness](https://refivu.com/papers/22848344-ed43-4b8c-b9a0-ea55a7edbf98-safe-reinforcement-learning-with-dual-robustness.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/31dce8fb-fdb7-4dff-a3e9-3ba86acbdc7b-moe-2-optimizing-collaborative-inference-for-edge-large)
