On the Fundamental Limits of Prefill-Based Decoding Length Prediction
Not on the map. Why?
Abstract (arXiv)
Predicting how many tokens a large language model (LLM) will decode, using only prefill-phase hidden states, is a key primitive for inference scheduling. We show that current benchmarks conflate predictor quality with task hardness: when the target model, dataset, or sampling configuration changes, reported accuracy collapses even though the predictor is unchanged. We trace this instability to an overlooked error source---the inherent stochasticity of autoregressive decoding---and derive bounds that every prefill-side method must obey. Our analysis treats decoding as a stopped stochastic process. The per-step stopping probability of a response is not constant but ramps up over hundreds of steps, so the decode length inherits a central limit theorem from the many local decisions that determine where a response ends; this yields per-prompt normality with an explicit error term, together with an affine variance law σ=αμ+b whose slope is the coefficient of variation of the number of response segments. Empirically, the normal law reproduces the per-prompt MAE and the central mass of the decode-length distribution to within a few percent, and the residual departures from normality (mild right skew, slight excess kurtosis) are the ones predicted by the sampling-noise correction. Under fixed model, data, and sampling conditions, a broad design space of predictors (MLP, EGTP, FiLM, soft-label, and Mixture-of-Experts variants) converges to similar performance close to the bound, confirming that system error dominates model error. We argue for a benchmarking protocol that fixes the model, data, and sampling parameters and that reports relative-error metrics alongside absolute ones. Code and analysis tools are available at https://github.com/ShwStone/DecodingPredict.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Builds on 12 of its 16 references that are in the map. Submitted 29 Oct 2026.
Builds on
12 of 16 references.
References · 12
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 6,685
- 2017Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layercited by 3,767
- 2017FiLM: Visual Reasoning with a General Conditioning Layercited by 2,620
- 2024DistServe: Disaggregating Prefill and Decoding for Goodput-optimized Large Language Model Servingcited by 683
- 2023Fast Distributed Inference Serving for Large Language Modelscited by 157
- 2023Scaling Sentence Embeddings with Large Language Modelscited by 95
- 2023Response Length Perception and Sequence Scheduling: An LLM-Empowered LLM Inference Pipelinecited by 92
- 2024Efficient Interactive LLM Serving with Proxy Model-based Sequence Length Predictioncited by 74
- 2024Don't Stop Me Now: Embedding Based Scheduling for LLMscited by 44
- 2024Meta-Task Prompting Elicits Embeddings from Large Language Modelscited by 19
- 2026Predicting LLM Output Length via Entropy-Guided Representationscited by 13
- 2025ELIS: Efficient LLM Iterative Scheduling System with Response Length Predictorcited by 12
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2024A Thorough Examination of Decoding Methods in the Era of LLMs
- 2026Learning Adaptive LLM Decoding
- 2026Shallow Prefill, Deep Decoding: Efficient Long-Context Inference via Layer-Asymmetric KV Visibility
- 2026When are likely answers right? On Sequence Probability and Correctness in LLMs
- 2025From Bits to Rounds: Parallel Decoding with Exploration for Diffusion Language Models
- 2026The Diminishing Returns of Early-Exit Decoding in Modern LLMs
- 2026Decode-Branch Transformers: Decoupling the Primary Prefill Path from Additional Decode Computation
- 2025SimLens for Early Exit in Large Language Models: Eliciting Accurate Latent Predictions with One More Token