Skip to content
Back to skills

Rnd Bonus Model

ASecurity

Compute Random Network Distillation novelty bonuses from frozen deterministic target features and trainable predictor mean-squared error.

  • 247 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 9, 2026
testingpython

Security analysis

A100/100

Scanned September 9, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill rnd_bonus_model --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Rnd Bonus Model?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Rnd Bonus Model
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-rnd-bonus-model/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-rnd-bonus-model)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

SKILL.md
---
name: rnd_bonus_model
description: Compute Random Network Distillation novelty bonuses from frozen deterministic target features and trainable predictor mean-squared error.
---

# RND Bonus Model

Use this skill when implementing the core Random Network Distillation exploration bonus. It applies when observations have already been normalized and the experiment needs intrinsic rewards from predictor error against a fixed random target. Do not use this for forward-dynamics prediction; RND predicts a deterministic function of the current observation.

## Inputs
- Normalized observation vectors.
- A deterministic target feature map or target parameters that remain frozen.
- Predictor parameters and a learning rate.

## Outputs
- Per-sample squared prediction errors for intrinsic reward.
- Mean predictor loss.
- Updated predictor parameters after gradient descent.
- Checksums or copied parameters proving the target stayed fixed.

## Workflow
1. Build a seeded random target map and a separately initialized predictor.
2. Compute target features and predictor features for the same normalized observations.
3. Compute MSE and update only predictor parameters.
4. Use the detached per-sample errors as intrinsic rewards.
5. Log target-parameter equality before and after training when recovery uses this skill.

## Validation
Run `python scripts/rnd_model.py --self-test`. The test trains a tiny linear predictor, verifies loss decreases, and verifies target parameters remain unchanged.

## Limitations
The included script is a deterministic linear RND implementation for reduced recovery and regression tests. Larger neural policies may replace the linear predictor while preserving the frozen-target and MSE contracts.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…