atlas

Research map / Architectures and efficiency / Mixture of experts

Exploiting Activation Sparsity with Dense to Dynamic-k Mixture-of-Experts Conversion

NeurIPS 2024 · Architectures and efficiency › Mixture of experts · approach: Expert routing and specialization · 1 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.

Converts dense Transformers into MoE models by regularizing activation sparsity, training regression-based routers that predict expert output norms, and using per-token dynamic-k expert selection, extended to MHA projections and gated MLPs.

Problem

Converting pre-trained dense Transformers into efficient MoE models (MoEfication) yields a suboptimal accuracy-compute trade-off, since the base model's activation sparsity is not exploited, routers are poorly trained, and static top-k ignores large per-token variance in activated neurons.

Approach

Enforce higher activation sparsity via a square Hoyer regularizer before conversion, train routers as regressors of each expert's output L2 norm, select experts dynamically with a threshold relative to the max predicted norm, and replace standalone dense layers (including MHA projections) with small distilled MLPs.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use D2DMoE instead of MoEficationGemma-2B · BoolQrelative accuracy: 92.24% -> 99.68%; 92.19% -> 99.37%; 92.15% -> 98.69%; 88.79% -> 97.60%; 75.40% -> 94.34%; 86.70% -> 92.75%; 77.53% -> 90Helped
Add activation sparsity enforcement before conversion (ablation)D2DMoE · BERT-base on CARERaccuracy versus FLOPs trade-offHelped
Replace the MoEfication router objective with regression-based expert-contribution prediction (ablation)D2DMoE · BERT-base on CARERaccuracy versus FLOPs trade-offHelped
Use dynamic-k expert assignment instead of fixed top-k (ablation)D2DMoE · BERT-base on CARERaccuracy versus FLOPs trade-offHelped
Convert MHA projection layers in addition to FFN layers (ablation)D2DMoE · BERT-base on CARERFLOPs at retained accuracyHelped
Increase activation sparsity in the dense base model (ablation)D2DMoE · GPT-2-base on OpenWebTextcost-accuracy trade-offHelped
Use regression routing instead of vanilla MoEfication routing (ablation)MoEfication-converted Gemma-2B · C4 language modelingloss versus computeHelped
Use a sparsified GELU-based model rather than a non-sparsified GELU-based model (ablation)D2DMoE · GPT-2-base on OpenWebTextlanguage-model performanceHelped
Use smaller experts (ablation)D2DMoE · GPT-2-base on OpenWebTextcost-accuracy trade-offHelped
Set expert size to 1 (ablation)D2DMoE · GPT-2-base on OpenWebTextperformanceHurt
Use a 2-layer MLP router instead of a linear router (ablation)D2DMoE · BERT-base and GPT-2-baseperformanceHelped
Replace FFN layers only rather than also replacing MHA projections (ablation)D2DMoE · BERT-base on CARERFLOPs at retained accuracyHurt

Surprising findings

Limitations

Experimental setup

Datasets: ImageNet-1k CARER OpenWebText C4 BoolQ QNLI Wikipedia BooksCorpus

Benchmarks: ImageNet-1k CARER OpenWebText C4 BoolQ QNLI

Metrics: accuracy test loss FLOPs wall-clock time relative accuracy

Baselines: MoEfication Zero-time Waste (ZTW) A-ViT CoFi relufication

Builds on: MoEfication relufication Hoyer sparsity regularization Zero-time Waste A-ViT

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