cs.LGApr 9, 2026

Robust Length Prediction: A Perspective from Heavy-Tailed Prompt-Conditioned Distributions

Authors: Jing Wang, Yu-Yang Qian, Ke Xue, Chao Qian, Peng Zhao, Zhi-Hua Zhou

Organizations: State Key Laboratory of Novel Software Technology, Nanjing University, Nanjing 210023, China · School of Artificial Intelligence, Nanjing University, Nanjing 210023, China

Abstract

Output-length prediction is important for efficient LLM serving, as it directly affects batching, memory reservation, and scheduling. For prompt-only length prediction, most existing methods use a one-shot sampled length as the label, implicitly treating each prompt as if it had one true target length. We show that this is unreliable: even under a fixed model and decoding setup, the same prompt induces a prompt-conditioned output length distribution, not a deterministic scalar, and this distribution is consistent with heavy-tailed behavior. Motivated by this, we cast length prediction as robust estimation from heavy-tailed prompt-conditioned length distributions. We propose prompt-conditioned length distribution (ProD) methods, which construct training targets from multiple independent generations of the same prompt. Two variants are developed to reuse the served LLM's hidden states: \mbox{ProD-M}, which uses a median-based target for robust point prediction, and ProD-D, which uses a distributional target that preserves prompt-conditioned uncertainty. We provide theoretical justifications by analyzing the estimation error under a surrogate model. Experiments across diverse scenarios show consistent gains in prediction quality.

Figures & tables

Appendix figures & tables4 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. OUTLETS: Output-Length Prediction from Speculative Decoding Backbones

    Sep 1, 2026Weihuang Wen, Yingying Liu, Yichuan Liu +5LLM ServingLLM Inference Scheduling

  2. When Entropy Is Not Enough: Reclaiming Lost Semantics in LLM Output Length Prediction

    Aug 16, 2026Feiyang Ren, Shengtao Wen, Yu Tian +5LLM ServingLLM Inference Scheduling

  3. How Much is Left? LLMs Linearly Encode Their Remaining Output Length

    Jul 6, 2026Mohamed Amine Merzouk, Dmitri Carpov, Mirko Bronzi +2LLM Interpretability