Lynx: Enabling Efficient MoE Inference through Dynamic Batch-Aware Expert Selection

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Gupta, Vima, Ju, Jae Hyung, Sinha, Kartik, Gavrilovska, Ada, Iyer, Anand Padmanabha
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866909054600740864
author Gupta, Vima
Ju, Jae Hyung
Sinha, Kartik
Gavrilovska, Ada
Iyer, Anand Padmanabha
author_facet Gupta, Vima
Ju, Jae Hyung
Sinha, Kartik
Gavrilovska, Ada
Iyer, Anand Padmanabha
contents Selective parameter activation provided by Mixture-of-Expert (MoE) models have made them a popular choice in modern foundational models. However, MoEs face a fundamental tension when employed for serving. Batching, critical for performance in serving, forces the activation of all experts, thereby negating MoEs' benefits and exacerbating memory bandwidth bottlenecks. Existing work on efficient MoE inference are unable to resolve this tension even with extensive workload-specific tuning. We present LYNX, a system that enables efficient MoE inference in a workload-agnostic fashion. LYNX leverages a key property of MoE training: load-balancing losses introduce batch-level expert activation skews and redundancy, which it exploits by remapping low-affinity token-to-expert assignments within each batch using a novel AffinityBinning technique that reduces the total experts invoked. Our evaluation of LYNX on four state-of-the-art model families across nine benchmarks shows that it achieves up to 1.30x improvement in throughput while maintaining accuracy loss of less than 1% points across tasks. Further, LYNX is complementary to existing techniques where it additionally boosts their performance by up to 1.38x.
format Preprint
id arxiv_https___arxiv_org_abs_2411_08982
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Lynx: Enabling Efficient MoE Inference through Dynamic Batch-Aware Expert Selection
Gupta, Vima
Ju, Jae Hyung
Sinha, Kartik
Gavrilovska, Ada
Iyer, Anand Padmanabha
Machine Learning
Distributed, Parallel, and Cluster Computing
Selective parameter activation provided by Mixture-of-Expert (MoE) models have made them a popular choice in modern foundational models. However, MoEs face a fundamental tension when employed for serving. Batching, critical for performance in serving, forces the activation of all experts, thereby negating MoEs' benefits and exacerbating memory bandwidth bottlenecks. Existing work on efficient MoE inference are unable to resolve this tension even with extensive workload-specific tuning. We present LYNX, a system that enables efficient MoE inference in a workload-agnostic fashion. LYNX leverages a key property of MoE training: load-balancing losses introduce batch-level expert activation skews and redundancy, which it exploits by remapping low-affinity token-to-expert assignments within each batch using a novel AffinityBinning technique that reduces the total experts invoked. Our evaluation of LYNX on four state-of-the-art model families across nine benchmarks shows that it achieves up to 1.30x improvement in throughput while maintaining accuracy loss of less than 1% points across tasks. Further, LYNX is complementary to existing techniques where it additionally boosts their performance by up to 1.38x.
title Lynx: Enabling Efficient MoE Inference through Dynamic Batch-Aware Expert Selection
topic Machine Learning
Distributed, Parallel, and Cluster Computing
url https://arxiv.org/abs/2411.08982