Prompt Embedding Probes (PEP): Hallucination Detection in LLMs from Hidden States

Zakhar Mrykhin, Valentin Malykh
8/8/2026
cs.CLcs.AI

No confident code implementation found for this paper.

Abstract

Large language models (LLMs) can generate fluent and useful responses but remain prone to hallucinations. We introduce Prompt Embedding Probes (PEP), a white-box method for answer-level hallucination detection from the hidden states of a frozen LLM.

Show full abstract

PEP extends standard linear probes by augmenting the input with a small number of learnable prompt embeddings. We evaluate PEP on TriviaQA, GSM8K, and MedQA using Qwen3 models at multiple scales. PEP improves hidden-state-based detection over standard linear probes in the main in-distribution setting. We further evaluate PEP for pre-generation prediction, cross-model transfer, and out-of-distribution generalization. PEP remains effective in the pre-generation and cross-model settings, whereas robust cross-dataset transfer remains difficult. These results show that prompt-based adaptation can strengthen hidden-state probing while keeping the backbone frozen and adding only a small number of trainable parameters.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{mrykhin2026prompt,
  title  = {Prompt Embedding Probes (PEP): Hallucination Detection in LLMs from Hidden States},
  author = {Zakhar Mrykhin and Valentin Malykh},
  year   = {2026},
  eprint = {2608.08024},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2608.08024v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2608.08024.svg)](https://codeofpaper.com/paper/2608.08024)

Discussion