Papers · 2024 · Reading: 24 min, plus 3 in closed details.
Paper · arXiv preprint (technical report) · arXiv 2401.04088

Mixtral of Experts (Mixtral 8x7B)

Albert Q. Jiang, Alexandre Sablayrolles, Antoine Roux, Arthur Mensch, Blanche Savary, Chris Bamford, Devendra Singh Chaplot, Diego de las Casas, Emma Bou Hanna, Florian Bressand, Gianna Lengyel, Guillaume Bour, Guillaume Lample, Lélio Renard Lavaud, Lucile Saulnier, Marie-Anne Lachaux, Pierre Stock, Sandeep Subramanian, Sophia Yang, Szymon Antoniak, Teven Le Scao, Théophile Gervet, Thibaut Lavril, Thomas Wang, Timothée Lacroix, William El Sayed
Mistral AI · January 2024 (arXiv v1 8 January 2024, the only version; weights released by magnet link on 8 December 2023, blog post 11 December 2023)

In one line: First open-weights SMoE (8 experts, top-2, 13B active/47B total) to match Llama 2 70B and GPT-3.5 at 5x fewer active params, with experts specialising on syntax and position rather than domain; kicked off the open-MoE era.

46.7B / 12.9B parameters
total against active per token
recounted from Table 1 and the released config; 8 copies of the FFN only, attention shared · Table 1
70.6% MMLU
against Llama 2 70B's 69.9% on the same pipeline
with 5.4x fewer active parameters; +14.6 points on MATH, +10.9 on code · Table 2
1121 Arena Elo
Mixtral 8x7B Instruct, LMSys leaderboard, 22 December 2023
first open-weights model above GPT-3.5-Turbo (1117), trained with SFT then DPO · Figure 6

How far to trust it: Believe the headline against Llama 2 70B: both were re-run on one pipeline and the wins on maths and code are large. Read "matches GPT-3.5" as a comparison with numbers copied from another report, "the speed of a 12.9B model" as true only at batch size 1 or very large batches, and the routing analysis as a small qualitative study with a baseline that assumes uniform expert use. The evidence, point by point.

The idea in one sentence: replace every feed-forward block of Mistral 7B with eight copies and a router that sends each token, at each layer, to its top two, so the model holds 46.7B parameters but each token computes with 12.9B; that bought Llama 2 70B and GPT-3.5 quality at 13B-class compute per token, while memory and mid-batch serving still pay for all 46.7B.

You need: what a sparse MoE layer is in general (routers, load balancing, capacity, expert parallelism), taught on Mixture of experts; and the memory-bound decode step and roofline from Performance math. This page keeps what Mixtral did and what its numbers show.

New terms

  • Sparse (total) parameters: every weight the model holds, 46.7B; what memory pays for.
  • Active parameters: the weights one token computes with, 12.9B; what FLOPs pay for.
  • Top-2 routing: a linear router scores the 8 experts and keeps the best two, renormalising their weights with a softmax.
  • Positional locality: consecutive tokens picking the same expert more often than chance.
The paper's Figure 1: inputs enter a router box; two arrows go from the router to two of a stack of eight expert boxes; dotted lines carry the router's gating weights to a summation node, which adds the two selected experts' outputs into the layer's output.
Per token, the router picks 2 of the 8 experts and their outputs are summed with its two softmax weights; the other six experts do no work for that token, but their weights still sit in GPU memory. Figure 1 of the paper, credit Albert Q. Jiang, Alexandre Sablayrolles et al. (Mistral AI), CC BY 4.0, arXiv 2401.04088.

Problem

§1 Introduction

By late 2023 the open-weights quality frontier was Llama 2 70B: strong, but with 70B parameters touched for every token, so inference cost scaled with quality. Sparse mixture-of-experts (MoE) layers had long promised to decouple parameter count from per-token compute (Shazeer et al. 2017, GShard, Switch Transformers), but no open-weights MoE had reached state-of-the-art quality; MoE was mostly a Google-internal technique with a reputation for training instability and routing complexity.

