面向离散策略优化的引导对比策略优化
阅读原文· arxiv.org针对现有基于组优势的强化学习方法(如GRPO和DAPO)在所有token上采用统一奖励、无法细粒度分配信用的问题,本文提出引导对比策略优化(GCPO)。该方法通过对比模型在正负提示下的预测,将token级优势与对比预测差异成比例分配,从而提供更精确的学习信号。实验表明,GCPO能有效强调语义相关区域(如图像生成中与文本对齐的视觉区域、推理链中的关键词),并在文本到图像生成和思维链推理基准测试中均优于GRPO和DAPO基线。
Group-advantage-based reinforcement learning methods, such as GRPO and DAPO, have demonstrated strong performance across diverse domains, including mathematical reasoning and text-to-image generation. However, their reliance on sample-level rewards introduces a key limitation as uniform credit assignment across all tokens fails to capture fine-grained, token-level contributions. To address this issue, we propose Guidance Contrastive Policy Optimization (GCPO), a novel algorithm that enables per-token credit assignment by contrasting model predictions under positive and negative prompts. Rather than uniformly broadcasting sample-level advantages, GCPO assigns token-level advantages proportional to the difference between these contrastive predictions, allowing more precise and informative learning signals. Empirically, we find that GCPO emphasizes semantically relevant regions such as visual areas aligned with textual prompts in text-to-image generation, and critical keywords within reasoning traces for chain-of-thought tasks. Through extensive experiments, GCPO consistently outperforms GRPO and DAPO baselines on both text-to-image generation and chain-of-thought reasoning benchmarks, demonstrating its effectiveness as a general and scalable optimization strategy for discrete policy learning.