AI State of the Art
Mistral/Mistral Engineering/18 min
Section 253

MoE Architecture at Mistral: Sparse Routing, From 8 to 128 Experts

Listen as a podcast →
Status as of July 2026

Mixture-of-Experts is no longer the signature of a generation at Mistral. It is a choice made model by model. Today, Mistral Large 3 (675 billion total parameters, 41 billion active per token) and Mistral Small 4 (119 billion total, roughly 6 billion active) are MoE models, while Mistral Medium 3.5, the flagship since April 2026, is dense: all 128 billion of its parameters work on every token.

The "8 experts, 2 active" figures you will read below describe Mixtral (2023-2024). They remain the best way into the subject, because Mixtral is the only Mistral MoE whose architecture has been described in detail in a scientific paper. But they are no longer the production settings.

MoE: How You Get Giant Power at Mid-Size Cost

Imagine a factory. A classic (dense) model is one huge machine running at full throttle ALL the time. Even to screw in a bolt, every piston in the machine is firing. Massive. Wasteful. Expensive in electricity.

Mixture-of-Experts (MoE)? It's a workshop with 8 specialized machines, but for each part to machine, you only activate 2: the ones best suited for the job at hand. The other 6 stay idle. Result: the production capacity of a full workshop, but an electricity bill divided by 4. That's exactly how a sparse model gets giant power while only paying the compute cost of a mid-size model.

Dense vs MoE: The Difference That Changes Everything

Dense model (classic): 70 billion parameters. Each token activates all 70 billion. Each request mobilizes the entire neural network. It's powerful, but it's like turning on every light in a building to read a book in a single room.

MoE model, the Mixtral 8x7B example (December 2023): 46.7 billion parameters TOTAL, but each token only activates 12.9 billion. Why? Because the model contains 8 groups of parameters (the "experts"), and a smart router says "this token goes to experts 3 and 7." The other 6 stay dormant.

Concrete result: the representational capacity of a 70B model, the compute cost of a 13B model. It's not magic, it's smart engineering.

Where these numbers come from

The Mixtral of Experts paper describes exactly this mechanism: each layer is made of 8 feedforward blocks (the experts), and for every token, at each layer, a router network selects two of them. It states that each token has access to 47 billion parameters but only uses 13 billion at inference time. This is the only Mistral MoE described at that level of detail in a public paper: everything that follows about "8 experts, top-2" refers to it.

Mixtral of Experts
Why split the feed-forward layers and not attention?

In a transformer, about 66% of parameters are in the feed-forward layers (FFN): large dense neural networks. The remaining 33% are in the attention layers, which manage relationships between words. We turn the FFNs into experts because they're the most redundant: not all tokens need the same "expertise." Attention, on the other hand, is shared by all tokens, because everyone needs to know which words to look at.

The Router: The MoE Orchestra Conductor

Each layer of a Mixtral model contains three components:

  1. Attention (shared by all tokens)
  2. 8 experts (specialized FFNs)
  3. A router (that decides which experts to activate for each token)

The router is a small linear network. It takes a token as input, computes a score for each of the 8 experts, and selects the top 2. The outputs of these 2 experts are then combined in a weighted average by their respective scores.

In formulas:

score=token×W\text{score} = \text{token} \times W

top_2_experts=the 2 with the best scores\text{top\_2\_experts} = \text{the 2 with the best scores}

result=expert1_output×weight1+expert2_output×weight2\text{result} = \text{expert1\_output} \times \text{weight1} + \text{expert2\_output} \times \text{weight2}

Why top-2 (2 experts per token)?

  • Top-1 (1 expert only): too risky. If the router makes a mistake and sends the token to the wrong expert, quality drops sharply. No safety net.
  • Top-2: two complementary perspectives. The best trade-off between cost and quality. If one expert is moderately relevant, the other compensates.
  • Top-3+: the marginal gain is small, but compute cost increases significantly.
Top-k routing: simple but effective

Top-k routing is the most direct approach. More sophisticated variants exist (continuous softmax routing, stochastic routing with exploration). Mixtral stuck with deterministic top-2. The principle has not changed in the current line-up, only the settings have moved: according to the configuration files published with the weights of Mistral Large 3 and Mistral Small 4, those models have 128 experts per layer, 4 of which are selected per token, plus one always-active "shared" expert. We have gone from a few large experts to many fine-grained ones, this is what Mistral calls a fine-grained MoE in the Mistral Large 3 model card.

The Experts: What Do They Actually Do?

Classic question: "Does one expert handle math, another code, another poetry?"

Short answer: no, and this is one of the most surprising findings in the Mixtral paper.

The authors looked at which experts tokens were sent to depending on the type of text (math papers, biology abstracts, philosophy). Their conclusion: they observe no obvious pattern of expert assignment based on subject matter. In other words, there is no "mathematics expert."

They do, however, report two very real regularities:

  • A syntactic structure. Tokens playing the same grammatical role go to the same experts, the word self in Python, or the word "Question" in English, are routed very consistently.
  • Positional continuity. Two consecutive tokens often end up at the same expert, markedly more often than chance would predict, especially in the higher layers. That is good news for engineering: it makes routing predictable, and therefore optimizable.

So specialization is real, but it is syntactic and positional, not thematic. One caveat: this result applies to Mixtral, the only Mistral MoE analyzed publicly at that level. Nothing equivalent has been published for Mistral Large 3 or Mistral Small 4.

