arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2406.14088cs.DCcs.AIcs.CLcs.LG
收藏

ReaL:通过参数重新分配实现大语言模型的高效RLHF训练

ReaL: Efficient RLHF Training of Large Language Models with Parameter Reallocation

Shanghai Qi Zhi Institute(上海期智研究院);OpenPsi Inc.(OpenPsi公司)

Zhiyu Mei, Wei Fu, Kaiwei Li, Guangju Wang, Huanchen Zhang, Yi Wu

AI总结:

提出参数重新分配技术及ReaL系统,动态调整RLHF训练并行化策略,在LLaMA模型上实现最高3.58倍加速,长上下文场景性能提升81%。

摘要:

从人类反馈中进行的强化学习(RLHF)是赋能大语言模型(LLM)应用的关键技术。与LLM的监督训练过程相比,RLHF训练过程更为复杂,需要多种多样的计算工作负载,且多个LLM实例之间存在复杂的依赖关系。因此,简单采用监督训练中固定的并行化策略可能不足以应对RLHF,并导致训练效率低下。为克服这一局限,我们提出了一种名为参数重新分配(parameter ReaLlocation)的新技术,该技术通过在训练过程中跨训练集群重新分配LLM参数,动态调整不同工作负载的并行化策略。基于这一思想,我们引入了ReaL,一个用于高效RLHF训练的开创性系统。ReaL引入了执行计划(execution plan)的概念,该计划定义了专为RLHF训练设计的细粒度资源分配和并行化策略。基于此概念,ReaL采用一种定制化的搜索算法,配合轻量级运行时估计器,自动为RLHF实验实例发现高效的执行计划。随后,运行时引擎通过有效并行化计算和重新分配参数来部署所选计划。我们在具有高达700亿参数和128个GPU的LLaMA模型上评估了ReaL。实验结果表明,与基线方法相比,ReaL实现了高达3.58倍的加速。此外,在长上下文场景中,ReaL生成的执行计划相比基于Megatron-LM的启发式方法,平均性能提升了81%。ReaL的源代码公开于https://github.com/openpsi-project/ReaLHF。

英文摘要:

Reinforcement Learning from Human Feedback (RLHF) is a pivotal technique for empowering large language model (LLM) applications. Compared with the supervised training process of LLMs, the RLHF training process is much more sophisticated, requiring a diverse range of computation workloads with intricate dependencies between multiple LLM instances. Therefore, simply adopting the fixed parallelization strategies from supervised training for LLMs can be insufficient for RLHF and result in low training efficiency. To overcome this limitation, we propose a novel technique named parameter ReaLlocation, which dynamically adapts the parallelization strategies for different workloads during training by redistributing LLM parameters across the training cluster. Building upon this idea, we introduce ReaL, a pioneering system for efficient RLHF training. ReaL introduces the concept of an execution plan, which defines a fine-grained resource allocation and parallelization strategy particularly designed for RLHF training. Based on this concept, ReaL employs a tailored search algorithm with a lightweight run-time estimator to automatically discover an efficient execution plan for an instance of RLHF experiment. Subsequently, the runtime engine deploys the selected plan by effectively parallelizing computations and redistributing parameters. We evaluate ReaL on the LLaMA models with up to 70 billion parameters and 128 GPUs. The experimental results demonstrate that ReaL achieves speedups of up to $3.58\times$ compared to baseline methods. Furthermore, the execution plans generated by ReaL exhibit an average of $81\%$ performance improvement over heuristic approaches based on Megatron-LM in the long-context scenario. The source code of ReaL is publicly available at https://github.com/openpsi-project/ReaLHF .

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

↑