Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

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

Read-ME refactors a dense LLM into a router-decoupled MoE for faster serving

  • Problem Layer-wise routers pick each layer's experts only after the previous layer runs, so expert loading cannot start early. Batching also suffers because each token needs different experts at each layer.
  • Method Read-ME splits a dense LLM into domain experts and replaces per-layer routers with one shared router. Because expert choices are known in advance, loading and batching can be scheduled before inference runs.
  • Results On MMLU, Read-ME gains up to 10.1% over similar-scale dense models, and it cuts mean latency by 5.0-6.1% in expert-aware batching.

Why layer-wise routing blocks planning

Mixture-of-Experts models run only part of the network for each token, which can lower inference cost. Each layer's router picks experts from the previous layer's output, so the expert sequence is known only while the forward pass runs. That makes prefetching hard, and batching suffers because each token needs different experts at different layers.

Training an MoE from scratch becomes costly as models grow. Upcycling reuses dense weights to start the experts, but it leaves the inference problem unchanged. The authors instead ask how to derive a smaller MoE from a larger dense model with little additional training.

Earlier refactoring methods still use layer-wise routers, which keeps the same scheduling problem. Neuron-selection methods in the literature are tied to long-content generation and need importance scores for each sequence.

Layer-wise routers repeat information

The authors use Mixtral-8×7B, with N = 8 experts and K = 2 active experts per layer, as a case study. They estimate the conditional probability of the expert pair in one layer given the expert pair in the layer before.

For tokens choosing expert-3 and expert-5 at layer 30, over 70% choose expert-1 and expert-5 at layer 31. So the next layer's choice is close to deterministic once the previous pair is known.

Mutual information between the expert pairs of neighbouring layers is high, so the previous pair significantly reduces uncertainty about the next. The authors read this as routing knowledge being shared across layers, although only a few of the many possible routing paths are used.

Decoupling the router from the backbone

Because the routing paths are so redundant, the authors drop the per-layer routers. A single network G produces the gating weights for all layers. G is one transformer block with causal attention, so each gate reflects the current token and the tokens before it.

Equation 2 writes the output of token t at layer l as a sum over the top-K experts, weighted by G evaluated on the prefix x≤t. G does not depend on the layer index l, while each layer keeps its own expert set F_i^(l).

Because expert choice is fixed at the start, the loading schedule for every layer can be set before inference runs. The authors also note that a token's experts then tend to match those of recent tokens, which helps cache reuse.

Building domain experts by pruning

The starting model is Llama2-7B-chat, which was pre-trained on 2 trillion tokens. The corpus metadata splits data into domains, and the authors draw 16 samples of 4096 consecutive tokens from each domain.

Feature channels are sparsely activated, so the authors average each channel's magnitude within each domain. They keep the most activated neurons for each domain to form that domain's expert.

Equation 3 chooses a selection matrix M_i, with entries 0 or 1, that maximizes the expected L1 norm of M W_1 x over the domain D_i. The expert then computes W_2 M_i^T σ(M_i W_1 x), and the authors set the hidden size d to about D/2.

Some neurons matter for every domain, which the authors suspect comes from the system prompt and common knowledge. They keep those neurons as a permanent expert that runs for every token.

Continual training of router and experts

Training alternates between two stages: router tuning with the expert weights frozen, and expert tuning with the router weights fixed. Router tuning uses a routing distillation loss, while expert tuning uses the language modelling loss.

The routing distillation loss applies a KL divergence between the softmax of the router scores and a softmax over the Hamming-style overlaps of the dense model's top 50% masks. The router therefore learns to put expert probability where the dense model's neuron masks overlap.

Router tuning runs 100 steps per round with batch size 64 and an initial learning rate of 5e−4. Expert tuning runs 200 steps per round with batch size 128 and an initial learning rate of 5e−5. The schedule has 8 rounds, with cosine decay inside each round and exponential decay of 0.8 across rounds.

Prefetching, batching and caching with known experts

Because the exact experts are known, prefetching targets them directly instead of guessing. The next layer's experts load on a separate stream while the current layer computes.

Expert-aware batching groups requests by the expert queue they need. Algorithm 1 picks the largest expert queue first and fills the batch up to the maximum token length, splitting a queue when it doesn't fit.

