# Mission 8.3: Are the experts specialists in law and medicine?

Part of the course “AI from Zero to Autonomous Agents” (https://llm.yoga/en). Page for humans: https://llm.yoga/en/einsatz-8-3

Belongs to [Chapter 8: Dense versus Mixture of Experts](https://llm.yoga/en/08-dense-moe.md).

Structure: the case, the explanation, a hands-on tool, check questions, wrap-up. The answers to all questions are collected at the end.

## The case

**Hanna**, Marketing:

> “For our presentation I wrote: ‘gpt-oss-120b has 128 experts. For every question it picks the right specialists, for example for law or medicine.’ An AI model explains it to me exactly the same way. Can I leave it like that?”

Slides like this go to customers, and a wrong sentence about the technology ends up reflecting on the whole sales team. gpt-oss-120b is an open language model from OpenAI built on the Mixture of Experts pattern, MoE for short. On my test Mac, I asked the small open model qwen3:8b, in German as in all my measurements: „Erkläre Mixture of Experts in drei Sätzen.“ (“Explain Mixture of Experts in three sentences.”) One sentence from its answer, which says that a main model decides which specialist model is used for a given input:

**Answer from qwen3:8b (Measured on an M4 Mac (24 GB) on November 25, 2026)**

„Ein Hauptmodell entscheidet, welches Spezialist-Modell für eine bestimmte Eingabe eingesetzt wird.“

**Question 1 (prediction):** Is Hanna’s sentence right?

- A) Yes, the router sends legal questions to the legal experts.
- B) Almost: the experts are sorted by language, not by subject.
- C) No: selection is per token, without fixed assigned subject areas.

## What’s behind it

Picture a building with 36 floors and 128 workstations per floor. A controller chooses which stations work for each word piece, separately on every floor. Its selection rules are learned during training. No human subject areas are assigned to the stations.

In an **MoE model**, an expert corresponds to one station: a small compute block without a fixed assigned subject area. A **router**, a small compute step, gives each expert a score for every token, that is every word or word piece, and the best ones compute. In gpt-oss-120b that’s four of 128, chosen anew in each of the 36 layers. The router learns by itself during training what split comes out of this.

The authors of the Mixtral model looked at which experts get chosen for which topics and write: “Surprisingly, we do not observe obvious patterns in the assignment of experts based on the topic.” What they did find were patterns in form: indentation in program code or the word “self” in Python often ended up with the same expert.

For Hanna this means the sentence isn’t right as it stands, even if a model repeats it. MoE can speed up generation because only a small part computes per token, for gpt-oss-120b 5.1 of 117 billion parameters. The model still needs memory for all experts, because the router chooses anew for every token.

### In more detail: what the routing analysis shows and what it doesn’t

Mixtral 8x7B has 8 experts in each layer, 2 of which compute for every token. According to the paper (Jiang et al., 2024, section 5), they can be different ones “at each timestep”. The analysis found no clear patterns by topic in the selection, but it did find patterns in syntax.

Some models also have a shared expert that computes for every token, for example DeepSeek-V3 with 256 routed experts, 8 of them per token, plus one shared. As chapter 8 explains, the shared expert is intended to capture commonly needed patterns, not a predefined subject area.

Whether large commercial models like Claude or GPT use MoE is usually not published by the providers; Anthropic’s model overview says nothing about it.

On the test Mac, qwen3:1.7b also described MoE as a method „aus mehreren spezialisierten Experten“ (made of several specialized experts) that „auf einem bestimmten Teil des Datenraums arbeiten“ (work on a particular part of the data space). A model saying something doesn’t prove it.

## Try it

**Active parameters for the slide**

**Task:** Hanna wants to save the slide with a correct number. For the model below, work out how many billion parameters compute for one token. One decimal place.

**An MoE model (example values from chapter 8)**

40 layers with 64 experts each; 8 of them compute for each token. One expert has 20 million parameters. Attention and vocabulary together have 2 billion parameters, treated as fully active for this simplified calculation.

Active per token, in billions

## Check

