arXiv:2512.04752cs.LG2025-12被引 4

用动态预测生成加速RLHF,提升训练效率

RLHFSpec: Breaking the Efficiency Bottleneck in RLHF Training via Adaptive Drafting

  • 引入推测解码优化生成阶段,动态选择最佳策略
  • 生成吞吐量提升,整体训练速度显著加快
  • 适合大规模语言模型高效微调的场景

基于人类反馈的强化学习(RLHF)是大语言模型微调的重要技术,包含生成、推理和训练三个阶段。我们发现生成阶段是整个流程的瓶颈,提出在该阶段首次引入推测解码,设计RLHFSpec系统以高效推测解码和样本重分配加速生成。为充分挖掘推测解码潜力,尤其应对生成阶段动态负载,系统采用工作负载感知的草稿策略选择机制,综合考虑验证开销与被接受的词元数量,选取近优策略。同时,通过样本重分配和高效的样本迁移机制,最大化利用GPU资源。实验表明,与现有最优方法相比,RLHFSpec在生成阶段实现更高吞吐量;由于有效缓解生成瓶颈,整个RLHF执行过程也获得显著性能提升。

原文摘要 · Abstract (English)

Reinforcement Learning from Human Feedback (RLHF) is an important fine-tuning technique for large language models (LLMs) and comprises three stages: generation, inference, and training. The generation stage generates samples that are then used to infer learnable experiences for training. We observe that the generation stage is the bottleneck of the entire execution process and consider it a key point for optimization. Specifically, we realize the first attempt to integrate speculative decoding into the RLHF generation stage and propose RLHFSpec, an RLHF system that accelerates generation execution with efficient speculative decoding and sample reallocation. To fully exploit the performance potential provided by speculative decoding, especially dealing with the dynamic workload of the generation stage, RLHFSpec proposes a workload-aware drafting strategy selection mechanism, which selects the near-optimal strategy by jointly considering the verification cost and the number of accepted tokens. Moreover, RLHFSpec also proposes sample reallocation to fully utilize the GPU resources, and optimizes it with an efficient sample migration mechanism. The experimental results show that the RLHFSpec can achieve higher throughput in the generation stage compared to state-of-the-art works. Moreover, due to the effective alleviation of the generation bottleneck, RLHFSpec also shows significant performance speedup in the entire RLHF execution.

RLHF推测解码生成加速LLM微调

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。