arjun10g commited on
Commit
3503708
·
verified ·
1 Parent(s): dd87d60

Sync 1 audio file(s) and transcripts

Browse files
audio/expert-prefetch.mp3 CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:2067b0bde072d4461156a072f5070f1006a9016b56d3e0799aa315c4d687fc3d
3
- size 28002948
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e4c60b4eed6bf3ae52290d57447ed49e46367e30fb87723b278b8955f7c25243
3
+ size 21785316
lectures/expert-prefetch.md CHANGED
@@ -2,7 +2,7 @@
2
 
3
  ### A lecture on the September 2026 expert-prefetch session
4
 
5
- *Approx. 40 minutes spoken. Written to be listened to: the numbers are rounded and said aloud, the equations are described in words, and the run identifiers, file paths, and hashes live in the written session notes rather than here. The central result is deliberately modest. The predictors improve offline route quality, but on the measured Qwen 3.5 workload they do not beat a plain reactive cache on end-to-end token time.*
6
 
7
  ---
8
 
@@ -10,227 +10,211 @@
10
 
11
  Welcome back. Today's subject is a systems experiment with a negative headline and a lot of useful detail underneath it. The question is whether a mixture-of-experts language model can predict which experts it is about to need, early enough to move their weights into place before they are used.
12
 
13
- Here is the setup. A mixture-of-experts model contains many expert feed-forward networks, but each token is routed to only a small handful of them. Call the total number of experts E, and the number the router actually picks K. In Qwen 3.5, a token chooses eight experts out of two hundred and fifty-six. The experts that are not chosen may live in host memory, or in some slower tier, and so the runtime would love to transfer the experts it is about to need while the GPU is busy doing useful work on the current layer.
14
 
15
- There are two possible sources of advantage here, and it matters that we keep them apart. The first is prediction: can we identify the future expert IDs before the native router reaches that layer? The second is lead time: can we issue those transfers early enough that the bytes actually arrive before the expert is consumed?
16
 
17
- Those are genuinely different problems. A predictor can be statistically accurate and still lose, if computing its score costs more time than the transfer slack it creates. And the reverse is also true: a weak signal that arrives a whole token early can be worth more than a strong signal that shows up a few microseconds before it is needed. So the session measured route quality, predictor cost, cache traffic, transfer behaviour, and end-to-end token time as five separate quantities, and refused to collapse them into one number.
18
 
19
  ## A short chronology
20
 
21
- The session came in two parts. The first part closed out an earlier experiment on Qwen 3, the thirty-billion-parameter model with three billion active. In that run, the native router was top eight, the residency cache held thirty-two experts, and the corrected arm applied a rank thirty-two correction at source layers twenty through forty-six, which is twenty-seven layers. The twenty earlier source layers kept the incumbent predictor.
22
 
23
- The numbers from that closeout set the tone for everything after. The router-based prefetch arm averaged about forty-two point zero five milliseconds per token. The corrected arm averaged about forty-one point nine five. And the reactive least-recently-used arm, the plain cache with no prediction at all, averaged about forty-eight point nine. So the corrected arm was about a quarter of a percent faster than the router arm, with a ninety-five percent interval running from roughly minus one point seven percent to plus one point two percent, over three request means. That interval straddles zero. The experiment supports a large gap between reactive LRU and router-based prefetch on its own workload, but it does not establish a confident incremental speedup from the predictor.
24
 
25
- The second and main part of the session expanded the evidence ladder for two newer models, Qwen 3.5 and Qwen 3.8. We used a request-held-out capture from Qwen 3.5 to fit and select correction artifacts. We replayed carrier and mixer variants on Qwen 3.8. We measured predictor heads on an H100. We confirmed transfer-copy behaviour. And we ran three end-to-end breadth settings on Qwen 3.5, proposing eight, twelve, and sixteen candidate experts per token per layer.
26
 
27
  ## Routing, and where the prediction error lives
28
 
29
- Let me set up the notation, because one decomposition explains the whole predictor programme.
30
 
31
- At a target layer, call it t, the native router receives a hidden state, h sub t, and computes one score per expert. In simplified notation, the score vector z sub t equals the router weight W sub t times the hidden state h sub t. That vector has one entry per expert. The native route is the IDs of the largest K entries, together with the router's normalised weights. Prefetching does not change this decision, ever. The native router remains the authority at the point of consumption. Speculation only proposes bytes to stage early.
32
 
33
- Now suppose we want to use an earlier source layer, call it s, to predict the route at the later target layer t. The deployed predictor, which keeps no extra state at all, computes what we call the anchor: A equals W sub t times h sub s. That is the target layer's router weight applied to the source layer's hidden state.
34
 
35
- The exact target score differs from that anchor by a residual increment. Write d equals W sub t times the difference, h sub t minus h sub s. Then the true score is simply z sub t equals A plus d.
36
 
37
- This is the key to everything that follows. Cross-layer predictors can see A. What they cannot see is d, the increment the network will add between the source layer and the target layer, and that unseen increment is where their error lives. So every method in the session can be read as an attempt to estimate some useful component of d, subject to two conditions: the estimate has to transfer from the training requests to held-out requests, and its compute has to fit inside the lead-time budget.
38
 
39
- ## K versus M
40
 
41
- Two letters are easy to confuse, so let me separate them explicitly. K is the native number of experts the model actually consumes. M is the proposed candidate breadth: the size of the shortlist we hand to admission and cache filtering. M is not the number of transfers that reach the backend. Resident experts, duplicate IDs, byte budgets, and slack admission can all reduce the actual issues below M.
42
 
43
- When M equals K, the proposed set has to be exactly right to contain the complete native set. Raising M increases the chance of covering all the native experts, but it can increase admitted bytes and lower candidate precision.
44
 
45
- One consequence is worth stating up front, because it looks like a bug in the tables and is not. For Qwen 3.8, native truth is top ten. Therefore full-set coverage at M equals eight is mathematically zero: eight IDs cannot contain ten distinct native IDs. That does not mean an M-equals-eight predictor covers no cache misses. Cache-aware recall is a different question, because some of the native experts may already be resident. The report keeps those measures separate, and so will I.
46
 
47
  ## The timing pipeline
48
 
49
- It helps to picture the runtime as a timeline. Early in the token, at the source layer, we make a prediction. That prediction goes through admission and a cache filter, and the surviving candidates are issued as speculative transfers. Their bytes then become progressively ready. Meanwhile, and independently, the model keeps progressing through its layers until the exact native router runs at the target layer. At the consumption deadline, one question is asked: is the required expert ready? If yes, we do the expert compute. If no, we fall back to a reactive miss fetch, and then compute.
50
 
51
- Two words in that description are doing careful work. Predicted means an ID was proposed. Ready means the required bytes had arrived, in the usable layout and synchronisation state, by the expert-consumption deadline. The native router does not wait for speculative bytes; model progress and speculation proceed independently, and a transfer that arrives after the router but before the expert is consumed can still help. A predicted expert can be too late, partially ready, evicted, or simply unnecessary. The implementation tracks readiness separately from prediction, so that a high recall number cannot be mistaken for hidden transfer time.
52
 
53
  The available lead may be one layer, several layers, or a whole token. A later source layer has a better state but less time. An earlier source layer has more time but a less faithful state. This is why the session ranked methods by lead, and measured each target layer on its own, rather than collapsing all layers into one predictor score.
54
 
55
  ## The metrics, and why they are kept apart
56
 
57
- Here are the route metrics, and the reason each one exists.
58
 
59
- Recall at M is the fraction of native expert IDs that appear in the candidate set: the size of the intersection of the candidates with the native set, divided by K.
60
 
61
- Candidate precision is the fraction of proposed candidates that are native: the same intersection, divided by M. Admission and resident filtering can make actual issues smaller than M, but the offline definition is based on the proposed set.
62
 
63
- Full-set coverage is the probability that every native ID is contained in the candidate set. It is stricter than recall.
64
 
65
- Cache-aware miss coverage is the fraction of experts absent from the current resident cache that are correctly proposed and admitted early. Of all these, it is the metric closest to what we actually want, which is avoiding reactive fetches.
66
 
