SIB-ENGINE is my attempt to solve this at the geometric layer. By monitoring the "Anchor Drift" (how hidden states deviate from the prompt’s latent trajectory), I found that hallucinations often manifest as a structural instability before the token is even sampled.
The Numbers:
Recall: 53.89% (It catches about half, but it's consistent)
Precision: 88.52% (Low false-alarm rate is my priority)
Overhead: <1% (Running on an RTX 3050 with 4GB VRAM)
AUC: 0.8995
I've released a Lite version (1-axis) on GitHub so you can see the fundamental logic and run it on your own machine. I’ve also included the raw_logs.csv from my N=1000 test run on Gemma-2B for full transparency.
I’m particularly curious if anyone here has experimented with similar geometric approaches or has thoughts on how this might scale to 70B+ models where the latent space is significantly denser.
Happy to dive into the technical details!
The 54% recall is the honest number to focus on. At 88% precision you're catching real problems when you flag them, but you're missing roughly half of all hallucinations entirely. For a suppression layer in a regulated context that's a meaningful gap — a compliance team can't tell a regulator "we caught most of them."
The complementary approach worth considering: deterministic post-generation checks on the output layer. Geometric drift catches structural collapse during generation. Rule-based output validation catches semantic violations after generation — banned claims, unattributed statistics, absolute guarantees. Neither approach alone is sufficient. Together they cover different failure modes.
Good work publishing the raw_logs.csv. Reproducibility at this layer is rare and matters.