The question: can a small, simple sparse MoE recipe (few large experts, top-2 routing, nothing exotic in the paper) deliver 70B-class quality at 13B-class compute, released fully open under Apache 2.0?

The paper's answer is Mixtral 8x7B, "the first mixture-of-experts network to reach a state-of-the-art performance among open-source models" (§6), with a fine-tuned chat model, Mixtral 8x7B Instruct, both under Apache 2.0 (§1). The weights came first: a bare magnet link posted on 8 December 2023, the release post on 11 December, the paper a month later on 8 January 2024. It is a 13-page technical report: no training data, token count, compute budget or training recipe is disclosed (the release-day Hugging Face post: "we have no information about the size of the dataset used for pretraining, its composition, or how it was preprocessed").

Method: Mistral 7B with eight feed-forward networks

§2, Table 1

Mixtral "has the same architecture as Mistral 7B, with the difference that each layer is composed of 8 feedforward blocks (i.e. experts)" (abstract). Two changes from Mistral 7B: a "fully dense context length of 32k tokens", and every feed-forward (FFN) sub-block replaced by a Mixture-of-Experts layer (§2). The configuration is Table 1:

dimn_layershead_dimhidden_dimn_headsn_kv_headscontext_lenvocab_sizenum_expertstop_k_experts
40963212814336328327683200082

Table 1. 32 query heads share 8 key-value heads (grouped-query attention, owned by Attention variants); each expert is a SwiGLU block of inner width 14,336, Mistral 7B's own FFN. Two differences visible only in the released config.json against Mistral 7B's: the sliding window is gone (sliding_window null against 4096), and the rotary base is 106 instead of 104. The paper mentions neither number.

Why "8x7B" is 47B, not 56B. Only the FFNs are copied eight times; attention, embeddings and norms are shared. Recounted from the configuration: total 46.7B; active per token, with 2 experts per layer instead of 8, 12.9B. That reproduces the abstract's 47B and 13B and the release post's 46.7B and 12.9B independently (recompute.py).

The recount, term by term
One expert holds 3 × 4,096 × 14,336 = 176.2M parameters, so the 256 experts (8 per layer × 32 layers) hold 45.1B, 96.6% of the model. Everything else (attention 41.9M per layer, the 32,768-parameter router per layer, embedding and output head 131.1M each) adds 1.6B. Eight copies of Mistral 7B would have been 8 × 7.24 = 57.9B.
Mixtral's block is animated beside Mistral 7B's at one scale on the Mistral AI page; this page does not redraw it.

Method: the router

§2.1, Figure 1, equations

The MoE layer's output is a weighted sum of expert outputs, the weights coming from a gating network (§2.1, Figure 1):

G(x) = Softmax(TopK(x · Wg)),   y = Σi Softmax(Top2(x · Wg))i · SwiGLUi(x)
(§2.1; TopK sets every logit outside the top K to −∞, so the softmax runs over the kept two only and their weights sum to 1.)
  • Per layer, per token, a linear router Wg (4,096 × 8) produces 8 logits; the two largest pick two SwiGLU experts, weighted by a softmax over just those two. "Even though each token only sees two experts, the selected experts can be different at each timestep" (abstract), and at each layer.
  • K is the compute knob. Growing n (total experts) at fixed K raises the parameter count "while keeping its computational cost effectively constant"; growing K raises active compute. The paper names the two counts: sparse (total) parameters, which grow with n, and active parameters, which grow with K (§2.1).
  • What the paper leaves out. Notably there is no discussion of auxiliary load-balancing losses or capacity factors; the recipe presented is deliberately minimal. The release post adds only that "we train experts and routers simultaneously" (post). The released Hugging Face config carries router_aux_loss_coef 0.02, the Switch-style balancing loss that library applies when fine-tuning with router logits on (config.json); whether Mistral pretrained with it is not stated anywhere.
Against GShard: two small differences
The design is close to GShard, except that every FFN is an MoE layer (GShard replaced every other one) and the second expert is picked by the same plain top-K rule rather than GShard's "more elaborate gating strategy for the second expert" (§2.1; in GShard the second expert is used only with a probability proportional to its gate weight, GShard §2.2).

