In-Context Sharpness as Alerts: An Inner Representation Perspective for Hallucination Mitigation
원문 초록
Large language models (LLMs) frequently hallucinate and produce factual errors, yet our understanding of why they make these errors remains limited. In this study, we delve into the underlying mechanisms of LLM hallucinations from the perspective of inner representations, and discover a salient pattern associated with hallucinations: correct generations tend to have sharper context activations in the hidden states of the in-context tokens, compared to the incorrect ones. Leveraging this insight, we propose an entropy-based metric to quantify the ``sharpness'' among the in-context hidden states and incorporate it into the decoding process to formulate a constrained decoding approach. Experiments on various knowledge-seeking and hallucination benchmarks demonstrate our approach's consistent effectiveness, for example, achieving up to an 8.6 point improvement on TruthfulQA. We believe this study can improve our understanding of hallucinations and serve as a practical solution for hallucination mitigation.
함께 살펴볼 논문
공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.
Shadows in the Attention: Contextual Perturbation and Representation Drift in the Dynamics of Hallucination in LLMs
Mitigating Object Hallucinations via Sentence-Level Early Intervention
UQLM: A Python Package for Uncertainty Quantification in Large Language Models
Mitigating Hallucination of Large Vision-Language Models via Dynamic Logits Calibration
KnowRL: Exploring Knowledgeable Reinforcement Learning for Factuality
DiscoSG: Towards Discourse-Level Text Scene Graph Parsing through Iterative Graph Refinement
토론
이 논문과 연결된 포럼 글이 아직 없습니다.