用新算法提升图像描述生成的稳定性和多样性
Group Relative Policy Optimization for Image Captioning
- 采用多候选生成与组内对比优化模型
- 相比单样本采样,生成更多描述且减少训练波动
- 适合追求高质量、多样化图像描述的研究者
图像描述任务通常采用两阶段训练:第一阶段使用交叉熵损失优化,第二阶段采用自参考序列训练(SCST)进行强化学习优化。但SCST存在缺陷:仅以单一贪婪解码结果为基准,若模型不稳定,该基准可能较差,导致优势估计方差大,引发策略更新不稳;且仅比较一个采样结果与贪婪结果,生成多样性受限,易陷入局部最优。本文提出使用最新的组相对策略优化(GRPO)算法作为第二阶段优化方案。GRPO对输入图像生成多个候选描述,并通过组内比较持续优化模型。通过约束策略更新幅度和KL散度,显著提升训练稳定性。相较于SCST仅采样一个答案,GRPO生成多个候选答案,覆盖更广解空间。结合KL散度约束,可在保证稳定性的同时提升生成多样性。代码已开源:https://github.com/liangxu-one/ms-models/tree/image_caption_grpo/research/arxiv_papers/Image_Caption_GRPO。
原文摘要 · Abstract (English)
Image captioning tasks usually use two-stage training to complete model optimization. The first stage uses cross-entropy as the loss function for optimization, and the second stage uses self-critical sequence training (SCST) for reinforcement learning optimization. However, the SCST algorithm has certain defects. SCST relies only on a single greedy decoding result as a baseline. If the model itself is not stable enough, the greedy decoding result may be relatively worst, which will lead to a high variance of advantage estimation, further leading to unstable policy updates. In addition, SCST only compares one sampling result with the greedy decoding result, and the generation diversity is limited, which may fall into a local optimum. In this paper, we propose using the latest Group Relative Policy Optimization (GRPO) reinforcement learning algorithm as an optimization solution for the second stage. GRPO generates multiple candidate captions for the input image and then continuously optimizes the model through intragroup comparison. By constraining the amplitude of policy updates and KL divergence, the stability of the model during training is greatly guaranteed. In addition, compared to SCST, which only samples one answer, GRPO samples and generates multiple answers. Multiple candidate answers in the group cover a wider solution space. Combined with KL divergence constraints, GRPO can improve diversity while ensuring model stability. The code for this article is available at https://github.com/liangxu-one/ms-models/tree/image_caption_grpo/research/arxiv_papers/Image_Caption_GRPO.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。