2025-03-07 · 进阶 · 机器学习 · 自然语言处理

How to Steer LLM Latents for Hallucination Detection?

该论文提出了一种名为“真理分离向量”(TSV)的轻量级方法,通过在推理过程中重塑LLM的潜在空间,以增强真实和幻觉输出之间的分离,从而实现LLM幻觉检测。

更新于 2026-11-14。作者:Seongheon Park、Xuefeng Du、Min-Hsuan Yeh、Haobo Wang、Yixuan Li。

中文摘要

LLM 中的幻觉问题对其在现实世界应用中的安全部署构成了重大担忧。近期的方法利用了 LLM 的潜在空间进行幻觉检测,但它们的嵌入优化的是语言连贯性而非事实准确性,往往无法清晰地区分真实内容和幻觉内容。为此,我们提出了真实性分隔向量(TSV),这是一种轻量级且灵活的引导向量,它能够在推理过程中重塑 LLM 的表示空间,以增强真实和幻觉输出的分离,而不会改变模型参数。我们的两阶段框架首先在少量标记示例集上训练 TSV,以形成紧凑且分离良好的聚类。然后,它通过基于最优传输的算法进行伪标记,并结合基于置信度的过滤过程,将示例集与未标记的 LLM 生成内容进行扩充。大量实验表明,TSV 在最少量标记数据的情况下实现了最先进的性能,显示出在数据集之间强大的泛化能力,并为现实世界的 LLM 应用提供了一个实用的解决方案。

英文摘要

Hallucinations in LLMs pose a significant concern to their safe deployment in real-world applications. Recent approaches have leveraged the latent space of LLMs for hallucination detection, but their embeddings, optimized for linguistic coherence rather than factual accuracy, often fail to clearly separate truthful and hallucinated content. To this end, we propose the Truthfulness Separator Vector (TSV), a lightweight and flexible steering vector that reshapes the LLM's representation space during inference to enhance the separation between truthful and hallucinated outputs, without altering model parameters. Our two-stage framework first trains TSV on a small set of labeled exemplars to form compact and well-separated clusters. It then augments the exemplar set with unlabeled LLM generations, employing an optimal transport-based algorithm for pseudo-labeling combined with a confidence-based filtering process. Extensive experiments demonstrate that TSV achieves state-of-the-art performance with minimal labeled data, exhibiting strong generalization across datasets and providing a practical solution for real-world LLM applications.

解读

一句话总结

该论文提出了一种名为“真理分离向量”(TSV)的轻量级方法,通过在推理过程中重塑LLM的潜在空间,以增强真实和幻觉输出之间的分离,从而实现LLM幻觉检测。

问题1:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源