Probabilistic distances-based hallucination detection in LLMs with RAG

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Oblovatny, Rodion, Kuleshova, Alexandra, Polev, Konstantin, Zaytsev, Alexey
Format: Preprint
Publié: 2025
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866910032176611328
author Oblovatny, Rodion
Kuleshova, Alexandra
Polev, Konstantin
Zaytsev, Alexey
author_facet Oblovatny, Rodion
Kuleshova, Alexandra
Polev, Konstantin
Zaytsev, Alexey
contents Detecting hallucinations in large language models (LLMs) is critical for their safety in many applications. Without proper detection, these systems often provide harmful, unreliable answers. In recent years, LLMs have been actively used in retrieval-augmented generation (RAG) settings. However, hallucinations remain even in this setting, and while numerous hallucination detection methods have been proposed, most approaches are not specifically designed for RAG systems. To overcome this limitation, we introduce a hallucination detection method based on estimating the distances between the distributions of prompt token embeddings and language model response token embeddings. The method examines the geometric structure of token hidden states to reliably extract a signal of factuality in text, while remaining friendly to long sequences. Extensive experiments demonstrate that our method achieves state-of-the-art or competitive performance. It also has transferability from solving the NLI task to the hallucination detection task, making it a fully unsupervised and efficient method with a competitive performance on the final task.
format Preprint
id arxiv_https___arxiv_org_abs_2506_09886
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Probabilistic distances-based hallucination detection in LLMs with RAG
Oblovatny, Rodion
Kuleshova, Alexandra
Polev, Konstantin
Zaytsev, Alexey
Computation and Language
Artificial Intelligence
Detecting hallucinations in large language models (LLMs) is critical for their safety in many applications. Without proper detection, these systems often provide harmful, unreliable answers. In recent years, LLMs have been actively used in retrieval-augmented generation (RAG) settings. However, hallucinations remain even in this setting, and while numerous hallucination detection methods have been proposed, most approaches are not specifically designed for RAG systems. To overcome this limitation, we introduce a hallucination detection method based on estimating the distances between the distributions of prompt token embeddings and language model response token embeddings. The method examines the geometric structure of token hidden states to reliably extract a signal of factuality in text, while remaining friendly to long sequences. Extensive experiments demonstrate that our method achieves state-of-the-art or competitive performance. It also has transferability from solving the NLI task to the hallucination detection task, making it a fully unsupervised and efficient method with a competitive performance on the final task.
title Probabilistic distances-based hallucination detection in LLMs with RAG
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2506.09886