Mixture of Experts (MoE)

Mixture of Experts (MoE)

Mixture of Experts (MoE)

TL;DR

TL;DR

Mixture of experts is a neural network architecture that routes each token to a small subset of specialized sub-networks, so serving cost tracks the active parameters while capacity tracks the full model.

Mixture of experts is a neural network architecture that routes each token to a small subset of specialized sub-networks, so serving cost tracks the active parameters while capacity tracks the full model.

What is mixture of experts?

Mixture of experts (MoE) is a neural network design that splits part of a model into many specialized sub-networks and activates only a few of them for each input. A small router decides which experts see each token, so most of the model stays idle on any given forward pass.

The economics are the point. A model can hold on the order of 400 billion total parameters yet activate only around 17 billion per token, which means inference cost tracks the smaller number while representational capacity tracks the larger one.

How mixture of experts works

An MoE model replaces the feed-forward block inside some transformer layers with a set of expert networks plus a gating function. For each incoming token, the router scores every expert, selects the top-k (usually one or two), runs only those, and blends their outputs weighted by the gate scores. Everything else in the layer, attention included, stays dense.

Routing is per layer and per token, not once per request. Frontier MoE models carry roughly 30 to 60 such layers, so a single generated token passes through dozens of routing decisions, each potentially choosing a different pair of experts. That is why "which expert handles billing questions" is the wrong mental model: experts specialize on sub-token statistical patterns, not on topics a human would name.

Three constraints shape every real deployment. Load balancing keeps the router from collapsing onto a few favorite experts, usually via an auxiliary loss. Capacity factors cap how many AI tokens one expert may accept per batch, and overflow tokens get dropped or passed through. Memory is the third: every expert has to sit in VRAM even when unused, so a large language model built this way is cheap to compute and expensive to host.

Types of mixture of experts

  • Sparse top-k MoE: The standard form, where a learned gate activates one or two experts per token per layer, as in Mixtral-style 8-expert designs.

  • Fine-grained MoE: Many smaller experts with higher k, which raises combinatorial coverage and increases routing overhead and all-to-all communication between devices.

  • Shared-expert MoE: One or more experts always run alongside the routed ones, holding general knowledge so specialists are not forced to relearn common patterns.

  • Expert-choice routing: Experts pick tokens rather than the gate picking experts, which balances load by construction and complicates causal decoding.

  • Model-level MoE: Whole separate models behind a dispatcher, an inference-time pattern closer to a LLM router than to a trained architecture.

Mixture of experts vs dense models vs model routing

Three things get conflated here, and the confusion is expensive because they sit at different layers of the stack. A dense model runs every parameter for every token, so cost and capacity move together. Model routing picks one whole model per request at inference time, using rules or a classifier that a team writes and can inspect. Mixture of experts routes inside a single model, per layer, using a gate learned during training that nobody hand-configures. Mixture of experts is therefore an architecture decision made by whoever trained the weights, and it constrains the other two rather than replacing them.


What it holds

Ownership

Who reads it

AI-retrievable

Choose it when

Mixture of experts

Many expert sub-networks plus a learned gate

Model trainer

The router, per token per layer

Not applicable, internal to weights

You need large capacity at small per-token compute

Dense model

One full parameter set, always active

Model trainer

Every token

Not applicable

Serving simplicity and predictable latency matter most

Model routing

Several deployed models plus a dispatch policy

The application team

The dispatcher, per request

Yes, policies are inspectable

Cost, latency, or task type differ sharply across queries

If you are buying or calling an API, mixture of experts is a property of the weights you consume and shows up only as price and latency. If you are building the application layer, model routing is the lever you actually control, and you can run it over dense and MoE models together.

Why mixture of experts matters for customer experience

Support workloads are bursty and repetitive, and most of the traffic is cheap questions with a long tail of hard ones. Dense models force one cost profile across both, so teams either overpay on the easy majority or cap quality to protect margin. MoE breaks that coupling: capacity is available for the hard tail without charging full price on every routine order-status reply.

The failure mode when it is absent is quiet. Teams under cost pressure downgrade to a smaller dense model, and quality degrades first on exactly the low-frequency cases that produce escalations and complaints, which are the hardest to catch in aggregate metrics.

The tradeoff is latency variance. Expert routing shifts which weights are touched per token, and under uneven load some tokens wait behind saturated experts, so p99 response time on a voice or chat surface can be noticeably worse than the median even when average throughput improves.

