atlas

Research map / Architectures and efficiency / Mixture of experts

$\textit{Read-ME}$: Refactorizing LLMs as Router-Decoupled Mixture of Experts with System Co-Design

NeurIPS 2024 · Architectures and efficiency › Mixture of experts · approach: Efficient MoE language model systems · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Refactors a pre-trained dense LLM (Llama-2-7B-chat) into a smaller MoE via activation-sparsity expert pruning and a decoupled autoregressive pre-gating router, then co-designs expert-aware batching, prefetching, and Belady-inspired caching for inference.

Problem

Serving MoE LLMs is inefficient because layer-wise routers prevent prefetching and expert-aware batching, and training MoEs from scratch is costly; the paper targets converting a pre-trained dense LLM into a smaller MoE with system-friendly inference.

Approach

Observes that layer-wise router expert selections are highly correlated across adjacent layers, so replaces them with a single causal-attention pre-gating router decoupled from the MoE backbone; this lets all routing paths be known before inference, enabling expert-aware batching, fine-grained prefetching and Belady-style caching.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
refactorize a 4.7B dense model into an MoE (ablation)Llama-2-7B-chat · MMLUaccuracy: 27.1% -> 38.9%Helped
refactorize a 4.7B dense model into an MoE (ablation)Llama-2-7B-chat · Arxiv, Books, C4, Common Crawl, Github, StackExchange, Wikipediaperplexity: 5.63 -> 4.18; 1.94 -> 1.31; 11.78 -> 10.57; 9.68 -> 7.72; 3.75 -> 2.39; 13.42 -> 12.52; 6.24 -> 3.94Helped
convert Mistral without prior knowledge of its pretraining domain (ablation)Read-ME · MMLUaccuracy: 62.1% -> 39.2%Hurt
convert Mistral without prior knowledge of its pretraining domain (ablation)Read-ME · Downstream task evaluationaverage accuracy: 69.4% -> 60.0%Hurt
use expert-aware batching based on pre-gated expert requirements instead of decoding- or prefill-prioritized batchingRead-ME inference system · Batched inference (Chatbot Arena workload)mean latency: 5.0-6.1%Helped
use expert-aware batching based on pre-gated expert requirements instead of decoding- or prefill-prioritized batchingRead-ME inference system · Batched inference (Chatbot Arena workload)p95 latency: 9.5-10.0%Helped
enable exact prefetching rather than on-demand loadingRead-ME inference system · Inference with varying expert-cache capacitiesend-to-end latency: up to 30%Helped
refactor the dense MLP into MoERead-ME · Single isolated inference requestlatency: 19%Helped
use a shared autoregressive router rather than conventional layerwise routersRead-ME inference system · Single isolated inference requestrouter latency contribution: 3.95% -> 0.4%Helped
use autoregressive pre-gating rather than Mixtral-8×7B routingRead-ME router · 4096-token sequencetokens following the previous token's expert choice: 850 -> 2921Helped

Surprising findings

Limitations

Experimental setup

Datasets: RedPajama Chatbot Arena Conversation Dataset Arxiv C4 Wikipedia

Benchmarks: MMLU HellaSwag WinoGrande ARC-Easy ARC-Challenge LogiQA CoQA

Metrics: accuracy normalized latency p95 latency cache hit ratio perplexity

Baselines: Sheared-Llama Pythia Open-Llama-v2 OpenMoE LLM-Pruner SliceGPT LaCo Compresso Decoding-prioritized batching Prefill-prioritized batching LRU caching

Builds on: Mixtral Pre-gated MoE SiDA-MoE Sheared-Llama Belady optimal caching

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy