MobileMoE: Scaling On-Device Mixture of Experts

summary

The gist

Mixture-of-Experts (MoE) has become the de facto architecture for hundred-billion-parameter language models…

In short

MobileMoE introduces a new scaling law for Mixture-of-Experts (MoE) models tailored for mobile devices with limited memory and compute. It designs an architecture that uses sub-billion active parameters, achieving high accuracy while fitting within tight device constraints. The work provides efficient inference on smartphones.

Key concepts

On-Device MoE Scaling Law
This is a mathematical formula developed to guide the design of an on-device MoE model. It balances the need for high performance with strict limits on available memory and processing power, allowing researchers to determine the optimal number of active parameters for a given device.
Active Parameters
These are the actual weights in an MoE model that are used during inference, rather than all total parameters. MobileMoE focuses on keeping this count very low (sub-billion) to ensure fast and memory-efficient operation on smartphones.
Pareto Frontier
This concept refers to the best possible trade-off between two competing goals, in this case, maximizing model accuracy while minimizing both memory usage and computational requirements. MobileMoE establishes a new frontier by finding architectures that achieve better performance under these combined constraints.

Terminology used across episodes

This episode discusses

The paper

MobileMoE: Scaling On-Device Mixture of Experts · Read on arXiv

Meta AI

Mixture-of-Experts (MoE) has become the de facto architecture for hundred-billion-parameter language models, yet its advantages at sub-billion scales for on-device deployment remain largely unexplored. To close this gap, we present MobileMoE, a family of on-device MoE language models with sub-billion active parameters (0.3-0.9B active and 1.3-5.3B total) that establish a new Pareto frontier for on-device LLMs. We first formulate an on-device MoE scaling law that jointly optimizes MoE architecture under mobile memory and compute constraints, identifying an on-device sweet spot - moderate sparsity with fine-grained and shared experts - that is simultaneously memory and compute-optimal. Building on the derived architectures, we train MobileMoE with a four-stage recipe covering pre-training, mid-training, instruction fine-tuning, and quantization-aware training, all on open-source datasets. Across 14 benchmarks, MobileMoE matches or exceeds leading on-device dense LLMs with 2-4 times fewer inference FLOPs, and matches or surpasses the state-of-the-art MoE OLMoE-1B-7B with up to 60% fewer parameters. To bridge the last mile to mobile deployment, we provide the first efficient MoE inference on commodity smartphones with comprehensive on-device profiling. At comparable INT4 weight memory, MobileMoE-S delivers 1.8 - 3.8 times faster prefill and 2.2 - 3.4 times faster decode than the dense baseline MobileLLM-Pro.

Transcript

Introduction to the show: ident: AI Radio. Generated commentary on the latest Artificial Intelligence papers.

Tom: We're looking at the paper: "MobileMoE: Scaling On-Device Mixture of Experts".

Paper summary: Tom: So, we've seen how they built this MobileMoE system that uses a mixture of experts architecture to get models onto phones and other edge devices without needing massive server infrastructure for inference, and now we're at the conclusion of this paper.

Jane: The authors are Yanbei Chen and Digant Desai, they focused on making these sparse language models practical for real-world use on mobile hardware.

Lu: They basically developed a new scaling law specifically designed to balance the memory you have with the compute power you have when designing these expert networks.

Meng: What this means for us is that we can stop thinking only in terms of giant dense models and start seriously considering sparse architectures for things that need to run locally on a device.

Tom: Right, so it's about showing that mixture of experts can be a way to get high performance while staying under strict limits on memory and processing power.

Jane: It seems the authors are arguing that this approach offers a much more efficient path for getting capable AI onto everyday gadgets like phones and wearables.

Lu: They demonstrated that MobileMoE-L, their largest version, keeps its accuracy high even when you cut down the number of active parameters significantly compared to a dense model at the same size.

Meng: I'm curious if this kind of scaling law is something other teams can use to guide their own architecture choices when they are trying to fit models onto mobile hardware.

Conclusion: Tom: So, we've been talking about MobileMoE, and now we're wrapping up this look at "MobileMoE: Scaling On-Device Mixture of Experts." The authors are Yanbei Chen and Digant Desai.

Jane: They really focused on taking those Mixture of Experts models—which are huge right now for big language models—and figuring out how to make them work on actual tiny devices, like smartphones.

Lu: They built a scaling law that specifically balances the memory you have with the computing power you have when you design these expert networks. It's about finding the best architecture under those strict constraints.

Meng: What this means for me is that we can stop thinking only in terms of giant dense models and start seriously considering sparse architectures for things that need to run locally on a device instead of just massive servers.

Tom: Right, it’s about showing mixture of experts can be a way to get high performance while staying under strict limits on memory and processing power.

Jane: It seems like this approach offers a much more efficient path for getting capable AI onto everyday gadgets like phones and wearables. It’s about bringing the models closer to the user, rather than keeping everything locked in a data center.

Lu: They demonstrated that MobileMoE-L, their largest version, keeps its accuracy high even when you cut down the number of active parameters significantly compared to a dense model at the same size.

Tom: That trade-off between accuracy and size seems really important for anyone building something that needs to live on a device instead of in the cloud.

Jane: It opens up a whole new direction for how we think about deploying large language models beyond just huge data centers, moving them closer to the user.

Lu: It definitely shows that mixture of experts offers a more efficient alternative to dense models for on-device deployment, and it provides a principled way to design these architectures under joint memory and compute constraints.

Tom: If you’re interested in how they actually did this, we're going to look at the training recipe they used.

More episodes

← Home