Fate: Fast Edge Inference of Mixture-of-Experts Models via Cross-Layer Gate

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Fang, Zhiyuan, Hong, Zicong, Huang, Yuegui, Lyu, Yufeng, Chen, Wuhui, Yu, Yue, Yu, Fan, Zheng, Zibin
Format: Preprint
Veröffentlicht: 2025
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866910930774786048
author Fang, Zhiyuan
Hong, Zicong
Huang, Yuegui
Lyu, Yufeng
Chen, Wuhui
Yu, Yue
Yu, Fan
Zheng, Zibin
author_facet Fang, Zhiyuan
Hong, Zicong
Huang, Yuegui
Lyu, Yufeng
Chen, Wuhui
Yu, Yue
Yu, Fan
Zheng, Zibin
contents Large Language Models (LLMs) have demonstrated impressive performance across various tasks, and their application in edge scenarios has attracted significant attention. However, sparse-activated Mixture-of-Experts (MoE) models, which are well suited for edge scenarios, have received relatively little attention due to their high memory demands. Offload-based methods have been proposed to address this challenge, but they face difficulties with expert prediction. Inaccurate expert predictions can result in prolonged inference delays. To promote the application of MoE models in edge scenarios, we propose Fate, an offloading system designed for MoE models to enable efficient inference in resource-constrained environments. The key insight behind Fate is that gate inputs from adjacent layers can be effectively used for expert prefetching, achieving high prediction accuracy without additional GPU overhead. Furthermore, Fate employs a shallow-favoring expert caching strategy that increases the expert hit rate to 99\%. Additionally, Fate integrates tailored quantization strategies for cache optimization and IO efficiency. Experimental results show that, compared to Load on Demand and Expert Activation Path-based method, Fate achieves up to 4.5x and 1.9x speedups in prefill speed and up to 4.1x and 2.2x speedups in decoding speed, respectively, while maintaining inference quality. Moreover, Fate's performance improvements are scalable across different memory budgets.
format Preprint
id arxiv_https___arxiv_org_abs_2502_12224
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Fate: Fast Edge Inference of Mixture-of-Experts Models via Cross-Layer Gate
Fang, Zhiyuan
Hong, Zicong
Huang, Yuegui
Lyu, Yufeng
Chen, Wuhui
Yu, Yue
Yu, Fan
Zheng, Zibin
Artificial Intelligence
Machine Learning
Large Language Models (LLMs) have demonstrated impressive performance across various tasks, and their application in edge scenarios has attracted significant attention. However, sparse-activated Mixture-of-Experts (MoE) models, which are well suited for edge scenarios, have received relatively little attention due to their high memory demands. Offload-based methods have been proposed to address this challenge, but they face difficulties with expert prediction. Inaccurate expert predictions can result in prolonged inference delays. To promote the application of MoE models in edge scenarios, we propose Fate, an offloading system designed for MoE models to enable efficient inference in resource-constrained environments. The key insight behind Fate is that gate inputs from adjacent layers can be effectively used for expert prefetching, achieving high prediction accuracy without additional GPU overhead. Furthermore, Fate employs a shallow-favoring expert caching strategy that increases the expert hit rate to 99\%. Additionally, Fate integrates tailored quantization strategies for cache optimization and IO efficiency. Experimental results show that, compared to Load on Demand and Expert Activation Path-based method, Fate achieves up to 4.5x and 1.9x speedups in prefill speed and up to 4.1x and 2.2x speedups in decoding speed, respectively, while maintaining inference quality. Moreover, Fate's performance improvements are scalable across different memory budgets.
title Fate: Fast Edge Inference of Mixture-of-Experts Models via Cross-Layer Gate
topic Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2502.12224