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

coherence_boosted_scoring

coherence_boosted_scoring

【效率与协作】Apply the coherence boosting log-linear scoring rule to full-context and premise-free answer likelihoods.

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

技能说明

GitHub

name: coherence_boosted_scoring description: Apply the coherence boosting log-linear scoring rule to full-context and premise-free answer likelihoods.

Coherence Boosted Scoring

Use this skill when you already have candidate log likelihoods under a full context and a premise-free context and need the paper's inference-time correction.

Inputs

  • Equal-length lists of full-context and premise-free log likelihoods.
  • A real-valued alpha; negative values discount premise-free priors.

Outputs

  • Combined scores full_logprob + alpha * short_logprob.
  • Predicted candidate index and margin diagnostics.

Workflow

  1. Validate equal list lengths and finite numeric values.
  2. Compute boosted scores in the log domain.
  3. Return the argmax, preserving candidate order.
  4. Record whether alpha is negative, zero, or positive for mechanism evidence.

Validation

Run the deterministic tests in tests/test_boosted_scoring.py.

Limitations

This skill does not estimate likelihoods or select alpha. It only implements the paper's scoring equation.

我的收藏