arXiv Machine Learning

Hallucination Is Linearly Decodable from Mid-Layer Hidden States in Quantized LLMs

arXiv:2606. 02628v1 Announce Type: new Abstract: We investigate whether open-source LLMs encode a linearly separable truthfulness signal in their hidden states, and at which network depth this signal is strongest.

arXiv AI
Nov 16

Does the Ranking Hold? A Practitioner-Facing Audit of Hallucination Detectors on Small, Quantized, On-Device LLMs

The paper audits hallucination detectors on small, 4‑bit quantized on‑device LLMs (Phi‑3‑mini, Llama‑3.2‑3B‑Instruct, Qwen2.5‑3B‑Instruct, Gemma‑2‑2B‑Instruct) using a single‑GPU setup. It evaluates four detectors—length‑normalized token‑margin calibration, a lexical n‑gram baseline, and two sampling‑based consistency methods—on Llama‑3.2‑3B‑Instruct and Qwen2.5‑3B‑Instruct with TriviaQA, finding that detector rankings do not transfer between models and that the lexical baseline performs comparably to the more complex methods. The study also demonstrates that a common TruthfulQA‑Generation labeler yields near‑chance AUROC for all detectors, indicating a labeling issue rather than detector failure, and releases a reproducible harness for practitioners.

By Shubhra Mittal, Gaurav Naresh Mittal
arXiv AI
Oct 21

How Fine-Tuning Objectives Shape Layer-Wise Information in LLM Hallucination Detection

The study compares two fine‑tuning paradigms for detecting hallucinations in large language models: a classifier‑head (“cls”) and a sequence‑to‑sequence (“s2s”) approach. “Cls” consistently outperforms “s2s” because it induces a clear two‑cluster geometry in hidden states, enabling stronger class separation and linear decodability. Analysis of training dynamics reveals a narrow upper‑middle “InfoWindow” where task information emerges; truncating layers above this window removes 31% of the network without loss of accuracy and reduces latency by 1.4×, a strategy that transfers across multiple models and tasks.

By Kaiyang Wan, Forrest Sheng Bao, Amin Ahmad, Yuxia Wang
arXiv AI
Sep 1

The Hallucination Signal Is a Mean Shift: Why Simple Probes Suffice

The study shows that hallucination detection in large language models is largely driven by a single mean‑shift component in hidden states. Across three 7B‑scale models and multiple datasets, removing this direction reduces detection to chance, while a simple L2‑regularized logistic regression achieves high AUROC (0.952) and outperforms more complex probe architectures. The authors introduce LayerMix, a multi‑layer aggregation method that matches oracle‑layer performance without requiring oracle access, demonstrating that apparent probe complexity stems from high‑dimensional covariance estimation rather than non‑linearity.

By Jungseob Lee, Jaehyung Seo, Heuiseok Lim
arXiv Machine Learning
Sep 25

Where Hallucinations Live: A Cross-Architecture Circuit in VQ-Tokenized Vision-Language Models

The paper investigates why vision‑language models that tokenize images with vector‑quantized (VQ) codebooks frequently hallucinate objects on grounded yes/no tasks. By applying activation patching across 25 models from eight large‑language‑model families, the authors uncover an early‑layer attention routing circuit shared by VQ‑tokenized VLMs. They develop a three‑gate diagnostic that isolates ten models carrying this circuit, show that swapping a single architectural component (VQ+Linear) introduces the circuit, and demonstrate that ablating the early‑layer ($L_0$) component reduces hallucinations in open‑ended generation by 31 % while other decoding‑time fixes do not.

By Shamanthak Hegde, Xiangrui Liu, Maitreya Patel, Yezhou Yang
arXiv Machine Learning
Oct 28

BellowsKV: One Latent for Many Layers, Expanded on Demand

BellowsKV introduces a training‑free approach that maps the hidden states of multiple adjacent layers in a large language model to a single shared latent representation per token, allowing each layer to retrieve its own keys and values via a layer‑specific projection. The method retains the latent at full dimension and offers two compression strategies: BellowsKV‑Quant, which stores the latent at low precision, and BellowsKV‑Evict, which makes a shared eviction decision per block. Experiments on Llama‑3.1‑8B, Mistral‑7B, and Qwen2.5‑7B show that BellowsKV‑Quant preserves about 99% of full‑cache accuracy at 3.6× compression and 97‑98% at 13‑14×, outperforming existing cross‑layer methods that drop to at most 84% accuracy at 16× compression.

By Jiamu Zhang, Hanjie Chen
Hugging Face Trending Papers
Jun 11

Layer-Resolved Optimal Transport for Hallucination Detection in NMT and Abstractive Summarization

Optimal transport (OT) has been shown to detect hallucinations in neural machine translation (NMT) by measuring the geometric distance between cross-attention distributions and a reference distribution, without any supervision. We extend this analysis to all six decoder layers of the Fairseq DE-EN model ($N=3{,}414$), showing that Wass-to-Unif and Wass-to-Data are complementary detectors specialised across hallucination types, that detection is concentrated in layers L1--L4 with L5 anti-predictive for subtler types, and that hallucinated translations lack the exploratory attention phase present in correct translations from the first decoding step.

arXiv AI
Nov 6

Enhancing Local and Global Structure in Compressed AI Agent Memory

The paper introduces locality‑aware quantization (LAQ), a new compression technique for AI agent memory that preserves both local and global structure of embedded text. LAQ improves local fidelity (L) and, more importantly, raises global fidelity (G) across all tested runs, outperforming seven other quantizers while maintaining search efficiency and evidence recall. The method is validated on large‑scale datasets, including a million passages and external FinDER memory.

By Henry Han
arXiv Machine Learning
Sep 11

Domain-Specific Hallucination Detection in Large Language Models

The paper introduces a multi‑signal pipeline for detecting hallucinations in large language models, combining fine‑tuned DeBERTa‑v3 classification, Monte Carlo Dropout uncertainty, and temperature‑scaled calibration. On the HaluEval benchmark it achieves high performance (F1 = 0.915, AUROC = 0.977) across QA, summarization, and dialogue, and shows that 25 % of training data yields 77 % of full‑data performance. The authors also demonstrate that applying Direct Preference Optimization to a Qwen2.5‑0.5B generator cuts hallucination rates from 85.5 % to 37.7 %, and that domain‑specific fine‑tuning (PubMedBERT on SciFact) outperforms general‑domain models for biomedical text.

By Varun Teja Chundru, Debasmita Biswas