67
- Issues and waste count the candidate issues per layer, and the issues that do not cover a cache miss. Waste can rise even as recall rises.
68
 
69
- Readiness is whether an issued block has arrived sufficiently by the consumption deadline. A candidate that arrives after that deadline is a miss for latency purposes.
70
 
71
- And finally the traffic ratio. The final report defines it as candidate issues plus remaining reactive misses, divided by the matched reactive misses of the baseline. A ratio below one would mean fewer total expert transfers than the reactive baseline. Recall alone cannot tell you this.
72
 
73
- To see why the separation matters, consider an M-equals-sixteen method with ninety-five percent recall that admits many extra experts, next to an M-equals-eight method with lower recall that covers a useful fraction of the native set with far fewer proposed bytes. Quality and traffic have to sit side by side. The report never converts offline quality into an unmeasured speedup.
74
 
75
  ## Predictor families
76
 
77
- The incumbent, also called the router proxy, is just the anchor: A equals W sub t times h sub s. The session screened several ways to correct its score.
78
 
79
- The first is bias correction. On the training rows, compute the projected increment for each row, and take the mean. Call that mean b. The corrected score is A plus b. This captures a systematic direction shared across examples. It costs one vector add of length E, and it can be fused into an existing score epilogue.
80
 
81
- The second is velocity correction. The source hidden state has a local change from the previous layer, h sub s minus h sub s-minus-one. Project that velocity through the target router to get v. After centring the training residual and the velocity, fit a single scalar gamma by least squares: the sum over rows of v times the residual, divided by the sum of v squared plus a small epsilon. The score becomes A plus b plus gamma times v. The method asks whether the direction the state just moved predicts the direction it will move next. It is cheap, but the held-out results show that a fixed velocity correction is not automatically better than the incumbent.
82
 
83
- The third, and the main Qwen 3.5 candidate, is fused low-rank drift correction. It learns a small number of directions in the source state that correlate with the projected residual, then applies a rank-r correction along those directions. Three implementation forms have to be distinguished, because they cost different amounts.
84
 
85
- The algebraic form computes the anchor, projects the centred state through the learned basis U, and multiplies by the fitted matrix Gamma, as explicit extra work.
86
 
87
- The augmented-rows form appends the correction features to the score computation itself. That reduces launch structure, but the remaining projection and epilogue work does not disappear.
88
 
89
- The dense, or precomposed, form folds the correction into an effective dense weight and bias. That is only possible when the correction basis uses the same input state as the anchor. The effective weight keeps the router's E-by-H shape, and the arm owns an extra precomposed copy and bias alongside the native router weights.
90
 
91
- None of these runs a separate full target router, and the hardware comparison keeps the three paths distinct.
92
 
93
- Qwen 3.8 adds a wrinkle. Its hidden state is a four-stream hyper-connection carrier of width ten thousand two hundred and forty, whereas the router's input is two thousand five hundred and sixty wide. So the code tested several projections from that carrier before applying the target router weight. Source mix passes the carrier through the source layer's own mixer, producing the source layer's mixed input. Target mix passes it through the target layer's mixer, which uses more target-specific information, but reads the full carrier and pays the mixer's cost. Anchor is the ordinary router input used by the deployed proxy. Carrier keeps the full ten-thousand-wide state as the correction basis. Because that basis is four times wider than the router anchor, it cannot be collapsed into the same dense folded head, and a target mixer is a nonlinear transformation whose runtime work stays on the bill.
94
 
95
- One phrase to hold on to: zero stored artifact. The target-mix arms use mixer weights that are already resident in an expert-streaming design, so they add no persistent weight artifact. But the state read width and the runtime mixer work still matter. Zero stored bytes does not mean zero cost.
96
 
97
  ## Low-rank correction, step by step
98
 
99
- Let me walk through the fit, with shapes, because the shapes are what make the precomposition identity work. Take a training batch at one source-target pair with n rows. The source states form a matrix of n by H. The target states are also n by H. The router weight is E by H.
100
 
101
- Step one, project the target increment: D equals the difference of the target and source states, times the router weight transposed. D is n by E.
102
 
103
- Step two, take the column mean of D to get the bias b, of length E, and centre the residual: R equals D minus b.
104
 
105
- Step three, centre the correction basis. If the basis is the source state, X equals the source states minus their mean, n by H. For a Qwen 3.8 carrier correction, X can instead be n by ten thousand two hundred and forty, while the score anchor remains the narrower router input.
106
 
107
- Step four, form the cross-covariance C equals X transposed times R, which is H by E, and take its singular vectors. Keep the first r left singular vectors as the basis U, of shape H by r.
108
 
109
- Step five, project each centred input into that subspace: Z equals X times U, giving n by r.
110
 
111
- Step six, solve a regularised least-squares problem for the epilogue matrix. Gamma equals the solution of Z transposed Z plus epsilon times the identity, against Z transposed R. Gamma is r by E. The implementation sets epsilon to one millionth of the trace of Z transposed Z plus one, and uses a linear solve rather than forming an inverse.
112
 
113
- At inference, the correction is Z times Gamma, and the final score is A plus b plus Z Gamma.
114
 
115
- Each requested rank gets its own independently fitted Gamma. A rank sixty-four Gamma is never truncated down to rank thirty-two, even though the nested bases share their leading columns.
116
-
117
- Now the identity. For the same-basis case, with a scalar shrinkage alpha, the score is h times W transposed, plus alpha times the bracket b plus the centred h times U Gamma. Distribute, and the h terms collect: the score equals h times the quantity W transposed plus alpha U Gamma, plus alpha times the quantity b minus mu U Gamma, where mu is the mean we subtracted. So the effective weight is W transposed plus alpha U Gamma, and the effective bias is alpha times b minus mu U Gamma. The folded head still has the router's E-by-H weight shape. That is why a same-basis correction can be precomposed into one dense multiply, and why a ten-thousand-wide carrier basis cannot be silently treated as the narrower anchor.
118
-
119
- The important statistical choice is still the constrained cross-covariance fit. A full high-capacity fit can memorise request-specific drift and then fail on a new request. As a guard, the session also ran a shuffled-pairing control with a fixed seed: break the pairing between source state and increment, refit, and see whether the same structured correction survives. If it does, it is an artifact, not evidence that the source predicts the drift.
120
-
121
- One more detail that prevents a double-counting mistake. Offline score shrinkage multiplies the fitted correction by a scalar. Qwen 3.5 selected a shrinkage of zero point seven five. The runtime then uses a lambda of one, because the selected artifact already contains that shrinkage. Applying the factor twice would be wrong.
122
 
123
  ## Model geometry and the selected configurations
124
 
125
- The expert payload size in bf16 comes from the three feed-forward projections: three times the hidden size times the intermediate size times two bytes.
126
-
127
- For Qwen 3.5, the thirty-five-billion-parameter model with three billion active, that is two hundred and fifty-six experts, native top eight, forty layers, a hidden size of two thousand and forty-eight, and an intermediate size of five hundred and twelve, which works out to about six mebibytes per expert. For Qwen 3.8 Flash Next, it is five hundred and twelve experts, native top ten, forty-eight layers, a hidden size of two thousand five hundred and sixty, and an intermediate size of six hundred and forty, which is about nine point four mebibytes per expert.
128
 
129
- As a concrete memory check, holding eight Qwen 3.5 experts for one token and one layer is forty-eight mebibytes before cache metadata, alignment, and staging. That arithmetic is a payload example, not a measured transfer time, and not a claim about how many candidates admission will actually issue.
130
 
131
- The Qwen 3.5 offline capture sampled three hundred and eighty-four decode steps per request after sixty-four warm-up steps. Three requests were used for fitting, two for validation, and three for test, with warm rows excluded from both fitting and scoring. The end-to-end runs, by contrast, use greedy sixty-four-token continuations. The selection metric was validation request-mean recall, with the smaller rank breaking ties. The globally selected policy was rank one hundred and twenty-eight at breadth eight, and rank sixty-four at breadths twelve and sixteen, all at shrinkage zero point seven five. That is a global rank policy; it is not a claim that every layer independently chose the same rank.
132
 
