Pinning One Domain's Experts Missed a Quarter of Other Languages' Picks

2026-10-17Hardware Notes

We proposed keeping a domain-specific set of experts resident for a 35B mixture-of-experts model. Replaying real routing traces refuted it: a set pinned from clinical English missed 25-29% of Spanish, Vietnamese and Tagalog picks, while a plain adaptive LRU pool in the same slots missed 1.0-3.5% everywhere. The cost that does matter is cold start.

Summary

To fit a 35B mixture-of-experts model on a 16 GB laptop, we plan to keep a pool of hot experts on the GPU and read the rest from SSD. Our first design pinned the experts that a target domain (clinical English plus several other languages) uses most. We tested that idea on real routing traces before building anything, and it fails: a set pinned from clinical English missed 25.0% of Spanish picks, 28.3% of Vietnamese and 29.0% of Tagalog at 64% residency. A plain least-recently-used pool with the same number of slots missed 1.0-3.5% on every language, pinned or not.

What we measured

We ran the model on a workstation with the engine's built-in expert tracer: six domains (clinical English, general English, Spanish, Chinese, Vietnamese, Tagalog), two prompts each (a seed prompt and a held-out one), 1,499 plain decoded tokens per trace, speculative decoding off. Each run took about 18 seconds under a 300-second limit. Then we replayed the decode traces through candidate pool policies, counting expert picks that missed. The pool is global across the 40 layers, sized as a share of all 10,240 experts.

residency per-pick miss, mean over domains layers stalling per token (clinical English, of 40)
50% 4.6% 12
64% 1.9% 6
75% 0.8% 3
90% 0.1% 0

A layer stalls if any of its eight picks misses, so per-pick hit rate has to be about 0.98 to stall under 15% of layers; that happens near 64% residency.

At 64% residency, counted on each domain's held-out prompt:

counted on pinned from clinical English LRU warmed on clinical English
clinical English 3.5% 2.3%
general English 9.2% 2.3%
Spanish 25.0% 1.3%
Chinese 13.6% 3.5%
Vietnamese 28.3% 1.0%
Tagalog 29.0% 1.4%

A pool warmed on any other domain scored within about a point of one warmed on the matching language. The experts a language needs are mostly found by recency within a few tokens; they are not a fixed per-language list.

The cost that does matter: cold start

From an empty pool at 64% residency, the first 16 decoded tokens miss 35-42% of picks, the first 64 miss about 20%, and the first 256 miss 6-9%. Warming the pool from any other domain's trace brings the first 16 tokens to 11-14% and the first 64 to 5-8%. Our traces do not include prefill, and our engine processes prompts token by token, which also warms the pool, so real cold start is probably better. We did not measure that.

Gotchas

The wrong decode mode hides the answer. Our first trace run used speculative decoding, so every pass was a multi-token verify pass and the simulator's plain-decode table came back empty. We reran with it off.

Model-written prompts are a convenience, not a decision set. The prompts come from a synthetic calibration file. The routing numbers are a first profile, not a clinical-text measurement.

The router is the 4-bit build's. A 2.5-bit build will route somewhat differently. We have not re-traced it.

We had proposed the pinned set an hour earlier. A design idea written with confidence is still a hypothesis.

Key takeaways

  1. Replay real routing traces before building a residency policy; they take minutes and contradict plausible designs.
  2. Prefer an adaptive pool over a per-domain pinned set; usage moves faster than domains do.
  3. Spend effort on cold start (a generic seed list), not on language-specific residency.
  4. Report stalled layers per token as well as miss rate, because a layer waits on its slowest pick.

Follow @robotnurseio on X for the short version.


Everything in these notes I also do for hire: local AI set up on hardware you own, configured on-site, then handed over with enough documentation that you do not need me afterward. If that sounds more useful than another weekend of reading forum threads, the details are at /work. No obligation from an email, and the posts stay free either way.

See pricing and book an audit →