cd /news/large-language-models/cortex-token-level-hallucination-det… · home topics large-language-models article
[ARTICLE · art-45920] src=arxiv.org ↗ pub= topic=large-language-models verified=true sentiment=· neutral

CORTEX: Token-Level Hallucination Detection in RAG via Comparative Internal Representations

Researchers propose CORTEX, a token-level hallucination detection method for Retrieval-Augmented Generation (RAG) that identifies ungrounded content by comparing internal representations of a large language model with and without retrieved documents. The method improves fine-grained localization of hallucinations and reduces false positives by leveraging document-grounded information propagation and post-processing smoothing. Experiments on two RAG benchmarks and three LLMs show substantial performance gains.

read1 min views1 publishedJul 1, 2026

arXiv:2606.31033v1 Announce Type: new Abstract: In this paper, we propose CORTEX, a token-level hallucination detection method for Retrieval-Augmented Generation (RAG). In long-form RAG outputs, hallucinations often arise in localized spans rather than throughout an entire response. CORTEX therefore identifies ungrounded content at the token level, enabling fine-grained localization of hallucinations. The key intuition behind CORTEX is that tokens grounded in retrieved documents should be more strongly influenced by those documents than hallucinated tokens. To capture this document-induced effect, CORTEX compares internal representations of a large language model (LLM) under two conditions: with and without the retrieved documents. Instead of relying solely on each token's immediate sensitivity to the retrieved documents, CORTEX also leverages the propagation of document-grounded information through preceding tokens, reducing false positives for tokens whose evidence has already been absorbed into the context. Finally, CORTEX applies post-processing smoothing step that models the tendency of hallucination labels to persist over contiguous spans, reducing local noise and encouraging span-consistent predictions. Experiments on two RAG benchmarks and three LLMs show that CORTEX substantially improves token-level hallucination detection, with each component consistently contributing to performance gains.

── more in #large-language-models 4 stories · sorted by recency
── more on @cortex 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/cortex-token-level-h…] indexed:0 read:1min 2026-07-01 ·