arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.18672cs.LGcs.AI
收藏

推理语言模型推理服务揭秘:一项实证研究

Reasoning Language Model Inference Serving Unveiled: An Empirical Study

The Hong Kong University of Science and Technology (Guangzhou)(香港科学与技术大学(广州));Shenzhen International Graduate School, Tsinghua University(清华大学深圳国际研究生院);HKBU(香港 Baptist University);University of Wisconsin-Madison(威斯康星大学麦迪逊分校);Harbin Institute of Technology, Shenzhen(哈尔滨工业大学(深圳));The Hong Kong University of Science and Technology(香港科学与技术大学)

Qi Li, Junpan Wu, Xiang Liu, Yuxin Wang, Zeyu Li, Zhenheng Tang, Yuhan Chen, Shaohuai Shi, Xiaowen Chu

AI总结:

本文针对推理大语言模型(RLLM)服务性能未被探索的问题,对比其与传统LLM的服务行为差异,验证现有推理优化技术对RLLM的效果,并通过真实工作负载评估验证结论,为RLLM推理服务发展提供参考。

摘要:

推理大语言模型(RLLM)已被证明在解决数学、编程等复杂推理任务上相比通用大语言模型(LLM)更具竞争力。然而,RLLM的服务性能与行为仍未被探索,这可能会阻碍RLLM在现实场景中的部署与应用。为填补这一空白,本文对RLLM服务开展了全面研究。我们首先通过初步研究对比了RLLM与传统LLM的服务性能,发现二者在服务行为上存在若干显著差异:(1)内存占用量大且存在波动;(2)存在掉队请求;(3)运行时间具有自适应性;(4)存在领域偏好。随后,我们进一步探究了现有推理优化技术对RLLM是否有效。我们的核心结论是:模型量化方法与投机解码可以在对RLLM准确率影响较小的前提下提升服务系统效率,而前缀缓存、KV缓存量化对于小型RLLM甚至可能降低准确率或服务性能。最后,我们在由Gamma分布建模的真实工作负载下开展评估,以验证我们的发现。跨不同数据集的真实工作负载评估实证结果,与我们关于RLLM服务的核心结论一致。我们希望本工作能为学术界和工业界推进RLLM推理服务提供洞见。

英文摘要:

The reasoning large language model (RLLM) has been proven competitive in solving complex reasoning tasks such as mathematics, coding, compared to general LLM. However, the serving performance and behavior of RLLM remains unexplored, which may undermine the deployment and utilization of RLLM in real-world scenario. To close this gap, in this paper, we conduct a comprehensive study of RLLM service. We first perform a pilot study on comparing the serving performance between RLLM and traditional LLM and reveal that there are several distinct differences regarding serving behavior: (1) significant memory usage and fluctuations; (2) straggler requests; (3) adaptive running time; (4) domain preference. Then we further investigate whether existing inference optimization techniques are valid for RLLM. Our main takeaways are that model quantization methods and speculative decoding can improve service system efficiency with small compromise to RLLM accuracy, while prefix caching, KV cache quantization may even degrade accuracy or serving performance for small RLLM. Lastly, we conduct evaluation under real world workload modeled by Gamma distribution to verify our findings. Empirical results of real world workload evaluation across different dataset are aligned with our main findings regarding RLLM serving. We hope our work can provide the research community and industry with insights to advance RLLM inference serving.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