Fractional rollout rewards lose their GRPO signal after bfloat16 conversion
The rollout adapter constructs final reward tensors with dtype=torch.bfloat16 before advantage estimation. This can erase fractional differences that GRPO needs to distinguish rollouts in the same group.
For example, the precision loss can be reproduced on CPU:
import torch
rewards = torch.tensor([1.0, 1.001], dtype=torch.bfloat16)
advantages = (rewards - rewards.mean()) / (rewards.std() + 1e-6)
print(rewards) # both values round to 1.0
print(advantages) # both advantages are 0
Through the actual RolloutAdapter.get_train_data_batch and compute_rollout_level_advantage(..., adv_estimator="grpo") path, both transition and trajectory aggregation produce zero advantages for this group. A CPU diagnostic through VERL's vanilla policy loss also produces zero policy-logit gradients for these rollouts. A different close group, [0.9, 0.901], yields asymmetric advantages [0, 1.4140625].
Expected behavior: retain the reward differences through the group statistics. Keeping reward tensors in float32 gives opposing nonzero advantages for these examples; the model precision does not need to change.
Reproduced against d381995396274039f2bb1cbe5ff42ac8067f4e47, on macOS arm64 / Python 3.12.3 / torch 2.13.0 / VERL 0.8.0, using the locked CPU development environment. Regression cases across both aggregation levels fail for three close positive/negative reward groups (6 failures); the binary-reward control passes (2 cases).
This evidence concerns numerical correctness in the adapter and GRPO calculation. It does not establish an improvement in a trained model, learning curves, GPU execution or performance.