How Mixture of Experts Models Route Tokens
How Mixture of Experts Models Route Tokens—and What You Pay at Inference
An AI assistant can generate a spreadsheet formula quickly yet pause between words when asked to explain a large codebase. If you are choosing an API or a deployment for your team, “mixture of experts” helps explain some of those costs—but the label alone cannot predict speed or your bill.
This guide is for buyers comparing hosted inference with running model weights themselves. It compares published architecture descriptions for Mistral Mixtral 8x7B, Mistral Mixtral 8x22B, DeepSeek DeepSeek-V3 and Alibaba Qwen3-235B-A22B; it does not report hands-on testing. The sources are dated below. Hosting availability, supported versions and prices change, so confirm the exact model on the provider’s current catalog before purchasing.
How do mixture of experts models route tokens, and what does inference cost?
Mixture of experts models use a learned router to select a few expert networks for each token, then combine their outputs. This reduces expert computation relative to activating every expert, but inference still requires substantial weight memory, token dispatch, shared computation, and communication when experts occupy different devices.
Start with total parameters and active parameters
A mixture of experts, or MoE, model replaces some dense feed-forward blocks with collections of expert networks. Within an MoE layer, a router chooses which experts process each token’s hidden representation. Other components, including attention, still perform their own computation.
That distinction creates two parameter counts. Total parameters describe the complete model that must be stored somewhere. Active parameters per token describe the subset used along a token’s computation path, including the relevant shared components under the model publisher’s accounting.
For a buyer, total parameters mainly signal weight-storage requirements. Active parameters help estimate computation, but they do not directly determine latency or API prices.
| Product | Key specifications stated in its published architecture |
|---|---|
| Mistral Mixtral 8x7B | Approximately 46.7 billion total parameters and 12.9 billion active per token; 8 experts per MoE layer, with 2 selected per token |
| Mistral Mixtral 8x22B | Approximately 141 billion total parameters and 39 billion active per token; 8 experts per MoE layer, with 2 selected per token |
| DeepSeek DeepSeek-V3 | Approximately 671 billion total parameters and 37 billion active per token; 256 routed experts per MoE layer, with 8 selected, plus 1 shared expert |
| Alibaba Qwen3-235B-A22B | Approximately 235 billion total parameters and 22 billion active per token; 128 experts per MoE layer, with 8 selected per token |
Sources: Mistral’s Mixtral announcement, December 11, 2023, and the Mixtral paper, first submitted January 8, 2024; Mistral’s Mixtral 8x22B announcement, April 17, 2024; the DeepSeek-V3 technical report, first submitted December 27, 2024; and Alibaba’s Qwen3 announcement, April 29, 2025.
The figures do not establish a quality ranking. Different attention designs, expert sizes, training data and serving implementations make active-parameter comparisons incomplete.
Mistral Mixtral 8x7B illustrates another naming trap: its eight experts do not constitute eight independent, complete seven-billion-parameter models. Shared components explain why its total is approximately 46.7 billion rather than 56 billion.
Step 1: Understand what the router actually selects
At each routed layer, a token arrives as a vector representing its current state. A learned router converts that vector into scores, often called router logits. The architecture then applies its scoring and selection rules to choose the top-k experts.
“Top-k” means selecting a fixed number of experts for that token at that layer. Mistral Mixtral 8x7B and Mistral Mixtral 8x22B select two. DeepSeek DeepSeek-V3 and Alibaba Qwen3-235B-A22B select eight routed experts.
The chosen expert identities can change across layers and tokens. A token in a code explanation does not necessarily enter a permanent “programming expert.” Expert specialization emerges during training, and the networks usually lack reliable, human-readable subject labels.
After processing, expert outputs are multiplied by routing weights and aggregated, typically through a weighted sum. Precise scoring, normalization and weighting rules vary by architecture.
DeepSeek DeepSeek-V3 also distinguishes shared experts from routed experts. Its shared expert handles every token in the relevant layer; the router selects additional networks from the routed pool. Its reported active-parameter count already reflects the architecture’s active path, so buyers should not add the shared expert again.
What good looks like in a provider’s documentation is a clear model identifier, checkpoint or revision, numerical precision and serving configuration. “MoE-powered” provides too little information to estimate either cost or behavior.
Step 2: Budget for all expert weights
Sparse activation reduces expert arithmetic. It does not eliminate storage for the unselected experts.
If a deployment keeps the complete model resident across its accelerators, it must accommodate all expert weights, along with attention weights and other components. Offloading weights to host memory or storage changes that arrangement, but transferring them can increase latency.
A useful first estimate is:
Weight storage = parameter count × bytes per parameter.
At two bytes per parameter, the following are approximate weight-only requirements:
| Product | Approximate storage at two bytes per parameter |
|---|---|
| Mistral Mixtral 8x7B | 93.4 GB |
| Mistral Mixtral 8x22B | 282 GB |
| DeepSeek DeepSeek-V3 | 1,342 GB |
| Alibaba Qwen3-235B-A22B | 470 GB |
These are calculated decimal gigabytes, not measured deployment footprints. They exclude KV cache, temporary buffers, quantization metadata, framework allocations and any replicated weights.
One-byte storage would roughly halve the raw weight figures; four-bit storage would roughly quarter them. Actual quantized formats add metadata, and a deployment may preserve some components at higher precision. A four-bit label therefore does not promise an exact fourfold reduction in total accelerator memory.
DeepSeek DeepSeek-V3’s report describes FP8 mixed-precision training. That does not establish the weight format or arithmetic used by every inference provider serving it.
For a hosted API, ask whether quantization is disclosed and whether its evaluation covers your workload. For self-hosting, require a memory estimate that includes your intended context window and concurrent requests. Weight memory and KV-cache memory are separate costs.
Step 3: Check how tokens travel between devices
When experts occupy different accelerators, the serving system groups token representations by destination, sends them to the selected experts, and returns the results for aggregation. This is commonly implemented through all-to-all communication.
Two parallelism choices matter:
Expert parallelism places different experts on different devices. It spreads weight storage, while creating token-dispatch traffic whenever selected experts are remote.
Tensor parallelism splits an individual computation across devices. It can help fit or accelerate large components, but introduces its own synchronization and communication. Deployments may combine both approaches.
A simplified estimate for dispatch plus return traffic is:
2 × T × k × h × b bytes
Here, T is the number of token representations processed in that layer, k is the number of selected experts, h is the hidden-vector width, and b is bytes per vector element.
This estimates aggregate vector payload when every selected expert requires a remote transfer. It excludes routing metadata, padding, protocol overhead and implementation-specific optimizations. Local expert assignments reduce network traffic.
For an illustrative layer with a hidden width of 4,096, top-2 routing and two-byte vector elements, dispatch plus return is about 32 KiB per token. Processing 1,024 token positions produces about 32 MiB of aggregate payload for that layer under those assumptions.
Those are example calculations, not measurements of the four products.
Interconnect bandwidth therefore matters, but its advertised maximum is insufficient. Ask whether experts span multiple servers, which interconnect carries their traffic, and whether the provider measures effective communication under inference load. Small transfers can be limited by communication latency even when bandwidth remains available.
Step 4: Separate prefill throughput from decoding latency
Inference has two phases that stress an MoE deployment differently.
Prefill processes the prompt. A long document supplies many token positions that the system can group into larger expert batches. Larger batches can improve accelerator utilization, although uneven routing and cross-device transfers still impose costs.
Decode generates subsequent tokens. Each individual response has a sequential dependency: producing the next token requires the preceding computation. At low concurrency, an expert may receive little work per step, making dispatch, synchronization and small matrix operations comparatively expensive.
This is why a strong aggregate tokens-per-second result can coexist with disappointing responsiveness for one user.
Request three measurements:
| Metric | What it helps you assess |
|---|---|
| Time to first token | How long the user waits through queueing and prompt processing |
| Prefill throughput | How efficiently the deployment processes input tokens at a stated prompt length and load |
| Inter-token latency | How long the user waits between generated tokens at a stated concurrency |
Compare median and tail latency, such as the 95th percentile. Require the prompt length, output length, precision, concurrency and caching conditions alongside every result.
For a document-analysis workflow, prompt processing may dominate. For an interactive coding assistant, inter-token latency may determine whether the tool feels responsive. For overnight batch processing, aggregate throughput and cost per accepted result may matter more.
The architecture sources above do not supply one comparable set of serving measurements across all four products. No speed ranking follows from this guide’s parameter table.
Step 5: Ask about uneven routing and overflow
Routers can send disproportionate work to particular experts. Those experts become bottlenecks while others remain underused. That imbalance can reduce throughput and worsen tail latency.
Training techniques address this problem in different ways. Some architectures use auxiliary load-balancing losses. DeepSeek DeepSeek-V3 describes an auxiliary-loss-free balancing strategy using routing bias, alongside a complementary sequence-wise balance loss. “Auxiliary-loss-free” should therefore not be read as an absence of every balancing loss.
Balancing changes the distribution of work; it does not guarantee equal expert utilization for every prompt batch.
Another question is expert capacity: how many token assignments an implementation permits an expert to handle in a processing step. A capacity factor may express a buffer allowance relative to average expected expert load. For example, a factor of 1.25 represents a nominal allowance 25% above that average under the implementation’s definition.
That is a general example, not a documented configuration for these products.
If an expert receives more assignments than its available capacity, implementations may process work in additional stages, use another routing policy, or drop overflowing expert assignments. A dropped assignment does not necessarily mean a visible word disappears; it changes which expert computation contributes to the token representation.
Training-time capacity rules also need not match inference-time behavior. Ask the provider directly: Does this inference deployment drop any expert assignments under load, and how is overflow handled?
What the four products mean for a buying decision
Mistral Mixtral 8x7B has the smallest published total-parameter count in this comparison. That makes it a useful starting candidate when investigating self-hosting feasibility. Its top-2 routing does not establish that it will outperform another model on your prompts or hardware; measure task quality and end-to-end latency.
Mistral Mixtral 8x22B retains eight experts with two selected, while increasing both total and active parameters substantially. Budget from approximately 141 billion total parameters when estimating weight storage. Choosing it over Mistral Mixtral 8x7B should depend on an observed improvement in your evaluation that justifies the additional serving resources.
DeepSeek DeepSeek-V3 combines approximately 671 billion total parameters with 37 billion active per token. That gap makes the storage-versus-computation distinction especially consequential. A managed endpoint may simplify access to the necessary infrastructure, but its price and responsiveness depend on the provider’s implementation. Verify the precise version behind the endpoint.
Alibaba Qwen3-235B-A22B has approximately 235 billion total parameters, 22 billion active per token and top-8 routing across 128 experts per MoE layer. Its published Qwen3 documentation also describes thinking and non-thinking operation. When comparing costs, hold that setting consistent: additional generated reasoning can increase output-token consumption.
None wins solely because it selects fewer experts. Expert size, shared computation, routing locality, precision and output length all affect the result.
Example: Compare the cost of an accepted answer
Example: A team wants an assistant to explain spreadsheet formulas. It builds a fixed evaluation set with representative prompts, expected answers and a correctness rubric.
For each candidate endpoint, the team records input tokens, billed output tokens, time to first token, inter-token latency, retries and accepted answers. It keeps generation settings and reasoning behavior as comparable as each product permits, documenting differences.
The API calculation is straightforward:
Request cost = billed input tokens × input rate + billed output tokens × output rate, using the provider’s billing units.
Cached-input charges, minimum charges and other fees must be added where applicable.
The more useful buying metric is total spend divided by accepted answers. A cheaper token rate can lose its advantage if answers require repeated requests or substantially longer outputs.
For self-hosting, divide deployment cost by accepted answers over the same interval. Include idle capacity and operational work. Active parameters alone cannot produce that figure.
Common mistakes to avoid
The first mistake is sizing hardware from active parameters. All expert weights still need a storage strategy, and long context windows add KV-cache requirements.
The second is treating a high-throughput benchmark as evidence of fast individual responses. Large batches can improve utilization while queueing increases user wait time.
The third is comparing endpoints with different precision, reasoning settings or checkpoint versions. Those differences can change quality, latency and billed output.
Finally, do not assume MoE automatically means cheaper service. Sparse computation creates an opportunity for efficiency; your invoice reflects the provider’s rates, serving choices and your workload.
FAQ
Does every token use the same experts?
No. Routing decisions depend on the token’s representation at each layer. Expert selection can differ across both token positions and layers.
Does top-8 routing cost four times as much as top-2?
Not necessarily. Expert sizes and other model components differ. Top-k is one input to cost, alongside weight precision, active computation, communication and serving efficiency.
Can an MoE model fit on hardware sized for its active parameters?
Not with all weights resident solely on that hardware. Unselected expert weights still require storage. Offloading or distributing them introduces additional hardware requirements or transfer costs.
Is a hosted API or self-hosting the better purchase?
A hosted API simplifies access when demand is uncertain or infrastructure requirements are large. Self-hosting merits evaluation when utilization, control requirements and operational capacity justify it. Compare cost per accepted answer under representative load, then verify current model availability and pricing.
This article contains affiliate links. offhaul.com Learning may earn a commission when you purchase through them, at no additional cost to you.
This article contains affiliate links. offhaul.com Learning may earn a commission when you purchase through them, at no additional cost to you.
As an Amazon Associate, I earn from qualifying purchases.
