RND Normalization Streams
Use this skill when preparing observations or intrinsic rewards for RND. Do not use it to normalize policy-network observations unless the experiment explicitly chooses that; the paper normalizes predictor/target inputs.
Inputs
- Numeric observation batches.
- Intrinsic reward or intrinsic-return batches.
- Epsilon and clip bounds.
Outputs
- Running mean, variance, and count.
- Whitened and clipped observations.
- Reward values scaled by running return standard deviation.
Workflow
- Initialize running statistics from early random-agent or synthetic preflight observations.
- Update statistics with each new batch using a numerically stable batch merge.
- Normalize observations with
(x - mean) / stdand clip to[-5, 5]by default. - Scale intrinsic rewards by reward/return standard deviation with epsilon protection.
Validation
Run python tests/test_normalization.py from this skill directory.
Limitations
This skill provides deterministic numeric helpers, not a distributed RL statistics service.