atlas

Research map / Architectures and efficiency / Mixture of experts

Exploring the Benefit of Activation Sparsity in Pre-training

ICML 2024 · Architectures and efficiency › Mixture of experts · approach: Sparse MoE as regularization and attention · 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.

Proposes Switchable Sparse-Dense Learning (SSD), which alternates dense pre-training with MoE-based sparse training (dense-to-SMoE conversion via neuron clustering) to cut pre-training FLOPs while matching dense performance and enabling 2x faster sparse inference.

Problem

Activation sparsity in pre-trained Transformers has been exploited only for post-training inference; its use during pre-training is unexplored, and sparse (MoE) pre-training usually underperforms dense training at equal parameters.

Approach

Track activation sparsity and activation-pattern similarity (via MoEfication neuron clustering and ARI) during pre-training, and switch between dense training and MoE-based sparse training, converting dense FFNs into SMoE experts with checkpoint-initialized balanced k-means and reverting to dense multiple times so the final model is dense and also usable as an SMoE for sparse inference.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use SSD instead of dense trainingBERT-base · BERT natural language understanding (Avg.)accuracy/F1: 83.2 -> 83.6Helped
Use SSD instead of dense trainingPersimmon-8B · C-Evalaccuracy: 31.5 -> 32.0Helped
Train with SSD rather than dense trainingGPT-base · GPT pre-trainingFLOPs: 237T -> 178T (1.44$\times$)Helped
Train with SSD rather than dense trainingPersimmon-8B · Persimmon-8B continual pre-trainingtime: 166h -> 134h (1.23$\times$)Helped
Replace threshold-based transitions with random switching (ablation)SSD on GPT-base · GPT pre-trainingperplexity: 16.0 vs. 17.3; 18.6; 19.8Hurt
Randomly group neurons instead of clustering them (ablation)SSD on GPT-base · GPT pre-training transitionperplexity: 20.4 vs. 3533.3Hurt
Remove previous-checkpoint initialization from clustering (ablation)SSD on GPT-base · GPT pre-training transitionperplexity: 20.4 -> 20.9Hurt
Raise the conversion threshold to 0.98 (ablation)SSD on GPT-base · GPT pre-trainingperplexityHurt
Increase the sparse-mode ratio to 70% (ablation)SSD on GPT-base · GPT pre-trainingperplexityNo clear effect
Monitor activation patterns every 2000 steps (ablation)SSD on GPT-base · GPT pre-trainingperplexityHurt
Truncate 75% of candidate experts using importance scores instead of a fixed expert count (ablation)SSD · Validation corpusperplexityHelped

Surprising findings

Limitations

Experimental setup

Datasets: The Pile SST-2 SNLI MNLI QNLI QQP SQuAD v1.1 Unnatural Instructions Super-NaturalInstructions Chinese corpus (encyclopedia, news, books, web)

Benchmarks: SST-2 SNLI MNLI QNLI QQP SQuAD v1.1 Super-NaturalInstructions C-Eval

Metrics: perplexity accuracy F1 Rouge-L FLOPs inference time

Baselines: Dense SMoE Progressive Layer Dropping MoE-Dropout MoEfication

Builds on: MoEfication MoE-Dropout Progressive Layer Dropping MegaBlocks DejaVu

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