HallucinationNerd: A Framework and Tool to Detect Hallucinations and Unsupported Claims
Retrieval-augmented generation (RAG), agentic systems, and human authors produce text with inline citations, but the cited sources do not always support the claims attributed to them. We present HallucinationNerd, a modular citation-verification engine that decomposes text into atomic claims, retrieves relevant passages from each cited source, and determines whether the source supports the claim. In addition, HallucinationNerd identifies claims that carry no citation and searches user-approved databases to find or refute supporting evidence for them. The system handles five common citation formats, operates on PDFs, web pages, and plain text, and produces per-claim verdicts with evidence pointers. The underlying algorithm mixes parsing (to identify claim–citation pairs), overlapped chunking, stopword elimination, and AI-based semantic comparison. In head-to-head comparison on the same data, HallucinationNerd substantially outperforms (by about 20% in F1 score) state-of-the-art systems on accuracy and precision on a benchmark built from research papers. HallucinationNerd can also be used to verify the output of other AI systems. For example, we audited a set of outputs of Scholar GPT, a publicly available scholarly research agent. In that sample at least, its citations were faithful to the cited sources.
Authors
- Dennis E. Shasha (ORCID: https://orcid.org/0000-0002-7036-3312)
- Harsh Kashyap (ORCID: https://orcid.org/0009-0004-9691-724X)
- Taranum Wasu (ORCID: https://orcid.org/0009-0000-6725-576X)
- Vishnu Chennur (ORCID: https://orcid.org/0009-0003-0207-9672)
Institutions
- Thapar Institute of Engineering & Technology (IN)
- Courant Institute of Mathematical Sciences (US)
- Self Determination Housing Project of Pennsylvania (US)
- New York University (US)
Publication Details
- Journal
- Information
- Published
- 2026-10-22
- DOI
- https://doi.org/10.3390/info17111053
- Primary Topic
- Misinformation and Its Impacts
- Type
- article
- Field-Weighted Citation Impact
- 0.00