Belady's offline algorithm evicts the item whose next use is farthest away, but it needs future knowledge. Pre-gating supplies future expert references across requests, so the authors approximate Belady's choice. The eviction rule chooses the cached expert e with the largest F(e,t), the next request time after t.

The authors describe the caching policy as near-optimal, and in their contribution list as provably and empirically optimal.

Downstream accuracy at similar scale

Table 3 compares Read-ME, listed as 4.7B-17B and trained on 1 billion tokens, with Pythia, Open-Llama-v2, OpenMoE and Sheared-Llama. Read-ME averages 55.5%, compared to 53.2% for Sheared-Llama, the next-best row in that comparison.

On MMLU, Read-ME scored 38.9%, compared to 25.7% for Open-Llama-v2 3.4B. Llama-2 6.9B, trained on 2T tokens, scored 45.3%, so the refactored model stays below it.

Figure 4 extends the MMLU comparison to LLM-Pruner, SliceGPT, LaCo and Compresso. The authors say Read-ME is best among models with fewer than 5 billion activated parameters, and comparable to Open-Llama-v2-7B. The authors report MMLU gains of up to 10.1% over similar-scale dense models.

Compression baselines use only the tokens spent on conversion, and the other numbers come from their respective papers.

Latency under pre-gated batching

The auto-regressive router adds 0.4% to latency, compared to a net router contribution of 3.95% in other MoE models. Refactoring the MLP into MoE gives a net 19% latency reduction relative to the dense model.

Expert-aware batching is compared with decoding-prioritized and prefill-prioritized batching. It lowers mean latency by 5.0-6.1% and p95 latency by 9.5-10.0%. These runs replay Chatbot Arena traces on a single A100 GPU.

The baselines invoke 5.08 and 5.21 unique experts per batch, while expert-aware batching reduces this to 3.51.

Temporal locality and cache hit ratios

Temporal distance is the gap between two tokens in a sequence that select the same expert. Out of 4096 tokens, 2921 follow the choice of the last token in Read-ME, compared to 850 in Mixtral-8×7B.

The authors attribute this to the auto-regressive router, which bases each decision on the current and earlier tokens. This locality holds within one request and doesn't carry across requests.

Table 4 reports cache hit ratios for Random, LRU and the Belady-based policy at capacities 2 to 5. At capacity 2 the Belady-based policy reaches 44.16%, compared to 33.90% for LRU. At capacity 5 it reaches 88.03%, compared to 83.48% for LRU.

LRU works in single-request settings, but shared caches across requests lose that locality. Prefetching was compared with on-demand loading across cache capacities 2 to 5, and prefetching was up to 30% faster.

Limitations

Serving measurements were taken on a single A100 GPU with 80GB of memory. Compression baselines in the MMLU figure use numbers from their papers rather than a shared run.

The cache study covers one batched setup and capacities 2 to 5, and the authors omit detailed latency results for the cache policy.

Paper info

Authors
Cai, Ruisi, Ro, Yeonju, Kim, Geon-Woo, Wang, Peihao, Bejnordi, Babak E., Akella, Aditya, Wang, Zhangyang
Venue
Advances in Neural Information Processing Systems · Published
First published
2024-12-16
Added
2026-11-25
DOI
10.52202/079017-3687
Original paper terms
Check in the original ↗
What we show
Paper info and commentary

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

Quote from the paper

Cai, Ruisi, Ro, Yeonju, Kim, Geon-Woo, Wang, Peihao, Bejnordi, Babak E., Akella, Aditya, Wang, Zhangyang (2024). $\textit{Read-ME}$: Refactorizing LLMs as Router-Decoupled Mixture of Experts with System Co-Design. Advances in Neural Information Processing Systems. https://doi.org/10.52202/079017-3687

BibTeX
@article{ruisi2024textit,
  title = {{$\textit{Read-ME}$: Refactorizing LLMs as Router-Decoupled Mixture of Experts with System Co-Design}},
  author = {Cai, Ruisi and Ro, Yeonju and Kim, Geon-Woo and Wang, Peihao and Bejnordi, Babak E. and Akella, Aditya and Wang, Zhangyang},
  year = {2024},
  journal = {Advances in Neural Information Processing Systems},
  doi = {10.52202/079017-3687},
  url = {https://papers.nips.cc/paper_files/paper/2024/hash/d298cf34e4539f9134db7f38b42f69fe-Abstract-Conference.html}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up