arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.06110cs.AIcs.CL
收藏

按时、在预算内:面向代理工作流的约束驱动在线资源分配

On Time, Within Budget: Constraint-Driven Online Resource Allocation for Agentic Workflows

School of Computer Science, Beijing Institute of Technology(北京理工大学计算机科学学院);Xiaohongshu Inc(小红书公司)

Xinglin Wang, Zishen Liu, Shaoxiong Feng, Peiwen Yuan, Yiwei Li, Jiayi Shi, Yueqi Zhang, Chuyi Tan, Ji Zhang, Boyuan Pan, Yao Hu, Kan Li

AI总结:

本文研究了在预算和截止时间约束下,如何通过约束驱动的在线资源分配提高代理工作流的成功概率,提出MCPP算法并在CodeFlow和ProofFlow上验证其有效性。

摘要:

代理系统通过执行编排的工作流来解决复杂的用户请求,其中子任务被分配给专门的模型或工具并根据依赖关系协调。尽管最近的工作通过优化性能-成本-延迟前沿来提高代理效率,但实际部署通常有具体要求:工作流必须在指定预算内并在指定截止时间前完成。这将目标从平均效率优化转向最大化在显式预算和截止时间约束下工作流成功完成的概率。我们研究了面向代理工作流的约束驱动在线资源分配。给定一个依赖结构的工作流和每个子任务-模型对的成功率和生成长度估计,执行器在同时可执行的子任务上动态分配模型和并行样本,同时管理剩余预算和时间。我们将这一设置建模为有限时间 horizon 的随机在线分配问题,并提出蒙特卡洛投资组合规划(MCPP),一种轻量级闭环规划器,通过模拟工作流执行直接估计受约束的完成概率,并在观察到结果后重新规划。在CodeFlow和ProofFlow上的实验表明,MCPP在广泛的预算-截止时间约束下均优于强基线方法。

英文摘要:

Agentic systems increasingly solve complex user requests by executing orchestrated workflows, where subtasks are assigned to specialized models or tools and coordinated according to their dependencies. While recent work improves agent efficiency by optimizing the performance--cost--latency frontier, real deployments often impose concrete requirements: a workflow must be completed within a specified budget and before a specified deadline. This shifts the goal from average efficiency optimization to maximizing the probability that the entire workflow completes successfully under explicit budget and deadline constraints. We study \emph{constraint-driven online resource allocation for agentic workflows}. Given a dependency-structured workflow and estimates of success rates and generation lengths for each subtask--model pair, the executor dynamically allocates models and parallel samples across simultaneously executable subtasks while managing the remaining budget and time. We formulate this setting as a finite-horizon stochastic online allocation problem and propose \emph{Monte Carlo Portfolio Planning} (MCPP), a lightweight closed-loop planner that directly estimates constrained completion probability through simulated workflow executions and replans after observed outcomes. Experiments on CodeFlow and ProofFlow demonstrate that MCPP consistently improves constrained completion probability over strong baselines across a wide range of budget--deadline constraints.

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

↑