Skip to content
Back to skills

Nce Recovery Evaluation

ASecurity

Evaluate conditional NCE recovery with ratio errors, KL metrics, and explicit mechanism checks for proxy runs.

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

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned September 9, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Nce Recovery Evaluation?

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

Security grade badge for Nce Recovery Evaluation
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-nce-recovery-evaluation/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-nce-recovery-evaluation)

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

Download with Pro
SKILL.md
---
name: nce_recovery_evaluation
description: Evaluate conditional NCE recovery with ratio errors, KL metrics, and explicit mechanism checks for proxy runs.
---

# NCE Recovery Evaluation

Use this skill after ranking and binary NCE recovery outputs are available. It compares the declared module-plan target against the recovery result and emits the mechanism checks needed for a soft-mode proxy recovery.

Do not use this skill to hide target drift. It should fail or report non-acceptance if the recovery target metadata differs from the module plan.

## Inputs

- The `fast_recovery_target` from `module_plan.json`.
- A ranking NCE output JSON.
- A binary NCE diagnostic JSON.
- A training trace or optimizer-update record.
- Source-boundary status from the recovery harness.

## Outputs

- `ranking_ratio_absolute_error`.
- `binary_inconsistency_gap`.
- KL divergence for optional synthetic distributions.
- Mechanism checks:
  - ranking candidate posterior normalized
  - ranking ratio recovered
  - binary self-normalization failed as expected
  - binary limit matched the paper counterexample
  - reduced optimizer step changed parameters

## Workflow

1. Load ranking and binary outputs.
2. Compute absolute error between ranking `x1` ratio and the true `1/3` ratio.
3. Compute the binary gap against the true ratio and check closeness to `3/7`.
4. Verify loss decreased and parameters changed in the reduced optimizer trace.
5. Produce a validator-compatible recovery-result payload.

## Validation

Run the Distiller skill validator with tests. Tests cover ratio metrics, KL computation, and mechanism-check booleans.

## Limitations

This skill evaluates reduced finite-support recovery. It does not compute Penn Treebank perplexity.

Files in this skill

  • SKILL.md1.7 KB
  • scripts/nce_evaluation.py4.9 KB
  • tests/test_nce_evaluation.py1.9 KB

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.