arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.11683cs.LGcs.AIcs.CL
收藏

边界引导策略优化:面向扩散大语言模型的内存高效强化学习

Boundary-Guided Policy Optimization for Memory-efficient RL of Diffusion Large Language Models

Tsinghua University(清华大学)

Nianyi Lin, Jiajie Zhang, Lei Hou, Juanzi Li

AI总结:

针对扩散大语言模型中似然函数难以处理导致强化学习内存开销大的问题,提出边界引导策略优化(BGPO),通过构造满足线性和等价性的下界实现内存高效训练,在数学求解、代码生成和规划任务中显著优于现有方法。

摘要:

将强化学习(RL)应用于扩散大语言模型(dLLMs)的一个关键挑战是其似然函数的难解性,而似然函数对于RL目标至关重要,因此在训练过程中需要相应的近似。现有方法通过自定义蒙特卡洛(MC)采样,利用证据下界(ELBO)近似对数似然,但由于需要保留所有MC样本用于RL目标中非线性项的梯度计算,导致显著的内存开销,从而限制了可行的样本量,导致似然近似不精确和RL目标失真。为了解决这个问题,我们提出了边界引导策略优化(BGPO),一种内存高效的RL算法,它最大化基于ELBO的目标的一个特殊构造的下界。该下界经过精心设计,满足两个关键性质:(1)线性:它是一个线性求和,其中每一项仅依赖于单个MC样本,从而能够跨样本进行梯度累积并确保恒定的内存使用;(2)等价性:在在线策略训练中,该下界的值和梯度与基于ELBO的目标相等,因此它也是对原始RL目标的有效近似。这些性质使得BGPO能够采用大的MC样本量,改进似然近似和RL目标估计,从而带来性能提升。实验表明,BGPO在数学问题求解、代码生成和规划任务中显著优于先前的dLLMs RL算法。我们的代码和模型可在https://github.com/THU-KEG/BGPO获取。

英文摘要:

A key challenge in applying reinforcement learning (RL) to diffusion large language models (dLLMs) is the intractability of their likelihood functions, which are essential for the RL objective, necessitating corresponding approximation during training. While existing methods approximate the log-likelihoods by their evidence lower bounds (ELBOs) via customized Monte Carlo (MC) sampling, they incur significant memory overhead due to the need to retain all MC samples for the gradient computation of non-linear terms in the RL objective, and thus restrict feasible sample sizes, leading to imprecise likelihood approximations and distorted RL objective. To address this, we propose \emph{Boundary-Guided Policy Optimization} (BGPO), a memory-efficient RL algorithm that maximizes a specially constructed lower bound of the ELBO-based objective. This lower bound is carefully designed to satisfy two key properties: (1) Linearity: it is a linear sum where each term depends only on a single MC sample, thereby enabling gradient accumulation across samples and ensuring constant memory usage; (2) Equivalence: Both the value and gradient of this lower bound are equal to those of the ELBO-based objective in on-policy training, making it also an effective approximation for the original RL objective. These properties allow BGPO to adopt a large MC sample size, improving likelihood approximations and RL objective estimation, which in turn leads to enhanced performance. Experiments show that BGPO significantly outperforms previous RL algorithms for dLLMs in math problem solving, code generation, and planning tasks. Our codes and models are available at \href{https://github.com/THU-KEG/BGPO}{https://github.com/THU-KEG/BGPO}.

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

↑