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

Astraea:一种面向LLM代理的基于状态的调度引擎

Astraea: A State-Aware Scheduling Engine for LLM-Powered Agents

University of Science and Technology of China(中国科学技术大学);Hefei University of Technology(合肥工业大学)

Hongqiu Ni, Jiabao Zhang, Guopeng Li, Zilong Wang, Ruiqi Wu, Chi Zhang, Haisheng Tan

AI总结:

Astraea通过基于状态的分层调度算法优化LLM代理的全局作业完成时间,减少端到端延迟并提升系统效率与公平性。

摘要:

大型语言模型(LLMs)正越来越多地被用作智能代理。它们的多阶段工作流在本地计算和调用外部网络服务(如Web API)之间交替,导致其执行模式与现有推理系统(如vLLM)的调度粒度不匹配。现有系统通常专注于单段优化,这使它们无法最小化整个代理工作流的端到端延迟,即整个请求生命周期内的全局作业完成时间(JCT)。为了解决这一限制,我们提出了Astraea,一种服务引擎,旨在将优化从局部段转移到整个请求生命周期。Astraea采用了一种基于状态的分层调度算法,将请求的历史状态与未来预测相结合。它通过请求的I/O和计算密集型性质动态分类,并使用改进的HRRN策略来平衡效率和公平性。Astraea还实现了一种自适应的KV缓存管理器,根据系统内存压力智能地在I/O等待期间处理代理状态。大量实验表明,Astraea将平均JCT比基线方法减少了高达25.5%。此外,我们的方法在各种模型规模下表现出强大的鲁棒性和稳定性。

英文摘要:

Large Language Models (LLMs) are increasingly being deployed as intelligent agents. Their multi-stage workflows, which alternate between local computation and calls to external network services like Web APIs, introduce a mismatch in their execution pattern and the scheduling granularity of existing inference systems such as vLLM. Existing systems typically focus on per-segment optimization which prevents them from minimizing the end-to-end latency of the complete agentic workflow, i.e., the global Job Completion Time (JCT) over the entire request lifecycle. To address this limitation, we propose Astraea, a service engine designed to shift the optimization from local segments to the global request lifecycle. Astraea employs a state-aware, hierarchical scheduling algorithm that integrates a request's historical state with future predictions. It dynamically classifies requests by their I/O and compute intensive nature and uses an enhanced HRRN policy to balance efficiency and fairness. Astraea also implements an adaptive KV cache manager that intelligently handles the agent state during I/O waits based on the system memory pressure. Extensive experiments show that Astraea reduces average JCT by up to 25.5\% compared to baseline methods. Moreover, our approach demonstrates strong robustness and stability under high load across various model scales.

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

↑