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

RLHFless:用于高效RLHF的无服务器计算

RLHFless: Serverless Computing for Efficient RLHF

Stevens Institute of Technology;Northeastern University;Stony Brook University;Missouri University of Science \& Technology

Rui Wei, Hanfei Yu, Shubham Jain, Yogarajan Sivakumar, Devesh Tiwari, Jian Li, Seung-Jong Park, Hao Wang

AI总结:

RLHFless通过无服务器计算环境实现高效同步RLHF训练,预计算共享前缀并采用成本感知的演员扩展策略,提升训练速度并降低计算成本。

摘要:

强化学习从人类反馈(RLHF)已被广泛应用于大语言模型(LLM)的后期训练,以使模型输出与人类偏好一致。最近的模型,如DeepSeek-R1,也展示了RLHF在提高LLM在复杂任务上的推理能力方面的潜力。在RL中,推理和训练共存,导致工作流程中动态的资源需求。与传统RL相比,RLHF进一步挑战了训练效率,因为模型规模扩大和资源消耗增加。几种RLHF框架旨在平衡灵活的抽象和高效的执行。然而,它们依赖于服务器化的基础设施,这在面对细粒度的资源变化时表现不佳。因此,在同步RLHF训练过程中,RL组件之间或内部的空闲时间常常导致开销和资源浪费。\n为了解决这些问题,我们提出了RLHFless,这是首个可扩展的同步RLHF训练框架,基于无服务器计算环境。RLHFless能够适应RLHF管道中的动态资源需求,预计算共享前缀以避免重复计算,并使用成本感知的演员扩展策略,考虑响应长度变化以找到成本较低、速度较高的最佳点。此外,RLHFless高效分配工作负载以减少函数内部的不平衡和空闲时间。在物理测试床和大规模模拟集群上的实验表明,RLHFless相比最先进的基线实现了高达1.35倍的速度提升和44.8%的成本降低。

英文摘要:

Reinforcement Learning from Human Feedback (RLHF) has been widely applied to Large Language Model (LLM) post-training to align model outputs with human preferences. Recent models, such as DeepSeek-R1, have also shown RLHF's potential to improve LLM reasoning on complex tasks. In RL, inference and training co-exist, creating dynamic resource demands throughout the workflow. Compared to traditional RL, RLHF further challenges training efficiency due to expanding model sizes and resource consumption. Several RLHF frameworks aim to balance flexible abstraction and efficient execution. However, they rely on serverful infrastructures, which struggle with fine-grained resource variability. As a result, during synchronous RLHF training, idle time between or within RL components often causes overhead and resource wastage. To address these issues, we present RLHFless, the first scalable training framework for synchronous RLHF, built on serverless computing environments. RLHFless adapts to dynamic resource demands throughout the RLHF pipeline, pre-computes shared prefixes to avoid repeated computation, and uses a cost-aware actor scaling strategy that accounts for response length variation to find sweet spots with lower cost and higher speed. In addition, RLHFless assigns workloads efficiently to reduce intra-function imbalance and idle time. Experiments on both physical testbeds and a large-scale simulated cluster show that RLHFless achieves up to 1.35x speedup and 44.8% cost reduction compared to the state-of-the-art baseline.

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

↑