Mixtral

Mistral AI · 2024-01-08 · analysed 2026-08-08 · skill v0.3.0

sparse-MoE full-attention text-only open-weights large frontier-generalist

Design overview

Mixtral 8x7B is a decoder-only sparse mixture-of-experts transformer in which every one of the 32 layers replaces its feedforward sub-block with an MoE layer holding 8 expert FFNs. For each token, a linear router produces logits x·Wg, keeps the top 2, and softmaxes them; the layer output is the weighted sum of the two selected experts' outputs, so the selected experts can differ per token and per layer. Each expert is a standard vanilla-transformer FFN using the SwiGLU activation, with inner dimension 14336. The rest of the block follows the Mistral 7B design the report explicitly inherits — grouped-query attention (32 query heads, 8 KV heads, head dimension 128) — with the stated exceptions that attention is fully dense over the 32768-token context (no sliding window) and the FFNs are routed. Total parameters are 47B, of which only about 13B are active per token, roughly 5x fewer than Llama 2 70B, which the model matches or beats across the report's benchmarks, especially in math, code, and multilingual tasks. The report is candid that the MoE formulation is close to GShard, differing by replacing every FFN block (GShard alternates) and using simpler gating for the second expert. Serving efficiency relies on Megablocks-style sparse matmul kernels integrated into vLLM, and expert parallelism for multi-GPU placement. A routing analysis finds experts do not specialize by domain; assignments track syntax and show temporal locality, relevant to expert-parallel load balancing.

What the report claims is novel

Atlas assessment: The architectural novelty is modest: the report itself frames Mixtral as Mistral 7B's architecture with every FFN replaced by a GShard-style top-2 routed MoE layer (both GShard [21] and Mistral 7B [18] are named as sources), with sliding-window attention dropped for fully dense 32k attention. Its contribution is primarily demonstrative and empirical — the first open-weights MoE to match a dense 70B-class model with roughly 5x fewer active parameters, plus an unusually candid routing analysis showing experts do not specialize by domain and that expert choice exhibits syntactic structure and temporal locality. Relative to other atlas entries it introduces no new attention or positional-encoding mechanism; its influence rests on popularising sparse-MoE cost-performance at the 7B-expert scale rather than on a novel mechanism.

Relation to the atlas

Lineage in

Influence out

No descendants recorded yet.

Notable omissions

Closest relatives in the atlas

Spec sheet

Identity

FamilyMixtral[1]
OrganisationMistral AI[2]
Release date2024-01-08
Report URLhttps://arxiv.org/abs/2401.04088[3]
LicenseApache 2.0[4]
Open weightsyes[5]

Variants

Scale

Total parameters47B[6]
Active parameters / token13B[7]
Layers32[8]
Hidden dimension4096[9]
FFN inner dimension14336[10]
FFN ratio3.5
Query heads32[11]
KV heads8[12]
Head dimension128[13]
Vocabulary size32000[14]
Embedding tyingnot disclosed

Core block

Block typesparse-MoE[15]
Attention variantGQA
Attention layer patternuniform[16]
Depth mixingsequential-residual
ActivationSwiGLU[17]
Expert count8[18]
Experts per token2[19]
Shared experts0[20]
Routingsoftmax top-2 over linear-layer logits (G(x) := Softmax(TopK(x·Wg)), K=2)[21]
Load balancingnot disclosed
Expert granularitystandard FFN experts (vanilla-transformer feedforward blocks, no fine-grained splitting)[22]
Methodnot disclosed
RoPE base frequencynot disclosed
Partial RoPEnot disclosed
Typenot disclosed
Placementnot disclosed
QK-normnot disclosed
Attention sinksnot disclosed
Softcappingnot disclosed
Othernot disclosed

Context

Trained context length32,768[25]
Deployed context length32,768[26]
Extension methodnone[27]

Tokenizer

Algorithmnot disclosed
Notesnot disclosed

Training

Training tokensnot disclosed
Data compositionmultilingual data; multilingual proportion significantly upsampled relative to Mistral 7B pretraining (no detailed mixture disclosed)[28]
Curriculum / stagingnot disclosed
Optimizernot disclosed
LR schedulenot disclosed
Batch schedulenot disclosed
Precisionnot disclosed
Parallelismnot disclosed
Hardwarenot disclosed
Disclosed computenot disclosed

Post-training

SFTyes[29]
Preference optimisationDPO[30]
Reasoning trainingnot disclosed
Distillationnot disclosed

Modality

Typetext-only
Attachmentn/a[31]

Inference efficiency