The generic machinery (one token through a router, top-k styles, load balancing, capacity, expert parallelism) is on Mixture of experts, whose 3D figures step recorded tokens through a router (its Fig. 1 and Fig. 3) and expert loads over training (Fig. 4), and a top-1 Switch layer trains live in the browser on the Switch Transformers page. What is specific to Mixtral is what top-2 of 8 large experts does to the cost of serving, and what its router learned; the next section and the Route text through a toy Mixtral tab take those in turn.

One decoding step, growing batch; one layer drawn, block area to scale.

What it costs to run: compute follows active, memory follows total

§2.1 and §3 "Size and Efficiency"

The paper's efficiency claim is careful: the comparison "focuses on the active parameter count, which is directly proportional to the inference compute cost, but does not consider the memory costs and hardware utilization. The memory costs for serving Mixtral are proportional to its sparse parameter count, 47B, which is still smaller than Llama 2 70B." Routing adds overhead, "due to the increased memory loads when running more than one expert per device", so MoE layers "are more suitable for batched workloads where one can reach a good degree of arithmetic intensity" (§3). The introduction puts it as "faster inference speed at low batch-sizes, and higher throughput at large batch-sizes" (§1). The release post goes further: "6x faster inference" than Llama 2 70B, and "it, therefore, processes input and generates output at the same speed and for the same cost as a 12.9B model" (post).

Both are about the same quantity. When a model generates text, each step produces one token for every sequence in the batch, and at small batches the step is limited by reading the weights from GPU memory, not by arithmetic (the roofline and arithmetic intensity are on Performance math). A dense model reads all its weights every step. Mixtral reads its shared weights, plus every expert that at least one token in the batch picked.

eight sequences are generating together (batch size 8), each token picking its 2 experts per layer. On average, how many of a layer's 8 experts must be read from memory for that step?

The card runs that decode step at growing batch sizes for three models on one scale (one layer drawn, block width proportional to parameters; counters for the whole model). Pick a model:

  1. Batch 1. One sequence, one new token. At each of 32 layers its router picks 2 of the 8 experts, so the step reads the shared weights plus 2 experts: 12.9B parameters, 25.8 GB, 3.8 ms. This is the case where Mixtral runs at "the speed of a 12.9B model", 5.36x faster than Llama 2 70B.
  2. Batch 2. Two tokens rarely pick the same pair, so on average 3.5 experts per layer must be read: already 75% more expert weight than at batch 1, for twice the tokens (42.7 GB).
  3. Batch 4. 5.47 experts per layer on average, 64.9 GB. The weights read per step grow much faster than for a dense model, which reads the same bytes at any batch size.
  4. Batch 8. 7.20 of 8 experts per layer, 8 × (1 − 0.758): 84.4 GB, almost the whole 46.7B, read every step; each expert weight now serves only about 2 tokens.
  5. Batch 16. 7.92 experts. From here to a few hundred sequences Mixtral reads essentially all 93.4 GB per step, like a dense 47B model, while doing the arithmetic of a 13B one.
  6. Batch 64. Still bound by reading weights: 13.9 ms per step, 3.59x slower than Llama 2 13B and only 1.48x faster than Llama 2 70B.
  7. Batch 1,024. Still, just, memory-bound: on this roofline Mixtral turns compute-bound only at 1,071 sequences, against 296 for a dense model, because each expert weight read serves only a quarter of the batch (2 of 8 experts per token). Llama 2 70B is already compute-bound, so the gap has reopened to 5.12x.
  8. Batch 2,048. Compute-bound: only active parameters count, and Mixtral is 5.36x cheaper per token than Llama 2 70B, the paper's "higher throughput at large batch-sizes".

