Look Within, Why LLMs Hallucinate: A Causal Perspective

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Li, He, Chi, Haoang, Liu, Mingyu, Yang, Wenjing
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866909254306234368
author Li, He
Chi, Haoang
Liu, Mingyu
Yang, Wenjing
author_facet Li, He
Chi, Haoang
Liu, Mingyu
Yang, Wenjing
contents The emergence of large language models (LLMs) is a milestone in generative artificial intelligence, achieving significant success in text comprehension and generation tasks. Despite the tremendous success of LLMs in many downstream tasks, they suffer from severe hallucination problems, posing significant challenges to the practical applications of LLMs. Most of the works about LLMs' hallucinations focus on data quality. Self-attention is a core module in transformer-based LLMs, while its potential relationship with LLMs' hallucination has been hardly investigated. To fill this gap, we study this problem from a causal perspective. We propose a method to intervene in LLMs' self-attention layers and maintain their structures and sizes intact. Specifically, we disable different self-attention layers in several popular open-source LLMs and then compare their degrees of hallucination with the original ones. We evaluate the intervened LLMs on hallucination assessment benchmarks and conclude that disabling some specific self-attention layers in the front or tail of the LLMs can alleviate hallucination issues. The study paves a new way for understanding and mitigating LLMs' hallucinations.
format Preprint
id arxiv_https___arxiv_org_abs_2407_10153
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Look Within, Why LLMs Hallucinate: A Causal Perspective
Li, He
Chi, Haoang
Liu, Mingyu
Yang, Wenjing
Computation and Language
Artificial Intelligence
The emergence of large language models (LLMs) is a milestone in generative artificial intelligence, achieving significant success in text comprehension and generation tasks. Despite the tremendous success of LLMs in many downstream tasks, they suffer from severe hallucination problems, posing significant challenges to the practical applications of LLMs. Most of the works about LLMs' hallucinations focus on data quality. Self-attention is a core module in transformer-based LLMs, while its potential relationship with LLMs' hallucination has been hardly investigated. To fill this gap, we study this problem from a causal perspective. We propose a method to intervene in LLMs' self-attention layers and maintain their structures and sizes intact. Specifically, we disable different self-attention layers in several popular open-source LLMs and then compare their degrees of hallucination with the original ones. We evaluate the intervened LLMs on hallucination assessment benchmarks and conclude that disabling some specific self-attention layers in the front or tail of the LLMs can alleviate hallucination issues. The study paves a new way for understanding and mitigating LLMs' hallucinations.
title Look Within, Why LLMs Hallucinate: A Causal Perspective
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2407.10153