Proceedings

Semi-Clairvoyant Scheduling of Speculative Decoding Requests to Minimize LLM Inference Latency

Download BibTeX Cite

Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence. Main Track. Pages 8554-8562.

https://doi.org/10.24963/ijcai.2025/951

Abstract

Speculative decoding accelerates Large Language Model (LLM) inference by employing a small speculative model (SSM) to generate multiple candidate tokens and verify them using the LLM in parallel. This technique has been widely integrated into LLM inference serving systems. However, inference requests typically exhibit uncertain execution time, which poses a significant challenge of efficiently scheduling requests in these systems. Existing work estimates execution time based solely on predicted output length, which could be inaccurate because execution time depends on both output length and token acceptance rate of verification by the LLM. In this paper, we propose a semi-clairvoyant request scheduling algorithm called Least-Attained/Perceived-Service for Speculative Decoding (LAPS-SD). Given a number of inference requests, LAPS-SD can effectively minimize average inference latency by adaptively scheduling requests according to their features during decoding. When token acceptance rate is dynamic and execution time is difficult to estimate, LAPS-SD maintains multiple priority queues and allows request execution preemption across different queues. Once the token acceptance rate becomes stable, LAPS-SD can accurately estimate the execution time and schedule requests accordingly. Extensive experiments show that LAPS-SD reduces inference latency by approximately 39% compared to state-of-the-art scheduling methods.

  1. [Agrawal et al., 2024] Amey Agrawal, Nitin Kedia, Ashish Panwar, Jayashree Mohan, Nipun Kwatra, Bhargav Gula- vani, Alexey Tumanov, and Ramachandran Ramjee. Tam- ing throughput-latency tradeoff in llm inference with sarathi-serve. In 18th USENIX Symposium on Operat- ing Systems Design and Implementation (OSDI 24), pages 117-134, 2024.
  2. [Alessandro Palla, 2023] Alessandro Palla. Chatbot instruc- tion prompts. https://huggingface.co/datasets/alespalla/ chatbot instruction prompts, 2023. Link
  3. [Austin et al., 2021] Jacob Austin, Augustus Odena, Maxwell Nye, Maarten Bosma, Henryk Michalewski, David Dohan, Ellen Jiang, Carrie Cai, Michael Terry, Quoc Le, et al. Program synthesis with large language models. arXiv preprint arXiv:2108.07732, 2021.
  4. [Bhendawade et al., 2024] Nikhil Bhendawade, Irina Be- lousova, Qichen Fu, Henry Mason, Mohammad Rastegari, and Mahyar Najibi. Speculative streaming: Fast llm infer- ence without auxiliary models. 2024.
  5. [Brown et al., 2020] Tom Brown, Benjamin Mann, Nick Ry- der, Melanie Subbiah, Jared D Kaplan, Prafulla Dhari- wal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, et al. Language models are few-shot learners. Advances in neural information processing sys- tems, 33:1877-1901, 2020.
  6. [Cai et al., 2024] Tianle Cai, Yuhong Li, Zhengyang Geng, Hongwu Peng, Jason D. Lee, Deming Chen, and Tri Dao. Medusa: Simple LLM inference acceleration framework with multiple decoding heads. In Forty-first International Conference on Machine Learning, 2024.
  7. [Chen et al., 2023] Charlie Chen, Sebastian Borgeaud, Ge- offrey Irving, Jean-Baptiste Lespiau, Laurent Sifre, and John Jumper. Accelerating large language model de- coding with speculative sampling. arXiv preprint arXiv:2302.01318, 2023.
  8. [Chen et al., 2025] Fahao Chen, Peng Li, Tom H. Luan, Zhou Su, and Jing Deng. Spin: Accelerating large lan- guage model inference with heterogeneous speculative models. In Proceedings of IEEE International Confer- ence on Computer Communications (INFOCOM), Lon- don, United Kingdom, May 2025.
  9. [Du et al., 2024] Cunxiao Du, Jing Jiang, Xu Yuanchen, Ji- awei Wu, Sicheng Yu, Yongqi Li, Shenggui Li, Kai Xu, Liqiang Nie, Zhaopeng Tu, et al. Glide with a cape: A low-hassle method to accelerate speculative decoding. In Forty-first International Conference on Machine Learning, 2024.
  10. [Fu et al., 2024a] Yao Fu, Leyang Xue, Yeqi Huang, Andrei- Octavian Brabete, Dmitrii Ustiugov, Yuvraj Patel, and Luo Mai. Serverlessllm: Low-latency serverless inference for large language models. In 18th USENIX Symposium on Operating Systems Design and Implementation, pages 135-153, 2024.
  11. [Fu et al., 2024b] Yichao Fu, Siqi Zhu, Runlong Su, Aurick Qiao, Ion Stoica, and Hao Zhang. Efficient llm scheduling by learning to rank. In The Thirty-eighth Annual Confer- ence on Neural Information Processing Systems, 2024.
  12. [Huang et al., 2024] Kaixuan Huang, Xudong Guo, and Mengdi Wang. Specdec++: Boosting speculative de- coding via adaptive candidate lengths. arXiv preprint arXiv:2405.19715, 2024.
  13. [Kim et al., 2024] Kyoungmin Kim, Kijae Hong, Caglar Gulcehre, and Anastasia Ailamaki. The effect of schedul- ing and preemption on the efficiency of llm inference serv- ing. arXiv preprint arXiv:2411.07447, 2024.
  14. [Kwon et al., 2023] Woosuk Kwon, Zhuohan Li, Siyuan Zhuang, Ying Sheng, Lianmin Zheng, Cody Hao Yu, Joseph Gonzalez, Hao Zhang, and Ion Stoica. Efficient memory management for large language model serving with pagedattention. In Proceedings of the 29th Sympo- sium on Operating Systems Principles, pages 611-626, 2023.
  15. [Lakshminarayana et al., 2000] Ganesh Lakshminarayana, Anand Raghunathan, and Niraj K Jha. Incorporating spec- ulative execution into scheduling of control-flow-intensive designs. IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems, 19(3):308-324, 2000.
  16. [Leviathan et al., 2023] Yaniv Leviathan, Matan Kalman, and Yossi Matias. Fast inference from transformers via speculative decoding. In International Conference on Ma- chine Learning, pages 19274-19286. PMLR, 2023.
  17. [Li et al., 2023] Zhuohan Li, Lianmin Zheng, Yinmin Zhong, Vincent Liu, Ying Sheng, Xin Jin, Yanping Huang, Zhifeng Chen, Hao Zhang, Joseph E Gonzalez, et al. Al- paserve: Statistical multiplexing with model parallelism for deep learning serving. In 17th USENIX Symposium on Operating Systems Design and Implementation (OSDI 23), pages 663-679, 2023.
  18. [Li et al., 2024] Cong Li, Zhe Zhou, Size Zheng, Jiaxi Zhang, Yun Liang, and Guangyu Sun. Specpim: Accel- erating speculative inference on pim-enabled system via architecture-dataflow co-exploration. In Proceedings of the 29th ACM International Conference on Architectural Support for Programming Languages and Operating Sys- tems, Volume 3, pages 950-965, 2024.
  19. [Liu et al., 2024a] Jiahao Liu, Qifan Wang, Jingang Wang, and Xunliang Cai. Speculative decoding via early-exiting for faster LLM inference with Thompson sampling control mechanism. In Findings of the Association for Computa- tional Linguistics, pages 3027-3043, 2024.
  20. [Liu et al., 2024b] X. Liu, C. Daniel, L. Hu, W. Kwon, Z. Li, X. Mo, A. Cheung, Z. Deng, I. Stoica, and H. Zhang. Op- timizing speculative decoding for serving large language models using goodput. arXiv preprint arXiv:2406.14066, 2024.
  21. [Miao et al., 2024] Xupeng Miao, Gabriele Oliaro, Zhihao Zhang, Xinhao Cheng, Zeyu Wang, Zhengxin Zhang, Rae Ying Yee Wong, Alan Zhu, Lijie Yang, Xiaoxiang Shi, et al. Specinfer: Accelerating large language model serv- ing with tree-based speculative inference and verification. In Proceedings of the 29th ACM International Conference on Architectural Support for Programming Languages and Operating Systems, Volume 3, pages 932-949, 2024.
  22. [Oh et al., 2024] Hyungjun Oh, Kihong Kim, Jaemin Kim, Sungkyun Kim, Junyeol Lee, Du-seong Chang, and Jiwon Seo. Exegpt: Constraint-aware resource scheduling for llm inference. In Proceedings of the 29th ACM Interna- tional Conference on Architectural Support for Program- ming Languages and Operating Systems, Volume 2, pages 369-384, 2024.
  23. [Patel et al., 2024] Pratyush Patel, Esha Choukse, Chaojie Zhang, Aashaka Shah, Íñigo Goiri, Saeed Maleki, and Ri- cardo Bianchini. Splitwise: Efficient generative llm infer- ence using phase splitting. In 2024 ACM/IEEE 51st An- nual International Symposium on Computer Architecture (ISCA), pages 118-132. IEEE, 2024.
  24. [Qiu et al., 2024] Haoran Qiu, Weichao Mao, Archit Patke, Shengkun Cui, Saurabh Jha, Chen Wang, Hubertus Franke, Zbigniew T Kalbarczyk, Tamer Basar, and Rav- ishankar K Iyer. Efficient interactive llm serving with proxy model-based sequence length prediction. In Interna- tional Conference on Architectural Support for Program- ming Languages and Operating Systems, 2024.
  25. [Rai et al., 2003] Idris A Rai, Guillaume Urvoy-Keller, and Ernst W Biersack. Analysis of las scheduling for job size distributions with high variance. In Proceedings of the 2003 ACM SIGMETRICS international conference on Measurement and modeling of computer systems, pages 218-228, 2003.
  26. [Spector and Re, 2023] Benjamin Frederick Spector and Christopher Re. Accelerating LLM inference with staged speculative decoding. In Workshop on Efficient Systems for Foundation Models of ICML 2023, 2023.
  27. [Sun et al., 2024a] Biao Sun, Ziming Huang, Hanyu Zhao, Wencong Xiao, Xinyi Zhang, Yong Li, and Wei Lin. Llum- nix: Dynamic scheduling for large language model serv- ing. In 18th USENIX Symposium on Operating Systems Design and Implementation (OSDI 24), pages 173-191, 2024.
  28. [Sun et al., 2024b] Ziteng Sun, Ananda Theertha Suresh, Jae Hun Ro, Ahmad Beirami, Himanshu Jain, and Felix Yu. Spectr: Fast speculative decoding via optimal trans- port. Advances in Neural Information Processing Systems, 36, 2024.
  29. [Svirschevski et al., 2024] Ruslan Svirschevski, Avner May, Zhuoming Chen, Beidi Chen, Zhihao Jia, and Max Ryabinin. Specexec: Massively parallel speculative de- coding for interactive LLM inference on consumer de- vices. In The Thirty-eighth Annual Conference on Neural Information Processing Systems, 2024.
  30. [Touvron et al., 2023] Hugo Touvron, Thibaut Lavril, Gau- tier Izacard, Xavier Martinet, Marie-Anne Lachaux, Tim- othée Lacroix, Baptiste Rozière, Naman Goyal, Eric Ham- bro, Faisal Azhar, et al. Llama: Open and efficient founda- tion language models. arXiv preprint arXiv:2302.13971, 2023.
  31. [Wang et al., 2024] Siqi Wang, Hailong Yang, Xuezhu Wang, Tongxuan Liu, Pengbo Wang, Xuning Liang, Kejie Ma, Tianyu Feng, Xin You, Yongjun Bao, et al. Minions: Accelerating large language model inference with adap- tive and collective speculative decoding. arXiv preprint arXiv:2402.15678, 2024.
  32. [Wu et al., 2023] Bingyang Wu, Yinmin Zhong, Zili Zhang, Shengyu Liu, Fangyue Liu, Yuanhang Sun, Gang Huang, Xuanzhe Liu, and Xin Jin. Fast distributed infer- ence serving for large language models. arXiv preprint arXiv:2305.05920, 2023.
  33. [Xuan Son NGUYEN, 2024] Xuan Son NGUYEN. Mini- thinky dataset. https://huggingface.co/datasets/ngxson/ MiniThinky-dataset, 2024. Link
  34. [Yang et al., 2024] Zheming Yang, Yuanhao Yang, Chang Zhao, Qi Guo, Wenkai He, and Wen Ji. Perllm: Person- alized inference scheduling with edge-cloud collaboration for diverse llm services. arXiv preprint arXiv:2405.14636, 2024.
  35. [Yao et al., 2024] Shunyu Yao, Dian Yu, Jeffrey Zhao, Izhak Shafran, Tom Griffiths, Yuan Cao, and Karthik Narasimhan. Tree of thoughts: Deliberate problem solving with large language models. Advances in Neural Informa- tion Processing Systems, 36, 2024.
  36. [Yes ¸il et al., 2024] C ¸agrı Yes ¸il, Berhan Turku Ay, Funda Ay Ak, Öykü Berfin Mercan, and Oguzhan Nefesoglu. Adap- tive batch budget for llm inference. In 2024 9th Interna- tional Conference on Computer Science and Engineering (UBMK), pages 219-223. IEEE, 2024.
  37. [Z et al., 2024] Zheng Z, Ren X, and et al Xue F. Re- sponse length perception and sequence scheduling: An llm-empowered llm inference pipeline. Advances in Neu- ral Information Processing Systems, 36, 2024.
  38. [Zheng et al., 2024] Zangwei Zheng, Xiaozhe Ren, Fuzhao Xue, Yang Luo, Xin Jiang, and Yang You. Response length perception and sequence scheduling: An llm-empowered llm inference pipeline. Advances in Neural Information Processing Systems, 36, 2024.
  39. [Zhuang et al., 2024] Yuchen Zhuang, Yue Yu, Kuan Wang, Haotian Sun, and Chao Zhang. Toolqa: A dataset for llm question answering with external tools. Advances in Neu- ral Information Processing Systems, 36, 2024.

References were extracted automatically from the PDF and may contain errors.

Welcome Future Conferences AI Journal Division IJCAI Proceedings About IJCAI IJCAI Awards