Parameter counts from the configurations (recompute.py); weights in bfloat16 (2 bytes). Which experts the drawn tokens pick is a seeded random draw; the counters use the expected value for uniform routing, 8 × (1 − (6/8)B) experts per layer. Time is an idealised roofline on two H100 SXM GPUs (2 × 3.35 TB/s, 2 × 989 dense bfloat16 TFLOP/s, NVIDIA): the larger of weight bytes ÷ bandwidth and FLOPs ÷ peak, ignoring the KV cache, attention arithmetic, communication and kernel efficiency, so real speeds are lower and the ratios are what to read. Mixtral needs two such GPUs anyway: 46.7B × 2 bytes = 93.4 GB.

What the model says, model by model:

  • At batch 1 Mixtral reads 2 experts per layer, 12.9B parameters: the time of Llama 2 13B and faster than Llama 2 70B. This is where "the speed of a 12.9B model" and "6x faster" hold (5.4x by this count).
  • From batch 8 to a few hundred nearly all experts are read every step, so Mixtral behaves like a 47B dense model on memory traffic: slower than Llama 2 13B and only faster than Llama 2 70B (the ratio of 93.4 GB to 138.0 GB). Most real serving with many users sits here.
  • At very large batches the step becomes compute-bound, where only active parameters count: a dense model gets there at about sequences, Mixtral only at about , because each weight byte it reads serves a quarter as many tokens. Past that point it is again cheaper than Llama 2 70B per token. That is the paper's "more suitable for batched workloads where one can reach a good degree of arithmetic intensity", quantified.

The paper is right on both ends; the release post's unqualified "same speed and cost as a 12.9B model" is true only at the ends.

What made it servable at release: Megablocks kernels in vLLM, expert parallelism

Two systems pieces made it servable at release (§2.1, §1): Megablocks kernels cast the expert FFNs as block-sparse matrix multiplications, "naturally handling cases where different experts get a variable number of tokens assigned to them" (no token dropping, no capacity factor), and Mistral upstreamed them into vLLM (pull request 2011, by co-author Pierre Stock, merged 11 December 2023); Skypilot deploys vLLM endpoints on any cloud instance. Across GPUs the layer shards by expert parallelism: tokens travel to the GPU holding their expert and back, so balancing load across GPUs becomes the operational concern ("EP introduces challenges in load balancing", §2.1; expert parallelism as a design is on Mixture of experts).

Long context

§3.2, Figure 4

Mixtral is pretrained with multilingual data at a 32k context (§1). On the synthetic passkey retrieval task (a random passkey hidden in a long prompt) it achieves "100% retrieval accuracy regardless of the context length or the position of passkey in the sequence", and its perplexity on a subset of the proof-pile dataset "decreases monotonically as the size of the context increases" (§3.2, Figure 4), so the long context is used, not just tolerated. Both are figures without printed values, and passkey retrieval is the easiest long-context test there is. Beyond the paper, the harder RULER benchmark (13 tasks, 2024) later gave Mixtral base an effective length equal to its full claimed 32K: 91.8 at 4K falling to 85.8 at 32K, above its threshold of 79.4, and 66.9 at 64K, past the trained length (Appendix F).

Results: against Llama 2 70B, GPT-3.5, in four more languages

§3, Tables 2 to 4, Figures 2, 3 and 5