133
- The Qwen 3.8 carrier replays used two reciprocal request folds, five hundred and twelve decode steps per request with four hundred and eighty scored after a warm-up of thirty-two, nineteen target layers, and twenty stored state layers. The focused rank grid compared source mix, target-mix anchor, and target-mix carrier. The report labels the rank sixty-four target-mix result as descriptive, not as a whole-model deployment choice.
134
 
135
- The full tuning grid screened ranks sixteen, thirty-two, sixty-four, and one hundred and twenty-eight; shrinkages of one half, three quarters, and one; leads of one, two, and four layers; and cache capacities of ninety-six and two hundred and fifty-six. The deployed headline remains lead one. And, importantly, measured cost was not used to select the frozen rows. Cost is reported afterwards, to decide whether a quality choice is practical.
136
 
137
  ## Offline results
138
 
139
- Let me read the offline table as a story rather than a grid. Everything here is lead one, with the Qwen 3.5 replay at a cache of ninety-six and the Qwen 3.8 replay at a cache of thirty-two. For each method I will give recall, then full-set coverage, then the total-transfer ratio against the reactive baseline.
140
 
141
- Start with Qwen 3.5. The incumbent, at breadth eight, has recall of about seventy-nine percent, full-set coverage of about fourteen percent, and a transfer ratio of about one point four nine. The selected correction at breadth eight lifts that to about eighty percent recall and about sixteen percent full-set coverage, with a slightly lower transfer ratio of about one point four five. At breadth twelve, the incumbent has about eighty-nine percent recall and fifty-three percent coverage at a ratio of two point two eight; the selected method has about ninety-one percent recall and fifty-seven percent coverage at two point two six. At breadth sixteen, the incumbent reaches about ninety-three percent recall and sixty-nine percent coverage at a ratio of three point two six; the selected method reaches about ninety-four percent recall and seventy-three percent coverage at essentially the same ratio.
142
 
143
- So the correction helps, consistently, by a percentage point or two of recall and a few points of full-set coverage, and it never makes traffic worse. But notice the ratios. Even at breadth eight, the prefetcher is moving about one and a half times the bytes of the reactive baseline, and at breadth sixteen more than three times.
144
 
145
- Now Qwen 3.8, all at rank sixty-four. Source mix at breadth eight has about sixty-five percent recall and a ratio of one point two three. Target-mix anchor is much stronger: about seventy-three percent recall at breadth eight with a ratio of one point one two; about ninety percent recall and forty percent full-set coverage at breadth twelve; and about ninety-five percent recall and sixty-six percent coverage at breadth sixteen, with a ratio of about two point zero one. Target-mix carrier matches target-mix anchor almost exactly on every one of those numbers. The router-only controls sit below their corrected counterparts: source-mix control at about fifty-nine percent recall at breadth eight, target-mix control at about seventy percent.
146
 
147
- Remember that every Qwen 3.8 full-set coverage at breadth eight is zero by definition, because native truth is top ten. And notice the same lesson as before: at breadth sixteen, target-mix anchor reaches ninety-five percent recall and sixty-six percent full-set coverage, but the total-transfer ratio is still about two. That ratio is why quality alone cannot justify a runtime claim.
148
 
149
- Two worked examples make the table concrete. For Qwen 3.8 target-mix anchor at breadth eight, a recall of zero point seven two five means about seven and a quarter native IDs per row on average, out of ten. Candidate precision is therefore seven and a quarter out of eight, about ninety-one percent. For the breadth-sixteen row, total transfer is about seven point four issues plus about zero point eight remaining misses, divided by about four point one matched reactive misses, which comes to about two point zero one. These are replay quantities, not physical bus measurements.
150
-
151
- Three cautions about the offline numbers. First, the Qwen 3.5 offline artifact was generated with sampling, at temperature one, top-k twenty, top-p zero point nine five, with a fixed seed, while the end-to-end workload uses its own frozen greedy configuration; do not pool the two as if they were one sample. Second, native IDs are the truth. Conversions between bf16 and fp32, normalisation, and softmax tie behaviour can make a reconstructed raw-logit top-k disagree with the native IDs, so the trace keeps the native logits, scores, and indices, and a diagnostic oracle that peeks at the future target state is used only as a ceiling, never deployed. Third, the stock Hugging Face control produced output-token mismatches whose cause was not established, so it is reported descriptively and excluded from the paired comparisons. Exact token identity was established among the six staged arms, across one hundred and eight rows, three requests, and two passes; it was not established against the stock control.
152
 
153
  ## Hardware and transfer measurements
154
 
155
  The hardware side has three pieces: predictor microbenchmarks, transfer measurements, and the end-to-end runs, which get their own section.
156
 
157
- The environment was an H100 PCIe with one hundred and fourteen streaming multiprocessors, Torch two point six with CUDA twelve point four, and Transformers five point seventeen. The Qwen 3.5 end-to-end runs used bf16 model execution, while the predictor head ran in fp32 with TF32 disabled. Peak allocated process memory was about seventy-six gigabytes, including the resident-control scope. That is a process-memory measurement, not a bus measurement.
158
-
159
- The predictor microbenchmarks use the CUDA-graph path, with wall time including ID readback and synchronisation, and input update time excluded. CUDA-event timing includes enqueue gaps, so it is not kernel-only time.
160
-
161
- For Qwen 3.5 at layer one and rank one hundred and twenty-eight, the incumbent takes roughly seventy-two microseconds of wall time per call, with about twenty-nine microseconds of event time, across all three breadths. The dense folded head is essentially the same: about seventy-one to seventy-five microseconds wall, about thirty to thirty-one microseconds event. The algebraic low-rank two-stage path is slower, at about eighty microseconds wall and forty microseconds event. On owned bytes, the incumbent holds about two megabytes, the dense folded head about four point two, and the two-stage path about three point three.
162
-
163
- For Qwen 3.8 at layer twenty-nine and rank sixty-four, the picture is starker. The incumbent takes about seventy-six microseconds. The target-router mixer control alone takes about one hundred and twelve. The low-rank two-stage path takes about one hundred and thirty. The dense folded head takes about one hundred and eighteen or nineteen. Owned bytes climb from about five megabytes for the incumbent to between thirty-one and thirty-seven megabytes for the target-mix variants, because the mixer's cost stays in those rows. Older source-mix or legacy target-mix microbenchmarks cannot be reused as final results. And to repeat the scope: these are resident replay measurements of the predictor head alone. They do not include the full model and do not establish end-to-end token speed.
164
 
165
- On methodology, the final predictor bench had thirty invocations and six hundred and ninety-six raw timing rows. Each row is twenty rounds of sixty-four samples, which are repeated measurements within one invocation, not one thousand two hundred and eighty independent observations. The report uses medians of the invocation summaries.
166
 
167
- Now transfers. The exploratory screen covered two hundred and sixteen cells: one, two, or four host threads; one, two, or four requested streams; packed contiguous versus tiled payloads at two hundred and fifty-six kibibytes and one mebibyte; five rounds per cell. The confirmatory run then fixed one host thread, one active CUDA stream, and a one-mebibyte tile, for eighteen cells: three strategies, three candidate sizes, two models, over thirty paired rounds.
168
 
169
- The confirmation result is narrow but clean. On Qwen 3.5, batched contiguous copies were about three point six percent faster than baseline at breadth eight, about two point six percent faster at breadths twelve and sixteen, with tight intervals. Tiled copies were slower, by about eleven to fourteen percent. On Qwen 3.8, batched contiguous was one to two percent faster, with the breadth-sixteen interval just touching zero, and tiled was again about twelve percent slower. For scale, a baseline copy at Qwen 3.5 breadth eight took just under one millisecond, and about one point nine milliseconds at breadth sixteen.
170
 
