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

RAPID:一种面向小语言模型的高效强化学习算法

RAPID: An Efficient Reinforcement Learning Algorithm for Small Language Models

University of Pennsylvania(宾夕法尼亚大学)

Lianghuan Huang, Sagnik Anupam, Insup Lee, Shuo Li, Osbert Bastani

AI总结:

针对小语言模型强化学习微调资源消耗大、耗时长的问题,提出RAPID算法,通过大批次推理、小批次离轨策略梯度更新结合组优势估计与重要性加权校正偏差,在三个基准上以更短运行时间实现相近或更优准确率。

摘要:

强化学习(RL)已成为微调小语言模型(SLMs)以解决数学、编程等定向任务的一种颇具前景的策略。然而,RL算法往往资源消耗大,训练需要耗费大量时间。我们提出了RAPID,这是一种新型RL算法,可大幅缩短RL的运行时间。我们的核心洞见是,RL之所以成本高昂,是因为训练过程中需要同时执行推理和反向传播。为最大化计算资源利用率,我们的算法以大批次执行推理,随后以小批次执行离轨策略梯度更新。对于离轨更新,我们将组优势估计引入策略梯度算法,并推导了一种重要性加权估计器,以校正离轨学习产生的偏差。我们的实验表明,在三个基准测试上,与当前最优的RL算法相比,我们的算法可将运行时间缩短11%-34%,同时保持相近或更优的准确率。

英文摘要:

Reinforcement learning (RL) has emerged as a promising strategy for finetuning small language models (SLMs) to solve targeted tasks such as math and coding. However, RL algorithms tend to be resource-intensive, taking a significant amount of time to train. We propose RAPID, a novel RL algorithm that can substantially reduce the running time of RL. Our key insight is that RL tends to be costly due to the need to perform both inference and backpropagation during training. To maximize use of computational resources, our algorithm performs inference in large batches, and then performs off-policy policy gradient updates in mini-batches. For off-policy updates, we incorporate group advantage estimation into the policy gradient algorithm, and derive an importance weighted estimator to correct for the bias arising from off-policy learning. Our experiments demonstrate that our algorithm can reduce running time by 11%-34% on three benchmarks compared to state-of-the-art RL algorithms while maintaining similar or better accuracy.

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

↑