DaGRPO:通过意识性群相对策略优化纠正推理中的梯度冲突
DaGRPO: Rectifying Gradient Conflict in Reasoning via Distinctiveness-Aware Group Relative Policy Optimization
AI总结:
DaGRPO通过意识性群相对策略优化纠正推理中的梯度冲突,提升推理能力和样本效率。
摘要:
大型语言模型(LLMs)的发展推动了从表面指令跟随到严格长时间 horizon 推理的范式转变。尽管群相对策略优化(GRPO)因其卓越的性能成为激发此类预训练推理能力的关键机制,但其仍受显著的训练不稳定性和低样本效率的困扰。我们理论上识别出这些问题的根本原因在于策略内 rollout 中缺乏多样性:对于常规查询,高度同质的样本导致破坏性的梯度冲突;而对于困难查询,有效正样本的稀缺导致优化无效。为弥合这一差距,我们提出了意识性群相对策略优化(DaGRPO)。DaGRPO包含两个核心机制:(1)序列级梯度纠正,利用细粒度评分动态屏蔽低多样性的样本对,从而在源头消除梯度冲突;(2)非策略数据增强,引入高质量锚点以恢复挑战性任务的训练信号。在9个数学推理和分布外(OOD)泛化基准上的广泛实验表明,DaGRPO显著优于现有的SFT、GRPO和混合基线,实现了新的最先进性能(例如,在数学基准上平均准确率提升+4.7%)。此外,深入分析证实DaGRPO有效缓解了梯度爆炸并加速了长链推理能力的出现。
英文摘要:
The evolution of Large Language Models (LLMs) has catalyzed a paradigm shift from superficial instruction following to rigorous long-horizon reasoning. While Group Relative Policy Optimization (GRPO) has emerged as a pivotal mechanism for eliciting such post-training reasoning capabilities due to its exceptional performance, it remains plagued by significant training instability and poor sample efficiency. We theoretically identify the root cause of these issues as the lack of distinctiveness within on-policy rollouts: for routine queries, highly homogeneous samples induce destructive gradient conflicts; whereas for hard queries, the scarcity of valid positive samples results in ineffective optimization. To bridge this gap, we propose Distinctiveness-aware Group Relative Policy Optimization (DaGRPO). DaGRPO incorporates two core mechanisms: (1) Sequence-level Gradient Rectification, which utilizes fine-grained scoring to dynamically mask sample pairs with low distinctiveness, thereby eradicating gradient conflicts at the source; and (2) Off-policy Data Augmentation, which introduces high-quality anchors to recover training signals for challenging tasks. Extensive experiments across 9 mathematical reasoning and out-of-distribution (OOD) generalization benchmarks demonstrate that DaGRPO significantly surpasses existing SFT, GRPO, and hybrid baselines, achieving new state-of-the-art performance (e.g., a +4.7% average accuracy gain on math benchmarks). Furthermore, in-depth analysis confirms that DaGRPO effectively mitigates gradient explosion and accelerates the emergence of long-chain reasoning capabilities.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。