DOE OSTI · code-173929
HALLUFIELD: DETECTING LLM HALLUCINATIONS VIA FIELD-THEORETIC MODELING
Abstract
A research-focused Python package that implements our hallucination-detection method for large language models(LLMs). The code computes stability signals from LLM predictions across various hyperparameters sweeps and combines free-energy/entropy–style metrics to flag likely hallucinations, with tunable thresholds for batch scoring. The repo includes evaluation scripts, config files, and example notebooks to reproduce benchmark results and ablations; it depends on standard open-source libraries (PyTorch, Hugging Face) and runs on CPU/GPU. The repository examples only use public models/datasets only.
Keep this discovery
Explore connections, maps & timelines
Bhattarai, Manish [Los Alamos National Labs]. 2025-10-27. HALLUFIELD: DETECTING LLM HALLUCINATIONS VIA FIELD-THEORETIC MODELING. https://doi.org/10.11578/dc.20260128.2
Cite the original work for its findings. Save a collection to share your selection of sources.