How is mixture of experts measured?

Three measurements matter and they are not interchangeable. Active parameters per token set the compute floor. Total parameters set the memory footprint you must provision. The ratio between them is the sparsity factor, and a design with 8 experts activating 2 per layer touches roughly a quarter of the expert weights per token, which is where the serving-FLOP savings come from.

Quality itself is measured externally, on standard reasoning and coding evaluations rather than on anything architecture-specific. The Stanford HAI AI Index Report tracks these benchmark results across model families year over year, and its 2025 edition documents both the steep rise in top scores on frontier evaluations and the narrowing gap between the leading models, which is the context you need when a vendor quotes a single number.

Operationally, watch expert utilization spread and token drop rate under your own traffic. A router that concentrates load on a handful of experts is wasting the capacity you paid to host.

How AI agents change mixture of experts

Agent workloads changed the arithmetic. A single support resolution now runs several model calls: classification, retrieval planning, tool argument construction, and a final drafted reply. Each call multiplies token volume, so per-token cost stopped being a rounding error and became the dominant line item in a support automation budget.

MoE is the architectural answer to that multiplication. It lets a serving provider offer frontier-level reasoning at a per-token price that survives multi-step agent loops, which is why nearly every frontier model shipped since 2023 uses some MoE variant.

The consequence for builders is that the cost lever moved up a level. You no longer choose between a big model and a small one for the whole product; you choose per step, which is the thinking behind AI agents in e-commerce support and the reason batch inference is worth separating from the interactive path.

What to look for when choosing an MoE-based model

Start with the two parameter counts, because vendors quote whichever flatters them. Active parameters predict cost and speed; total parameters predict whether you can self-host at all. A model you can only run across eight accelerators is a different procurement conversation from one that fits on two.

Integration surface comes next: tool-calling reliability, structured output support, and how gracefully the model degrades when the context window fills, since long support transcripts push against that limit before they push against anything else.

Governance is where regulated buyers concentrate. Ask where inference runs, whether prompts are retained, and how model version changes are communicated, because a silent expert-configuration update can shift behavior on your edge cases without any version number moving. Buyers in healthcare and financial services will ask how HIPAA obligations and GDPR data-residency commitments are evidenced for the serving region, and those answers should be in writing before traffic moves.

The operational constraint most teams underestimate is cold-start memory. Expert weights must be resident before the first token, so autoscaling an MoE deployment is slow and expensive compared with scaling a small dense model, which pushes teams toward provisioned capacity.

Mixture of experts and support automation routing

The word "routing" appears at two layers and they solve different problems. Inside the model, gating picks experts per token. Inside the support product, ticket routing decides which queue or agent owns a case, and the criteria are business rules like entitlement, language, and skill.

The same split applies on the phone: call routing is a policy layer your operations team owns and audits, while expert gating is a learned function nobody configures. Getting the vocabulary straight matters when an architecture review asks "how does routing work here" and two people answer about different systems. Teams building this stack usually pair a routing policy they control with model selection, as covered in this guide to AI support platforms for triage and routing.

What does mixture of experts mean in plain terms?

Mixture of experts, or MoE, stands for exactly what it sounds like: a committee where only two members speak on any given word. Think of it as a hospital with fifty specialists on staff. Every patient is triaged and sent to two of them, so you pay for two consultations while keeping fifty specialties available.

Without that triage, every patient sees all fifty doctors. The advice is no better and the bill is twenty-five times larger, which is roughly the dense-model bargain.

The tradeoff is that you still pay rent on all fifty offices. Every expert occupies memory whether or not it is used, so the savings are in compute and never in hosting, and a team that budgets for the active parameter count alone will be surprised by its infrastructure bill.

Common mixture of experts mistakes

Reading experts as topic specialists is the first and most persistent error. Nobody assigns an expert to billing or to Spanish; specialization emerges from gradient descent over sub-word patterns, and inspecting a gate rarely yields an interpretable story. Product decisions built on that assumption do not survive contact with the routing logs.

Budgeting from active parameters alone is second. The mechanism is that memory scales with total parameters while compute scales with active ones, so a model that looks like a 17-billion-parameter workload on a cost calculator needs hardware sized for 400 billion.

