Skip to content
Back to skills

Diayn Maxent Policy Update

ASecurity

Execute a bounded maximum-entropy DIAYN policy surrogate update with before-after loss and parameter-change evidence.

  • 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 diayn_maxent_policy_update --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Diayn Maxent Policy Update?

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

Security grade badge for Diayn Maxent Policy Update
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-diayn-maxent-policy-update/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-diayn-maxent-policy-update)

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

SKILL.md
---
name: diayn_maxent_policy_update
description: Execute a bounded maximum-entropy DIAYN policy surrogate update with before-after loss and parameter-change evidence.
---

# DIAYN Maximum-Entropy Policy Update

Use this skill when a recovery needs executable evidence that a skill-conditioned policy was updated using the DIAYN intrinsic objective. The full paper uses SAC; this skill provides a bounded surrogate contract for reduced recovery when full MuJoCo/SAC training is infeasible.

## Inputs

- Trainable scalar policy parameters indexed by skill.
- Target state regions or action directions for each sampled skill.
- Learning rate and entropy coefficient.
- A rollout batch or deterministic synthetic batch.

## Outputs

- `params_before` and `params_after`.
- `loss_before` and `loss_after`.
- Objective delta, entropy diagnostic, and optimizer-step status.

## Workflow

1. Construct skill-conditioned predictions from current parameters.
2. Compute a differentiable surrogate loss against discriminable skill-specific targets.
3. Add an entropy-aware diagnostic so recovery records stochasticity pressure.
4. Apply a real gradient step to the parameters.
5. Report whether parameters changed and whether loss improved.

## Validation

Run `python scripts/policy_update.py --demo`. Tests verify that one update changes parameters and does not increase the deterministic surrogate loss.

## Limitations

This helper is not a full SAC implementation and must be labeled as reduced/proxy recovery when used alone. It preserves the DIAYN optimizer contract but not the full benchmark runtime.

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…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.