171
- And here is the caveat that keeps this honest. Those payloads were synthetic byte buffers sized like bf16 expert payloads. They were not actual model expert gathers. The result supports a narrow copy-path observation, not a GPU or model speedup claim. Also, command coalescing in this context means merging software transfer commands, which is a different thing from warp-level GPU memory coalescing. The CPU replay merged only two commands out of more than forty-one thousand fetches, about five thousandths of a percent, and no GPU memory-coalescing gain was measured.
172
 
173
- ## Qwen 3.5 end-to-end results
174
 
175
- This is the section the whole session was built to reach. Three end-to-end runs tested breadths of eight, twelve, and sixteen. The router-based prefetch arm uses the same breadth as the corrected arm, and the reactive LRU arm with a ninety-six-expert cache is the baseline. In what follows, a positive effect means the first arm is slower.
176
 
177
- Router-based prefetch versus reactive LRU: at breadth eight, the router arm was about five point one percent slower, with an interval of roughly four point three to five point nine. At breadth twelve, about seven point five percent slower. At breadth sixteen, about eight point eight percent slower. So on this workload, prefetching with the plain router proxy loses to a reactive cache, and it loses by more as breadth grows.
178
 
179
- Corrected precomposed versus router: at breadth eight, the corrected arm was about zero point one two percent faster, with an interval from minus zero point two two to minus zero point zero two. At breadth twelve, about zero point four percent slower, with an interval spanning zero. At breadth sixteen, about zero point zero eight percent faster, with a tiny interval that excludes zero. These are real but minuscule effects.
180
 
181
- Corrected precomposed versus reactive LRU: about five percent slower at breadth eight, about seven point nine percent slower at breadth twelve, about eight point seven percent slower at breadth sixteen.
182
 
183
- Each interval uses three request means and the t distribution with two degrees of freedom, so the unit of inference is the request, not the token. The tiny corrected-versus-router effects at breadths eight and sixteen have intervals excluding zero, but they are small, workload-specific comparisons with n equal to three. Breadth twelve also carried substantial drift between passes, with a pooled coefficient of variation of nearly seven percent; it is reported descriptively rather than rejected by a post-hoc threshold. None of this offsets the direct measured result: every corrected arm is slower than reactive LRU.
184
 
185
- Precomposition does matter, though. The raw augmented-rows corrected arm was about four percent slower than the router arm at every breadth, and between nine and thirteen percent slower than LRU. Folding the correction into the dense head removes most of that extra cost. It just does not create an LRU win.
186
 
187
- Meanwhile the engine counters show the quality movement is real. In-engine recall for the corrected arm was about eighty-one percent versus eighty percent for the router at breadth eight, about ninety-two versus ninety-one at breadth twelve, and about ninety-five versus ninety-four at breadth sixteen. Yet fetched-byte totals were about one point one three, one point three nine, and one point seven five times those of the same-breadth LRU arm. These are engine software counters across six request-and-pass cells, including prefill. They are not PCIe or HBM bus traffic, and they do not imply that the predictor improved token latency.
188
 
189
- Noise diagnostics were descriptive: pooled coefficients of variation of about zero point one five percent at breadth eight, about six point nine percent at breadth twelve, and about zero point three five percent at breadth sixteen, with no preregistered acceptance threshold. The earlier failed diagnostic attempt and failed provider attempts remain in the evidence trail rather than being silently replaced.
190
 
191
- And Qwen 3.8 whole-model end-to-end was not claimed at all. Its checkpoint is roughly three hundred and sixty gigabytes, including more than one hundred and ten gibibytes of non-expert weights, which does not fit the current single-GPU resident harness. Its head, cache-replay, and transfer evidence are useful for design screening. They cannot be promoted to a model-level speedup.
192
 
193
  ## Engineering repairs and reproducibility
194
 
195
- A large share of the session went into making the results auditable, and the repair chronology is part of the result. Every run has a config, a seed, a model revision, a source identity, and a result receipt. The final reducer checks the configured identity, token, artifact, and noise fields, pairs rows inside each request-and-pass cell, and refuses to fall back to an older run. Configs are frozen once they produce evidence; corrections go into new configs, and artifact-side hashes and launch records preserve the reconstruction key. The final head and transfer receipts carry remote artifact hash verification. The end-to-end lifecycle did not have a declared remote digest, so its local artifacts were independently hashed and checked for source and config membership rather than described as remotely verified.
196
 
197
- Several practical catches mattered. The stock Hugging Face control produced token mismatches and was excluded from paired comparisons. A cache-aware replay and a runtime coalescing replay have different scopes, so their counters must not be asserted equal. Predictor-owned bytes, workspace bytes, graph pools, persistent model weights, and physical bus traffic are five different memory quantities. The packed contiguous copy was verified byte-exact for its synthetic source and destination, which says nothing about an arbitrary gather until the real manifest path is exercised. Lifecycle records bind a batch to the exact config and source, and the H100 instances and ephemeral keys were deleted once the artifacts were banked.
198
 
199
- The code repairs included teaching the native Qwen 3.5 discovery path to recognise the actual top-k router tuple and preserve native logits, scores, and indices, rather than guessing tuple shapes, since DeepSeek's layout differs. Bf16 hidden exports now keep their bit patterns with explicit dtype provenance. The capture path was pinned to Transformers five point seventeen and made portable across file naming conventions. Fit-only coefficient exports read frozen fits and selection metadata only, and are hash-checked. An interrupted test-scoring resume reads held-out states and binds the checkpoint plus the frozen fit and selection hashes without refitting. The shared hyper-connection, candidate, and packed device-to-host handling were all repaired before the final measurement.
200
 
201
- For context on the Qwen 3.8 carrier mixer, since it matters for the cost argument: it is not a linear reshape. With four streams, the code first applies grouped RMS normalisation and a learned weight, producing a concatenated state of width ten thousand two hundred and forty. It then computes a low-dimensional projection through a SiLU, a sigmoid gate from that projection, reshapes the state and the gate to four streams of two thousand five hundred and sixty, and averages the gated streams. That is nonlinear work, which is why target-mix cost stays on the bill and cannot be absorbed into the same linear folded head as the anchor.
202
 
203
- Reproducibility has two levels. The final report can be regenerated from the banked compact evidence: receipts, CSVs, selected coefficient artifacts, source code, and provenance. Re-running the original capture and fits requires the excluded raw hidden-state inputs, the model weights, and suitable GPU access, which the archive does not contain. The cumulative recorded project cost estimate was about one hundred and seventy-two dollars against a two-hundred-dollar cap; that is a ledger estimate, not a bill.
204
 
205
  ## What the results mean
206
 
207
  The session supports five conclusions.
208
 
209
- First, predictor quality and runtime benefit are separate things. The Qwen 3.5 correction improves offline recall and slightly improves the in-engine counters, but every measured corrected arm is still slower than reactive LRU. Candidate transfer traffic and fixed issue overhead are plausible explanations, and so is the fact that LRU already captures repeated routes with a long, token-scale lead. Physical bus saturation and the exact contribution of each latency component were not established; the PCIe witness used invalid sampling.
210
 
211
- Second, the strongest Qwen 3.8 offline rows are the target-mix rows, but they pay mixer and head work and still carry a transfer ratio above one. A target-mix carrier row can match target-mix anchor on quality, yet it reads the full carrier. The state representation, the stored artifact, and the runtime compute must all be charged.
212
 
213
- Third, rank is a hardware-and-software decision. Rank one hundred and twenty-eight helps Qwen 3.5 at breadth eight offline, while rank sixty-four is the selected row at breadths twelve and sixteen. Selection used held-out recall, and measured head cost was applied afterwards to judge practicality. The correct deployment decision combines held-out behaviour with measured cost, rather than treating rank in isolation.
214
 
215
- Fourth, transfer layout matters, but the measured transfer result is narrow. A synthetic packed contiguous copy can be a few percent faster, and tiling can be substantially slower. The data path still needs a real manifest, arbitrary-ID handling, coalescing, event dependencies, and consumer-safe cancellation before that number becomes a runtime claim.
216
 
