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

RelServe: 在关系数据上实现快速大语言模型推理服务

RelServe: Fast LLM Inference Serving on Relational Data

HKUST(香港科技大学);Shanghai Jiao Tong University(上海交通大学);PolyU(香港理工大学);HKUST (GZ)(香港科技大学(广州))

Xin Zhang, Shihong Gao, Yanyan Shen, Haoyang Li, Lei Chen

AI总结:

RelServe通过动态优先级更新和自适应批处理优化,显著提升了关系数据查询的LLM推理效率,降低了延迟。

摘要:

大型语言模型(LLMs)在查询关系数据中的应用催生了relQuery这一工作负载模式,该模式通过模板化的LLM调用来处理结构化表。随着relQuery服务在如AI驱动的电子表格等应用中被更广泛地采用,快速响应并发查询负载的重要性日益增加。不幸的是,当前的LLM引擎在三个可比的推理阶段——等待、核心运行和尾部运行——中面临严重的延迟瓶颈,即Head-of-Line(HoL)阻塞。现有的静态优先级调度方法只解决了等待阶段的HoL阻塞问题,留下了两个关键问题未解决。首先,缺乏优先级更新机制导致核心执行期间优先级不准确和持续的HoL阻塞。其次,次优的prefill-decode批处理加剧了尾部执行中的HoL阻塞,并恶化了运行和等待relQueries之间的延迟权衡。为了解决这些问题,我们提出了RelServe,一种优化的LLM引擎,用于低延迟的relQuery服务。RelServe有两个核心创新:动态优先级更新器,它通过统计近似来最小化开销的同时持续调整优先级,以及自适应批处理安排器,它定量评估候选的prefill和decode批处理以最小化预测的平均延迟。在四个真实世界数据集上使用从13B到70B参数的LLM进行的广泛实验表明,RelServe将平均服务延迟降低了多达3.1倍,相比vLLM。

英文摘要:

The use of Large Language Models (LLMs) for querying relational data has given rise to relQuery, a workload pattern that applies templated LLM calls to structured tables. As relQuery services become more widely adopted in applications such as AI-powered spreadsheets, fast response times under concurrent query loads are increasingly important. Unfortunately, current LLM engines face severe latency bottlenecks from Head-of-Line (HoL) blocking across three comparable inference phases: waiting, core running, and tail running. Existing static priority scheduling methods only address HoL blocking during the waiting phase, leaving two critical problems unsolved. First, the absence of a priority update mechanism causes inaccurate prioritization and continued HoL blocking during core execution. Second, suboptimal prefill-decode batching exacerbates HoL blocking in tail execution and worsens latency trade-offs between running and waiting relQueries. To address these problems, we propose RelServe, an optimized LLM engine for low-latency relQuery serving. RelServe features two core innovations: a Dynamic Priority Updater that continuously adjusts priorities while minimizing overhead via statistical approximations, and an Adaptive Batch Arranger that quantitatively evaluates candidate prefill and decode batches to minimize projected average latency. Extensive experiments on four real-world datasets using LLMs ranging from 13B to 70B parameters show that RelServe reduces average serving latency by up to 3.1x compared to vLLM.

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

↑