LLMs Know More Than They Show: On the Intrinsic Representation of LLM Hallucinations
2024/10/03 by Hadas Orgad, Orgad, Hadas, Michael Toker +11 · 10 voices · 52 citations
Computer Science · Economics, Econometrics and Finance · Business, Management and Accounting · #Blockchain Technology Applications and Security #Credit Risk and Financial Regulations #Corporate Insolvency and Governance
paper · pdf · doi:10.48550/arxiv.2410.02707
Abstract
Large language models (LLMs) often produce errors, including factual inaccuracies, biases, and reasoning failures, collectively referred to as "hallucinations". Recent studies have demonstrated that LLMs' internal states encode information regarding the truthfulness of their outputs, and that this information can be utilized to detect errors. In this work, we show that the internal representations of LLMs encode much more information about truthfulness than previously recognized. We first discover that the truthfulness information is concentrated in specific tokens, and leveraging this property significantly enhances error detection performance. Yet, we show that such error detectors fail to generalize across datasets, implying that -- contrary to prior claims -- truthfulness encoding is not universal but rather multifaceted. Next, we show that internal representations can also be used for predicting the types of errors the model is likely to make, facilitating the development of tailored mitigation strategies. Lastly, we reveal a discrepancy between LLMs' internal encoding and external behavior: they may encode the correct answer, yet consistently generate an incorrect one. Taken together, these insights deepen our understanding of LLM errors from the model's internal perspective, which can guide future research on enhancing error analysis and mitigation.
Cited by
Discussions
- LLMs know more than they show: On the intrinsic representation of hallucinations [hn, 137 points, 140 comments]
- When LLMs make errors (“hallucinate”), their internal states often contain clues about the truthfulness of the output. This paper shows those clues are concentrated in specific tokens. arxiv.org/abs/2 [bsky, 54 points, 3 comments]
- Very happy to have our paper accepted at #ICLR2025: ➡️ LLMs Know More Than They Show: On the Intrinsic Representation of LLM Hallucinations arxiv.org/abs/2410.02707 [bsky, 27 points, 0 comments]
- LLMs Know More Than They Show: arxiv.org/abs/2410.02707 * Adding a true-seeking classifier probe on the token embeddings can have better performance than the actual generation * Is something wrong g [bsky, 8 points, 0 comments]
- arxiv.org/abs/2410.02707 🧪Hallucinations in Generative AI/Large Language Models - cues re truthfulness lie within …. [bsky, 3 points, 1 comments]
- Internal representations of LLMs encode information about truthfulness https://arxiv.org/abs/2410.02707 https://news.ycombinator.com/item?id=41995201 [bsky, 1 points, 0 comments]
- 🧠 LLMs are hiding secrets! A new study reveals they *know* when they’re wrong—but don’t show it. Hidden “truth tokens” could help detect AI errors & fix hallucinations. Are we underestimating their s [bsky, 1 points, 0 comments]
- Internal representations of LLMs encode information about truthfulness [bsky, 0 points, 0 comments]
- Internal representations of LLMs encode information about truthfulness https://arxiv.org/abs/2410.02707 [bsky, 0 points, 1 comments]
- This research reveals that LLMs actually encode more information about truthfulness than previously thought! This can be used to detect errors. Also highlights the potential to predict types of errors [bsky, 0 points, 0 comments]
Related