arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2507.01663cs.LGcs.AI
收藏

AsyncFlow:一种用于高效LLM后训练的非同步流式强化学习框架

AsyncFlow: An Asynchronous Streaming RL Framework for Efficient LLM Post-Training

Huawei(华为);Huawei Individual Researcher(华为独立研究者);Individual Researcher(独立研究者)
Zhenyu Han, Ansheng You, Haibo Wang, Kui Luo, Guang Yang, Wenqi Shi, Menglong Chen, Sicheng Zhang, Zeshun Lan, Chunshi Deng, Huazhong Ji, Wenjie Liu, Yu Huang, … 展开作者

Zhenyu Han, Ansheng You, Haibo Wang, Kui Luo, Guang Yang, Wenqi Shi, Menglong Chen, Sicheng Zhang, Zeshun Lan, Chunshi Deng, Huazhong Ji, Wenjie Liu, Yu Huang, Yixiang Zhang, Chenyi Pan, Jing Wang, Xin Huang, Chunsheng Li, Jianping Wu

AI总结:

提出非同步流式RL框架AsyncFlow,通过分布式存储与异步生产者-消费者工作流实现流水线重叠和动态负载均衡,解耦底层引擎,吞吐量提升1.59倍。

摘要:

强化学习(RL)已成为大型语言模型(LLM)后训练阶段的关键技术。传统的任务共置RL框架面临显著的扩展性瓶颈,而任务分离的RL框架在管理复杂数据流和解决资源空闲方面则面临挑战。此外,大多数现有框架与LLM训练或推理引擎紧密耦合,难以支持定制设计的引擎。为应对这些挑战,我们提出了AsyncFlow,一种专为高效后训练定制的非同步流式RL框架。具体而言,我们引入了一个分布式数据存储与传输模块,以全流式方式提供全景数据管理和细粒度调度能力。该架构天然实现了RL任务间的自动化流水线重叠和动态负载均衡。此外,我们提出了一种非同步生产者-消费者工作流,通过策略性地在陈旧性阈值内延迟参数更新过程,旨在最小化计算空闲。最后,AsyncFlow的核心能力在架构上与底层训练和推理引擎解耦,并通过面向服务的用户界面封装,提供模块化和可定制的用户体验。大量实验表明,与最先进的基线相比,平均吞吐量达到1.59倍。本工作提出的架构为设计下一代RL训练系统提供了可操作的见解。

英文摘要:

Reinforcement learning (RL) has become a pivotal technology in the post-training phase of large language models (LLMs). Traditional task-collocated RL frameworks suffer from significant scalability bottlenecks, while task-separated RL frameworks face challenges in managing complex dataflows and resolving resource idling. Furthermore, most existing frameworks are tightly coupled with LLM training or inference engines, making them difficult to support custom-designed engines. To address these challenges, we propose AsyncFlow, an asynchronous streaming RL framework tailored for efficient post-training. Specifically, we introduce a distributed data storage and transfer module that provides panoramic data management and fine-grained scheduling capabilities in a fully streamed manner. This architecture inherently enables automated pipeline overlapping among RL tasks and dynamic load-balancing. Moreover, we propose an asynchronous producer-consumer workflow, which is engineered to minimize computational idleness by strategically deferring the parameter update process within staleness thresholds. Finally, the core capabilities of AsyncFlow are architecturally decoupled from underlying training and inference engines and encapsulated by service-oriented user interfaces, offering a modular and customizable user experience. Extensive experiments demonstrate an average throughput of 1.59x compared to the state-of-the-art baseline. The architecture presented in this work provides actionable insights for designing next-generation RL training systems.

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

↑