Manuscript Offprint

arXiv:2610.32431

When to Stop Penalizing Actions? Martingale GRPO for VLA Reinforcement Learning

Zongyao Zhao, Cheng-Jie Zhao, Ruihang Jiang, Bing Zheng, Zhaolin Wang, Yuanwei Liu

ABSTRACT

A failed vision-language-action (VLA) rollout does not imply that every action contributed to failure. Yet in group-relative policy optimization (GRPO), a single trajectory-level advantage is assigned to all actions in a rollout. Potentially useful recovery attempts can thus be penalized alongside the errors they aim to correct. Ideal stopping conditions for failure feedback are characterized using success-probability and policy-score martingales. At these stops, the removed gradient contribution has zero conditional expectation given the retained information. Truncation therefore preserves the expectation of a reference GRPO group-gradient estimator and can reduce its covariance. One such stop occurs when the conditional probability of success is zero, motivating error and recovery cues for selecting candidate feedback boundaries. Martingale GRPO (MART-GRPO) is introduced with a vision-language model (VLM) for event-guided truncation. The VLM is fine-tuned on our annotated training set using low-rank adaptation (LoRA). The last visible error without observed recovery is localized by the frozen VLM in complete rollout videos. Failure feedback is retained through the selected error interval and removed afterward, while successful-rollout loss terms and original loss normalization are preserved. For retrospective boundaries, changes in expectation and variance are analyzed to assess departures from ideal stopping. Experiments with OpenVLA-OFT on RoboTwin 2.0 show that MART-GRPO improves success rates over full-trajectory GRPO across multiple tasks.

1 INTRODUCTION

Vision-language-action (VLA) models map visual observations and language instructions to actions (Zitkovich et al., 2023; Kim et al., 2025b). Pretrained policies are adapted through supervised fine-tuning on expert demonstrations (Kim et al., 2025a) and further optimized through reinforcement learning from environment interaction (Lu et al., 2025; Liu et al., 2025a). Group-relative policy optimization (GRPO) (Shao et al., 2024) turns terminal task rewards into trajectory-level advantages by comparing rollouts collected for the same task. Each advantage is then applied across the rollout's action chunks.

A terminal failure does not imply that every action contributed to failure. For example, a policy may drop an object, attempt to regrasp it, and exhaust its interaction budget (Figure 1). In a mixed-outcome group, the failed rollout's negative advantage penalizes both the error and the subsequent recovery attempts. This motivates the question: When to stop penalizing actions?

Several methods already change which actions receive feedback, each at a different point in the pipeline. Temporal GRPO reconstructs stage-relative advantages but requires task-stage detection and rollout alignment (Zhou et al., 2026). PCM allocates gradient computation through chunk sampling guided by phase-level success–failure divergence (Bagaria et al., 2026). RedFlow’s corrective targets require suitable successful matches in offline data (Yan et al., 2026). In LLM reinforcement learning, negative-advantage updates are masked in μ\mu-GRPO using importance-ratio triggers (Tian et al., 2026). ESPO terminates rollouts early (Li et al., 2026b), whereas PS-PPO samples update prefixes with importance weighting to preserve the reference gradient expectation (Hwang & Kim,

Figure

Figure 1: Errors and recovery attempts within a failed rollout. Selected RoboTwin hammer frames from two scenes, a success (top) and a failure (bottom). The red outline marks the hammer after it is lost at chunk 2, and the later frames show recovery attempts. In mixed-outcome groups, full GRPO assigns the error and subsequent recovery attempts the same negative advantage.

2026). Here, failed-rollout suffixes are masked using visible errors and recovery cues after complete execution. Group advantages and original loss normalization are retained without additional correction weights for truncation.

To identify a principled truncation boundary, we ask when future actions make no expected gradient contribution. At a fixed policy, the conditional success probability and the cumulative policy score are both martingales, and their increments carry that contribution. Together they define the remaining conditional credit: the expected policy-gradient contribution of future actions given the observed history. For example, when failure is already determined by the observed history, the remaining credit is zero. If the decision to stop reads only the observed prefix and the remaining credit is zero, the removed failure contribution has zero conditional expectation. For conditionally independent rollouts whose normalization factors are measurable with respect to the retained information, the truncated GRPO group-gradient estimator is a conditional projection of the full reference estimator. It therefore has the same expectation and no greater covariance.

Motivated by this analysis, we propose Martingale GRPO (MART-GRPO) for event-guided failure-feedback selection. A vision-language model (VLM) selects feedback boundaries based on visible errors and whether recovery follows. The VLM is fine-tuned on error and recovery annotations and frozen during policy optimization. It reads each complete failed rollout and localizes the onset of the last visible error without observed recovery to a chunk interval. Later frames help interpret earlier events, so the boundary is selected retrospectively. The interval's right endpoint defines B: failure feedback is retained from chunk 0 through B and removed afterward. Successful-rollout loss terms are retained. A conditional residual relates these retrospective boundaries to the conditional projection above and bounds their effects on gradient expectation and total variance.

Our contributions are threefold.

• A martingale analysis of failure feedback. Ideal stopping rules are characterized through remaining conditional credit and a conditional projection of the complete GRPO group-gradient estimator. The projection preserves the reference expectation without increasing covariance, while residual and bias–variance analyses characterize the effects of retrospective boundaries.

• Event-guided feedback truncation with MART-GRPO. A VLM is fine-tuned with LoRA on our annotated training set and frozen to localize the last visible error without observed recovery in complete rollouts. These event intervals are converted into failure-prefix masks that preserve successful-rollout loss terms, group advantages, and original loss normalization.

• Empirical evaluation of policy performance and feedback selection. Seven-task OpenVLA-OFT comparisons on RoboTwin 2.0 show higher mean success than Full GRPO, complemented by localization and feedback-use measurements. Two-task ablations favor event-guided truncation over uniform penalty scaling and random prefixes.

References (33)