217
- Fifth, the negative result is useful. It tells us that improving a predictor's score is not enough when the reactive cache and the transfer schedule already dominate. The next design has to optimise the entire chain: lead time, cache state, admission, readiness, transfer commands, and native compute, together.
218
 
219
  ## What comes next
220
 
221
  These are priorities, not completed results.
222
 
223
- One: run a real Qwen 3.5 end-to-end comparison with a preregistered noise threshold and enough independent requests to resolve sub-percent corrected-versus-router effects.
224
 
225
- Two: instrument physical PCIe and HBM traffic and expert readiness timestamps, so that software speculative-byte counters can be separated from actual bus movement.
226
 
227
- Three: exercise packed and coalesced transfer on arbitrary manifest-selected expert blocks, including non-contiguous IDs and cancellation.
228
 
229
- Four: measure a real dependent-fetch round trip and a priority DMA path; the synthetic screen cannot provide those.
230
 
231
- Five: test Qwen 3.8 with a sharded or multi-GPU harness that can hold the full model, preserving exact token identity and the carrier-mixer provenance.
232
 
233
- Six: re-evaluate breadth and rank jointly under measured bandwidth slack. A method should be admitted only when its candidate bytes can fit before the consumer deadline.
234
 
235
  Seven: compare source mix and target mix under a fixed predictor budget, charging mixer compute, carrier read bytes, cache state, and readiness, rather than comparing recall alone.
236
 
@@ -238,30 +222,30 @@ Seven: compare source mix and target mix under a fixed predictor budget, chargin
238
 
239
  A few terms, briefly, in case any slipped past.
240
 
241
- The anchor, or router proxy, is the early score computed by applying the target router's weight to an earlier layer's state. The carrier is Qwen 3.8's four-stream hyper-connection state, ten thousand two hundred and forty wide. Candidate breadth, M, is the number of speculative expert IDs proposed per token per layer. Native K is the number of experts the model's exact router selects. Full-set coverage is the probability that every native ID is in the candidate set. Lead is the distance between the prediction source and the target consumption point. Readiness is whether the required bytes are present in a consumer-usable state. A reactive miss is a required expert that is absent, or not ready, when native routing asks for it. Shrinkage is a scalar damping of a fitted correction; Qwen 3.5 selected three quarters. Rank r is the number of learned state directions used by the low-rank correction. End to end means the full token workload, including model execution and the transfer path. A microbench is an isolated predictor or transfer measurement with a narrower scope.
242
 
243
  ## Self-check questions
244
 
245
  Ten questions, with brief answers after each.
246
 
247
- One. For Qwen 3.8, why is full-set coverage at breadth eight zero while recall at eight is still a valid metric, and how does that differ from cache-aware miss coverage? Because eight proposed IDs cannot contain ten native IDs; recall still measures the overlap, while cache-aware miss coverage conditions on which IDs are already resident.
248
 
249
- Two. Write the score decomposition: the target score equals the anchor plus the projected increment. Which term is unseen by the anchor? The increment, the router weight applied to the difference between the target and source states.
250
 
251
  Three. Why can a predictor with higher recall still increase total transfer? Extra candidates cost bytes and commands, and the cache state changes the value of each candidate.
252
 
253
- Four. In the low-rank fit, what are the shapes of D, U, Z, and Gamma? D is n by E, U is H by r, Z is n by r, and Gamma is r by E.
254
 
255
- Five. Why does target-mix carrier quality require charging state-read bytes and mixer work even when stored artifact bytes are zero? Because zero persistent artifact does not mean zero reads or zero compute.
256
 
257
- Six. Why are the Qwen 3.5 offline sampled rows not interchangeable with the end-to-end workload rows? They have different sampler and workload scopes, and different units of independence.
258
 
259
- Seven. What does a negative corrected-versus-router interval establish, and what does it fail to establish with three requests? It describes a small paired effect on this workload; it is not a broad speedup proof.
260
 
261
- Eight. Why can the packed contiguous transfer result not be reported as a model-level GPU gain? The payload is synthetic and contiguous, unlike arbitrary expert gathers.
262
 
263
- Nine. Which native decision remains authoritative in the runtime pipeline? The exact native router and its native weights.
264
 
265
- Ten. What additional evidence is required before Qwen 3.8 can receive a whole-model end-to-end claim? A sharded or multi-GPU harness that fits the model, with exact provenance and paired end-to-end controls.
266
 
267
  That is the session. The headline is negative, the evidence is careful, and the next experiment is already written down. Thanks for listening.
 
2
 
3
  ### A lecture on the September 2026 expert-prefetch session
4
 
5
+ *Approx. 30 minutes spoken. Written to be listened to: the few numbers that matter are rounded and said in words, the mathematics is described rather than written, and the run records, file names, and exact figures live in the written session notes rather than here. The headline is deliberately modest. The predictors got better at guessing, but on the workload we measured they did not beat a plain reactive cache.*
6
 
7
  ---
8
 
 
10
 
11
  Welcome back. Today's subject is a systems experiment with a negative headline and a lot of useful detail underneath it. The question is whether a mixture-of-experts language model can predict which experts it is about to need, early enough to move their weights into place before they are used.
12
 
13
+ Here is the setup. A mixture-of-experts model contains many expert feed-forward networks, but each token is routed to only a small handful of them. In the smaller of the two models we studied, a token chooses eight experts out of two hundred and fifty-six. The experts that are not chosen may live in host memory, or in some slower tier, and so the runtime would love to fetch the experts it is about to need while the graphics card is busy doing useful work on the current layer.
14
 
15
+ There are two possible sources of advantage here, and it matters that we keep them apart. The first is prediction: can we identify the future experts before the model's own router reaches that layer? The second is lead time: can we issue those transfers early enough that the bytes actually arrive before the expert is consumed?
16
 
17
+ Those are genuinely different problems. A predictor can be statistically accurate and still lose, if computing its guess costs more time than the head start it creates. And the reverse is also true: a weak signal that arrives a whole token early can be worth more than a strong signal that shows up a few microseconds before it is needed. So the session measured route quality, predictor cost, cache traffic, transfer behaviour, and end-to-end token time as five separate quantities, and refused to collapse them into one number.
18
 
19
  ## A short chronology
20
 
21
+ The session came in two parts. The first part closed out an earlier experiment on the older thirty-billion-parameter model. In that run, the corrected predictor was applied to the second half of the network, and the earlier layers kept the incumbent predictor.
22
 
23
+ The numbers from that closeout set the tone for everything after. The router-based prefetcher and the corrected prefetcher were essentially tied: the corrected one was about a quarter of a percent faster per token, and the uncertainty around that figure comfortably included zero. Both of them, though, were clearly faster than the plain reactive cache, the arm with no prediction at all, which was roughly a sixth slower per token. So the experiment supports a large gap between reactive caching and router-based prefetching on that workload, but it does not establish a confident extra speedup from the correction.
24
 
25
+ The second and main part of the session expanded the evidence for two newer models, which I will call the smaller model, Qwen three point five, and the larger model, Qwen three point eight. We captured the smaller model's hidden states, fit correction artifacts on some requests, and selected them on others that the fit had never seen. We replayed several predictor variants on the larger model. We measured predictor heads on a data-centre graphics card. We confirmed how transfer copies behave. And we ran three end-to-end settings on the smaller model, proposing eight, twelve, and sixteen candidate experts per token per layer.
26
 
27
  ## Routing, and where the prediction error lives
28
 
29
+ Let me set up the idea in words, because one decomposition explains the whole predictor programme.
30
 
31
+ At any given layer, the model's router looks at the token's hidden state and produces one score per expert. The experts with the highest scores are the ones that run. Prefetching does not change this decision, ever. The router remains the authority at the moment the expert is consumed. Speculation only proposes bytes to stage early.
32
 
33
+ Now suppose we want to use an earlier layer to predict the route at a later layer. The deployed predictor, which keeps no extra state at all, does the simplest possible thing: it takes the later layer's router and applies it to the earlier layer's hidden state. We call that score the anchor.
34
 
35
+ The true score at the later layer differs from the anchor by an increment: it is whatever the router would add once the network has transformed the state between the two layers. So the real score is the anchor plus that increment.
36
 
