Retrieval augmented consistency scoring for model agnostic hallucination detection in large language models
Abstract Large language models (LLMs) are increasingly deployed in high-stakes domains such as healthcare, law, education, and scientific research, where factual accuracy is paramount. However, LLMs frequently generate plausible-sounding but factually incorrect statements, a phenomenon widely known as hallucination. Existing detection approaches are constrained by significant practical limitations: white-box methods require access to model internals that are inaccessible from commercial APIs; self-consistency sampling incurs prohibitive inference overhead ($k\times$ additional LLM calls); and perplexity-based signals fail to distinguish factual errors from genuinely novel correct statements. In this paper, we propose RAG-CS (Retrieval-Augmented Consistency Scoring), a post-hoc, model-agnostic hallucination detection framework requiring no access to LLM logits, weights, or sampling distributions. Given any LLM-generated response, RAG-CS first sentence-segments the output, then retrieves the top-$k$ evidence passages per sentence from a knowledge corpus using a dense bi-encoder retriever indexed with FAISS. A cross-encoder natural language inference (NLI) model computes pairwise semantic consistency scores between each response sentence and its retrieved evidence. Finally, a lightweight logistic regression classifier aggregates these scores, including statistical features over the score distribution, into a binary hallucination label and per-sentence fine-grained indicators. We conduct comprehensive evaluations on four hallucination benchmarks (TruthfulQA, HaluEval, FEVER, and FaithDial) and demonstrate that RAG-CS achieves F1 scores of 87.3\%, 84.6\%, 89.1\%, and 83.7\%, respectively, outperforming strong baselines including SelfCheckGPT-NLI, SAPLMA, and FActScore by 4.1--9.8 percentage points.
- Link
- https://doi.org/10.21203/rs.3.rs-11187042/v1
- Found by
- Crossref
- Authors
- Nandeesh S Mysore Matt, Pavithra N, Preethi Preethi
- Organizations
- Manipal Academy of Higher Education
- Categories
- benchmark, evaluation, dataset
- Published
- 2026-11-13
- Last seen by the radar
- 2026-11-15
- Citations
- 0
- Radar score
- 44.25 / 100 (how it is scored)
- Why it scored so
- Matched: benchmark, corpus, evaluat; Primary record: Crossref