Constrained Group Relative Policy Optimization
Roger Girgis, Rodrigue de Schaetzen, Luke Rowe, Azalée Robitaille, Christopher Pal, Liam Paull
TL;DR
Constrained GRPO addresses constrained policy optimization for large multimodal models by integrating indicator-cost constraints with a Lagrangian multiplier framework atop GRPO. A key finding is that scalarizing rewards before group normalization can implicitly reweight terms due to within-group variance and covariance, misaligning multipliers with intended trade-offs; the authors prove this effect and propose scalarizing advantages instead, i.e., $A_{ ext{ScAdv}} = \lambda_R Z_R - \sum_{k=1}^K \lambda_k Z_{C_k}$, to preserve multiplier semantics. Empirical results in a gridworld and in NAVSIM v2 driving benchmarks show that scalarizing advantages yields more stable constraint enforcement and higher task performance under constrained GRPO, establishing a practical, scalable approach for constrained policy optimization in embodied AI with large foundation-model backbones. The work provides a concrete recipe for balancing behavior constraints with task objectives in critic-free policy optimization, with broad relevance to safety-sensitive multimodal systems.
Abstract
While Group Relative Policy Optimization (GRPO) has emerged as a scalable framework for critic-free policy learning, extending it to settings with explicit behavioral constraints remains underexplored. We introduce Constrained GRPO, a Lagrangian-based extension of GRPO for constrained policy optimization. Constraints are specified via indicator cost functions, enabling direct optimization of violation rates through a Lagrangian relaxation. We show that a naive multi-component treatment in advantage estimation can break constrained learning: mismatched component-wise standard deviations distort the relative importance of the different objective terms, which in turn corrupts the Lagrangian signal and prevents meaningful constraint enforcement. We formally derive this effect to motivate our scalarized advantage construction that preserves the intended trade-off between reward and constraint terms. Experiments in a toy gridworld confirm the predicted optimization pathology and demonstrate that scalarizing advantages restores stable constraint control. In addition, we evaluate Constrained GRPO on robotics tasks, where it improves constraint satisfaction while increasing task success, establishing a simple and effective recipe for constrained policy optimization in embodied AI domains that increasingly rely on large multimodal foundation models.