37
+ This is the key to everything that follows. Cross-layer predictors can see the anchor. What they cannot see is the increment, the change the network will make between the two layers, and that unseen increment is where their error lives. So every method in the session can be read as an attempt to estimate some useful piece of that increment, subject to two conditions: the estimate has to carry over from the training requests to requests it has never seen, and its compute has to fit inside the lead-time budget.
38
 
39
+ ## Native experts versus proposed candidates
40
 
41
+ Two ideas are easy to confuse, so let me separate them explicitly. One is the native count: the number of experts the model actually consumes for a token, eight in the smaller model and ten in the larger. The other is the candidate breadth: the size of the shortlist we hand to admission and cache filtering. The breadth is not the number of transfers that reach the hardware. Experts already resident, duplicate guesses, byte budgets, and admission rules can all shrink the actual transfers well below the shortlist.
42
 
43
+ When the shortlist is exactly as long as the native count, it has to be perfectly right to contain the complete native set. Making the shortlist longer raises the chance of covering all the native experts, but it can increase the bytes admitted and lower the precision of each guess.
44
 
45
+ One consequence is worth stating up front, because it looks like a bug in the results and is not. The larger model consumes ten experts per token. Therefore a shortlist of eight can never contain all of them; full coverage at breadth eight is zero by definition. That does not mean an eight-wide predictor is useless. Some of the ten may already be sitting in the cache, so the question that matters is how many of the *missing* experts it catches. The report keeps those measures separate, and so will I.
46
 
47
  ## The timing pipeline
48
 
49
+ It helps to picture the runtime as a timeline. Early in the token, at the source layer, we make a prediction. That prediction goes through admission and a cache filter, and the surviving candidates are issued as speculative transfers. Their bytes then become progressively ready. Meanwhile, and independently, the model keeps progressing through its layers until its own router runs at the target layer. At the moment the expert is needed, one question is asked: are its bytes ready? If yes, we compute. If no, we fall back to a reactive fetch, wait, and then compute.
50
 
51
+ Two words in that description are doing careful work. Predicted means an expert was proposed. Ready means its bytes had arrived, in the usable layout, by the time they were needed. The router does not wait for speculative bytes; model progress and speculation proceed independently, and a transfer that arrives after the router has spoken but before the expert actually runs can still help. A predicted expert can be too late, partially ready, evicted, or simply unnecessary. The implementation tracks readiness separately from prediction, so that a high accuracy number cannot be mistaken for hidden transfer time.
52
 
53
  The available lead may be one layer, several layers, or a whole token. A later source layer has a better state but less time. An earlier source layer has more time but a less faithful state. This is why the session ranked methods by lead, and measured each target layer on its own, rather than collapsing all layers into one predictor score.
54
 
55
  ## The metrics, and why they are kept apart
56
 
57
+ Here are the measures, and the reason each one exists.
58
 
59
+ Recall is the fraction of the experts the model actually used that appeared on the shortlist.
60
 
61
+ Precision is the fraction of the shortlist that turned out to be used.
62
 
63
+ Full coverage is stricter than recall: did the shortlist contain every native expert, not just most of them?
64
 
65
+ Cache-aware miss coverage is the fraction of experts that were *not* already in the cache which the shortlist correctly proposed in time. Of all these, it is the measure closest to what we actually want, which is avoiding reactive fetches.
66
 
67
+ Issues and waste count the transfers actually issued, and the ones that turned out not to cover a miss. Waste can rise even as recall rises.
68
 
69
+ Readiness is whether an issued transfer had arrived by the time it was needed.
70
 
71
+ And finally the traffic ratio: all the transfers the prefetcher caused, including the reactive fetches it failed to prevent, divided by the transfers a plain reactive cache would have made. A ratio below one would mean the prefetcher moved fewer bytes than the reactive cache. Recall alone cannot tell you this.
72
 
73
+ To see why the separation matters, imagine a sixteen-wide shortlist with excellent recall that drags in many unneeded experts, next to an eight-wide shortlist with lower recall that covers a useful share of the native set with far fewer bytes. Quality and traffic have to sit side by side. The report never converts offline quality into an unmeasured speedup.
74
 
75
  ## Predictor families
76
 
77
+ The incumbent is just the anchor: the later router applied to the earlier state. The session screened several ways to correct it.
78
 
79
+ The first is bias correction. On the training data, look at the increment the network added between the two layers, and take its average across examples. Add that average to the anchor. This captures a systematic direction shared across tokens. It costs one vector addition and can be folded into the score computation almost for free.
80
 
81
+ The second is velocity correction. The hidden state has just moved from the previous layer to the current one. Project that recent movement through the later router, and ask whether the direction the state just moved predicts the direction it will move next. A single scalar, fit by least squares, decides how much of that velocity to add. It is cheap, but on requests it had not seen, a fixed velocity correction was not reliably better than the incumbent.
82
 
83
+ The third, and the main candidate for the smaller model, is a low-rank drift correction. It learns a small number of directions in the earlier state that correlate with the increment, and applies a correction only along those directions. The number of directions is called the rank. Three implementation forms have to be distinguished, because they cost different amounts.
84
 
85
+ The algebraic form computes the anchor, projects the state onto the learned directions, and applies the correction as explicit extra work.
86
 
87
+ The augmented form appends the correction features to the score computation itself. That saves some launch overhead, but the projection work does not disappear.
88
 
89
+ The precomposed form folds the correction into an effective dense weight and bias, so that the corrected score costs exactly one matrix multiply, the same as the incumbent. This is only possible when the correction reads the same input state as the anchor. The effective weight keeps the router's shape; the arm simply owns an extra precomposed copy alongside the native router weights.
90
 
91
+ None of these runs a separate full router at the target layer, and the hardware comparison keeps the three paths distinct.
92
 
93
+ The larger model adds a wrinkle. Its layers pass along a wide carrier state, four streams side by side, which each layer's mixer narrows down to the router's input. So the code tested several ways to read that carrier before applying the target router. Source mix runs the carrier through the *earlier* layer's mixer. Target mix runs it through the *later* layer's mixer, which uses more target-specific information, but reads the full carrier and pays the mixer's cost. Anchor uses the ordinary narrow router input, as in the deployed proxy. Carrier keeps the full wide state as the correction basis. Because that basis is four times wider than the router's input, it cannot be folded into the same precomposed head, and a mixer is a nonlinear transformation whose runtime work stays on the bill.
94
 
95
+ One phrase to hold on to: zero stored artifact. The target-mix arms use mixer weights that are already resident, so they add no persistent weights of their own. But the state they read is wider and the runtime mixer work still matters. Zero stored bytes does not mean zero cost.
96
 
97
  ## Low-rank correction, step by step
98
 
99
+ Let me walk through the fit in words, because the structure is what makes the precomposition trick work.
100
 
101
+ Take a batch of training tokens at one pair of layers. For each token, project the increment, the change in state between the two layers, through the later router. That gives the increment in score space.
102
 
103
+ Take the average of those score increments across the batch. That is the bias. Subtract it out, so what remains is the part of the increment that varies from token to token.
104
 
105
+ Now centre the earlier states as well, and ask: which directions in the earlier state move together with the remaining score increment? Form the cross-covariance between the two and take its leading singular directions. Keep only the top few. That handful of directions is the learned basis, and how many you keep is the rank.
106
 
107
+ Project each earlier state onto those directions, and fit a small regularised least-squares map from the projected coordinates to the score increment. That map is the correction matrix. At inference, the corrected score is the anchor, plus the bias, plus the projected state times the correction matrix.
108
 
109
+ Each rank is fitted independently; a rank-sixty-four correction is never a truncated rank-one-twenty-eight one, even though the nested bases share their leading directions.
110
 
111
+ Now the precomposition trick. When the correction reads the same state as the anchor, the whole expression, anchor plus bias plus projected correction, is linear in the state. So the terms that multiply the state can be collected into one effective weight, and the constant terms into one effective bias. The corrected head becomes one dense multiply, the same shape and the same cost as the incumbent router. That is why a same-basis correction can be precomposed, and why a correction that reads the wide carrier cannot be quietly treated as if it read the narrow anchor.
112
 
