cs.AIAug 16, 2026

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

Authors: Feiyang Ren, Shengtao Wen, Yu Tian, Yuanning Cui, Xiaofeng Cao, Jiangchao Yao, Xu Chen, Xiang Chen

Organizations: MIIT Key Laboratory of Pattern Analysis and Machine Intelligence, College of Computer Science and Technology, Nanjing University of Aeronautics and Astronautics · Tsinghua University · Nanjing University of Information Science and Technology

Abstract

Efficient LLM serving is often bottlenecked by the need to pad sequences to a fixed maximum length, and this wastes compute and degrades throughput. Output length prediction enables length-aware scheduling and reduces overhead. Existing methods, including entropy-guided token pooling, rely on token-level entropy but overlook semantic differences between tokens, causing them to underweight important tokens and overemphasize less informative tokens. We introduce ESTP(Entropy-and-Semantic Token Pooling), a lightweight framework that combines entropy representations with attention-based semantic representations. By deriving both representations directly during prefill, ESTP captures uncertainty and semantic importance while incurring negligible additional inference latency and memory overhead compared with methods using external auxiliary models. On the ForeLen benchmark, ESTP outperforms baseline methods, achieves better prediction accuracy and lower prediction errors across most scenarios. When integrated with a length-aware scheduler in end-to-end system tests, it further improves overall throughput and reduces the padding ratio.

Figures & tables

Appendix figures & tables8 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. Scheduling LLM Inference with Uncertainty-Aware Output Length Predictions

    Apr 1, 2026Haoyu Zheng, Yongqiang Zhang, Fangcheng Fu +7LLM Inference SchedulingLLM Uncertainty Estimation

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

    Apr 9, 2026Jing Wang, Yu-Yang Qian, Ke Xue +3LLM ServingRobust Estimation