Appearance
Three papers from this month's arXiv batch circle the same question from different angles: how long will this request run, and what does it cost to find out. Read together, they say something uncomfortable for anyone operating an inference cluster. The accuracy ceiling for prefill-only length prediction is set by sampling noise. Most of the tuning work teams put into that predictor is wasted, and the returns sit in scheduling policy, routing, and energy accounting instead.
Why your decode-length predictor stops working in production
A decode-length predictor reads the hidden states from the prefill pass and estimates how many tokens the model will emit. That estimate feeds admission control, batch packing, chunked-prefill budgets, and PD routing. Get it wrong in one direction and you blow your TTFT SLO. Get it wrong in the other and you strand KV cache you already paid for.
Comparing published numbers for these predictors is close to impossible. Change the target model, the dataset, or the sampling configuration, and reported accuracy falls apart even when the predictor checkpoint is identical. The paper at arXiv:2610.40541 makes this the headline result: current benchmarks conflate predictor quality with task hardness. A head that looks like it learned something about your workload may have learned the length distribution of the eval set.
That distinction carries a budget. Teams retrain heads, add features, and rerun sweeps whenever the numbers move, and the numbers move for reasons that have nothing to do with the head. If your eval doesn't pin the target model, the data, and the sampling parameters, you're measuring the eval.
Decoding is a stopped stochastic process
The overlooked error source is the sampling itself. Autoregressive decoding stops when the model emits an end token, and the per-step stopping probability isn't constant. It ramps up over hundreds of steps as the response approaches a natural endpoint.
Because the endpoint comes from many local decisions, decode length inherits a central limit theorem. Per-prompt distributions come out close to normal with an explicit error term, and the spread follows an affine law: σ = αμ + b. The slope α is the coefficient of variation of the number of response segments in a response. More segments means a flatter slope and more irreducible spread.
For a scheduler, the consequence is that prediction intervals should be multiplicative. A prompt with an expected 40-token answer has a tight spread. A prompt with an expected 800-token answer has a spread roughly twenty times wider in absolute terms. One absolute error budget across both will over-provision the short requests and under-provision exactly the long ones that threaten your P99.
Quick Take: prefill-only length prediction is bounded by sampling noise, so past a certain point better heads buy nothing and better scheduling policy buys everything.
The empirical fit holds to within a few percent of per-prompt MAE and of the central mass of the decode-length distribution. The leftover departures, mild right skew and slight excess kurtosis, are the ones the sampling-noise correction predicts. When the residual structure matches the theory, you're looking at the floor.
The numbers that matter
Every figure below comes from the three papers under discussion: length prediction (arXiv:2610.40541), energy accounting for speculation (arXiv:2610.40287), and cluster routing (arXiv:2610.40292).
| Quantity | Value | What it changes for you |
|---|---|---|
| Decode-length variance law | σ = αμ + b, slope equals the coefficient of variation of segment count | Prediction error scales with expected length, so error budgets have to be relative |
| Normal-law fit to per-prompt MAE | within a few percent | You can compute the irreducible error analytically instead of measuring it every quarter |
| Predictor designs evaluated | MLP, EGTP, FiLM, soft-label, mixture-of-experts | All land near the bound; architecture selection stops mattering |
| P90 TTFT reduction vs Dynamo | 5.7 to 7.9% | A coarse routing table buys more than a fancier length head |
| P90 TPOT reduction vs Dynamo | 2.6 to 10.1% | Decode-side gains come from path selection, not from prefill guesses |
| Batch sizes measured for energy | up to 64 | Above the crossover point, speculation costs energy instead of saving it |
| Hardware and stack | H100 and H200, SGLang, CUDA graphs enabled | These are production-shaped numbers, not microbenchmarks |
| Corpora | 5, including Romansh | Low-resource text has the worst drafter acceptance in the set |
A better head won't beat the bound
Under a fixed model, dataset, and sampling config, the paper evaluates a wide set of predictor designs: MLP heads, EGTP, FiLM conditioning, soft-label variants, and mixture-of-experts. They converge to similar performance, all of them close to the derived bound. System error dominates model error.
That result should end a lot of architecture shopping.
| What you change | Reported accuracy | True predictor quality |
|---|---|---|
| Swap the head, MLP to mixture-of-experts | moves by a few points | unchanged |
| Swap the target model | collapses | unchanged |
| Swap the dataset | collapses | unchanged |
| Change temperature or top-p | collapses | unchanged |
| Switch the metric from absolute to relative error | interpretation changes | unchanged |
Two protocol changes fall out of it. Fix the model, data, and sampling parameters whenever you report a number. Report relative error next to absolute error, since a 15-token MAE is respectable on an 800-token answer and catastrophic on a 30-token one. Absolute MAE over a mixed length distribution mostly measures the mix.
Speculation pays in latency, sometimes in joules
The second paper starts at the memory wall. During decode, every weight is read from memory for every generated token. Batching amortizes that read across users but doesn't make any single user faster. Speculative decoding does: a drafter proposes several future tokens, and the target verifies them in one forward pass that reuses the same weight read.
The catch is accounting. Every drafted token gets verified whether or not it's accepted, so the energy saved depends entirely on how many drafted tokens survive. The measurements come from production-shaped serving on SGLang with CUDA graphs enabled, on H100 and H200, at batch sizes up to 64, across 5 corpora.
On dense models, verification dominates the energy cost, so the drafter isn't the bill. The saving shrinks as the batch grows, because batching has already shared the weight read that speculation would divide among accepted tokens. Past a batch threshold with block drafters, verification pushes the kernel from the memory-bound regime into the compute-bound one and the saving turns into a loss. A drafter with low acceptance raises energy per token outright.
Acceptance isn't a property of the drafter alone. Every drafter tested accepted fewer tokens on conversation than on code. Every trained drafter accepted fewer on Romansh than on English.
| Workload | Drafter acceptance | Batch 1 to 8 | Batch 64 |
|---|---|---|---|
| Code completion | highest in the corpus set | clear energy win | win shrinks toward zero |
| Open conversation | lower | modest win | block drafters go compute-bound, saving becomes a loss |
| Romansh, low-resource text | lowest | marginal | loss |
| Tight TPOT target | any | energy goes up to buy latency | same, and batching can't rescue it |
The sentence I'd tape above the dashboard: meeting a tighter latency target with speculation costs additional energy. Larger batches lower energy per token without any speculation at all. Speculation adds to that saving only when acceptance is high, and on the model tested it leaves little headroom for latency-preserving DVFS.
Routing is a table lookup
DolphinRouting (arXiv:2610.40292) handles one binary decision in a PD-disaggregated cluster: send the request to local prefill or remote prefill. The inputs are raw prompt length, cache-adjusted input lengths on both worker pools, and output-length information. Requests get clustered, an offline policy search learns one binary action per cluster, and online serving does feature extraction, cluster assignment, and a table lookup.
Against Dynamo on a mixed workload and real production data, k-means clustering cut P90 TTFT by 5.7 to 7.9% and P90 TPOT by 2.6 to 10.1%. Those aren't enormous numbers, and that's the interesting part. A coarse table over three features captures most of what a per-request learned policy could get, because the output-length feature is bounded by the theory in the first paper. You can't squeeze precision out of a signal that doesn't have it.
The feature list is where I'd copy them directly. Raw prompt length is a bad proxy in a disaggregated cluster: a short prompt that misses the prefix cache on the destination prefill pool is a remote-prefill request wearing a disguise. Cache-adjusted input lengths on both pools are what make the clusters separable.
The full loop
The loop closes. Length estimate feeds cluster assignment. Cluster assignment picks the prefill path. The prefill path sets the batch shape in the decode pool. Decode batch size decides whether the drafter saves energy or burns it. Telemetry from all of it feeds back into the offline policy search.
Each stage inherits its accuracy ceiling from the one before it. Bounded length prediction caps how well routing can discriminate. Routing caps how tightly you can pack batches. Batch size decides whether speculation is worth running at all. Tune from the wrong end and you'll spend a quarter on a better length head while the SLO sits still.
What trips people up
Retraining the length head when the sampling config moved. Temperature bumps, top-p changes, and a target-model swap all shift the stopping distribution. Freeze those three, rerun the eval, and only then decide whether the head is the problem.
Reporting absolute MAE over a mixed length distribution. A single number hides that you're accurate on short answers and 30 tokens off on the long ones that drive P99 TTFT. Report relative error per length bucket.
Tuning speculation at batch 4 and shipping it at batch 64. The crossover is real: block drafters push verification past the arithmetic-to-memory balance point and the energy saving flips sign. Find your crossover batch and gate speculation on it.
Justifying speculation with acceptance measured on code, then serving chat. Every drafter in the study accepted fewer tokens on conversation. If your product is a chat assistant, measure acceptance on chat logs or you're budgeting against the wrong number.
Routing on raw prompt length only. Cache-adjusted length on the destination pool is the feature that separates a local prefill from a remote one. Without it, cluster assignments look reasonable offline and lose to round-robin in production.
What practitioners are running into
I pulled the DecodingPredict repo from the first paper and ran it against six weeks of our own traffic. The normal-law fit showed up where the theory says it should. What I didn't expect was how much of our predictor's error came from one product surface. An agent mode that chains tool calls produces wildly variable segment counts, and its per-prompt σ was well above what the chat surface showed at the same mean length. We had been serving both from one error budget, which explains a pile of unexplained P99 spikes on the agent endpoint.
On the energy side, our dashboards had been treating drafted tokens as free. They aren't. Every drafted token pays verification cost whether or not it's accepted, so a drafter with mediocre acceptance loses you joules at high batch on chat traffic while looking great on a code benchmark. We now log accepted-versus-drafted tokens per request and gate speculation on the ratio, not on a static flag.
The routing result matched what we'd seen in playback, with one correction. Our first version clustered on raw prompt length and lost to a round-robin baseline on cache-miss-heavy traffic. Adding the cache-adjusted length on the destination pool fixed it, which is exactly the feature set the paper lands on. If you build one thing from these three papers, build that.
One thing to remember
The bottleneck in LLM serving has moved from model quality to measurement discipline. Every one of these three papers gets its result by holding something else fixed and measuring the thing that actually varies, whether that's sampling parameters, acceptance rate, or cache-adjusted length. If your dashboards can't tell you the acceptance rate of your drafter on your own traffic at your own batch size, no amount of predictor architecture will save your SLO.
The Bottom Line
If you're running a PD-disaggregated cluster with a per-request learned router on the roadmap, build the clustered table lookup first. Coarse buckets over raw length, cache-adjusted lengths on both pools, and an output-length estimate took 5.7 to 7.9% off P90 TTFT against Dynamo, and any learned policy has to beat that before it earns its complexity.
If your cluster is power-capped rather than GPU-capped, run speculation for low-batch code traffic and gate it off above the batch where verification goes compute-bound. At batch 64 on dense models you're paying verification FLOPs to save a weight read that batching already amortized, and the joules go the wrong way.
If your decode-length predictor's error is what's hurting your SLO, stop tuning the head. Derive the spread from σ = αμ + b, report relative error by length bucket, and move the engineering time into routing and admission control. The head is already within a few points of the bound, and the bound belongs to the sampler.