Skip to content
Back to skills

Factorized Score Composition

ASecurity

Compose F-NPSE and PF-NPSE posterior scores from prior corrections and per-condition score estimates.

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

Installs into .claude/skills of the current project.

Are you the author of Factorized Score Composition?

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

Security grade badge for Factorized Score Composition
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-factorized-score-composition-arex-skill/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-factorized-score-composition-arex-skill)

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

SKILL.md
---
name: factorized_score_composition
description: Compose F-NPSE and PF-NPSE posterior scores from prior corrections and per-condition score estimates.
---

# Factorized Score Composition

Use this skill when implementing or auditing the core F-NPSE/PF-NPSE inference-time score. It should be called before sampling so the recovery can prove that additive score composition, not duplicated harness logic, produced the score.

## Inputs

- Current `theta` vector.
- A progress value `(T - t) / T` in `[0, 1]`.
- Per-observation scores for F-NPSE, or per-subset scores for PF-NPSE.
- Prior score vector, typically `-theta` under standard-normal reparameterization.
- Condition count: number of observations for F-NPSE or number of subsets for PF-NPSE.

## Outputs

- Composed score vector.
- Trace with score sum, prior correction, condition count, progress, and mode.

## Workflow

1. Validate all score vectors have the same dimensionality.
2. Sum learned condition scores.
3. Compute the correction `(1 - condition_count) * progress * prior_score`.
4. Add the correction to the score sum.
5. Return a trace so downstream recovery can verify the sign and count semantics.

## Validation

Run `python tests/test_factorized_score_composition.py` or the Distiller skill-tree validator.

## Limitations

This skill composes supplied score estimates. It does not train the score network and does not sample posterior particles by itself.

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…