Skip to content
Back to skills

Fudge Logit Rescoring

ASecurity

Apply the FUDGE decoding rule by combining base candidate logits with future-discriminator probabilities and renormalizing.

  • 247 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 9, 2026
toolspythongit

Works with

  • cli

Security analysis

A100/100

Scanned September 9, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Fudge Logit Rescoring?

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

Security grade badge for Fudge Logit Rescoring
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-fudge-logit-rescoring/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-fudge-logit-rescoring)

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

SKILL.md
---
name: fudge_logit_rescoring
description: Apply the FUDGE decoding rule by combining base candidate logits with future-discriminator probabilities and renormalizing.
---

# FUDGE Logit Rescoring

Use this skill when a base autoregressive generator supplies candidate next-token logits and a future discriminator can score each candidate-extended prefix. The skill implements `logit' = base_logit + strength * log P(attribute | prefix+candidate)`.

## Inputs
- `prefix_tokens`.
- Mapping of candidate token to base logit.
- Mapping/callable of candidate token to future probability.
- Optional `strength`, `top_k`, and clipping epsilon.

## Outputs
- Normalized probabilities over retained candidates.
- Audit trace with base logit, future probability, future log score, adjusted logit, and final probability.

## Workflow
1. Restrict to top-k base candidates if requested.
2. Score each extended prefix with the future discriminator.
3. Clip probabilities for numerical safety.
4. Add future log scores to base logits.
5. Softmax over retained candidates.
6. Inspect the audit trace before claiming FUDGE was used.

## Validation
Run `python tests/test_rescoring.py`.

## Limitations
This helper does not load a language model. It is a deterministic FUDGE rescoring kernel.

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…