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

pplm_controlled_generation_evaluation

pplm_controlled_generation_evaluation

【效率与协作】Evaluate PPLM controlled-generation proxies with target-mass gain, KL fluency cost, and target consistency checks.

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

技能说明

GitHub

name: pplm_controlled_generation_evaluation description: Evaluate PPLM controlled-generation proxies with target-mass gain, KL fluency cost, and target consistency checks.

PPLM Controlled Generation Evaluation

Use this skill to decide whether a PPLM recovery run improved attribute control while preserving enough fluency. It is useful for full GPT-2 runs and for declared reduced/proxy experiments.

Inputs

Base probabilities, controlled/fused probabilities, target token indices, and the module-plan recovery target.

Outputs

Numeric metrics including target mass gain and KL divergence, plus pass/fail status against thresholds.

Workflow

  1. Sum target mass before and after control.
  2. Compute absolute target-mass gain.
  3. Compute KL from controlled/fused distribution to the base distribution.
  4. Pass only when gain meets the target and KL is bounded.

Validation

Run python tests/test_controlled_generation_evaluation.py or Distiller validation.

Limitations

Human fluency and Perspective-style toxicity scores are outside this deterministic reduced evaluator.

我的收藏