KV-cache designGQA: KV cache scales with 8 KV heads rather than 32 query heads
Quantisation shippednot disclosed
Speculative decodingnot disclosed
Serving optimisationsvLLM integration with Megablocks CUDA kernels for efficient MoE inference; TensorRT-LLM/Triton support for sparse MoE (acknowledgements); Skypilot deployment of vLLM endpoints[32]

Evaluation

Benchmarks (report's own numbers only)

BenchmarkValueRef
MMLU70.6%Table 2
HellaSwag84.4%Table 2
Winogrande77.2%Table 2
PIQA83.6%Table 2
ARC-Easy83.1%Table 2
ARC-Challenge59.7%Table 2
NaturalQuestions30.6%Table 2
TriviaQA71.5%Table 2
HumanEval40.2%Table 2
MBPP60.7%Table 2
MATH28.4%Table 2
GSM8K74.4%Table 2
MMLU (MCQ in 57 subjects)70.6%Table 3
HellaSwag (10-shot)86.7%Table 3
ARC Challenge (25-shot)85.8%Table 3
WinoGrande (5-shot)81.2%Table 3
MBPP (pass@1)60.7%Table 3
GSM-8K (5-shot)58.4%Table 3
MT Bench (for Instruct Models)8.30Table 3
ARC-Challenge (French)58.2%Table 4
HellaSwag (French)77.4%Table 4
MMLU (French)70.9%Table 4
ARC-Challenge (German)54.3%Table 4
HellaSwag (German)73.0%Table 4
MMLU (German)71.5%Table 4
ARC-Challenge (Spanish)55.4%Table 4
HellaSwag (Spanish)77.6%Table 4
MMLU (Spanish)72.5%Table 4
ARC-Challenge (Italian)52.8%Table 4
HellaSwag (Italian)75.1%Table 4
MMLU (Italian)70.9%Table 4
BBQ accuracy56.0%Table 5
BOLD sentiment score (gender)0.323 ± 0.045Table 5
BOLD sentiment score (profession)0.243 ± 0.087Table 5
BOLD sentiment score (religious_ideology)0.144 ± 0.089Table 5
BOLD sentiment score (political_ideology)0.186 ± 0.146Table 5
BOLD sentiment score (race)0.232 ± 0.052Table 5
Passkey retrieval100%§3.2 / Figure 4 (Left)
LMSys Arena Elo (Instruct v0.1)1121Figure 6

Provenance references

  1. stated · Title / §1
  2. stated · Title page (Code: github.com/mistralai/mistral-src; Webpage: mistral.ai)
  3. stated · pipeline
  4. stated · §1 Abstract / §1
  5. stated · §1 ("with open weights"; "We release both Mixtral 8x7B and Mixtral 8x7B – Instruct")
  6. stated · §1 Abstract ("each token has access to 47B parameters")
  7. stated · §1 Abstract ("only uses 13B active parameters during inference")
  8. stated · Table 1 (n_layers)
  9. stated · Table 1 (dim)
  10. stated · Table 1 (hidden_dim; per-expert FFN inner dimension)
  11. stated · Table 1 (n_heads)
  12. stated · Table 1 (n_kv_heads)
  13. stated · Table 1 (head_dim)
  14. stated · Table 1 (vocab_size)
  15. stated · §1 Abstract / §2.1 (Sparse Mixture of Experts; "each layer is composed of 8 feedforward blocks (i.e. experts)")
  16. stated · §1 Abstract ("each layer is composed of 8 feedforward blocks") / §2 (fully dense context length of 32k)
  17. stated · §2.1 ("we use the same SwiGLU architecture as the expert function E_i(x)")
  18. stated · Table 1 (num_experts) / §2.1
  19. stated · Table 1 (top_k_experts) / §2.1 (K=2)
  20. stated · §2.1 (layer output = weighted sum of the two routed experts' outputs; the 8 experts exhaustively compose the layer, no always-on expert described)
  21. stated · §2.1
  22. stated · §2.1 ("an expert is a standard feedforward block as in a vanilla transformer architecture")
  23. stated · §1 / §2 (trained at the fully dense 32k length; no extension disclosed)
  24. n/a · §1 / §2
  25. stated · Table 1 (context_len) / §1 Abstract ("trained with a context size of 32k tokens")
  26. stated · §1 ("context window of 32k tokens") / Table 1
  27. stated · §1 / §2 (trained at the full deployed 32k length; no extension disclosed)
  28. stated · §1 / §3.1
  29. stated · §4 ("supervised fine-tuning (SFT) on an instruction dataset")
  30. stated · §4 ("Direct Preference Optimization (DPO) [25] on a paired feedback dataset")
  31. n/a · §1 (decoder-only text language model)
  32. stated · §1 / Acknowledgements