Every Llama model was "re-run" with Mistral's own evaluation pipeline "for fair comparison" (§3), so Table 2 compares like with like, but its numbers are not those in the Llama 2 paper (the tables tab sets them side by side). Mixtral 8x7B against Llama 2 70B, with 12.9B active parameters against 69.0B (5.4x fewer, "5x" in the paper):

  • Ahead on 9 of the 12 benchmarks of Table 2. MMLU 70.6% against 69.9%, GSM8K (8-shot, maj@8) 74.4% against 69.6%, MATH (4-shot, maj@4) 28.4% against 13.8%, MBPP 60.7% against 49.8%, HumanEval 40.2% against 29.3%. Math and code are the blowouts; the paper calls Mixtral "vastly superior" there.
  • Behind on three: HellaSwag (−1.0), TriviaQA (−1.5) and WinoGrande (−3.2 points), and on reading comprehension (BoolQ and QuAC, shown only as a category in Figure 3, "except on reading comprehension benchmarks").
  • Against GPT-3.5 (Table 3): MMLU 70.6% against 70.0%, MBPP 60.7% against 52.2%, GSM8K (5-shot) 58.4% against 57.1%, ARC Challenge 85.8% against 85.2%, HellaSwag 86.7% against 85.5%; behind on WinoGrande (81.2% against 81.6%) and, for the Instruct models, MT-Bench (8.30 against gpt-3.5-turbo-1106's 8.32). Effectively at parity or above, with a caveat on where the GPT-3.5 column comes from (below).
  • Multilingual (§3.1, Table 4): ahead of Llama 2 70B on all 12 cells (ARC Challenge, HellaSwag, MMLU in French, German, Spanish, Italian), by 3.1 to 8.3 points, credited to deliberately upsampled multilingual pretraining data that "the extra capacity" absorbs "while maintaining a high accuracy in English".
Bias: BBQ and BOLD against Llama 2 70B
  • Bias (§3.3, Figure 5, base models): higher BBQ accuracy than Llama 2 70B (56.0% against 51.5%). On BOLD the text says Mixtral "displays more positive sentiments than Llama 2, with similar variances within each group"; per group, the mean is higher in 3 of 5 (gender, profession, political ideology), equal for race and lower for religious ideology, and the standard deviation is lower in 2 of 5 (gender, religious ideology). The figure's caption ("lower std on BOLD") says more than its numbers.

The headline: Llama 2 70B and GPT-3.5 quality with 5x fewer active parameters, fully open under Apache 2.0. Every table, sortable and with deltas, and Figure 3 rebuilt from Table 2, are in The paper's tables, rebuilt.

Mixtral 8x7B Instruct

§4, Figure 6

Supervised fine-tuning on an instruction dataset, followed by Direct Preference Optimization on a paired feedback dataset (§4; the method is on Alignment): no RLHF with PPO anywhere in the pipeline, an early large-scale validation of the SFT plus DPO recipe. Neither dataset nor any hyperparameter is described. It scores 8.30 on MT-Bench, "the best open-weights model as of December 2023". On the LMSys Chatbot Arena it reached an Elo of 1121 in a screenshot of 22 December 2023, above Claude-2.1 (1117), every GPT-3.5-Turbo version (best 1117), Gemini Pro (1111) and Llama-2-70b-chat (1077) (Figure 6): the best open-weights model at release by a large margin. A 4-point Elo gap means winning 50.6% of head-to-head votes instead of 50%; the 44 points over Llama-2-70b-chat mean 56.3% (Elo's 1 / (1 + 10−Δ/400)). The paper prints no confidence intervals.

The routing analysis: experts follow syntax, not topic

§5, Figures 7 and 8, Table 5

Section 5, the most interesting part of the paper, asks whether "some experts specialized to some specific domains (e.g. mathematics, biology, philosophy, etc.)", by measuring which experts are selected on subsets of The Pile validation set at layers 0, 15 and 31 (the first, a middle and the last of 32):

does Mixtral have a "maths expert" or a "code expert": do ArXiv, PubMed, PhilPapers, GitHub and DM Mathematics text get noticeably different experts?
  • No domain specialisation. The expert distributions are nearly identical for ArXiv, PubMed, PhilPapers, GitHub and the rest (the text names ArXiv, PubMed Abstracts and PhilPapers; the figure shows all eight subsets). Only DM Mathematics deviates marginally, attributed to its "synthetic nature and its limited coverage of the natural language spectrum", "particularly noticeable at the first and last layers, where the hidden states are very correlated to the input and output embeddings respectively". The folk intuition of a "math expert" or "code expert" is wrong for this model; experts specialise on syntax, not topic. Checked from the figure's own geometry (Figures 7, 9 and 10 are vector graphics, decoded to numbers in the tables tab): no subset puts more than of its selections on any one expert (uniform is 12.5%), and each subset sits within (total variation distance) of the average of all eight, except DM Mathematics, which is the most distinct at all three layers but most of all at the middle one ( at layers 0, 15, 31), not at the first and last as the text says.
  • Syntactic structure (Figure 8): "words such as 'self' in Python and 'Question' in English often get routed through the same expert even though they involve multiple tokens", and indentation tokens in code "are always assigned to the same experts, particularly at the first and last layers".
  • Positional locality (Table 5): consecutive tokens repeat their expert far more often than chance at layers 15 and 31. The same first-choice expert repeats for 23.6 to 28.4% of consecutive tokens at layer 15 and 19.7 to 26.3% at layer 31 (random: 1/8 = 12.5%); "first or second choice" overlap (the two tokens share at least one of their two experts) is 61.6 to 67.0% at layer 15 and 44.5 to 53.6% at layer 31 (random: 1 − (6/8)(5/7) ≈ 46%). Layer 0 is near random (13.6 to 14.9% and 44.9 to 49.9%).
The baseline that assumes equal use, and Figure 10's every layer

The 12.5% baseline assumes every expert is used equally; with each subset's actual first-choice use (decoded Figure 9), independent consecutive tokens would agree of the time at layer 15 and at layer 31, so the locality is real and large at layer 15 (10 to 15 points above that), smaller at layer 31, and for DM Mathematics at layer 31 almost entirely explained by uneven use (19.7% against 18.6%). Figure 10 has every layer: the first-choice repeat rate is near random only at layer 0, already about 20% at layer 1, peaks at layer 9 () and drifts down to about 20 to 25% in the last layers. Figure 10 is charted against the toy in the tables tab.

  • What locality is good and bad for. The paper's implications: locality can be exploited for caching (as in Eliseev and Mazur, who offload experts, keep recently used ones on the GPU in an LRU cache and speculatively prefetch the experts the next layer will probably want), but it also causes over-subscription of certain experts under expert parallelism.

The toy, which is not Mixtral. Mixtral's router cannot run in a browser, and the paper released no routing data, so the Route text through a toy Mixtral tab repeats Section 5 on a 4-layer model built to Mixtral's recipe (every FFN an 8-expert top-2 SwiGLU layer, softmax over the two kept logits), trained for minutes on a laptop CPU on four domains standing in for Pile subsets (Python code, novels, Wikipedia articles, generated maths questions), then measured on held-out text. It adds two controls the paper did not run: a shuffled-order baseline and prediction from token against prediction from domain. In the toy:

The stage beside replays this on that toy and then sets Mixtral's own Table 5 next to the toy's. Its first four steps follow 20 consecutive held-out tokens of Python from the standard library, events.new_event_loop(), a newline, try:, and events.set_event_loop(loop), cut into the toy's tokens (· marks a leading space, ↵ a newline with its indentation).

  1. One layer. Layer 0 of the toy. Each bar is one token: its colour is the token's first-choice expert (key below), its height that expert's gate weight, between 0.5 and 1 because the two kept weights sum to 1. Expert 3 takes 11 of the 20 tokens here.
  2. Four layers. The same tokens at layers 1 to 3, behind. Each layer has its own router, so a token's experts change with depth: loop goes to experts 3, 4, 2 and 3 at layers 0 to 3. "The selected experts can be different at each timestep", and at each layer.
  3. Same token, same expert. The three loop tokens get the same expert at every layer (the arcs), the three _ at layers 0, 1 and 3 (at layer 2 they split 1, 2, 1). That is Figure 8's finding, self and indentation always sent to the same experts: the router mostly reads the token. On all held-out text the toy's first expert is predicted from the token alone 81, 69, 65 and 64% of the time at layers 0 to 3, from the domain alone only 53, 34, 33 and 45%.
  4. Neighbours repeat. Layer 2, close up: 8 of the 19 consecutive pairs keep the same first expert (the streams), against 12.5% for a uniform random choice. Over all 10,240 held-out code tokens the rate at this layer is 27.9%. But expert 2 alone takes 14 of these 20 tokens, so many repeats are just uneven use; the next step measures how many.
  5. The toy's Table 5, with a control. All held-out text, four domains by four layers. Bar height is the measured repeat rate, the glass plane is 12.5%, and the dark slab on each bar is the same text in shuffled order (every token keeps its own routing, only positions change). On natural text at layers 1 to 3 the measured rate is 15.8 points above 12.5% on average, but only 4.1 points above shuffled: position adds something, most of the excess is uneven expert use. Maths at layer 0 (73.4%, shuffled 74.6%) is the generated questions' repetitive wording.
  6. Mixtral's Table 5. The paper's printed values, eight Pile subsets (left to right ArXiv, DM Mathematics, GitHub, Gutenberg, PhilPapers, PubMed, StackExchange, Wikipedia) at layers 0, 15 and 31; here the dark slab is what independent tokens would give with each subset's measured expert use (decoded Figure 9). Layer 0 sits on the plane (13.6 to 14.9%); layer 15 rises to 23.6 to 28.4%, 10 to 15 points above its slabs, so Mixtral's locality is real; layer 31 is lower, and for DM Mathematics almost entirely uneven use (19.7% against 18.6%). The toy shows a smaller positional excess and, unlike Mixtral, a first layer far above 12.5%, because it uses its experts much more unevenly.
E0E1E2E3E4E5E6E7

Toy routing from analyse.py (the aux-loss variant, held-out windows); Mixtral's bars from Table 5, its slabs from Figure 9 decoded in recompute.py. The same toy text, every token tappable, is section 1 of the toy tab.

How much of this to believe

Tables 2 to 5, Figures 3 to 8

What holds up.

  • The parameter arithmetic. 46.7B total and 12.9B active recount exactly from the released configuration, and the weights have been public since before the paper, so every architectural claim is checkable and has been checked by every library that runs the model.
  • The comparison with Llama 2 70B is like for like. Both were re-run with the same pipeline, and the large margins (MATH +14.6, HumanEval and MBPP +10.9, all 12 multilingual cells +3.1 to +8.3) are far bigger than any plausible evaluation noise on benchmarks of hundreds to thousands of questions.
  • The efficiency claim, as the paper words it, is accurate: it separates active from sparse parameters, says memory follows the 47B, and warns that the advantage needs batching. Run through a roofline above, every one of those qualifications turns out to matter.
  • Long context was later confirmed by a harder independent benchmark (RULER's effective length of 32K for the base model).

What is weaker.

  • "Outperforms or matches Llama 2 70B and GPT-3.5 across all evaluated benchmarks" (abstract) is stronger than Table 2, where Llama 2 70B leads on 3 of 12 (WinoGrande by 3.2 points), and Figure 3, where it leads on reading comprehension; the paper's own captions say "almost all" and "most".
  • The GPT-3.5 column is not like for like. Five of its six accuracy numbers (MMLU 70.0, HellaSwag 85.5, ARC 85.2, WinoGrande 81.6, GSM8K 57.1) are exactly the March 2023 GPT-3.5 figures from the GPT-4 technical report (Table 2 there), not re-runs; the sixth (MBPP 52.2) has no stated source; only MT-Bench uses a current model (gpt-3.5-turbo-1106). Table 3 also switches to different shot counts from Table 2 (HellaSwag 10-shot, ARC 25-shot, GSM8K 5-shot), so Llama 2 70B's numbers differ between the two tables.
  • "Surpasses GPT-3.5 Turbo, Claude-2.1, Gemini Pro" on human evaluation rests on a 4-point Arena Elo gap from one dated screenshot with no confidence intervals: a 50.6% expected win rate.
  • Single evaluations, no error bars, no seeds, as is usual for a model release; no ablation of any design choice (8 experts, top-2, every layer, no auxiliary loss) is reported, so the paper shows that this recipe works, not that it is the right one.
  • Nothing about training: data, token count, compute, optimiser, load balancing, SFT and DPO data are all undisclosed; the multilingual gain is attributed to upsampled data that cannot be inspected.
  • The routing analysis is small and mostly qualitative. Values are printed only for Table 5; Figures 7 and 9 to 10 have to be decoded (above), the Figure 8 examples are hand-picked, Table 5's 12.5% baseline assumes all experts are used equally (with the measured use it is 13 to 19%), the text's "first and last layers" for DM Mathematics does not match its own Figure 7, and its "first or second choice" repeat at layer 31 (44.5%) is below random. The headline findings survive all of this.
Five small inconsistencies, none large
  • Small inconsistencies: "47B tokens compared to 70B" (§3, meant parameters); the bias results are called "Table 5" in the text but printed as Figure 5, while Table 5 is the routing table; "Llama 1 34B" in a footnote against "LLaMA 1 33B" in the tables; MT-Bench cited "(see Table 2)" but printed in Table 3; the bias caption's "lower std" against the text's "similar variances".

Verdict. Believe the headline against Llama 2 70B: both were re-run on one pipeline and the wins on maths and code are large. Read "matches GPT-3.5" as a comparison with numbers copied from another report, "the speed of a 12.9B model" as true only at batch size 1 or very large batches, and the routing analysis as a small qualitative study with a baseline that assumes uniform expert use.

What it takes to use this

§1, released weights and code
  • Weights and licence: base and Instruct on Hugging Face (Mixtral-8x7B-v0.1, Instruct-v0.1), Apache 2.0, "free for academic and commercial usage". Reference code mistral-src now redirects to mistral-inference, which is archived; vLLM, TGI and Hugging Face transformers (from 4.36) run it.
  • Hardware: memory is priced on the 46.7B total. Weights alone are 93.4 GB in bfloat16, so two 80 GB GPUs; the release-day Hugging Face guide gives over 45 GB at 8 bits and over 23 GB at 4 bits, and expert offloading (Eliseev and Mazur) runs it on consumer GPUs by exploiting the locality of Section 5.
  • When it pays: one user at a time on enough memory (13B-class speed, 70B-class quality), or very large batches; when it buys less: mid-sized batches, where it reads nearly all 46.7B weights each step (the roofline above), and memory-bound single GPUs, where a dense 13B is cheaper to hold.
Later, as of 25 October 2026
  • Hosted API: Mistral deprecated the hosted open-mixtral-8x7b on 30 November 2024 and retired it on 30 March 2025, naming Mistral Small 4 as the replacement (Mistral docs). Newer open MoEs with many small experts give more quality per active parameter (the Mistral AI page and Topic: llm-landscape compare them).

Why it matters (beyond the paper)

§6 Conclusion

Mixtral was the first open-weights MoE at state-of-the-art quality, and it moved MoE from "exotic Google technique" to the default architecture for efficient frontier models. Qwen's MoE release three months later opens with "Since the surge in interest sparked by Mixtral, research on mixture-of-expert (MoE) models has gained significant momentum" (Qwen1.5-MoE), and Databricks defined DBRX against it: "Compared to other open MoE models like Mixtral and Grok-1, DBRX is fine-grained ... DBRX has 16 experts and chooses 4, while Mixtral and Grok-1 have 8 experts and choose 2" (DBRX). The open-MoE line runs on through DeepSeek-V2 and DeepSeek-V3, Llama 4, Qwen3 and gpt-oss (all compared on Topic: llm-landscape), all following the sparse-FFN template it popularised.

It validated three recipes at once: coarse-grained top-2 sparse MoE as a cost-performance win, SFT plus DPO as a complete post-training pipeline (no PPO), and open weights plus upstreamed inference kernels (vLLM with Megablocks) as a release strategy. Its routing analysis remains the standard citation for the finding that vanilla MoE experts do not specialise by domain. The move to fine-grained experts that followed was argued on similar grounds but not from this paper: DeepSeekMoE, posted three days later (11 January 2024) and not citing Mixtral, made its own case that a few large experts suffer "knowledge hybridity" and "knowledge redundancy", and introduced many small experts plus always-on shared experts to force specialisation (DeepSeekMoE); DBRX and Qwen cite DeepSeekMoE and their own experiments for it. The active against sparse parameter distinction the paper foregrounded is now the vocabulary everyone uses to price MoE inference.

Connections