#8077·verl

[RFC] C-GRPO: adaptive per-prompt group size for GRPO

Author: AryaFayyaziCreated Sep 30, 2026Updated Sep 30, 2026

Feature request

We'd like to propose C-GRPO as a verl recipe. It's from our NeurIPS 2026 paper, C-GRPO: Conformal Group Relative Policy Optimization.

Instead of sampling a fixed n responses for every prompt, C-GRPO samples in rounds (by default 2, 4, 8, 16, 32 responses) and stops early for a prompt once its sampled answers agree. "Agree" is decided with a split-conformal threshold per budget, calibrated on a small held-out set with the current policy and refreshed every 50 steps by default. Prompts the policy already handles consistently stop at 2 responses; prompts where the answers still disagree get the full budget.

Motivation

Rollout generation is usually the dominant cost in GRPO, and a fixed n spends the same budget on easy prompts as on hard ones. In the paper, C-GRPO reduces mean training rollouts by 49–70% relative to fixed-budget GRPO across six math, science and code benchmarks, while retaining strong fixed-budget accuracy. It's related to DAPO's dynamic sampling, but it decides how many responses to generate per prompt up front rather than filtering groups after generation.

From a quick read of compute_grpo_outcome_advantage, verl builds groups by uid and doesn't assume a fixed group size, so variable group sizes look like they'd fit without padding. The main change would be on the rollout side: generate in increments and only keep sampling the prompts that are still unresolved. Calibration is the main cost to be aware of: it samples n_cal × max_budget responses every Δ steps, so we'd expose n_cal and Δ in the config.

Your contribution

I'm happy to implement it as a recipe (I assume verl-recipe is the right home?) with a GSM8K / MATH-500 example on Qwen2.5-7B, plus tests. Before writing any code I'd like your guidance on:

  1. whether a recipe is the right place, or whether you'd rather see it as an option on the existing GRPO trainer;
  2. the preferred way to run several generation rounds within one training step with the current rollout workers.

I'll wait for your feedback before opening a PR.