Skip to content
Back to skills

Entropy Adaptation Step

ASecurity

Run and validate Tent-style entropy minimization updates on unlabeled target batches with trainable modulation parameters.

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

Security analysis

A100/100

Scanned September 9, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Entropy Adaptation Step?

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

Security grade badge for Entropy Adaptation Step
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-entropy-adaptation-step/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-entropy-adaptation-step)

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

SKILL.md
---
name: entropy_adaptation_step
description: Run and validate Tent-style entropy minimization updates on unlabeled target batches with trainable modulation parameters.
---

# Entropy-Minimizing Adaptation Step

Use this skill to implement the core Tent update in a recovery harness or small experiment. It is appropriate when the adaptation loss is mean softmax entropy on unlabeled target logits and at least one trainable modulation parameter is updated. Do not use it as a pseudo-labeling method or as evidence if no optimizer state or parameter value changes.

## Inputs

- Target batch features or a model callable producing logits.
- Trainable adaptation parameters, usually normalization affine scale and shift.
- Learning rate and number of steps.
- Optional labels for post-adaptation evaluation only, never for loss computation.

## Outputs

- Entropy before and after adaptation.
- Parameter values before and after adaptation.
- Predictions before and after adaptation.
- Mechanism flags showing entropy loss and optimizer execution.

## Workflow

1. Compute logits and mean softmax entropy on the target batch.
2. Backpropagate or analytically compute the entropy gradient for the trainable parameters.
3. Apply the declared optimizer update.
4. Clear or record gradient state.
5. Recompute logits, entropy, and predictions after the update.
6. Save trace fields `params_before`, `params_after`, `loss_before`, and `loss_after`.

## Validation

Run `python scripts/tent_step.py --self-test`. The deterministic self-test uses a tiny two-class target batch and verifies entropy reduction plus changed scale/bias parameters.

## Limitations

The included script is a standard-library proxy for deterministic recovery when PyTorch or real datasets are unavailable. For full recovery, apply the same objective and trace contract to the actual model 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.