logprob-prefill-analysis

Execute prefill sensitivity analysis with token, logprob, and KL divergence metrics.

Updated Dec 18, 2025
One-click install
npx skills add https://github.com/EleutherAI/rh-indicators --skill logprob-prefill-analysis
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: logprob-prefill-analysis
Source: https://github.com/EleutherAI/rh-indicators/tree/main/.claude/skills/logprob-prefill-analysis
Command: npx skills add https://github.com/EleutherAI/rh-indicators --skill logprob-prefill-analysis

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires vllm, djinn, and includes scripts (resource) components.

What problem does it solve?

Documents and executes the full prefill sensitivity analysis workflow to assess model susceptibility to reward hacking via exploit-oriented prefills.

Core Features & Use Cases

  • End-to-end pipeline for token-based and logprob-based metrics, including trajectory analysis, KL divergence, and extrapolation across checkpoints.
  • Useful for evaluating how different prefill levels influence exploitability and comparing across exploit types.
  • Case example: run evaluation across checkpoints to determine when a model becomes easily exploitable and compare metrics to identify early warning signals.

Quick Start

Run the full prefill sensitivity evaluation against your checkpoints using the provided scripts.

Frequently Asked Questions about logprob-prefill-analysis

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What is prefill sensitivity analysis for reward hacking risk?

Prefill sensitivity analysis evaluates model susceptibility to reward hacking by applying exploit-oriented prefills, then measuring token and logprob metrics, KL divergence, and trajectory trends across checkpoints to characterize vulnerability.

How do I measure reward hacking susceptibility across model checkpoints?

You can measure reward hacking susceptibility by running the prefill evaluation scripts to compute logprob and token metrics, KL divergence, and trajectory analyses, comparing results across different exploit types and checkpoints.

Do I need vLLM to run prefill logprob and trajectory analysis?

Yes, this workflow requires a local or remote vLLM serving setup to compute logprob metrics, KL divergence, and trajectory analyses across your model checkpoints via the provided evaluation scripts.

Can KL divergence and logprob metrics detect early warning signals of model exploitability?

Yes, comparing KL divergence and logprob trajectory metrics across checkpoints and exploit types helps identify early warning signals indicating when a model becomes easily exploitable.

What's the best way to compare exploitability across different prefill levels?

The best way is to execute the end-to-end pipeline using the provided scripts to evaluate how different prefill levels influence exploitability, comparing metrics and trajectory analyses across multiple exploit types.

What limitations exist when running prefill sensitivity evaluation scripts?

Limitations include the strict dependency on a configured vLLM serving environment and checkpoint access, requiring specific scripts like eval_prefill_sensitivity.py and prefill_trajectory_analysis.py to execute the full analysis.