113
+ Two safeguards mattered. First, a full high-capacity fit can memorise the drift of the particular requests it was trained on and then fail on a new request; the constrained low-rank fit is what keeps it honest, together with selection on requests the fit never saw. Second, the session ran a shuffled control: break the pairing between each state and its increment, refit, and see whether the same structured correction survives. If it does, it is an artifact, not evidence that the earlier state predicts the drift.
114
 
115
+ One more detail that prevents a double-counting mistake. The fitted correction is damped by a shrinkage factor, three quarters for the smaller model. The runtime then applies the artifact as is, because the selected artifact already contains that shrinkage. Applying the factor twice would be wrong.
 
 
 
 
 
 
116
 
117
  ## Model geometry and the selected configurations
118
 
119
+ An expert's weights, in half precision, come to about six megabytes in the smaller model and about nine and a half megabytes in the larger one. The smaller model has two hundred and fifty-six experts per layer across forty layers and uses eight per token; the larger has five hundred and twelve experts across forty-eight layers and uses ten.
 
 
120
 
121
+ As a concrete memory check, holding eight of the smaller model's experts for a single token at a single layer is nearly fifty megabytes before any cache metadata, alignment, or staging. That arithmetic is a payload example, not a measured transfer time, and not a claim about how many candidates admission will actually issue.
122
 
123
+ The smaller model's offline capture recorded a few hundred decode steps per request after a warm-up. Three requests were used for fitting, two for validation, and three held back for testing, with warm-up rows excluded throughout. Selection used validation recall, averaged per request, with the smaller rank breaking ties. The chosen policy was rank one hundred and twenty-eight at breadth eight, and rank sixty-four at breadths twelve and sixteen, all at shrinkage three quarters. That is a global policy across layers; it is not a claim that every layer independently chose the same rank.
124
 
125
+ The larger model's replays used two requests as reciprocal folds, about twenty target layers in the second half of the network, and compared source mix, target-mix anchor, and target-mix carrier. Its rank-sixty-four target-mix result is descriptive, not a deployment choice.
126
 
127
+ The full tuning grid screened four ranks, three shrinkages, leads of one, two, and four layers, and two cache sizes. The deployed headline remains lead one. And, importantly, measured cost was not used to select the frozen rows. Cost is reported afterwards, to decide whether a quality choice is practical.
128
 
129
  ## Offline results
130
 
131
+ Let me tell the offline results as a story rather than a table.
132
 
133
+ For the smaller model, the incumbent predictor already recalls about four fifths of the native experts with an eight-wide shortlist, about nine tenths with twelve, and a little more with sixteen. The learned correction lifts each of those by a percentage point or two, and lifts full coverage by a few points more, without ever making traffic worse. So the correction helps, consistently and modestly.
134
 
135
+ But look at the traffic. Even at breadth eight, the prefetcher moves about one and a half times the bytes of the plain reactive cache. At breadth sixteen it moves more than three times as many. The shortlist buys recall with bytes.
136
 
137
+ For the larger model, all at rank sixty-four, target mix is clearly the strongest family. With a sixteen-wide shortlist it recalls about ninety-five percent of the native experts and fully covers the set about two thirds of the time. Reading the full carrier instead of the narrow anchor matches that quality almost exactly, but no better. Source mix trails well behind, and the router-only controls sit below their corrected counterparts. And remember that at breadth eight, full coverage for this model is zero by definition, because it uses ten experts per token.
138
 
139
+ The lesson repeats: even the best larger-model row, at ninety-five percent recall, still moves about twice the bytes of the reactive cache. That ratio is why quality alone cannot justify a runtime claim.
140
 
141
+ Three cautions about the offline numbers. First, the offline capture was generated with sampling, while the end-to-end workload uses deterministic greedy decoding; the two are separate samples and must not be pooled. Second, the model's own routing decisions are the ground truth. Reconstructing the route from raw scores can disagree with the model because of precision conversions and tie-breaking, so the traces keep the model's native decisions, and a diagnostic oracle that peeks at the future state is used only as a ceiling, never deployed. Third, a stock reference implementation of the model produced slightly different output tokens for reasons that were never established, so it was reported descriptively and excluded from the paired comparisons. Exact token identity was confirmed among all six staged arms; it was not confirmed against that reference.
 
 
142
 
143
  ## Hardware and transfer measurements
144
 
145
  The hardware side has three pieces: predictor microbenchmarks, transfer measurements, and the end-to-end runs, which get their own section.
146
 
147
+ The predictor microbenchmarks time the predictor head on its own, on a single data-centre graphics card, with the model itself not running. For the smaller model, the precomposed correction costs the same as the incumbent, roughly seventy microseconds per call including synchronisation, and the algebraic two-stage version costs about ten percent more. So precomposition really does make the correction free at the head.
 
 
 
 
 
 
148
 
149
+ For the larger model the picture is starker. The incumbent costs about seventy-five microseconds. Anything that runs the target mixer costs half again as much or more, well over a hundred microseconds, and owns several times as many bytes, because the mixer's work stays in those rows. Older microbenchmarks that did not charge the mixer cannot be reused as final results. And to repeat the scope: these are measurements of the predictor head alone. They do not include the model and do not establish end-to-end token speed.
150
 
151
+ On methodology, each timing row is many repeated calls within a single invocation, not that many independent observations, and the report uses medians across invocations.
152
 
153
+ Now transfers. An exploratory screen varied host threads, transfer streams, and payload layout: packed and contiguous versus split into tiles. The confirmatory run then fixed one host thread, one stream, and one tile size, and compared three copy strategies at three candidate sizes on both models, over thirty paired rounds.
154
 
155
+ The result is narrow but clean. Batching the candidate experts into one contiguous copy was a few percent faster than copying them one by one, between one and four percent depending on model and breadth. Splitting the copies into tiles was slower, by about twelve percent. For scale, a baseline copy of eight of the smaller model's experts took just under a millisecond.
156
 
157
+ And here is the caveat that keeps this honest. Those payloads were synthetic byte buffers sized like expert weights. They were not actual expert gathers from the model. The result supports a narrow copy-path observation, not a model speedup claim. Also, coalescing in this context means merging software transfer commands, which is a different thing from the memory coalescing that happens inside the graphics card. The replay merged almost none of the commands, a handful out of tens of thousands, and no on-card coalescing gain was measured.
158
 
159
+ ## End-to-end results
160
 
161
+ This is the section the whole session was built to reach. Three end-to-end runs on the smaller model tested shortlists of eight, twelve, and sixteen. Each run compared three arms: the plain reactive cache, router-based prefetching, and the corrected, precomposed prefetcher.
162
 
163
+ The first finding: router-based prefetching lost to the reactive cache, and it lost by more as the shortlist grew. About five percent slower per token at breadth eight, about seven and a half at twelve, and nearly nine at sixteen.
164
 
165
+ The second finding: the corrected prefetcher and the router-based one were tied. The differences were a tenth of a percent here and a few tenths there, sometimes in the corrected arm's favour, sometimes not, on three requests. Real perhaps, but tiny, and specific to this workload.
166
 
167
+ Which means the third finding follows directly: every corrected arm was also slower than the reactive cache, by the same five to nine percent.
168
 
169
+ Precomposition did matter. The un-folded version of the correction was about four percent slower than router prefetching at every breadth, and up to thirteen percent slower than the reactive cache. Folding the correction into the dense head removes most of that extra cost. It just does not turn a loss into a win.
170
 
171
+ Meanwhile the engine's own counters confirm that the quality gain is real: in-engine recall for the corrected arm was a point or so higher than the router's at every breadth. Yet the corrected arm fetched between about ten percent and seventy-five percent more bytes than the reactive cache, rising with breadth. Those counters are software tallies, not bus measurements, and they do not imply that the predictor improved token latency.
172
 
