基于标量伴随匹配的Q学习
研究论文 · 2026/10/08
流策略能够捕捉丰富多样的动作分布,通过离策略强化学习对其进行微调以超越演示数据已引起越来越多的兴趣。然而,针对学习到的价值函数微调流策略并非易事,因为策略在多个流步骤中生成动作。伴随匹配提供了一种原则性方法,通过将价值信息从最终动作传播回每个流步骤来更新流模型本身,但它需要在每一步通过策略进行向量-雅可比积,其成本随流步骤数和策略规模增长。我们观察到预训练流策略的批平均速度雅可比集中在其对角线上。受此发现启发,我们推导出一个闭式标量伴随,将最终动作处的价值梯度按流时间缩放,从而消除了每步的向量-雅可比积。我们进一步发现,在标量伴随下,控制策略生成动作处的评论家价值尤为重要。基于这些发现,我们提出了标量伴随匹配的Q学习(SQAM),它将标量伴随与这些动作处的价值惩罚相结合。SQAM的增益集中在四个最难的OGBench领域,其成功率在每个领域超过最强基线18至35个百分点。为了测试SQAM是否适用于大型预训练策略,我们还在真实双臂机器人上微调了一个视觉-语言-动作策略。SQAM在所有三个任务上均优于监督微调。
该研究提出了一种高效且有效的流策略微调方法,在复杂基准和真实机器人任务上均取得显著提升,对强化学习和机器人学习领域具有重要价值。
Flow policies capture rich and diverse action distributions, and fine-tuning them with off-policy RL to improve beyond the demonstrations has drawn growing interest. However, fine-tuning a flow policy against a learned value function is not trivial, because the policy generates its action over many flow steps. Adjoint matching offers a principled way to update the flow model itself by propagating value information from the final action back to each flow step, but it requires a vector--Jacobian product through the policy at every step, a cost that grows with the number of flow steps and the policy size. We observe that the batch-averaged velocity Jacobian of pretrained flow policies concentrates on its diagonal. Motivated by this finding, we derive a closed-form scalar adjoint that scales the value gradient at the final action by the flow time, eliminating the per-step vector--Jacobian products. We further find that controlling the critic's value at policy-generated actions is particularly important under the scalar adjoint. Based on these findings, we propose Q-learning with Scalar Adjoint Matching (SQAM), which combines the scalar adjoint with a value penalty at those actions. SQAM's gains concentrate on the four hardest OGBench domains, where its success rate exceeds that of the strongest baseline in each domain by 18 to 35 percentage points. To test whether SQAM extends to large pretrained policies, we also fine-tune a vision-language-action policy on a real bimanual robot. SQAM improves over supervised fine-tuning on all three tasks.