arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2605.01280cs.DCcs.AI
收藏

位置:大语言模型服务需要数学优化和算法基础,而不是仅仅启发式方法

Position: LLM Serving Needs Mathematical Optimization and Algorithmic Foundations, Not Just Heuristics

Department of Industrial Engineering and Decision Analytics(工业工程与决策分析系)

Zijie Zhou

AI总结:

本文指出大语言模型推理服务已超越通用启发式方法,需数学优化和算法基础。现有服务系统如vLLM和SGLang的算法核心仍沿用传统分布式计算方法,无法适应LLM推理的动态KV缓存、prefill-decode阶段不对称性等特性。

摘要:

本文立场论文认为,大语言模型推理服务已超越通用启发式方法,需要数学优化和算法基础。尽管vLLM和SGLang等服务系统迅速发展,其算法核心仍基本沿用传统分布式计算:请求路由使用join-shortest-queue或轮询,调度默认采用FIFO,KV缓存淘汰遵循LRU。这些通用策略忽略了LLM推理的独特结构——动态增长的KV缓存、prefill-decode阶段不对称性、未知输出长度和连续批处理约束。我们认为该领域必须开发捕捉这些特征的数学模型,从而设计出在各种工作负载中具有证明性能保证的算法,而不是可能在某些场景成功但在其他场景不可预测的启发式方法。在运筹学与ML系统交汇处的新兴工作表明,系统方法可以匹配或超过启发式方法的性能,同时提供理论保证。我们呼吁社区将LLM服务的算法设计视为研究前沿。

英文摘要:

This position paper argues that LLM inference serving has outgrown generic heuristics and now demands mathematical optimization and algorithmic foundations. Despite rapid advances in serving systems such as vLLM and SGLang, their algorithmic cores remain largely unchanged from classical distributed computing: request routing uses join-shortest-queue or round-robin, scheduling defaults to FIFO, and KV cache eviction follows LRU. These general-purpose policies ignore the distinctive structure of LLM inference--dynamically growing KV cache memory, prefill-decode phase asymmetry, unknown output lengths, and continuous batching constraints. We contend that the field must develop mathematical models capturing these characteristics, enabling the design of algorithms with provable performance guarantees across diverse workloads, rather than heuristics that may succeed in some scenarios but fail unpredictably in others. Emerging work at the intersection of operations research and ML systems demonstrates that principled methods can match or exceed heuristic performance while providing theoretical guarantees. We call on the community to recognize algorithmic design for LLM serving as a research frontier.

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

↑