atlas

Research map / Architectures and efficiency / Mixture of experts

BAM! Just Like That: Simple and Efficient Parameter Upcycling for Mixture of Experts

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.

Proposes BAM (Branch-Attend-Mix), which upcycles specialized dense experts' attention as well as FFN parameters into soft-routed mixture-of-attention experts plus FFN experts, using a parallel attention transformer, and outperforms BTX on perplexity and downstream tasks at 590M and 2B seed scales.

Problem

Upcycling multiple specialized dense models into an MoE (as in BTX) only reuses FFN parameters and averages attention parameters, which wastes specialized attention knowledge and can degrade performance.

Approach

Initialize both attention experts (soft-routed Mixture of Attention, with per-expert or shared KV projections) and FFN experts directly from the specialized dense models instead of averaging attention, and use a parallel attention transformer so attention and FFN experts compute concurrently.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
upcycle attention parameters into experts, including expert KVBAM · Small-scale perplexity, Averageperplexity: 10.72 -> 9.70Helped
upcycle attention parameters into experts, including expert KVBAM · Large-scale perplexity, Averageperplexity: 3.27 -> 3.19Helped
upcycle attention parameters into experts, including expert KVBAM · Large-scale downstream tasks, Averagescore: 32.71% -> 34.02%Helped
replace soft attention routing with top-2 routing (ablation)BAM MoA · Small-scale perplexity ablation, Averageperplexity: 10.47 -> 10.72Hurt
replace soft attention routing with top-1 routing (ablation)BAM MoA · Small-scale perplexity ablation, Averageperplexity: 10.47 -> 10.81Hurt
match BAM's total parameters by increasing BTX from 4 to 6 FFN experts (ablation)BTX · Small-scale perplexity, Codeperplexity: 3.44 -> 3.99Hurt
match BAM's total and active parameters with BTX 6 experts and top-3 routing (ablation)BTX · Small-scale perplexity, Codeperplexity: 3.44 -> 3.55Hurt
share key-value parameters and KV cache across attention expertsBAM · Inference latency, 16 generated tokenslatency: 6.17s -> 5.96sHelped
use BAM rather than standard BTXBAM · Inference latency, 16 generated tokenslatency: 4.81s -> 6.17sHurt

Surprising findings

Limitations

Experimental setup

Datasets: MathGLM GSM8K proof-pile-2 MathPile StarCoder pile-of-law HUPD Common Crawl

Benchmarks: GSM8K MATH HumanEval MBPP LegalBench Natural Questions TriviaQA ARC-Easy ARC-Challenge SIQA PIQA WinoGrande

Metrics: perplexity accuracy

Baselines: BTX (Branch-Train-MiX) dense seed model dense expert models

Builds on: Branch-Train-MiX Mixture of Attention Sparse Upcycling parallel attention transformer switch transformer load balancing

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