Layers and experts
One step across the field is not one jump. It is a stack of small corrections, one per layer. This play looks inside a layer, explains why most of it sits on the bench for any given token, and counts the bytes.
A layer is a small correction
The state enters the bottom of the stack as the vector of the token just read. Every layer adds something to it and passes it up. Nothing is replaced, only added:
is the state after layer . The notation is simplified: it skips normalisation, and the second term really sees the state after the first.
Inside one layer
- Attention looks back. It reads this layer's cache, one entry for every earlier token, and mixes what it finds into the state. This is how the trail behind you shapes the next step.
- The router picks. It scores every expert against the current state and keeps the top few.
- The experts work, and the sum goes back in. Their outputs are weighted, added together and added to the state.
Every layer has its own cache and its own experts. Layers are the same size from the first to the last.
The move happens during the climb
Stand at a point A. The whole road from the start to A is behind you, and it is kept: what every layer worked out for every earlier token sits in the cache. There is no pause in which a route is looked for and then taken. The next move begins at once: the token just drawn goes in at the bottom, and the computation is the move. As the state climbs the layers it travels through the space of play 1, pulled by the trail, and when it reaches the top it has arrived somewhere new.
Only then does a token appear. The token is not the move. It is a sample taken at the end of it: a marker dropped where the state landed.
is what layer adds: an arrow, with a direction and a length. The whole climb is 93 such arrows laid end to end, one function made of 93 smaller ones.
The climb goes one way. It is easy to picture a climb up to explore and a walk back down to consolidate. That is not what happens. The widening and the narrowing both happen on the way up, the sample is taken at the top, and the next climb starts again from the bottom.
- One way, once. The state of a token goes up through layer 1, layer 2 and so on to layer 93. Every layer runs once. Nothing is handed back down.
- Inside every layer, the same two moves. First attention: it weighs every earlier token for how much it matters right now, and mixes that in. Then the router of that same layer picks the experts for where the state now stands. The next layer up does both again, with its own attention and its own experts.
- It widens first. In five open models the number of directions the states use climbs to a peak in the early-middle layers. I read that as the exploring: the state is taking on what the trail has to offer.
- Then it consolidates, still on the way up. Above that the number of directions falls, and the guess you can read off the state sharpens. Each layer's attention pins the next step down a little more.
- At the top, a sample. The final state is turned into odds over the whole vocabulary and one token is drawn from them. When the climb ends you have the new token.
- Then from the bottom again. The sampled token goes in at layer 1, a bare marker. The climb pulls the trail in from the cache and carries the state on to the next place. Nothing is redone for the earlier tokens.
- The router follows the state. It always picks by where the state stands. Once the state leans one way, the experts it picks are the ones on that side. That is all that “routing more into one direction” comes to. Nobody decides to invest in a topic. The state moved, and the picks moved with it.
- One card or eight, the order is the same. Cards only decide where the state has to cross a slot or a cable on its way up, and where the picked token is sent back to. That is the loop in play 3.
A token is a sample, and it reports a change
Inside, everything is fluid. The state is 7,168 numbers, and it shifts a little at every layer. Outside, once per climb, one token comes out: one choice from a list of about 164,000, which is less than 18 bits. A token is a sampled projection of the state into the only space the model shares with us, the list of tokens.
Notice what kind of news a token is. It does not tell you where the state is. It is closer to a line in a weather log that says “two degrees warmer than last time”: a report of which way things went since the last report. The text is those reports added up.
- The projection. Every token has a direction of its own in the space, one row of the output matrix. A token's score is how far the state reaches along that direction. It is the formula from play 1.
- The draw. The scores become odds and one token is drawn. The draw throws nearly everything away: where exactly the state stood, and how close the runners-up were.
- A place inside, a direction outside. The read-out takes the state where it stands. But training shaped the state at the top to answer one question: what comes next? So where it stands is already a statement about change. A place in the model's space is a direction for the text.
- The text is the running sum. Each token says which way the text went next. Add the tokens up and you have the trail.
- The sample is all that gets over the top. Later tokens can read what the state was before the last layer finished, never the final state itself. What the final state settled reaches them only through the token that was drawn from it.
In the language of fields
A token looks like one number on a list, so it is tempting to call the whole thing a scalar. It is not, and each part is a different kind of object.
| Thing | What kind of object | In plain words |
|---|---|---|
| What one layer adds | a vector at every point: a vector field | an arrow: which way and how far the state is pushed from where it stands |
| The climb | a path along those arrows, in 93 steps | follow the arrow, land, follow the next layer’s arrow |
| The odds of one token | a number at every point: a scalar field, one for each token | how likely that token is from here |
| “More of this token” | the gradient of that token’s log-odds | the way to nudge the state so that this token becomes more likely: its own direction, less the average direction of all candidates weighted by their odds |
| How the odds answer a nudge in any direction | a table of numbers at every point: a tensor field of rank two | how far apart two nearby states are in what they would say |
| A token | a sampled projection; in the text, an increment, which is to say a differential | one draw from the odds at the landing place: a report of which way the text went, not of where the state is |
is the row of the output matrix for token , and its odds. The first formula is the gradient in the table. The second is the table of rank two, known as the Fisher metric. Both are exact for the read-out at the top of the stack.
- Not a scalar. What moves the state is an arrow.
- Not a gradient either, in general. A gradient field is the special case in which every arrow is the slope of one landscape. A layer's arrows are not built that way, and they can turn where no slope would.
- Closest to a differential. The token is an increment: the difference between the text before and the text after. The climb that produced it was a movement, and the token is the one coarse thing we are told about it.
- Not the difference of two landings. The read-out does not subtract the last place from the new one. It reads the new place, and the new place is about what changes next. That is how a projection of a position comes to carry news of a change.
- The gravity picture. Think of a body moving through four-dimensional spacetime. The state is the body, the layers are the ticks of its clock, and what a layer adds is its velocity for that tick. We are never told where the body is. Once per climb we get one word, drawn from what the body could say from where it stands, and from a string of such words we guess the motion.
- A picture, not a law. Nobody has an equation of motion for a real model that holds the way the one for gravity does. The nearest things are these. Deep networks of this kind have been read since 2018 as a differential equation solved in steps. And in GPT-2 medium the paths of many prompts are well described by a steady drift plus noise.
One climb in three dimensions
Here is one of those climbs seen from the side, the way I picture it.
The drawing is a toy: seven slices for 93 layers, two directions on a slice for 7,168, three experts picked for 16. Its two rules are simplified from the real ones: the odds are read from where the state stands, and the experts nearest to the state are the ones picked.
The same climb, laid out flat
Here is the same pass laid out flat. It shows the order of the two moves inside a layer, and the one thing that travels back down.
- Look back first, then pick. Attention moves the state, and only then are the experts chosen, for where it now stands. The order is fixed.
- The guess can be read on every floor. Take the state after a middle layer and read it out as if the stack ended there, and you get odds. Low in the stack they are vague. Higher up they sharpen, and the favourite can change on the way. The people who measured this call it iterative inference: the prediction is refined layer by layer.
- Routing can narrow late. In four MoE models a small language, Lithuanian, sends 55 to 72% of its picks in the last layers to just eight experts. English sends 19 to 39%.
- Nothing flows back down. Layer 2 never reports to layer 1. Earlier work stays in play because every layer adds to the same running state, and later tokens can read what each layer stored for earlier ones. The only thing that travels from the top of the stack to the bottom is the word that was picked.
- No route is looked for. One climb moves the state once and yields the odds for one sample. No layer walks ahead, looks around and comes back. A path exists only after many climbs, and which path it turns out to be also depends on the draws.
- It can still prepare. When Anthropic traced one of its models writing rhyming verse, the model had picked candidate rhyme words before it started the line that ends in them. One state can carry a plan for several steps, even though each pass commits to one.
- The first mixtures of experts had this shape on purpose. In 1994 Jordan and Jacobs arranged the gates as a tree: a coarse split at the top, finer splits below. A modern model is a stack, not a tree. Every layer's router chooses afresh from its own full roster, looking at a state that all the layers below have already moved.
measured Layer-by-layer readings: the tuned lens, on dense models of up to 20 billion weights (2023). Directions in use: five open models (2025). Late routing: four MoE models (2026). Planning in verse: Claude 3.5 Haiku (2025). Sources in the notes.
Is attention the tensor?
In this trade a tensor is only a block of numbers: a row, a table, or a stack of tables. So everything in a model is one: the state, the weights, the cache. What attention makes is smaller and more specific. For the token being worked on it produces one weight for every earlier token, saying how much of that token to mix in before the step is decided. A layer runs several such sets side by side, called heads. Stack them and you have a tensor in the plain sense, and nothing more exotic than that.
The router makes the same kind of thing for experts: one weight for each of the few it picked. Those two sets of weights do the steering, layer after layer. The field of play 1 is something else again. It is the odds you read off the state once the climb is over.
What is measured is that the reading sharpens with depth, and that the number of directions in use rises and then falls. That low layers explore and high layers commit is my reading of those two facts.
Why a router at all
In a dense model every token passes through every weight. A mixture-of-experts model (MoE) cuts the big second half of each layer into hundreds of small blocks and runs only a few of them per token:
is one expert, is the weight the router gives it, and top- are the experts that score highest for this state.
The payoff is simple arithmetic. The whole roster has to be on the payroll, so all of it sits in memory. But only the players on the court cost time. Kimi keeps 2,800,000,000,000 weights in memory and reads 104,000,000,000 of them for one token.
The myth of the specialist
The word “expert” invites a picture: one block for maths, one for law, one for code, and a router that reads the subject and calls the right one. People have gone looking for that picture inside released models. It is not there.
- The router reads position, not subject. A router is one matrix multiplied by the state. Two states that sit close together get nearly the same scores, so they get the same experts. A 2026 paper titled “The Myth of Expert Specialization in MoEs” shows it on five released models: similar states explain similar experts, and nothing else is needed.
- Mistral looked for topic experts and found syntax. Its own report on Mixtral says it saw no obvious pattern by topic. What did stand out was grammar and layout, such as Python's
selfand indentation going to the same expert time after time. - A small committee plays almost every match. In three released models a handful of experts per layer takes the majority of the router's weight whatever the subject is.
- A real job is smaller than a subject. Studies that label experts one by one find narrow operations. In one 30-billion-weight model, one expert handles Java and another front-end web code, one geometry and another arithmetic and polynomials.
- One expert holds several unrelated jobs. There are far more jobs than experts, so each expert takes a handful that rarely turn up together.
- Subjects still leave a trace. Maths and news sit in different parts of the space, so on average they light different experts, and how strongly depends on how the model was trained. Specialised, yes. By subject, only as a side effect.
measured Routing studies of released open models, published 2024 to 2026; sources in the notes. Nobody has published one for a model the size of Kimi, so for its 896 experts this is my inference.
How I picture it
An MoE layer is one function written as a sum of pieces with a switch in front of each. The router cuts the space into cells, and inside a cell the same pieces are switched on. A piece is whatever correction training found useful for the states that land there, on the way to the next token. That much is the formula above plus the measurements.
I go one step further and think of the experts as shards of that one function, put together afresh at every position to find the best next step across the field. That is my reading of the results and not a result itself. The measurements also say where it is too neat: one shard serves many scattered cells, and a few shards serve nearly all of them.
If experts are not specialists, can a model still be cut down to the ones one job needs? That is play 8.
What 16 billion parameters weighs
A parameter, or weight, is one number in the file. B stands for a billion, T for a trillion. Sixteen billion is 16,000,000,000, or . Kimi has .
| Model | All parameters | Written out | Active per token | Written out |
|---|---|---|---|---|
| Kimi K3.1 Pro | 2.8T | 2,800,000,000,000 | 104B | 104,000,000,000 |
| Tencent Hy4 | 770B | 770,000,000,000 | 49B | 49,000,000,000 |
| DeepSeek V4.1 Flash | 552B + 196B lookup table | 748,000,000,000 | 16B | 16,000,000,000 |
| Qwen3.8-Flash-Next | 125B + 51B lookup table + 4B | 180,000,000,000 | 6B | 6,000,000,000 |
| Qwen3.8-27B (dense) | 27B | 27,000,000,000 | 27B, always all | 27,000,000,000 |
How many bytes that is depends on how many bits each number gets. Models are usually released at 16 bits (BF16 or FP16), two bytes per weight, and then stored more tightly, which is called quantisation:
- Kimi is the exception. It was trained to work at 4 bits from the start. The file is 1,561 GB; at 16 bits it would be about 5,600 GB. There is no smaller version that keeps the quality.
- DeepSeek V4.1 Flash also ships tight: experts at 4 bits, the rest at 8. That is why its file is 510 GB and why “Q8” means the native weights for this model.
- The rule does not change. What counts is how many bytes sit in memory and how many of them one token reads.
What fewer bits cost in quality
| Qwen3.8-Flash-Next stored at | Drift from the original (KLD) | Same top choice | Experts |
|---|---|---|---|
| about 3 bits (IQ3_XXS) | 0.119 | 88.7% | 46.8 GiB |
| about 4 bits (IQ4_XS) | 0.082 | 90.5% | 56.2 GiB |
| 4 bits (NVFP4) | 0.062 | 91.7% | 63.3 GiB |
| 4 bits plus (Q4_K_XL) | 0.050 | 92.6% | 71.7 GiB |
| 5 to 8 bits | about 0.02 | about 95% | — |
measured From the model card in the Basalt engine: 100 text chunks against the full 16-bit weights. Lower drift and higher agreement mean a more faithful copy.
Three numbers to keep apart
| Number | What it is | What it decides |
|---|---|---|
| All weights | the whole file; it must sit in memory because the router chooses at run time | how much memory to buy |
| Active weights per token | what one token reads on its whole climb, summed over every layer | how fast the model writes |
| Active weights per layer | active divided by the number of layers | whether splitting a layer across cards pays off |
| Model | Layers | Experts per layer | File | Weights in card memory | Read per token | Per layer |
|---|---|---|---|---|---|---|
| Kimi K3.1 Pro | 93 | 896, 16 picked + 2 always on | 1,561 GB | 1,560 GB | 58 GB | 0.63 GB |
| Tencent Hy4, 8-bit | 78 | 256, 8 picked + 1 always on | 786 GB | 818 GB | 50 GB | 0.64 GB |
| Tencent Hy4, 4-bit | 78 | 256, 8 picked + 1 always on | 470 GB | 467 GB | 30 GB | 0.38 GB |
| DeepSeek V4.1 Flash | 40 | 384, 6 picked + 1 always on | 510 GB | 315 GB | 11 GB | 0.27 GB |
| Qwen3.8-Flash-Next, 8-bit | 48 | 512, 10 picked + 1 always on | 188 GB | 133 GB | 6.3 GB | 0.13 GB |
| Qwen3.8-Flash-Next, 4-bit | 48 | 512, 10 picked + 1 always on | 111 GB | 76 GB | 3.7 GB | 0.08 GB |
spec Parameters and files are from the model cards. computed Bytes read per token. Card memory leaves out the lookup tables.
- Lookup tables. DeepSeek V4.1 Flash (196B) and Flash-Next (51B) keep part of the model as a table from which a token fetches a few small entries. It takes space and almost no time, so it can live in ordinary RAM or on disk.
- Half of Kimi's read is the same for every token. Of 58 GB, about 31 GB is attention and the always-on experts. The other 27 GB is the 16 picked experts in each layer.
More active weights, better scores
| Model | Active per token | Intelligence Index v5.0.1 |
|---|---|---|
| Kimi K3.1 Pro | 104B | 46.5 |
| Tencent Hy4 | 49B | 35.0 |
| DeepSeek V4.1 Flash | 16B | 32.6 |
| Qwen3.8-Flash-Next | 6B | 28.6 |
| GLM-5.3 | about 40B | 31.7 |
| MiMo-V2.6-Pro | 42B | 29.9 |
| DeepSeek V4 Pro | 49B | 23.1 |
| Qwen3.8-27B (dense) | 27B | 20.1 |
Artificial Analysis Intelligence Index, read on 22 November 2026. The best closed models score 59 to 65.
Among the best model of each class (highlighted) the score climbs with active weights: 28.6, then 32.6, 35 and 46.5. Size alone guarantees nothing, as the lower rows show. For shopping the first fact is the one that bites: a better model reads more bytes per token, so it needs faster memory.