Implementation:2akouwu Reverify hallucination probes run
| Knowledge Sources | |
|---|---|
| Domains | Benchmarking, Hallucination_Detection |
| Last Updated | 2026-10-24 12:00 GMT |
Overview
Concrete tool for the multi-prior hallucination scorecard that independently re-checks VERIFIED verdicts against raw bytes across five adversarial probes, provided by the Reverify library.
Description
The run function in hallucination_probes.py runs five independent probes: prologue (frame-pointer prior), md5_const (MD5 init constants), import_gets (GetMessage/DispatchMessage prior), section_rodata (.rodata presence), elf_shoff (ELF section header offset). Each probe applies an adversarial prior and independently re-checks VERIFIED verdicts against the raw bytes. The global false VERIFIED count must be 0.
Usage
Use this function when you need to:
- Test hallucination detection across multiple adversarial priors.
- Independently re-verify VERIFIED verdicts (not trusting the verifier's own judgment).
- Run the hallucination probes benchmark in CI.
Code Reference
Source Location
- Repository: Reverify
- File: benchmarks/hallucination_probes.py
- Lines: probe functions and
runat L189-232
Signature
def run(
dirs: List[str],
per_dir: int = 12,
only: Optional[List[str]] = None,
) -> None:
"""Run hallucination probes; print per-binary table and scorecard."""
Import
from benchmarks.hallucination_probes import run
I/O Contract
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| dirs | List[str] | No | Corpus directories |
| per_dir | int | No | Files per dir (default 12) |
| only | List[str] | No | Filter to specific probes (e.g. ["prologue", "md5_const"]) |
Outputs
| Name | Type | Description |
|---|---|---|
| (stdout) | str | Per-binary table (binary, fmt, arch, probe, verdict, observed), scorecard per probe, global false VERIFIED count |
Usage Examples
CLI Usage
# Run all probes
python benchmarks/hallucination_probes.py
# Run specific probes
python benchmarks/hallucination_probes.py corpus_output/ --probe prologue md5_const