arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2507.13833cs.DC
收藏

DistFlow: 一种用于可扩展高效LLM后训练的全分布式强化学习框架

DistFlow: A Fully Distributed RL Framework for Scalable and Efficient LLM Post-Training

Zhejiang University(浙江大学);Shanghai Innovation Institute(上海创新院);Shanghai Jiao Tong University(上海交通大学);Fudan University(复旦大学);Infrawaves

Zhixin Wang, Jiaming Xu, Tianyi Zhou, Mingjun Zhang, Liming Liu, Jiarui Hu, Dian Yang, Tongyu Wang, Ping Zhang, Jinlong Hou, Siyuan Feng, Yuan Qi, Yuan Cheng

AI总结:

提出DistFlow框架,通过解耦数据传输与控制调度、采用多控制器范式和基于DAG的任务调度器,实现近线性可扩展性并提升吞吐量达2.63倍。

摘要:

有效扩展强化学习对于增强大型语言模型的推理和对齐能力至关重要。这些任务中固有的海量数据和复杂执行流程需要能够高效扩展的分布式架构。然而,为了简化编程和依赖管理,主流框架通常依赖集中式架构,其中单个节点调度控制流和数据流。这种固有的耦合造成了显著的通信瓶颈,严重限制了系统的可扩展性和效率。我们提出了DISTFLOW,一种新颖的全分布式强化学习框架,采用多控制器范式。通过解耦数据传输与控制调度,DISTFLOW建立了一个并行感知的分散式数据协调器,利用本地缓存、负载均衡和异步双缓冲来最小化通信开销并缓解掉队者效应。对于控制逻辑,它引入了一个基于有向无环图(DAG)的任务调度器,支持细粒度的独立执行。实验结果表明,DISTFLOW在多达512个GPU上实现了近线性可扩展性,并且相比最先进的框架,吞吐量提升高达2.63倍。源代码可在https://github.com/sii-research/siiRL获取。

英文摘要:

Effectively scaling Reinforcement Learning (RL) is crucial for enhancing the reasoning and alignment of Large Language Models. The massive data and complex execution flows inherent in these tasks require a distributed architecture capable of efficient scaling. However, to simplify programming and dependency management, mainstream frameworks often rely on a centralized architecture where a single node dispatches both control and data. This inherent coupling creates significant communication bottlenecks, severely limiting system scalability and efficiency. We present DISTFLOW, a novel, fully distributed RL framework that adopts a multi-controller paradigm. By decoupling data transmission from control dispatch, DISTFLOW establishes a parallelism-aware, decentralized Data Coordinator that leverages local caching, load balancing, and asynchronous double buffer to minimize communication overhead and mitigate straggler effects. For control logic, it introduces a task scheduler built upon Directed Acyclic Graph (DAG) that facilitates fine-grained, independent execution. Experimental results demonstrate that DISTFLOW achieves near-linear scalability up to 512 GPUs and delivers up to a 2.63x throughput improvement over state-of-the-art (SOTA) frameworks. The source code is available at: https://github.com/sii-research/siiRL.

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

↑