LLMs Know More Than They Show: On the Intrinsic Representation of LLM Hallucinations
Orgad, Hadas, Toker, Michael, Gekhman, Zorik, Reichart, Roi, Szpektor, Idan, Kotek, Hadas, Belinkov, Yonatan
–arXiv.org Artificial Intelligence
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.
arXiv.org Artificial Intelligence
Oct-28-2024
- Country:
- Oceania > Pitcairn (0.04)
- South America
- Argentina (0.04)
- Colombia > Meta Department
- Villavicencio (0.04)
- North America
- Dominican Republic (0.04)
- Central America (0.04)
- United States
- Connecticut (0.04)
- Missouri (0.04)
- Maine (0.04)
- Tennessee (0.04)
- Washington > King County
- Seattle (0.04)
- Oregon > Multnomah County
- Portland (0.04)
- Florida > Miami-Dade County
- Miami (0.04)
- California > San Diego County
- San Diego (0.04)
- Canada > British Columbia
- Europe
- Austria > Vienna (0.14)
- United Kingdom
- Wales (0.04)
- Scotland > City of Glasgow
- Glasgow (0.04)
- Spain > Catalonia
- Barcelona Province > Barcelona (0.04)
- Poland > Greater Poland Province
- Poznań (0.04)
- Italy > Tuscany
- Florence (0.04)
- Ireland > Leinster
- County Dublin > Dublin (0.04)
- Belgium
- Brussels-Capital Region > Brussels (0.04)
- Flanders > Antwerp Province
- Antwerp (0.04)
- Asia
- Africa > Middle East
- Algeria > Algiers Province > Algiers (0.04)
- Genre:
- Research Report > New Finding (1.00)
- Industry:
- Media > Film (0.46)
- Leisure & Entertainment (0.46)
- Technology: