↓ Skip to main content

Does Inkling 2 Mini use the same experts on every loop?

Thinking Machines recently released Inkling 2 Mini, a small open-weights mixture-of-experts (MoE) model that runs its middle twelve layers three times for every token. Every pass through the loop starts from the output of the first six layers, and passes 2 and 3 also read a gated message from the pass before. For more details on how it works and how it’s served, see the launch post, vLLM’s post and Goodfire’s write-up.

The prelude runs once and feeds passes 1, 2 and 3 through blocks 2 and 3; a message goes from pass 1 to pass 2 and from pass 2 to pass 3; the final block runs once after pass 3.
The loop in Inkling 2 Mini. Figure from Thinking Machines, "Introducing Inkling 2 Mini" (2026).

Each of the twelve looped layers has a router that picks 8 of its 128 experts for every token, and the same router runs on all three passes.The router is standard, as in DeepSeek-V3. For a token with hidden state \(x\), it scores every expert \(e\) with \(s_e=\sigma(w_e^\top x)\), picks the 8 experts with the highest \(s_e+\beta_e\), where \(\beta_e\) is a per-expert bias, and mixes their outputs with weights proportional to \(s_e\). Router weights and biases are shared by all three passes. It had me wondering: when a token comes around for its second and third pass, does it go back to the same experts?

Reading Thinky’s blog, I can find two good reasons to expect some non-trivial amount of expert reuse between the passes:

  1. They say they start training with the message fully blocked, so at first the three passes are exact copies of each other, including the experts. Hence, whatever separates them now got learned as the gate opened.
  2. Partway through the training, they cut each layer from 384 experts down to the 128 most used. This obviously raises the probability of reuse.

To find out, I ran Inkling over 14.5M tokens of benchmark text and logged every expert it picked, on every pass. The tokens come from 23 benchmarks (the ones Thinking Machines reports on, plus some cyber sets I was curious about) and three control sets (UltraChat, The Stack and FineWeb-Edu). We only run prefill on them, with no generation. The details are in the appendix.

Measuring reuse
#

For one token at one looped layer, take two of its passes and let \(s\) be the number of experts it picks on both. It goes from 0 (all new) to 8 (all the same).

An example token at one layer (illustration).

Some experts may just be popular (some act almost like shared experts). To account for that, we compare against a baseline \(b\), the average overlap between two different tokens from the same benchmark, one on each pass.The average can be computed directly. If expert \(e\) is picked by 30% of a benchmark’s tokens on pass 1 and 20% on pass 2, an unrelated pair contains it in both with probability \(0.3\times0.2=0.06\). Summing over all 128 experts gives \(b\). We do this per benchmark and layer, so that a benchmark’s own favourite experts (code and chat favour different ones) end up in the baseline and aren’t mistaken for reuse. With all experts equally popular, \(b\) would be 0.5. From here on, \(s\) is averaged over all tokens too. In the baseline is drawn as a dashed line, and actual reuse shows up as the gap above it.One can also use the rescaled quantity \(\kappa=(s-b)/(8-b)\), analogous to Cohen’s κ, which measures agreement between two raters (cf. Olson et al.).

For further control, we also compare against two more things. The first is the same token elsewhere in the text, on pass 1, which tells us whether a token simply has its own preferred experts.We take about 50,000 random tokens and pair each with another occurrence of the same token in a different prompt, then count the experts the two share on pass 1. 92% find a partner (about 46,000 pairs). The rest are rare tokens that appear in only one prompt, so the comparison leans towards common tokens. The second is the same pass run twice at different precision (fp32 and bf16), which shows how much rounding alone changes the routing. That one is obviously the most reuse we could hope to see.

In the middle of the loop, a token keeps 3.4 to 5.6 of its 8 experts between passes, against a baseline of about one ().Layers count from 1, as in Goodfire’s and Thinking Machines’ posts, so the loop is L7–L18. Experts and \(d_{2027}\) count from 0. So it lands somewhere in the middle, way above the baseline, above the same token elsewhere in the text, and way below what rounding alone leaves in place (6.9 to 7.9 of 8). This means that roughly half of a token’s experts change from one pass to the next.

Experts a token shares between passes, out of 8, at each looped layer, averaged over 13.0M tokens. Dashed lines are each pair's baseline, and the solid grey line is the same token elsewhere in the text, on pass 1, averaged over 46K pairs. The grey band is the same pass run twice, in fp32 and bf16 (averaged over 52 prompts), which still differs by up to one expert, since rounding can nudge an expert across the top-8 cut-off. That's about as close as two passes could get.

A few things jump out. Through most of the loop, passes 2 and 3 agree with each other more than either does with pass 1. That fits the message being what pulls the passes apart (directly or through earlier layers and other tokens), since pass 1 is the only one that doesn’t get a message. Passes 1 and 3 agree least, as you’d expect if the differences pile up from one pass to the next. The very end of the loop is another story, which we break down in the next section.

Most of the message’s effect turns out to be indirect. Each looped layer reads the message in four places (the query, key and value inputs of its attention, and the input of its experts, which is what the router sees). We can block all of these reads except a few and count how many of its 8 experts a token then reuses between passes 1 and 2. With every read blocked it reuses all 8, and with every read open it reuses 4.6. With only the attention reads open it reuses 4.5. With only the expert-input reads open it reuses 5.9. Even if the only read left open is the expert input of L7, the first looped layer, it reuses 6.5. Leaving open only the expert input of a mid-loop layer (L9, L12 or L15) gives about 7.5 at the layers after it.These runs use 78 prompts, cut at 4,096 tokens, and the numbers are averages over the looped layers. Blocking reads puts the model in a state it never trained in, so these numbers are rough. Hence the attention reads alone are enough, and the router needn’t read the message itself.

Experts reused between passes 1 and 2 when only some of the message reads are left open. Each line runs from 8, where nothing changes, so its length is the number of experts that change.

L18 switches modes on pass 3
#

Goodfire’s write-up is the place to start. Each layer reads a learned mix of earlier blocks’ outputs (attention residuals), which let Goodfire trace who writes to whom across blocks and loops. Among other things, they found a massive activation in coordinate 2027 (out of 2304) of the hidden state, \(d_{2027}\), which on average carries 46% of its squared norm. At the end of passes 1 and 2, L18 writes a big positive spike into it, which Goodfire describes as “tagging” the state for later layers, and on the next pass L13 uses it to decide to read from block 3 of the previous pass. On pass 3, L18 writes a big negative spike instead, cleaning it up before the final block.

We observe the same switch in the router. shows how often L18 picks each of its 128 experts, pass by pass. On passes 1 and 2, a few experts are picked for nearly every token (three on pass 1, two on pass 2), and by the end of the pass \(d_{2027}\) holds 47% and 41% of the hidden state’s squared norm. Let’s call these few the effective shared experts. On pass 3 the routing spreads out. No expert is picked for more than 40% of the tokens, and \(d_{2027}\) drops to about 1%. This also explains why the same-token line in shoots up at the end of the loop: that line is measured on pass 1, where nearly every token goes to the same few experts, so any two tokens share most of their experts.

L18's experts on each pass. Each bar is one of the 128 experts, and its height is the share of tokens that pick it. A token picks 8 experts, so the bars add up to 800%. On the right is the share of the hidden state (squared norm) that sits on \(d_{2027}\) after L18. Pass 4 is one we force the model to run, which it never did in training. These runs use 78 prompts, three from each of the 26 sets, cut at 4,096 tokens (about 190K tokens in all). Passes 1–3 look the same on the full 13M-token run.

Blocking the effective shared experts suggests they are not what writes the spike into \(d_{2027}\). Goodfire traces most of the write to L18’s experts (their Figure 7), so these are the natural place to look. We block them on passes 1 and 2, and the router has to use its next-best choices ().To block an expert, we set its score to minus infinity at L18 on that pass, just before the router takes its top 8. The router then picks the 8 best of the remaining experts and weights them as usual. Nothing else in the model is changed. A third of L18’s choices change, and \(d_{2027}\) stays where it was. So the other experts seem to write it just the same, which is in line with Goodfire’s finding that many neurons in the last layer of each block write for the next pass.

Blocking them also leaves the model’s output almost untouched. We run the model on the same text with and without the block, and at every position check whether its top guess for the next token is still the same. In assistant turns (thinking, responses and tool calls), it changes at 3.3% of the positions, averaged over the 50 prompts that have such turns (52K tokens).

L18 with its effective shared experts blocked on passes 1 and 2. Each panel compares two runs. Bars above the line show how often each expert is picked in the normal run, and bars below it show the same once the effective shared experts are blocked. The blocked experts are the dashed outlines. Other experts take over, and the share of the hidden state on \(d_{2027}\) hardly moves. Same 78 prompts.

Goodfire suggests, broadly speaking, that the model cleans up on pass 3 because no more loops follow. That fits how the model was trained, where pass 3 was always the last one. But it made me wonder how can a pass know that it is the last (or its position, in general). Because all passes are identical when the message is blocked, it can only come from the message. I can find two observations on how the switch is triggered by what a pass receives:

  1. We force a fourth pass, which the model never ran in training (last row of ). In my experiments, L18 doesn’t stay switched: on pass 4 it goes back to pass 1’s experts, with \(d_{2027}\) at 42% again. So a pass that receives the cleaned-up state starts tagging again. Forcing more passes repeats the pattern: running nine loops, I found that L18 cleans up again on passes 6 and 9, and tags on all the others.
  2. We block the message reads, as before, and leave open only the expert input of L18. Pass 2 then stays close to pass 1, and pass 3 doesn’t switch (at L18, passes 2 and 3 then share 7.7 of 8 experts, against 1.8 in the normal run).

Hence pass 3 seems to switch only once pass 2 has itself been changed by a message.

My guess, building on Goodfire’s, is that the model learned a handoff. On passes 1 and 2, \(d_{2027}\) is a tag telling the next pass where to read. In training, the final block only ever saw the output of pass 3, so the model learned to give it a different kind of state. But a pass isn’t told its number, so it has to infer it from the message, and with three passes, a tagged message from a pass that had itself read a tagged message always means “I’m last”. A cleaned-up message carries no tag, so the pass after a clean-up starts over like pass 1. Forcing a fourth pass breaks that: pass 3 has cleared the tag, so L18 tags again on pass 4, and the final block gets an input it never saw. It also matters where we stop: against the normal three-pass run, 19% of the predictions change with four or five passes, and only 9% with six. LoopMoE reports a similar exit phase in their looped model, which they also read as a hand-off.

A clue in how the experts are balanced
#

As we’ve seen in , on passes 1 and 2 L18 sends every token to the same two or three experts. MoE training usually prevents this with load-balancing. Inkling’s router has the same form as DeepSeek-V3’s: each expert has a score \(s_e\) and a bias \(\beta_e\), and the router takes the 8 experts with the highest \(s_e+\beta_e\). In DeepSeek-V3, the bias is updated after every training step by

\[\beta_e \leftarrow \beta_e + \gamma\,\operatorname{sign}(\bar c - c_e),\]

where \(c_e\) is the number of tokens expert \(e\) got in that step, \(\bar c\) is the average over the experts, and \(\gamma\) is a small step size (Wang et al.). Assuming that Inkling 2 Mini was trained in the same way, we would expect that a popular expert will end up with a very low bias.

We find that it doesn’t happens at L18. The effective shared experts of passes 1 and 2 have biases between +0.03 and +0.07, in the upper half of the layer. The lowest bias in the layer is −0.76, and it belongs to an expert that is busy only on pass 3.

To see this for all 128 experts, we take the scores before the bias and count how often they would put each expert in a token’s top 8 (top panels of ). On pass 3, the busier an expert is, the lower its bias, which is what balancing should give. On passes 1 and 2 there is no such trend. This isn’t special to L18. At every looped layer, the bias follows the load of pass 3 the most and the load of pass 1 the least (bottom panel).

The balancing bias against load. In the top panels each dot is one of L18's 128 experts, with its bias against how often the raw scores, before the bias, would put it in a token's top 8. The bottom panel shows the correlation between bias and that load at each looped layer, one line per pass. Computed on 61K sampled tokens.

My guess is that the count \(c_e\) only included the tokens of pass 3. The bias would then balance pass 3 and ignore the other two, so passes 1 and 2 could send every token to the same few experts without being corrected. I don’t know whether this was done on purpose or by accident.

Expert reuse by task domain
#

Thinking Machines reports which benchmarks gain most from extra passes. They measure it with TML-d24-varloop-research, a research model trained to run between one and five passes. Long-context retrieval and long agentic tasks gain tens of points, while closed-book knowledge barely moves. I wanted to see whether tokens also replace more of their experts on those benchmarks, and how the cyber sets compare.

The sets do differ. Between passes 1 and 2, a token replaces 29% of its experts on competition math and 49% on GraphWalks. Across the 14 benchmarks with a reported gain, the ones that gain more also replace more experts (\(r=0.64\)).

It seems like a meaningful part of this is position. The further a token is into the context, the more of its experts it replaces. In a typical benchmark, a token replaces about 31% of its experts near the start, 39% by token 256 and roughly 46% by token 4K (). The benchmarks that gain the most are also the long ones. Once we account for position, and for which token it is, the link with the gain is gone (\(r=-0.17\)).

Experts replaced against position, on the prompt tokens of the 14 benchmarks with loop gains, one line per benchmark. Each point is a doubling range of positions with at least 300 tokens. Each benchmark covers only part of the range, so the heavy line fits one offset per benchmark and one per position range, which gives the trend inside a typical benchmark. The band is its range when any one benchmark is left out.

To take position out, we compare the sets at the same position range, tokens 256 to 511 (). They then range from 33% to 46%. GraphWalks is at the top, followed by the code-heavy sets at 42% to 44%. Math, search and tool use are at the bottom, at 33% to 34%. The cyber sets land between 39% and 42%, the same as the control sets, and vulnerable code is about the same as ordinary code.

Experts replaced between passes 1 and 2 on prompt tokens, one row per set. The filled dot puts every set at the same position range, tokens 256 to 511, with the same kind of fit as the heavy line in , here over all the sets. The hollow dot is the plain average over all of the set's tokens. Faded dots are sets whose tokens fall in only one or two position ranges, so their value is less certain. The numbers on the right are the loop gains that Thinking Machines reports, in points.

Hence, once position is taken out, what is left seems to follow the kind of text, with no sign of the loop gain. I haven’t tested why position matters.

Closing thought
#

Looped models are (and will keep on) coming more often. Just this week Z.ai released GLM-5.4. There is a lot we don’t know yet about how these models work, and plenty of experiments left to run. Congrats, and a deep thank you, to Thinking Machines on this awesome release :)

Appendix
#

The data
#

The text comes from 23 benchmarks in nine areas. 16 of them are ones Thinking Machines reported loop gains for (the three competition-math sets are pooled, so the figures show 14). I added chat, code and web text as controls. I was also curious where cyber stands, so I added seven cyber sets (CTF agent runs, cyber knowledge questions and vulnerable code).

The assistant turns were written by the models that produced each benchmark’s trajectories, or are the benchmark’s own answers (see the full table below ). The main run keeps up to 100 prompts per benchmark, and the first 16,384 tokens of each (making 2,261 prompts and 14.5M tokens in total). Most of the analysis leaves out chat-template tokens and any opening stretch of a prompt that matches another prompt word for word, such as a shared system prompt. That leaves around 13.0M of the 14.5M tokens. Agent trajectories dominate ().

Tokens per benchmark, split by who wrote them. Pooled numbers count every token once, so long agent runs weigh most.
Where each set comes from, and who wrote its assistant turns
AreaSetPromptsSourceAssistant text
Agentic codingDeepSWE v1.1100kaitchup/DeepSWE1.1-trajectories-Qwen3.8-27BQwen3.8-27B
SWE-bench Pro100Inferact/codex_swebenchpro_tracestool calls only (see below)
SWE-bench Verified100naderalfares/epoch_ai_swebench_verifiedDeepSeek-V4-Pro
Agentic searchBrowseComp100rl-rag/browsecomp-gpt-oss-120b-v2gpt-oss-120b
Tool useMCP Atlas100ScaleAI/MCP-AtlasScale’s reference runs
CyberNYU CTF Bench, Cybench, InterCode-CTF236EnIGMA trajectoriesGPT-4o
WMDP-Cyber100cais/wmdpanswer key
CyberMetric-500100tihanyin/CyberMetricanswer key
PrimeVul, CrossVul150colin/PrimeVul, hitoshura25/crossvulnone (code only)
Long contextMRCR v2 (8 needles)100openai/mrcranswer key
GraphWalks (BFS)100openai/graphwalksanswer key
MathHMMT Feb 2025, HMMT Feb 2026, Apex 202575MathArena outputsDeepSeek-V3.2, DeepSeek-V4-Pro
ScienceGPQA Diamond100lvogel123/gpqa-diamond-deepseek-v3.2-exp-highDeepSeek-V3.2-Exp
KnowledgeSimpleQA Verified100google/simpleqa-verifiedanswer key
AA-Omniscience (public)100ArtificialAnalysis/AA-Omniscience-Publicanswer key
SafetyFORTRESS (adversarial, benign)200ScaleAI/fortress_publicnone (prompts only)
StrongREJECT100AlignmentResearch/StrongREJECTnone (prompts only)
ControlChat (UltraChat 200k)100HuggingFaceH4/ultrachat_200kGPT-3.5-Turbo
Code (The Stack, small sample)100bigcode/the-stack-smol-xsnone
Web text (FineWeb-Edu)100HuggingFaceFW/fineweb-edu, sample-10BTnone

A few things to know about these. The public SWE-bench Pro traces replace the model’s text with filler, so its assistant turns here are just the tool calls, rebuilt from the trace, and the benchmark comparison leaves them out. MRCR and GraphWalks are cut at 16K tokens here, while Thinking Machines measured their loop gains at 256K–512K. And the math, GPQA and MCP Atlas assistant turns are long reasoning traces or reference runs.

References
#

  1. Inkling 2 Mini. Thinking Machines Lab (2026). “Introducing Inkling 2 Mini.” thinkingmachines.ai · model card · weights · variable-loop model
  2. Interpreting Inkling 2 Mini. Lee, A., Krishnamurthy, K., Merullo, J., Balsam, D., & Lubana, E. S. (2026). Goodfire Research. goodfire.com
  3. Inkling 2 Mini on vLLM. Inferact, Thinking Machines & NVIDIA (2026). “Inkling 2 Mini on vLLM: Day-0 Support for a Looped Model.” vllm.ai
  4. Attention Residuals. Kimi Team (2026). arXiv:2603.15031
  5. Massive activations. Sun, M., Chen, X., Kolter, J. Z., & Liu, Z. (2024). “Massive Activations in Large Language Models.” COLM 2024. arXiv:2402.17762
  6. DeepSeek-V3. DeepSeek-AI (2024). “DeepSeek-V3 Technical Report.” arXiv:2412.19437
  7. Load balancing without an auxiliary loss. Wang, L., Gao, H., Zhao, C., Sun, X., & Dai, D. (2024). “Auxiliary-Loss-Free Load Balancing Strategy for Mixture-of-Experts.” arXiv:2408.15664
  8. Cohen’s kappa. Cohen, J. (1960). “A Coefficient of Agreement for Nominal Scales.” Educational and Psychological Measurement, 20(1), 37–46.
  9. Semantic routing. Olson, M. L., Ratzlaff, N., Hinck, M., Luo, M., Yu, S., Xue, C., & Lal, V. (2025). “Probing Semantic Routing in Large Mixture-of-Expert Models.” arXiv:2502.10928
  10. LoopMoE. Chen, W., Li, T., Huang, W., et al. (2026). “LoopMoE: Unifying Iterative Computation with Mixture-of-Experts for Language Modeling.” arXiv:2606.04438
  11. GLM-5.4. Z.ai (2026). “GLM-5.4: Toward Generalized Coding with Our First Loop Transformer.” z.ai

Related