界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
效率与协作 · SKILL.md

factorized_score_composition

factorized_score_composition

【效率与协作】Compose F-NPSE and PF-NPSE posterior scores from prior corrections and per-condition score estimates.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

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.

我的收藏