Rnd Normalization Streams

Maintain RND observation whitening/clipping and intrinsic reward scaling statistics.

yzj623 Updated

File contents

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

  1. Initialize running statistics from early random-agent or synthetic preflight observations.
  2. Update statistics with each new batch using a numerically stable batch merge.
  3. Normalize observations with (x - mean) / std and clip to [-5, 5] by default.
  4. 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.

yzj623/paperbench commit 936793a92f

Frequently asked questions

npx get-skill add yzj623/rnd-normalization-streams