读取轨迹,引导路径:面向扩散语言模型的轨迹感知强化学习
Read the Trace, Steer the Path: Trajectory-Aware Reinforcement Learning for Diffusion Language Models
AI总结:
提出CAPR算法,通过缓存轨迹状态和块级价值头,利用去噪轨迹提供类似树搜索的细粒度监督,在降低计算成本的同时提升扩散语言模型的强化学习效果。
摘要:
扩散大语言模型(dLLMs)通过并行迭代去掩码和修正多个位置来生成响应。这一过程留下了丰富的去噪轨迹,描绘了哪些标记变得可信、哪些仍不稳定以及何时形成承诺。现有的dLLM强化学习方法仅弱化地使用这一信号。扁平化展开成本低,但将单一结果奖励分配给整个轨迹。树展开通过分支部分轨迹并将叶节点奖励向上传播,提供更精细、可验证的训练信号,但计算密集。我们提出疑问:去噪轨迹本身能否在不使用树级计算的情况下提供类似树的监督?我们引入CAPR(缓存-摊销路径细化),一种dLLM-RL算法,它将去噪轨迹总结为紧凑的路径状态,利用缓存轨迹状态生成廉价的兄弟延续,并训练块级价值头用于局部块级监督。在块级去掩码调度下,CAPR记录路径状态和块进度特征,然后根据每个块中揭示的标记将最终结果奖励重新分配到各个块。这训练价值头将一个稀疏奖励转换为块级PPO权重。因此,CAPR恢复了树搜索的大部分粒度,同时避免了完整的树扩展,将展开生成成本降低到扁平展开的大约0.75倍和树展开的0.6倍(在标准设置下)。在4x4数独、Countdown、GSM8K和Math500上,使用密集和混合专家LLaDA骨干网络,CAPR在256和512标记预算下为RL调优的dLLMs设立了新的最先进水平。在数独上,它以不到三分之一的每步计算量匹配了最强的树结构基线。
英文摘要:
Diffusion large language models (dLLMs) generate responses by iteratively unmasking and revising many positions in parallel. This process leaves a rich denoising trace depicting which tokens become confident, which remain unstable, and when commitments form. Existing dLLM reinforcement learning methods use this signal only weakly. Flat rollouts are cheap, but assign a single outcome reward to the whole trajectory. Tree rollouts provide finer, verifiable training signals by branching partial trajectories and propagating leaf rewards upward, but are compute intensive. We ask whether the denoising trace itself can provide tree-like supervision without tree-level compute. We introduce CAPR (Cached-Amortized Path Refinement), a dLLM-RL algorithm that summarizes the denoising trace into a compact path state, uses cached trajectory states to generate cheap sibling continuations, and trains a block-level value head for local block-wise supervision. Under a block-wise unmasking schedule, CAPR records path-state and block-progress features, then redistributes the final outcome reward across blocks according to the tokens revealed in each block. This trains the value head to convert one sparse reward into block-level PPO weights. CAPR therefore recovers much of the granularity of tree search while avoiding full tree expansion, reducing rollout-generation cost to roughly 0.75x that of flat rollouts and 0.6x that of tree rollouts (under standard settings). Across 4x4 Sudoku, Countdown, GSM8K, and Math500, on dense and mixture-of-experts LLaDA backbones, CAPR sets a new state of the art for RL-tuned dLLMs at 256- and 512-token budgets. On Sudoku, it matches the strongest tree-structured baseline at less than one third of the per-step compute.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。