**Question 2 (check question):** Hanna asks: “If I ask about an employment contract, do the same four experts compute for the whole answer?”

- A) No, the router chooses anew for every token.
- B) Yes, the router chooses them once at the start of the question.
- C) Yes, as long as the answer stays on the same topic.

**Question 3 (check question):** Which sentence belongs on Hanna’s slide?

- A) 128 specialists work together on every single question.
- B) Only a small part computes per token, which can speed up generation.
- C) The model only needs memory for the experts that are currently computing.

**Question 4 (check question):** Hanna objects: “Two different AI models explained the subject experts to me in exactly this way.” What do you say?

- A) Then it’s probably right; two different models are rarely wrong in the same way.
- B) It’s true for large models; only small ones don’t sort by topic.
- C) Agreement is not evidence; the primary source contradicts the claim.

## Done

**What you can do now**

- You can explain that an expert is a small compute block that the router chooses anew for every token and every layer.
- From a description, you work out how many parameters an MoE model has in total and how many compute per token.
- When a presentation says an MoE model sends questions to subject experts, you replace the sentence with one about speed and memory and cite the Mixtral authors’ routing analysis as evidence.

### Two cards for review

**Card 1:** True or false? “The experts of an MoE model specialize in topics such as law, medicine or programming.”

**Card 2:** How often does the router of an MoE model choose which experts compute?

- [Next mission: The customer wants the 70B model on his 48 GB Mac](https://llm.yoga/en/einsatz-9-1.md)
- [Read chapter 8](https://llm.yoga/en/08-dense-moe.md)

## Read more in the chapter

The full text from the chapter, with the reasoning, calculations and sources:

- [Mixture of Experts: one router and many experts](https://llm.yoga/en/08-dense-moe-1.md)
- [Common misconceptions](https://llm.yoga/en/08-dense-moe-3.md)
- [Total parameters and active parameters](https://llm.yoga/en/08-dense-moe-1.md)

## Answers: only reveal them after the learner has answered or explicitly asks

**Question 1:** The correct answer is C.
- A: The authors of the MoE model Mixtral studied exactly this and found no clear patterns by topic. Besides, the choice isn’t made per question but per token.
- B: Nobody assigned a sorting by language either. The router learns the split by itself, and what was found were patterns in the form of the text rather than its content.
- C, correct: An expert is a small compute block that the router learns to use by itself during training. The Mixtral authors found patterns in form instead, for example in the indentation of program code.

**Active per token, in billions** Answer: 40 × 8 × 20 million = 6.4 billion, plus 2 billion = 8.4 billion active. Total: 40 × 64 × 20 million + 2 billion = 53.2 billion.

**Question 2:** The correct answer is A.
- A, correct: And it does so in every layer. Over one answer, a great many experts get used. That’s why all of them have to be in memory, even though only four compute per token.
- B: The router doesn’t choose per question but anew for every token and in every layer.
- C: The same topic does not guarantee the same selection. Even consecutive tokens can use different experts.

**Question 3:** The correct answer is B.
- A: Per token, four of 128 compute, and they aren’t specialists in the human sense. So neither part is right.
- B, correct: That’s the real advantage: gpt-oss-120b computes with 5.1 of 117 billion parameters per token. It still needs memory for all of them.
- C: All 65 GB have to be in memory, because the selection changes with every token. About 5 GB are read per token.

**Question 4:** The correct answer is C.
- A: Models can make the same mistakes, for example because of similar training sources. Their agreement does not replace evidence.
- B: The model studied was a large MoE model, Mixtral, and that’s exactly where the authors found no clear patterns by topic.
- C, correct: The Mixtral authors studied how experts get selected and found no clear patterns by topic. For claims about models, the primary source counts, not how confident an answer sounds.

**Card 1:** **False.** The router learns the split by itself during training, with no fixed human subject areas prescribed. The Mixtral authors found no clear patterns by topic, more by syntax, for example in the indentation of code.

**Card 2:** Anew for every token and in every layer. In gpt-oss-120b, four of 128 experts compute per token, in each of the 36 layers. Many experts may be used over an answer. All should be ready in RAM for fast execution.