The Big Challenge: Expert Balancing

The "winner-take-all" problem. Imagine that 3 experts are slightly better than the other 5 at the start of training. The router prefers them. They receive more tokens, therefore more feedback, so they improve even more. The other 5, neglected, stagnate. Quickly, 3 experts do all the work and 5 are useless. It's a vicious cycle that wastes 62% of the model's capacity.

The usual solution: an auxiliary load balancing loss. During training you add a penalty term that says "distribute tokens fairly among the experts." If one expert receives 50% of tokens when it should only receive 12.5%, it's penalized. This is the standard technique in the MoE literature.

The tuning dilemma. If the penalty is too strong, you force fairness but tokens end up at poorly suited experts. If it's too weak, you fall back into winner-take-all. Finding the right coefficient is an art that relies as much on experience as on science.

What Mistral has not published

Mistral has never publicly described its balancing recipe: not the exact form of the penalty, nor its coefficient, nor the stabilization tricks used for Mistral Large 3 or Mistral Small 4. What is described here is the general state of the art in the field, not a documented in-house method. Be wary of articles that walk you through "Mistral's balancing method": it is not public.

In Production: The Practical Realities of MoE

The memory vs compute paradox. Apparent contradiction: with Mixtral 8x7B, you need to LOAD all 46.7B parameters into GPU RAM (all experts must be ready), but you only use 12.9B per token. The memory required is that of a 47B model, but the compute cost is that of a 13B model. In practice, this works well because modern GPUs have plenty of memory and it's compute (not memory) that limits speed.

That paradox is what explains the price of Mistral Large 3: 675 billion parameters to host, but only 41 billion to run per token. The model is expensive to store and cheap to query, hence an API price ($0.50 per million input tokens) lower than that of the dense Mistral Medium 3.5, which is five times smaller.

Distribution across multiple GPUs. If you have 8 experts, you can distribute:

  • GPU 1: experts 0-1
  • GPU 2: experts 2-3
  • GPU 3: experts 4-5
  • GPU 4: experts 6-7

A token arrives, the router says "expert 3 and expert 7." GPU 2 and GPU 4 work, the others wait. This is Expert Parallelism, a form of parallelism naturally suited to MoE.

Irregular batching. When 100 tokens are processed in parallel, each activates different experts. Memory accesses become irregular and chaotic. Modern frameworks like vLLM handle this complexity, but it's a non-trivial engineering challenge.

The Evolution of MoE at Mistral

ModelDateArchitectureTotal / activeRatio
Mixtral 8x7BDec. 2023MoE, 8 experts, 2 active46.7B / 12.9B~3.6:1
Mixtral 8x22BApr. 2024MoE, 8 experts, 2 active141B / 39B~3.6:1
Mistral Large 3Dec. 2025Fine-grained MoE675B / 41B~16:1
Mistral Small 4March 2026MoE, 128 experts, 4 active119B / ~6B~20:1
Mistral Medium 3.5Apr. 2026Dense128B / 128B1:1

Three things to take away from that table.

There was a long interruption. The official Mistral Large 3 announcement says it in black and white: it is Mistral's first mixture-of-experts model since the Mixtral series. Between April 2024 and December 2025, every model Mistral released was dense. So MoE has never been the company's continuous trademark: it is a technique picked back up after a twenty-month pause.

The ratio jumped. We go from roughly 3.6 to 1 up to 16 or 20 to 1. The mechanism behind that jump, as it appears in the configuration files published with the weights: many more experts (128 instead of 8), each far smaller, with 4 activated per token instead of 2, plus one always-active shared expert. This is the "fine granularity" mentioned in the official Mistral Large 3 model card.

And the flagship is dense. Mistral Medium 3.5, the model put forward since April 2026, uses no MoE at all. So the choice is made case by case, according to the deployment target, not generation by generation.

What MoE really buys you, without overselling it

Mastering MoE is hard: expert balancing, training stability, routing optimization. Mistral is one of the few teams to have shipped open MoE models that actually work, from Mixtral in 2023 to Mistral Large 3 in 2025.

That said, there is no public figure supporting the claim that MoE saves Mistral "three to five times" the compute resources of its competitors. What is verifiable is the inference cost: a model that only activates 41 billion of its 675 billion parameters is served, and billed, like a 41-billion model. The rest is speculation.

Where MoE Is Heading

MoE is a fast-moving architecture. Some directions presented as futuristic not long ago are already in today's models:

  • Shared experts, already here. An always-active expert that acts as a common knowledge base, alongside the routed ones. The published configurations of Mistral Large 3 and Mistral Small 4 each declare one.
  • Fine granularity, already here. Many small experts rather than a few large ones: 128 against 8.
  • Dense layers at the top, already here. On Mistral Large 3, the published configuration indicates that the very first layers stay dense, with no routing, before the expert mechanism takes over.

What remains genuinely research territory, and which nobody at Mistral has announced in a product:

  • Adaptive routing: activating 1, 2, or 4 experts depending on the difficulty of the token.
  • Hierarchical MoE: a first level of routing picks a group of experts, a second picks the specific expert within that group.

Those last two ideas belong to the general state of the art in the field. Do not attribute them to any particular Mistral model until an announcement does so.