arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.29538cs.LGcs.AI
收藏

DPO计算图的随机剪枝:训练速度提升1.4倍且峰值内存更低

Stochastic Pruning of the DPO Computation Graph: 1.4x Faster Training and Lower Peak Memory

South China University of Technology(华南理工大学);Shenzhen Technology University(深圳技术大学)

Yubing Wu, Wei Chen, Junmei Yang, Delu Zeng, Tiewen Pan

AI总结:

该研究提出DPO计算图随机剪枝框架,通过采样省略各阶段计算,使分支剪枝获1.426倍步骤加速、30%训练时间减少,同时降低峰值内存。

摘要:

直接偏好优化(DPO)在输出评分、序列执行和反向传播中会产生训练成本,因此仅减少监督信号并不一定能节省计算量。我们提出了一个用于DPO计算图随机剪枝的统一框架,该框架独立采样用于评分的响应位置、用于执行的响应前缀以及用于反向传播的偏好分支。通过在对应操作前做出这些选择,该框架在训练步骤的每个阶段都省略了计算。我们的分析表征了由位置和序列剪枝引起的目标变化,并使用逆概率加权为采样后的目标获得了一个条件无偏的单分支梯度估计器。受控测量表明,位置和序列剪枝主要降低了峰值内存,大部分输出内存节省归因于保留完整响应监督的实现。分支剪枝相对于串联DPO基线实现了1.426倍的步骤时间加速,并且在两个模型系列中,相对于标准DPO减少了约30%的训练时间,同时平均准确率略有降低,开放式分数则随基准不同而变化。这些发现将随机图剪枝的资源效益与省略的计算以及训练目标的相应变化联系起来。

英文摘要:

Direct preference optimization (DPO) incurs training costs in output scoring, sequence execution, and backpropagation, so reducing supervision alone does not necessarily save computation. We introduce a unified framework for stochastic pruning of the DPO computation graph that independently samples response positions for scoring, response prefixes for execution, and preference branches for backpropagation. By making these selections before the corresponding operations, the framework omits computation at each stage of a training step. Our analysis characterizes the objective changes induced by position and sequence pruning and uses inverse-probability weighting to obtain a conditionally unbiased single-branch gradient estimator for the sampled objective. Controlled measurements show that position and sequence pruning primarily reduce peak memory, with most output-memory savings attributable to an implementation that retains full response supervision. Branch pruning yields a $1.426\times$ step-time speedup over a concatenated DPO baseline and reduces training time by about 30\% relative to stock DPO across two model families, with slightly lower mean accuracy and benchmark-dependent changes in open-ended scores. These findings relate the resource benefits of stochastic graph pruning to the computation omitted and the resulting changes in the training objective.

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

↑