JustGRPO icon indicating copy to clipboard operation
JustGRPO copied to clipboard

about the importance ratio method

Open STAR-CV opened this issue 10 months ago • 1 comments

Hello, I'm new to RL and have a question. Previously, the d1 involved sampling once, then updating 12 times with the same batch of data. This ensured subsequent ratios weren't 1, maintaining distinct old and new strategies to implement GRPO's core theory. If the current code keeps the ratio value at 1, is this RL update reasonable?

STAR-CV avatar Feb 04 '26 02:02 STAR-CV

This is reasonable, as it is simply an on-policy (updating once immediately after each rollout) version of GRPO. We empirically found this setup already yields satisfactory results.

While the ratio clipping technically doesn't trigger in this strict on-policy setting, we retained the standard GRPO formulation to maintain algorithmic consistency and to support potential off-policy extensions (e.g., performing multiple update epochs per batch) in the future.

nzl-thu avatar Feb 04 '26 10:02 nzl-thu