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

Prorsa:释放智能体强化学习中预填-解码解耦的潜力

Prorsa: Unleashing the Potential of Prefill-Decode Disaggregation in Agentic Reinforcement Learning

School of Computer Science, Peking University(北京大学计算机学院);LLM-Core Xiaomi(小米LLM核心部门)

Chiheng Lou, Xiangwei Deng, Bangjun Xiao, Xiaodong Ji, Yikai Zhao, Xin Jin, Hailin Zhang

AI总结:

Prorsa是一个智能体RL框架,通过预测引导的预填-解码资源分配,在同步和异步设置下实现1.11-4.05倍的端到端推理加速,提升了智能体RL的效率。

摘要:

智能体强化学习(RL)常用于增强大语言模型(LLM)解决复杂多轮任务的能力。在推理过程中,智能体RL呈现出与传统RL不同的工作负载模式:多轮交互会反复引入预填请求,导致预填与解码工作负载在整个推理过程中共存。这种工作负载使得广泛用于在线LLM服务的预填-解码(PD)解耦,有望加快智能体RL推理的速度。本文表明,PD解耦可通过以下方式提升推理效率:(a)减轻数据并行注意力模块间的干扰;(b)实现阶段特定的并行性;(c)缩短端到端轨迹完成时间。然而,固定的预填-解码分配可能无法在任务间及随时间变化的工作负载组成下维持这些优势。因此,我们提出Prorsa,这是一个用于预测引导的预填-解码资源分配的智能体RL框架。Prorsa观测每条轨迹的生命周期,以预测短期的预填与解码需求,这些预测随后指导工作者分配决策并触发推理引擎的角色切换,使预填与解码能力与预期工作负载需求对齐。在同步和异步智能体RL设置中,Prorsa相较于预填-解码共置,实现了1.11倍至4.05倍的端到端推理加速。

英文摘要:

Agentic reinforcement learning (RL) is commonly used to enhance the capabilities of large language models (LLMs) in solving complex multi-turn tasks. During rollout, agentic RL exhibits a workload pattern distinct from that of traditional RL: multi-turn interactions repeatedly introduce prefill requests, causing prefill and decode workloads to coexist throughout rollout. This workload makes prefill-decode (PD) disaggregation, a design widely used for online LLM serving, promising for speeding up agentic RL rollout. This paper shows that PD disaggregation can improve rollout efficiency by (a) mitigating interference among data-parallel attention modules, (b) enabling stage-specific parallelism, and (c) reducing end-to-end trajectory completion time. However, a fixed prefill-decode allocation may fail to sustain these benefits as workload composition varies across tasks and over time. We therefore present Prorsa, an agentic RL framework for prediction-guided prefill-decode resource allocation. Prorsa observes the lifecycle of every trajectory to forecast short-horizon prefill and decode demand. These forecasts then guide worker allocation decisions and trigger role switching of rollout engines, aligning prefill and decode capacity with anticipated workload demand. Across synchronous and asynchronous agentic RL settings, Prorsa achieves end-to-end rollout speedups of 1.11x-4.05x over prefill-decode colocation.

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

↑