arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.08581cs.LG
收藏

PRISM: 通过调度-内存协同设计实现快速在线LLM服务

HAServe: Horizon-Aware Scheduling and Memory Co-Design for Efficient LLM Serving

School of Computer Science, Wuhan University(武汉大学计算机学院)

Xingyu Qu, Tianhao Lin, Yiqi Li, Zhiyu Chen, Sheng Wang

AI总结:

PRISM通过协同设计调度与内存管理,优化LLM服务响应时间,减少TTFT并提升缓存命中率。

摘要:

现代在线大语言模型服务,如检索增强生成(RAG)和代理系统,表现出两个显著特征:提示分段(如系统指令、检索段落、工具输出)和热点偏斜,即一小部分段在用户请求中频繁重复。未能联合利用这些模式可能导致热点段的重复预填充和TTFT延长,影响吞吐量和用户体验。现有工作分别处理这些模式:KV缓存管理主要利用段重用,调度重新排序请求以提高缓存局部性,但两者未对齐请求准入与KV缓存保留。为解决这一缺口,我们首先分析调度与KV缓存管理如何共同影响TTFT。基于此,我们提出PRISM(前缀重用优化调度与内存),通过协同设计查询感知调度器(QAS)与需求感知基数树(DART)来对齐请求准入与精确前缀KV保留。我们的评估结果表明,与最强基线相比,PRISM在4B和13B模型上分别将平均每QPS P99 TTFT减少23.3%和37.1%,同时将精确前缀KV缓存命中率提高5.9和12.2个百分点。

英文摘要:

Online large language model (LLM) services process requests that share context but differ in prefix structure and arrival timing. Finite capacity couples request admission and key-value (KV) retention. This paper addresses one online serving problem: using a unified view of visible demand to choose the feasible joint admission and KV-retention candidate with the lowest predicted latency cost as prefix structures and arrival rates vary. To model this problem, we introduce HorizonSchema, a workload abstraction that connects exact prefix paths, permitted serializations, and released consumers as shared inputs to both decisions. Our analysis shows that useful reuse depends on demand and prefix survival, while service order changes latency even at equal computation. Furthermore, we present HAServe, which turns this abstraction into a scheduling--memory co-design method of systematic optimization for online LLM serving. We implement HAServe on SGLang and evaluate Qwen3-4B-Instruct-2507 and Llama2-13B on five workloads using eight H100 GPUs. Across the evaluated workloads, HAServe achieves up to $1.14$--$5.90\times$ P99 TTFT speedups and up to $1.08$--$1.44\times$ the throughput, with KV-cache hit rate up to 20.59 percentage points higher than the strongest baseline for each metric and setting.

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

↑