Why mixture-of-experts models are fast
Mixture of experts inference explained: each token runs only a few expert networks. Here is why that is fast, and where the speed gain stops.
Updated
Mixture-of-experts models are fast because each token runs through only a few of the network’s expert blocks, not all of them. A small router picks which experts to use for each token, so the arithmetic per token is far lower than the total size of the model suggests. The speed is real, but it reaches your users only under the right conditions, as the sections below explain.
How the router picks experts
A dense model runs every weight for every token. A mixture-of-experts layer splits the large feed-forward block into many smaller expert blocks and adds a router. The router is a small learned layer that scores each expert for the token in front of it. The top few scores win, and only those experts run. Their outputs are combined using the router’s weights.
The model stores a large amount of learned knowledge, but each token pays only for the experts it uses. Capacity and per-token compute become separate choices, and that split is why the design suits serving.
Training is harder than for a dense model, because the router has to learn to spread work across the experts. That is mostly a training problem, but it shows up at serving time as uneven load.
Why fewer active weights means faster decoding
Generating text is mostly limited by how fast the hardware can read weights from memory, one token at a time. If a token touches fewer weights, there is less data to move on every step. Fewer multiply-adds also means less compute per step.
Here is the arithmetic for one layer, using round numbers so the logic is easy to follow. Suppose a layer holds 64 experts and the router sends each token to 2 of them. A token then reads about 3 percent of that layer’s expert weights, which is 2 out of 64. A dense layer of the same total size would read all of its weights on every step.
Routing does not shrink the memory footprint, though. Every expert has to be stored and ready, even the ones a given token skips. A common mistake is to size the server from the active part of the model alone, then discover the full model does not fit. Plan memory for everything.
Where the speed gain can disappear
Routing adds work. The router has to run, tokens have to reach the right experts, and results have to be gathered back in order. When tokens in a batch pick different experts, the load spreads unevenly, and some experts sit idle while others queue. The serving setup decides how much of the theoretical gain survives.
Concurrency matters too. A single request may touch a different set of experts on each token, so the savings are harder to see. With many requests in flight, expert use evens out and total throughput tends to rise. Measure at the concurrency you will run in production, not with one test request. For how concurrency changes the picture, see throughput vs latency in LLM serving.
A high aggregate rate can hide a slow experience for one user waiting on the first token, so check that number too.
What this means for a single task
Most business work does not need a general model with a large expert pool. A narrow job, such as pulling clauses from contracts or sorting support tickets, can often be served by a smaller model trained on that one task. Own Weights builds exactly that kind of model. Speed then depends on three choices: model size, how long the output is, and how many requests run at once. For the single-request side of that trade, see the fastest LLM inference for one task.
Take a hypothetical invoice job that needs six fields, about 60 tokens of structured output per invoice. If the model first writes a 400-token explanation, it does nearly seven times the decoding work per document. Cutting the output to the fields you need is often the cheapest speed gain available, whatever the architecture.
Our own measurements show the scale involved. One request at a time, one of our tiers writes about 90 output tokens per second and our faster tier about 174, with its first token in about 0.3 seconds. With 32 requests running at once, the faster tier processes about 14,000 tokens per second in total, input plus output, and handles 2.7x more documents an hour. Your documents and output lengths will move those numbers, so treat them as a starting point.
How to compare speed fairly
Ask every vendor for three numbers: time to first token, tokens per second for one request, and documents per hour at your real concurrency. A high peak rate can hide a slow experience for a single user. Our guide on tokens per second covers what that metric leaves out, so read it before you compare pages.
Before you trust any speed claim, check these five things:
- Use the same prompts and the same output cap on every option.
- Test at your real concurrency, not with one request.
- Time the whole job, including retries and output that fails to parse.
- Score accuracy on your own documents in the same run.
- Record memory needs, not only speed.
Speed alone is not a reason to switch. A fast model that gets fields wrong costs more in review time than it saves in API spend. Run a test on your own documents, score accuracy, then time the same run under your expected load. Keep both results in one table so the trade-off is visible. Once you have measured throughput, the LLM cost calculator can help you check what that volume would cost.
If you want to see whether a trained model would fit your workload, use the Book a free audit button on this page. We map your AI calls by task, build a test from your real data, and score the model you use today before anything is trained.
Questions
Are mixture-of-experts models faster than dense models?
Often, per token, because only some expert weights run for each token. Total memory use is still high, so the gain depends on your hardware and how many requests run at once. Measure on your own workload before you assume a speedup.
Does a mixture-of-experts model cost less to run?
It can, because less arithmetic per token usually means less work per request. Your real cost depends on the memory the full model needs and on how busy the server stays. Compare cost per document on the same test, not cost per token alone.
Why do mixture-of-experts models sometimes feel slow in production?
Routing adds overhead, and uneven expert use leaves parts of the model waiting. Single requests get the least benefit. Test at your real concurrency and output length before you decide.