Characterizing Truthfulness in Large Language Model Generations with Local Intrinsic Dimension
Fan Yin, Jayanth Srinivasa, Kai-Wei Chang
TL;DR
This work tackles the problem of detecting truthfulness in large language model generations by leveraging local intrinsic dimension (LID) of internal activations. It introduces an MLE-based LID estimator and a distance-aware correction (LID-GeoMLE), along with a layer-selection strategy to identify the most informative representations for truthfulness detection. Empirically, LID-GeoMLE outperforms entropy- and verbal uncertainty-based baselines across four generative QA tasks using Llama-2 models, showing robustness to hyperparameters and cross-task references. The analysis reveals rich insights into LLM internals, including a hunchback pattern of LID across layers, lower LID for human-generated content, and increasing intrinsic dimensions with instruction tuning, suggesting LID as a powerful tool for understanding and improving model truthfulness and reliability.
Abstract
We study how to characterize and predict the truthfulness of texts generated from large language models (LLMs), which serves as a crucial step in building trust between humans and LLMs. Although several approaches based on entropy or verbalized uncertainty have been proposed to calibrate model predictions, these methods are often intractable, sensitive to hyperparameters, and less reliable when applied in generative tasks with LLMs. In this paper, we suggest investigating internal activations and quantifying LLM's truthfulness using the local intrinsic dimension (LID) of model activations. Through experiments on four question answering (QA) datasets, we demonstrate the effectiveness ohttps://info.arxiv.org/help/prep#abstractsf our proposed method. Additionally, we study intrinsic dimensions in LLMs and their relations with model layers, autoregressive language modeling, and the training of LLMs, revealing that intrinsic dimensions can be a powerful approach to understanding LLMs.