Ignoring load balance is third. When an auxiliary balancing objective is weak or absent, the router concentrates traffic on a few experts, tokens overflow the capacity limit, and the dropped ones degrade quality on exactly the inputs that saturated the popular expert.

The fourth is treating a model upgrade as a drop-in swap. Expert counts, top-k values, and gating changes between releases alter behavior on edge cases while headline benchmark numbers hold steady, so a regression suite built from your own historical tickets is the only reliable check.

Frequently Asked Questions

What is a mixture of experts model in simple terms?

A mixture of experts model is one large network split into many sub-networks, with a small gate that activates only one or two of them for each token. The model holds a large amount of knowledge, but any single forward pass uses a fraction of it, which keeps compute cost low while capacity stays high.

What is the difference between a mixture of experts and a dense model?

A dense model runs every parameter for every token, so compute and memory scale together. A mixture of experts model runs a selected subset per token, decoupling the two: memory still reflects the full parameter count, while compute reflects only the active experts. Dense serving is simpler and more predictable in latency.

Is mixture of experts the same as LLM routing?

No. Mixture of experts operates inside a single model, choosing sub-networks per token per layer using a gate learned during training. LLM routing operates outside models, dispatching whole requests to different deployed models using policies an engineering team writes and can audit. Many production stacks use both at once, at different layers.

Which models use mixture of experts?

Mixture of experts appears across most frontier model families shipped since 2023, including Mixtral, DeepSeek-V3, and Llama 4. Providers vary the expert count, the number activated per token, and whether a shared always-on expert exists. Many hosted models do not disclose their architecture, so assume sparsity is common and unverifiable.

Does mixture of experts make models faster?

Mixture of experts reduces compute per token, which usually lowers cost and can improve throughput. Wall-clock latency is less predictable, because routing adds communication between devices holding different experts and uneven load can leave some tokens queued. Median response time often improves while tail latency gets worse.

Why does mixture of experts matter for customer support automation?

Mixture of experts matters because agent workflows multiply model calls: classification, retrieval, tool arguments, and a drafted reply for every resolution. Sparse activation keeps per-token pricing low enough that multi-step automation stays affordable at production volume, while preserving the reasoning capacity that unusual cases and long transcripts demand.

Learn More

Learn More

Knowledge base

K

Average handling time (AHT)

A

Telephony

T

Customer acquisition cost (CAC)

C

Business process outsourcing (BPO)

B

AI tokens

A

Human in the loop (HITL)

H

AI grounding vs retrieval-augmented generation (RAG)

A

Short message service (SMS)

S

Call center

C

Data annotation

D

Ticket routing

T

Customer service quality assurance (QA)

C

Live chat

L

Speech Synthesis Markup Language (SSML)

S

Batch inference

B

Barge-in

B

SLA compliance rate

S

Queue management

Q

Prompt versioning

P

Emotion detection

E

Retrieval-augmented generation (RAG)

R

Natural language understanding (NLU)

N

Text classification

T

Call routing

C

Customer churn rate

C

Speech-to-speech

S

Intent recognition

I

Voice of the employee (VoE)

V

Confidence score

C

Resolution-based pricing

R

AI personalization

A

Voice cloning

V

Asynchronous messaging

A

Hallucination

H

ReAct agent pattern

R

Long-term memory

L

Forecast accuracy

F

Customer feedback loop

C

Structured output

S

Outbound voice AI

O

AI guardrails

A

Direct preference optimization (DPO)

D

Prompt chaining

P

SIP transfer

S

Fallback intent

F

Conversation summarization

C

Auto-tagging

A

Cost per contact

C

VoIP jitter

V

Model card

M

Ticket prioritization

T

Sentiment analysis

S

Agent utilization rate

A

Speech-to-intent

S

Prompt engineering

P

Knowledge atlas

K

SOC 2 AI support

S

Prosody

P

Chatbot containment rate

C

Speech synthesis

S

Intelligent virtual agent (IVA)

I

Fine-tuning

F

ISO 42001

I

Intent-based search

I

After-call work (ACW)

A

Chatbot

C

AI agent

A

Prior authorization automation

P

AI customer service

A

Ticket deflection

T

AIUC-1

A

Workforce management (WFM)

W

Skill-based routing

S

Interactive voice response (IVR)

I

Contact center as a service (CCaaS)

C

Warm transfer

W

Customer segmentation

C

Reinforcement learning

R

Voice activity detection (VAD)

V