{"notes":[{"id":"transformers/mixtral","category":"transformers","legacyPath":"","legacySlug":"","legacyPaths":[],"title":"Mixtral of Experts","subtitle":"Eight experts, two at work","author":"Z. Yuan","paperDate":"2024-01-08","publishedOn":"2026-10-14","paperTitle":"Mixtral of Experts","paperUrl":"https://arxiv.org/abs/2401.04088","bibliography":{"title":"Mixtral of Experts","authors":["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"],"url":"https://arxiv.org/abs/2401.04088","pdfUrl":"https://arxiv.org/pdf/2401.04088v1","codeUrl":"https://github.com/mistralai/mistral-inference","preprint":{"id":"2401.04088","submittedOn":"2024-01-08","url":"https://arxiv.org/abs/2401.04088"},"publication":null,"citation":"@misc{transformersmixtral2024,\n  title = {{Mixtral of Experts}},\n  author = {Albert Q. Jiang and Alexandre Sablayrolles and Antoine Roux and Arthur Mensch and Blanche Savary and Chris Bamford and Devendra Singh Chaplot and Diego de las Casas and Emma Bou Hanna and Florian Bressand and Gianna Lengyel and Guillaume Bour and Guillaume Lample and Lélio Renard Lavaud and Lucile Saulnier and Marie-Anne Lachaux and Pierre Stock and Sandeep Subramanian and Sophia Yang and Szymon Antoniak and Teven Le Scao and Théophile Gervet and Thibaut Lavril and Thomas Wang and Timothée Lacroix and William El Sayed},\n  year = {2024},\n  eprint = {2401.04088},\n  archivePrefix = {arXiv},\n  url = {https://arxiv.org/abs/2401.04088}\n}\n","citationPath":"/content/papers/citations/transformers/mixtral.2b2db338a9b5.bib"},"thumbnail":{"src":"/content/papers/assets/1347eb75040f1144f7ea5820cae7b4bd60c49b6bf351fb1c9e77b4c20e642c46.png","width":2116,"height":968},"locale":"en","path":"/content/papers/en/transformers/mixtral.6a2c1ecb31db.md","headings":[{"id":"defining-the-problem","text":"Defining the problem","depth":2},{"id":"first-picture-a-token-and-a-model-layer","text":"First, picture a token and a model layer","depth":3},{"id":"solving-the-problem","text":"Solving the problem","depth":2},{"id":"where-do-the-eight-experts-go","text":"Where do the eight experts go?","depth":3},{"id":"follow-meeting-through-one-layer","text":"Follow “meeting” through one layer","depth":3},{"id":"what-does-an-expert-do-with-its-input","text":"What does an expert do with its input?","depth":3},{"id":"why-does-87b-mean-only-47b-parameters","text":"Why does 8×7B mean only 47B parameters?","depth":3},{"id":"discussion","text":"Discussion","depth":2},{"id":"scores-improvedbut-what-are-those-scores","text":"Scores improved—but what are those scores?","depth":3},{"id":"did-the-eight-experts-really-choose-subjects","text":"Did the eight experts really choose subjects?","depth":3},{"id":"what-does-a-32k-context-mean","text":"What does a 32K context mean?","depth":3},{"id":"conclusion","text":"Conclusion","depth":2}],"anchorAliases":{},"guide":null,"relatedReading":[{"id":"transformers/switch-transformer","relation":"background","topic":"Routing tokens to sparse experts"},{"id":"deepseek/deepseek-v2","relation":"next","topic":"Routing tokens to sparse experts"}]},{"id":"transformers/switch-transformer","category":"transformers","legacyPath":"transformers/2101-switch-transformer","legacySlug":"2101-switch-transformer","legacyPaths":[],"title":"Switch Transformer","subtitle":"Let the Experts Speak","author":"Z. Yuan","paperDate":"2021-01-11","publishedOn":"2024-12-09","paperTitle":"Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsity","paperUrl":"https://arxiv.org/abs/2101.03961","bibliography":{"title":"Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsity","authors":["William Fedus","Barret Zoph","Noam Shazeer"],"url":"https://arxiv.org/abs/2101.03961","pdfUrl":"https://arxiv.org/pdf/2101.03961","codeUrl":null,"preprint":{"id":"2101.03961","submittedOn":"2021-01-11","url":"https://arxiv.org/abs/2101.03961"},"publication":{"venue":"Journal of Machine Learning Research","shortVenue":"JMLR","year":2022,"kind":"journal","url":"https://jmlr.org/papers/v23/21-0998.html"},"citation":"@misc{transformersswitchtransformer2021,\n  title = {{Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsity}},\n  author = {William Fedus and Barret Zoph and Noam Shazeer},\n  year = {2021},\n  eprint = {2101.03961},\n  archivePrefix = {arXiv},\n  url = {https://arxiv.org/abs/2101.03961}\n}\n","citationPath":"/content/papers/citations/transformers/switch-transformer.3c79c3cd0240.bib"},"thumbnail":{"src":"/content/papers/assets/eecbcc790357c0311e5dbbaebb405abcb6c03693360947f21b08eb91602f1ac1.jpg","width":1224,"height":648},"locale":"en","path":"/content/papers/en/transformers/switch-transformer.30c4d1c8f7ae.md","headings":[{"id":"defining-the-problem","text":"Defining the Problem","depth":2},{"id":"solving-the-problem","text":"Solving the Problem","depth":2},{"id":"model-architecture","text":"Model Architecture","depth":3},{"id":"expert-capacity","text":"Expert Capacity","depth":3},{"id":"load-balancing-loss","text":"Load Balancing Loss","depth":3},{"id":"improved-training-and-fine-tuning","text":"Improved Training and Fine-Tuning","depth":3},{"id":"discussion","text":"Discussion","depth":2},{"id":"comparison-with-dense-models","text":"Comparison with Dense Models","depth":3},{"id":"impact-of-the-number-of-experts","text":"Impact of the Number of Experts","depth":3},{"id":"fixed-computation-and-training-time","text":"Fixed Computation and Training Time","depth":3},{"id":"model-and-data-parallelism","text":"Model and Data Parallelism","depth":3},{"id":"is-the-success-due-to-the-large-number-of-parameters","text":"Is the Success Due to the Large Number of Parameters?","depth":3},{"id":"can-small-models-benefit","text":"Can Small Models Benefit?","depth":3},{"id":"why-arent-sparse-models-widely-adopted","text":"Why Aren't Sparse Models Widely Adopted?","depth":3},{"id":"conclusion","text":"Conclusion","depth":2}],"anchorAliases":{},"guide":null,"relatedReading":[{"id":"transformers/mixtral","relation":"next","topic":"Routing tokens to sparse experts"}]},{"id":"deepseek/deepseek-v2","category":"deepseek","legacyPath":"deepseek/2405-deepseek-v2","legacySlug":"2405-deepseek-v2","legacyPaths":[],"title":"DeepSeek-V2","subtitle":"Cost-Effective Optimization","author":"Z. Yuan","paperDate":"2024-05-07","publishedOn":"2025-03-27","paperTitle":"DeepSeek-V2: A Strong, Economical, and Efficient Mixture-of-Experts Language Model","paperUrl":"https://arxiv.org/abs/2405.04434v5","bibliography":{"title":"DeepSeek-V2: A Strong, Economical, and Efficient Mixture-of-Experts Language Model","authors":["DeepSeek-AI"],"url":"https://arxiv.org/abs/2405.04434v5","pdfUrl":"https://arxiv.org/pdf/2405.04434v5","codeUrl":"https://github.com/deepseek-ai/DeepSeek-V2","preprint":{"id":"2405.04434","submittedOn":"2024-05-07","url":"https://arxiv.org/abs/2405.04434v5"},"publication":null,"citation":"@misc{deepseekdeepseekv22024,\n  title = {{DeepSeek-V2: A Strong, Economical, and Efficient Mixture-of-Experts Language Model}},\n  author = {DeepSeek-AI},\n  year = {2024},\n  eprint = {2405.04434},\n  archivePrefix = {arXiv},\n  url = {https://arxiv.org/abs/2405.04434v5}\n}\n","citationPath":"/content/papers/citations/deepseek/deepseek-v2.2792b9f48a76.bib"},"thumbnail":{"src":"/content/papers/assets/0c5c924a685f79d8a0037fb9862aa1358d05058a19ab295c1b1983dae491355d.jpg","width":1224,"height":984},"locale":"en","path":"/content/papers/en/deepseek/deepseek-v2.1b15b1df97c5.md","headings":[{"id":"defining-the-problem","text":"Defining the Problem","depth":2},{"id":"solving-the-problem","text":"Solving the Problem","depth":2},{"id":"multi-head-latent-attention","text":"Multi-head Latent Attention","depth":3},{"id":"decoupling-rotary-position-embedding","text":"Decoupling Rotary Position Embedding","depth":3},{"id":"deepseekmoe","text":"DeepSeekMoE","depth":3},{"id":"auxiliary-balance-loss","text":"Auxiliary Balance Loss","depth":3},{"id":"training-strategy","text":"Training Strategy","depth":3},{"id":"model-alignment","text":"Model Alignment","depth":2},{"id":"discussion","text":"Discussion","depth":2},{"id":"conclusion","text":"Conclusion","depth":2}],"anchorAliases":{},"guide":null,"relatedReading":[{"id":"transformers/mixtral","relation":"background","topic":"Routing tokens to sparse experts"},{"id":"deepseek/deepseek-llm","relation":"background","topic":"DeepSeek language models and reasoning training"},{"id":"deepseek/deepseek-v3","relation":"next","topic":"DeepSeek language models and reasoning training"}]}],"text":"In late 2023, Mistral [released the weights for Mixtral 8×7B](https://mistral.ai/news/mixtral-of-experts/) under the Apache 2.0 license, which permits commercial use and modification. Its most eye-catching launch announcement said it beat Llama 2 70B on most tests while running six times faster. Those numbers make it tempting to put the model into a service immediately. But if you are paying the GPU bill, you will probably ask first what, exactly, it saves.\n\nThe industry responded quickly. [AWS added it to SageMaker JumpStart in December 2023](https://aws.amazon.com/blogs/machine-learning/mixtral-8x7b-is-now-available-in-amazon-sagemaker-jumpstart/), then [to Bedrock the following March](https://aws.amazon.com/blogs/aws/mistral-ai-models-now-available-on-amazon-bedrock/). [IBM added it to watsonx](https://newsroom.ibm.com/2024-02-29-IBM-Announces-Availability-of-Open-Source-Mistral-AI-Model-on-watsonx%2C-Expands-Model-Choice-to-Help-Enterprises-Scale-AI-with-Trust-and-Flexibility). These announcements show that platforms were willing to support the model. They tell us neither how many companies actually put it into production nor how fast it runs on a particular machine.\n\nSet the marketing numbers aside for a moment. Mixtral's idea is to **keep eight selectable feed-forward networks ready, but have each token use only two of them at each layer**. A token is a small piece of text after tokenization; the paper calls these feed-forward networks “experts.” Nobody assigned the experts to mathematics, programming, or literature in advance. Let us follow one token through the model, then return to the paper's figures to see what they actually say about “six times faster.”\n\n## Defining the problem\n\n### First, picture a token and a model layer\n\nA model does not calculate over an entire piece of text as one indivisible object. It splits text into tokens and turns each token into a vector, a sequence of numbers. A token need not equal one character or one word. To make the route easy to follow, **suppose for now** that the calendar note “Tomorrow afternoon: meeting” becomes three tokens: “tomorrow / afternoon / meeting”. This is not a claim about how Mixtral's actual tokenizer splits the note.\n\nConsider the token “meeting”. As it enters a layer, attention can use information from earlier tokens, so its numeric representation carries the context of “tomorrow” and “afternoon.” That representation then goes to a feed-forward network, or FFN, for another transformation. For now, remember this path:\n\n> numeric representation of a token → attention reads earlier context → FFN processes that token → next layer\n\nThe path locates Mixtral's change. A full Transformer block also has normalization and residual connections. The FFN is not looking up a word in a dictionary or directly choosing the next word; it turns one vector into another. Only after later layers does the model produce a prediction for the next token.\n\nA conventional dense model has one FFN in each layer. Whatever token it processes, that layer uses the same FFN weights. One straightforward way to give this part more parameters is to enlarge the FFN. The cost is that every token must run the enlarged computation.\n\nCould we prepare several FFNs but let the current token use only some of them? That is the question a Sparse Mixture of Experts, or SMoE, addresses. Here “sparse” means **only some experts are active each time**. This sparsity applies to expert activation; the input sequence and other Transformer operations remain, and the complete weights require storage.\n\nThe [Switch Transformer](/blog/papers/transformers/switch-transformer) we read earlier selects one expert per token; Mixtral selects two at each layer. The paper does not compare the two under otherwise identical training conditions, so we cannot attribute a particular gain to choosing two rather than one.\n\nThe problem is now concrete. How does one token select two experts and return their results to the Transformer? Even if we calculate with only two, the weights for all eight must live somewhere. And will saving computation actually make a deployed service faster?\n\n## Solving the problem\n\n### Where do the eight experts go?\n\nMixtral is still a decoder-only Transformer that generates text step by step, using what has already appeared to predict the next token. Table 1 lists 32 layers, a model dimension of 4096, and dense attention over a context of up to 32,768 tokens. For now, hold on to the fact that there are **32 successive layers** and that each token passes a vector of **4096 numbers** between them. The 4096 is the number of values in the vector, not 4096 characters or 4096 experts.\n\nAt every layer, attention still handles the relation between a token and its preceding context. Mixtral replaces the **FFN position after attention**, swapping the single FFN for eight FFNs with separate weights. These are the paper's experts. Each does not have a complete attention mechanism of its own; they are not eight independent chatbots.\n\nLook at Figure 1 of the original paper and follow only the solid black lines first. On the left, the router receives an input and chooses two paths, sending the same vector to two experts; on the right, the circle adds their outputs. The pale experts are still part of the model, but they do not perform FFN computation for this token. The dotted lines are not two additional experts. They show the mixture weights the router gives the selected paths. This figure depicts **one MoE layer**, not eight complete models taking turns answering, and it leaves out the Transformer attention around it.\n\n![Figure 1 from the Mixtral paper: the router chooses two experts for one input and combines their outputs.](/content/papers/assets/1347eb75040f1144f7ea5820cae7b4bd60c49b6bf351fb1c9e77b4c20e642c46.png)\n\n*Original paper, [Figure 1](https://arxiv.org/html/2401.04088v1#S2.F1): the path of one input through an MoE layer. Image from the authors' paper, credited under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).*\n\n### Follow “meeting” through one layer\n\nReturn to “meeting”. Suppose it has already attended to the earlier context and now reaches the FFN position of a layer with vector $x$. In the real Mixtral, $x$ has 4096 values. We do not need to write them out; the point is that the router and the experts receive **the same $x$**.\n\nThe router first calculates a score for each of the eight experts. Following the paper's $xW_g$, we can treat $x$ as a 4096-element vector and the routing weights $W_g$ as a $4096\\times8$ matrix. Multiplication produces eight scores. It does not label the sentence with a human category such as “work” or “math.” Suppose expert $E_0$ scores highest at 1.2 and $E_3$ comes second at 0.9, with the other six below 0.9. These numbers are **a teaching example**, not measurements from the paper for “meeting”.\n\nFirst take the top two, $E_0$ and $E_3$. The other six need not perform their FFN calculations this time. An easily missed second step converts the two scores into mixture weights. The paper's TopK sets the six unselected scores to negative infinity; only then does softmax give those experts zero weight and make the selected weights sum to 1. The higher-scoring expert gets a larger share, but not the entire result.\n\nFor scores of 1.2 and 0.9, the weights are about 0.574 and 0.426, or 57.4% and 42.6%. Here is the calculation:\n\n$$\ng_0=\\frac{e^{1.2}}{e^{1.2}+e^{0.9}}\\approx0.574,\\qquad\ng_3=\\frac{e^{0.9}}{e^{1.2}+e^{0.9}}\\approx0.426.\n$$\n\nHere $e$ is the base of the exponential function. Each numerator belongs to one expert; the denominator adds both, so the two results sum to 1. The 57.4% is not “the probability that the answer is correct” or “how much this sentence belongs to $E_0$'s subject.” It only determines **how to combine the two expert outputs**.\n\n\n> [!TIP]\n> \n> If you applied softmax to all eight scores first and then discarded six, the remaining two weights would no longer sum to 1. Mixtral's formula selects the top two, masks the rest, and then applies softmax between the selected two.\n\n\n### What does an expert do with its input?\n\nEach selected expert turns $x$ into a new vector. Mixtral's experts are SwiGLU feed-forward networks; Table 1 gives an internal hidden dimension of 14,336. For an initial picture, the FFN temporarily expands the 4096-dimensional representation, applies a gated transformation, and contracts it back to 4096 dimensions so it can rejoin the Transformer's main path. The two experts have **the same computational form but different weights**, so the same $x$ can produce different outputs.\n\nThere is another “gate” that can cause confusion. The router chooses **which two complete FFNs** work; gating inside SwiGLU controls **how one FFN transforms its numbers**. One chooses between experts; the other operates within an expert.\n\nFinally, the model adds the two outputs using the weights above:\n\n$$\ny=0.574E_0(x)+0.426E_3(x).\n$$\n\nIf 4096 dimensions still feel abstract, look at only two positions for a moment. Suppose $E_0(x)$ yields $(10,0)$ there and $E_3(x)$ yields $(0,10)$. Their combination is $(5.74,4.26)$. **This too is a teaching example, not Mixtral's actual output.** Each expert produces a whole vector, and the model adds corresponding positions with weights. The experts are not writing separate answers and voting on them.\n\nAfter obtaining $y$, the token continues through the block and subsequent layers. Its representation has changed by the next layer, so that layer's router scores it again; another token in the same sentence may select different experts. In other words, **“meeting” is not tied to $E_0$ and $E_3$ from the first layer to the last**. “Two experts per token per layer” means a fresh routing decision at each layer.\n\nDuring training, the router's and experts' weights are learned. During inference, when the model actually answers a question, it selects two according to the token's current representation. People did not label $E_0$ “the meeting expert,” and one routing decision cannot tell us what it specializes in.\n\n### Why does 8×7B mean only 47B parameters?\n\nThe name invites us to multiply eight complete 7B models and arrive at 56B. That counts the shared parts repeatedly. Attention and other Mixtral components are shared by all tokens; the main addition is the multiple sets of FFN weights at each layer. The paper reports **about 47B total parameters** and **about 13B active parameters per token**. B means billion: we are counting learned numbers, not file bytes.\n\nKeep “total” and “active” separate. Imagine a workbench stocked with eight toolkits, of which you use only two for the current job. The unused tools do not participate in that step, but you still need to store them somewhere. Mixtral does not compute with every expert for every token, yet a service must hold or distribute the complete roughly 47B weights. “13B active” describes per-token computation; memory must accommodate the complete weights.\n\nNor can you turn 13B straight into latency. The model still runs attention, calculates routing, moves tokens, and computes with both selected experts. If experts live on different GPUs, tokens must travel to the corresponding devices and results must return. If many tokens crowd into one expert, they may have to wait. Sections 2.1 and 3 therefore separate **computation per token, memory for all weights, and hardware utilization**. Fewer active parameters offer an opportunity to save computation, not a measured guarantee of a fivefold speedup.\n\n## Discussion\n\n### Scores improved—but what are those scores?\n\nNow that we understand the architecture, we can ask whether keeping eight expert networks improves results. The authors reran Mixtral, Mistral 7B, and Llama 2 70B through their evaluation pipeline. Start with four tasks. These are numbers from the original paper's Table 2; we have not rerun them here.\n\n| Task | What it asks | Mistral 7B | Mixtral 8×7B | Llama 2 70B |\n| --- | --- | ---: | ---: | ---: |\n| MMLU | Multiple-choice questions across subjects | 62.5% | **70.6%** | 69.9% |\n| HumanEval | Generate code and test whether it passes | 26.2% | **40.2%** | 29.3% |\n| MATH | Solve mathematics problems | 12.7% | **28.4%** | 13.8% |\n| HellaSwag | Choose a plausible continuation of a situation | 81.0% | 84.4% | **85.4%** |\n\n*Excerpt from the original paper's [Table 2](https://arxiv.org/html/2401.04088v1#S3.T2). MMLU uses 5-shot; HumanEval, 0-shot; MATH, 4-shot with maj@4; HellaSwag appears in the table's 0-shot category.*\n\nIf “shot” is new to you, it is the number of worked examples shown before the question. 0-shot gives none, and 5-shot gives five. MATH's maj@4 takes the majority answer from four attempts. These settings affect the scores. Although every row uses percentages, **do not compare different rows to claim the model is better at math than code**. Compare models within a row.\n\nOn MMLU, Mixtral's 70.6% is slightly above Llama 2 70B's 69.9%, a difference of 0.7 percentage points. The HumanEval and MATH gaps are larger: 40.2% versus 29.3%, and 28.4% versus 13.8%. On HellaSwag, Llama 2 70B instead leads 85.4% to 84.4%. Across these four rows, Mixtral is competitive on several tasks, but it does not win every kind of question.\n\nFigure 3 of the paper turns six task groups into six small plots. Find the legend at bottom right first, where **orange squares mark the Mistral family and red circles the Llama family**. Then read the horizontal axis, which shows the number of parameters active per token. The vertical axis shows task scores. Orange Mixtral sits around 13B, red Llama 2 70B at 70B. The authors use “how many parameters are computed in one step” as an efficiency proxy, not the total parameters stored by the model.\n\n![Figure 3 from the Mixtral paper: task scores against active parameters per token.](/content/papers/assets/d24fdda9f5229a17cb0fee6017f54fe7f1373144309acd16e797e0a6153451a1.png)\n\n*Original paper, [Figure 3](https://arxiv.org/html/2401.04088v1#S3.F3): six task-group comparisons among Mistral, Mixtral, and Llama 2. Image from the authors' paper, credited under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/). On a phone, [open the full-size figure](https://arxiv.org/html/2401.04088v1/images/231209_scaling.png) to read the axes and legend.*\n\nCompare the heights of two points within one plot. In Math and Code, 13B-active Mixtral scores above 70B-active Llama 2; in Reading Comprehension, the order reverses. The six plots use different vertical ranges, so their slopes cannot be compared directly. Nor does a line connecting models in one family show what would happen if only parameter count changed. Figure 3 supports **a comparison of scores and active parameters for these models on these tasks**. Tokens per second and GPU memory require separate measurements.\n\nTo estimate the storage for weights alone, 47B parameters at two bytes each in bf16 come to roughly 94 GB, before generation caches and other runtime space. Section 3 explicitly says the Figure 3 efficiency analysis excludes memory costs and hardware utilization; routing and loading expert weights add overhead. The launch claim of “six times faster” does not follow from Figure 3 alone.\n\nIs the score improvement, then, **solely** due to replacing an FFN with a two-of-eight expert choice? This comparison cannot isolate that effect. Training data, model scale, and other settings were not held fixed except for routing. Even with the same evaluation pipeline, this is a comparison between models, not a controlled ablation of one change. The paper also provides instruction-tuned Mixtral Instruct; its chat evaluations cannot stand in for an architecture ablation of the base model.\n\n### Did the eight experts really choose subjects?\n\nTry a different question. If the router always sent mathematics problems to one expert and philosophy essays to another, could we say they divided the work by subject? The authors asked a similar question. In Figure 7, the three rows represent layers 0, 15, and 31. Expert IDs 0 through 7 run along the horizontal axis; the vertical axis is the fraction of tokens from a domain assigned to an expert. The gray dashed line marks the uniform rate of $1/8$ per expert. Eight colors beside each expert represent eight text domains. **Either first- or second-choice selection** counts in the plot.\n\n![Figure 7 from the Mixtral paper: expert-selection rates for eight text domains at layers 0, 15, and 31.](/content/papers/assets/852f57d807b93629c90e37418662ee901e34ca9972c3e928165afb53ca5251a4.png)\n\n*Original paper, [Figure 7](https://arxiv.org/html/2401.04088v1#S5.F7): expert-selection rates across text domains. The authors' SVG was converted to PNG without cropping, credited under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/). On a phone, [open the scalable original](https://arxiv.org/html/2401.04088v1/routing-assignments-short.svg) to read the legend.*\n\nNow hold one expert ID fixed and compare the colored bars. The distributions for ArXiv papers, PubMed abstracts, and philosophy documents look similar. There is no clear “one domain always goes to one expert.” At layer 31, the mathematics data differs somewhat—for example, yellow bars for experts 0 and 2 are higher. The authors caution that this dataset is relatively synthetic and has limited natural-language variety. The figure counts **how often an expert is selected**, not that expert's accuracy on math questions.\n\nThe authors also checked whether adjacent tokens take similar routes. [Table 5](https://arxiv.org/html/2401.04088v1#S5.T5) has two groups of columns. The left asks whether the next token has the **same first-choice expert**; the right asks whether its two selected experts have **at least one in common** with the current token's pair. Do not merge the percentages. For ArXiv text, the left-hand value at layer 0 is 14.0%, near the random baseline of $1/8=12.5\\%$; it rises to 27.9% at layer 15 and is 22.7% at layer 31. The right-hand value at layer 15 is 62.3%, against a random baseline of about 46%. Adjacent tokens at deeper layers do route together more often. That still does not give each expert a fixed subject. The colored-token examples in [Figure 8](https://arxiv.org/html/2401.04088v1#S5.F8) suggest local patterns of syntax and text form as well.\n\nThese observations also bear on deployment. If many nearby tokens go to the same expert, the GPU holding it could get more work. Repeated use of an expert might also help caching. These are engineering possibilities inferred from the routing distribution; Table 5 alone cannot tell us the speed on a particular machine.\n\n### What does a 32K context mean?\n\nThe paper says the model supports a context of 32,768 tokens. It can therefore process a long sequence in one input. **Fitting it into the context** and **doing every long-document task well** remain different claims. The left half of [Figure 4](https://arxiv.org/html/2401.04088v1#S3.F4) shows a synthetic passkey test, which hides a specified piece of information at different positions in a long text and then asks the model to retrieve it. Accuracy is 100% at the tested lengths and positions. The right half measures perplexity on a subset of Proof-Pile text. As the model can read more preceding context, its next-token perplexity falls; lower perplexity means it assigns higher confidence to its next-token predictions on that material. Neither half directly tests whether it can synthesize an entire long report.\n\nThe result is clear, but it only tests retrieval of a specified item. To decide whether a model can summarize a report or track several contradictory passages, we need tests for those jobs. Separate “the length it can accept,” “whether it can find a passage,” and “whether it understands the whole document” so one impressive number does not answer three different questions.\n\n## Conclusion\n\nReturn to the “six times faster” launch poster. Mixtral really does keep eight expert networks at every layer's FFN position, select two from the current token representation, and so activate about 13B of its roughly 47B total parameters each time. Table 2 and Figure 3 show competitive scores with fewer active parameters on several evaluations of the time. That helps explain the rapid arrival on cloud model platforms. Scores and active-parameter counts, however, do not calculate latency or a service bill.\n\nBy October 2026, the picture is fuller. On the positive side, the open weights can still be self-hosted; [AWS Bedrock lists Mixtral Instruct as Active](https://docs.aws.amazon.com/bedrock/latest/userguide/model-card-mistral-ai-mixtral-8x7b-instruct.html), and [MLPerf Inference](https://docs.mlcommons.org/inference/benchmarks/language/mixtral-8x7b/) continues to use it as a systems benchmark workload. Later [DeepSeek-V3](https://arxiv.org/abs/2412.19437) and [Qwen3](https://arxiv.org/abs/2505.09388) include MoE models, showing continued interest in sparse activation. MoE research predates Mixtral; these later models should not all be credited to this paper.\n\nThe other side is the model's own life cycle. [Mistral lists Mixtral 8×7B as retired in March 2025 and recommends Mistral Small 4 for new integrations](https://docs.mistral.ai/models/mixtral-8x7b-0-1). Open weights and third-party services may persist, but a leading benchmark in 2023 is not today's model-selection verdict. Deployment still requires the full set of weights and must contend with routing, transfers between devices, and uneven loads; Figure 3 measures none of those. Long context also calls for task-specific checks: in the later [RULER evaluation](https://arxiv.org/html/2404.06654), base Mixtral does well on a simple retrieval task at 32K but scores only 41.3% on an information-aggregation task at the same length. That is a synthetic benchmark, enough to prompt testing on your own documents, not a success rate for all long-document work.\n\nIf you want to put Mixtral into a product today, test answer quality, memory, latency, and throughput on your own tasks, languages, and hardware alongside newer models. The paper teaches us how to activate parameters selectively. The most appealing speed slogan from its launch still needs to be checked against a real service workload.\n","imageSizes":{"/content/papers/assets/1347eb75040f1144f7ea5820cae7b4bd60c49b6bf351fb1c9e77b4c20e642c46.png":{"width":2116,"height":968},"/content/papers/assets/d24fdda9f5229a17cb0fee6017f54fe7f1373144309acd16e797e0a6153451a1.png":{"width":4516,"height":2589},"/content/papers/assets/852f57d807b93629c90e37418662ee901e34ca9972c3e928165afb53ca5251a4.png":{"width":1428,"height":1020}}}
