Reasoning RL
×Stage · GLM-5
GRPO with IcePop, fully on-policy, on mathematics, science, code and tool-integrated reasoning, each with binary outcome rewards from its own judges.
GRPO, group relative policy optimization
For each prompt the model writes a group of answers; each is scored and compared with the group’s mean, and the model is moved toward the answers above it, by a step clipped near the policy that wrote them and with a penalty for leaving a reference model.
DeepSeek-R1 paper, eq. 1 to 3, and DeepSeek-V3 report, eq. 26 to 28; for one prompt, in the atlas’s letters w, w̄, D
What the letters mean
: answer ’s probability under the model being trained over its probability under the policy that wrote it; : its reward less the group’s mean, over the group’s standard deviation; : a KL penalty to the reference model; : the group size; , : hyper-parameters. Maximized.
The GLM-5 report writes its own objective (eq. 1, p. 11): GRPO’s clipped ratio and group-normalized advantage, averaged per token, each token kept only if its training-to-inference ratio lies in with IcePop’s (not the KL weight of the equation above, which the report removes); is 0.2 below and 0.28 above.
- Hyper-parameters
- group 32, batch 32, on-policy
Not disclosed Steps · Learning rate
Why
The indexer’s top-k is to sparse attention what routing is to experts: the training and inference engines must select alike. A deterministic top-k operator resolved the mismatch; non-deterministic ones degraded RL drastically after a few steps. GLM-5 report §3.2, p. 12
What the terms meanSparse attention
- Sparse attention
- Each query attends only to a subset of the earlier positions, picked by an indexer, which keeps attention over a long context affordable.
All settings5
- Algorithm
- GRPO with IcePop: tokens whose ratio of the training to the inference policy’s probability leaves [1/β, β] are dropped; no KL term; the clip asymmetric (eq. 1)
- Hyper-parameters
- β = 2, ε_low = 0.2, ε_high = 0.28; entirely on-policy, a group size of 32 and a batch size of 32
- Data
- Mathematics, science, code and tool-integrated reasoning, in roughly equal shares; for mathematics and science, problems GLM-4.7 rarely solves but stronger teachers can
- Rewards
- Binary outcome rewards from judge models or evaluation systems specific to each domain and source
- Indexer
- Frozen by default throughout the RL stages, its top-k by the deterministic torch.topk; non-deterministic top-k operators degraded RL drastically within a few steps
Sources2
- GLM5-2602.15763v2.pdf, p. 11Algorithm
- GLM5-2602.15763v2.pdf, p. 12Algorithm, Hyper-parameters, Data, Rewards, Indexer