verl
verl copied to clipboard
Regarding Masking Rollout in GRPO.
I was reading https://arxiv.org/pdf/2512.11463 paper following paragraph caught my attention
Lesson 2: Impact of reward shaping on unparsable trajectories. Reward formulation is essential to
guide policy updates, particularly regarding the handling of format errors. We observe that when the
model output cannot be parsed against the ground truth, such instances must be strictly masked out
to prevent them from contributing to the gradient. In our experiments, retaining these instances while
applying auxiliary reward terms (e.g., length penalty) resulted in non-zero advantages. This introduces
significant noise into the training signal, as the policy might be inadvertently incentivized to optimize for
auxiliary constraints rather than correct reasoning logic.
if trajectory/rollout is incomplete just ignore rollout because we do not know how bad or good rollout it.
i have two questions wrt to this.
- Is this correct approach? how others solve formatting, parsing error during RL tranining?
- Specific to verl: how to ignore rollout during advantage calculation as well as backprop.. essentially rollout should not have any impact on training? thank you.
Were you able to figure out how to do this?