173
+ One of the three runs, at breadth twelve, showed noticeable drift between its two passes; it is reported descriptively rather than thrown out by a threshold invented after the fact. The earlier failed attempts remain in the evidence trail rather than being silently replaced.
174
 
175
+ And the larger model got no whole-model end-to-end claim at all. Its checkpoint is several hundred gigabytes, more than a hundred of them in non-expert weights, which does not fit the single-card harness. Its head, cache-replay, and transfer evidence are useful for design screening. They cannot be promoted to a model-level speedup.
176
 
177
  ## Engineering repairs and reproducibility
178
 
179
+ A large share of the session went into making the results auditable, and the repair chronology is part of the result. Every run carries its configuration, its seed, the exact model version, the exact source code identity, and a receipt of its results. The final analysis checks those identities, pairs rows within each request and pass, and refuses to fall back on an older run. Configurations are frozen once they have produced evidence; corrections go into new configurations. The head and transfer results were verified against remote hashes; the end-to-end lifecycle had no remote digest, so its local artifacts were hashed and checked for membership rather than described as remotely verified.
180
 
181
+ Several practical catches mattered. The stock reference implementation produced mismatched tokens and was excluded from paired comparisons. A cache-aware replay and a runtime coalescing replay have different scopes, so their counters must not be asserted equal. Predictor-owned bytes, workspace bytes, graph pools, persistent model weights, and physical bus traffic are five different memory quantities. The packed contiguous copy was verified byte-exact for its synthetic source and destination, which says nothing about an arbitrary gather until the real path is exercised. And the rented hardware and its temporary keys were deleted once the artifacts were banked.
182
 
183
+ The code repairs included teaching the capture path to read the smaller model's native routing decisions directly, rather than guessing at the structure, since a different model family lays them out differently. Half-precision exports now keep their exact bit patterns with explicit provenance. The capture path was pinned to one library version and made portable across operating systems. Coefficient exports read only frozen fits and selection metadata and are hash-checked. A resume path for interrupted scoring reads held-out states and binds the checkpoint to the frozen fit without refitting. Shared handling of the carrier, the candidates, and device-to-host copies was repaired before the final measurement.
184
 
185
+ For context on the larger model's mixer, since it matters for the cost argument: it is not a simple reshape. It normalises the four streams, projects them down, computes a gate, and averages the gated streams. That is nonlinear work, which is why target-mix cost stays on the bill and cannot be absorbed into the same linear folded head as the anchor.
186
 
187
+ Reproducibility has two levels. The final report can be regenerated from the banked compact evidence: receipts, tables, selected coefficient artifacts, source code, and provenance. Re-running the original capture and fits requires the raw hidden states, the model weights, and suitable hardware, which the archive does not contain.
188
 
189
  ## What the results mean
190
 
191
  The session supports five conclusions.
192
 
193
+ First, predictor quality and runtime benefit are separate things. The correction improves offline recall and nudges the in-engine counters, but every measured corrected arm is still slower than the reactive cache. Extra transfer traffic and the fixed cost of issuing transfers are plausible explanations, and so is the fact that a reactive cache already captures repeated routes with a long, token-scale lead. Where exactly the time goes was not established; the attempt to watch the bus directly used invalid sampling.
194
 
195
+ Second, the strongest larger-model rows are the target-mix rows, but they pay mixer and head work and still carry a transfer ratio above one. Reading the full carrier matches the anchor's quality, yet it reads four times as much state. The state representation, the stored artifact, and the runtime compute must all be charged.
196
 
197
+ Third, rank is a hardware-and-software decision. A higher rank helps the smaller model at the narrowest shortlist, while a lower rank was selected at the wider ones. Selection used held-out recall, and measured head cost was applied afterwards to judge practicality. The right deployment decision combines held-out behaviour with measured cost, rather than treating rank in isolation.
198
 
199
+ Fourth, transfer layout matters, but the measured transfer result is narrow. A synthetic packed copy can be a few percent faster, and tiling can be substantially slower. The data path still needs a real manifest, arbitrary expert selection, coalescing, event dependencies, and safe cancellation before that number becomes a runtime claim.
200
 
201
+ Fifth, the negative result is useful. It tells us that improving a predictor's guesses is not enough when the reactive cache and the transfer schedule already dominate. The next design has to optimise the entire chain, lead time, cache state, admission, readiness, transfer commands, and native compute, together.
202
 
203
  ## What comes next
204
 
205
  These are priorities, not completed results.
206
 
207
+ One: run a real end-to-end comparison with a noise threshold declared in advance and enough independent requests to resolve sub-percent effects.
208
 
209
+ Two: instrument the physical bus and expert readiness timestamps, so that software byte counters can be separated from actual bus movement.
210
 
211
+ Three: exercise packed and coalesced transfer on arbitrary, non-contiguous expert selections, including cancellation.
212
 
213
+ Four: measure a real dependent-fetch round trip and a priority transfer path; the synthetic screen cannot provide those.
214
 
215
+ Five: test the larger model on a sharded or multi-card harness that can hold it, preserving exact token identity and the carrier provenance.
216
 
217
+ Six: choose breadth and rank jointly under measured bandwidth slack. A method should be admitted only when its candidate bytes can arrive before the deadline.
218
 
219
  Seven: compare source mix and target mix under a fixed predictor budget, charging mixer compute, carrier read bytes, cache state, and readiness, rather than comparing recall alone.
220
 
 
222
 
223
  A few terms, briefly, in case any slipped past.
224
 
225
+ The anchor, or router proxy, is the early score computed by applying the target layer's router to an earlier layer's state. The carrier is the larger model's wide, four-stream state that each layer's mixer narrows down. Candidate breadth is the length of the speculative shortlist proposed per token per layer. The native count is the number of experts the model's own router actually selects. Full coverage means every native expert was on the shortlist. Lead is the distance, in layers or tokens, between where the prediction is made and where the expert is consumed. Readiness is whether the required bytes are present in a usable state when needed. A reactive miss is a required expert that is absent, or not ready, when the router asks for it. Shrinkage is a damping factor applied to a fitted correction. Rank is the number of learned state directions the low-rank correction uses. End to end means the full token workload, including model execution and the transfer path. A microbenchmark is an isolated predictor or transfer measurement with a narrower scope.
226
 
227
  ## Self-check questions
228
 
229
  Ten questions, with brief answers after each.
230
 
231
+ One. For the larger model, why is full coverage at breadth eight zero while recall at breadth eight is still meaningful, and how does that differ from cache-aware miss coverage? Because eight guesses cannot contain ten experts; recall still measures the overlap, while cache-aware miss coverage only counts the experts that were not already resident.
232
 
233
+ Two. In the score decomposition, anchor plus increment, which part is unseen by the predictor? The increment: the change the network makes to the state between the source layer and the target layer.
234
 
235
  Three. Why can a predictor with higher recall still increase total transfer? Extra candidates cost bytes and commands, and the cache state changes the value of each candidate.
236
 
237
+ Four. What does the low-rank fit actually learn? A small number of directions in the earlier state that move together with the score increment, and a map from those directions to a correction.
238
 
239
+ Five. Why does the carrier-reading correction need to be charged for state reads and mixer work even when it stores no extra weights? Because zero stored artifact does not mean zero reads or zero compute.
240
 
241
+ Six. Why are the offline sampled results not interchangeable with the end-to-end results? They have different sampling and workload scopes, and different units of independence.
242
 
243
+ Seven. What does a small corrected-versus-router difference on three requests establish, and what does it fail to establish? It describes a small paired effect on this workload; it is not a broad speedup proof.
244
 
245
+ Eight. Why can the packed contiguous transfer result not be reported as a model-level gain? The payload is synthetic and contiguous, unlike arbitrary expert gathers.
246
 
247
+ Nine. Which decision remains authoritative in the runtime pipeline? The model's own router and its native weights.
248
 
249
+ Ten. What additional evidence is required before the larger model can receive a whole-model end-to-end claim? A sharded or multi-card harness that fits the model, with exact provenance and paired end-to-end controls.
250
 
251
  That is the session. The headline is negative, the evidence is careful, and the next experiment is already written down. Thanks for listening.