Comparison of explainability methods for hallucination analysis in LLMs

List of Authors

  1. Ioannis Papagiannopoulos ,  
  2. Hercules Koutalidis ,  
  3. Panagiota Rempi ,  
  4. Christos Ntanos ,  
  5. Dimitrios Askounis
Article Authors & roles Authors Peer review record Peer review Metrics
Cite

Abstract

The primary obstacle to the safe application of artificial intelligence (AI) in sensitive fields such as healthcare and law is the phenomenon of Large Language Models (LLM) hallucinations, which produce fluent yet factually incorrect or illogical outputs. This paper investigates hallucinations as reasoning failures, distinguishing between factual inaccuracies and flawed logical derivations. We examine the limitations of current interpretability tools including Retrieval-Augmented Generation (RAG), attention mechanisms, SHapley Additive exPlanations (SHAP), and Local Interpretable Model-agnostic Explanations (LIME), which often fail to identify the root causes of these errors. To address this gap, we analyze reasoning in LLMs through two complementary paradigms: deterministic rule-based and stochastic data-driven approaches. We argue that hybrid reasoning techniques can improve the accountability and transparency of model behavior. A real-world use case in decision support systems illustrates the risks associated with transparent reasoning in high-stakes applications. We also present a comparative framework to evaluate the ability of common explainability techniques to detect and account for hallucinated outputs. Finally, we suggest useful techniques to improve trustworthiness, such as training data attribution, confidence calibration, and prompt-based abstention mechanisms. Our results highlight how crucial reasoning-aware explainability is as a starting point for ensuring that LLMs behavior complies with safety, dependability, and responsible AI deployment standards.

Plain Language Summary

Sometimes, ChatGPT and other large language models (LLMs) produce text that appears accurate but is inaccurate or deceptive. These errors, known as hallucinations, can lead to issues in fields such as law or medicine. This study examines the reasons behind these mistakes made by LLMs as well as ways to better comprehend and account for them. To make these models more transparent and reliable, we propose combining data-driven reasoning with logical rules.

Corresponding author
Ioannis Papagiannopoulos
0009-0000-3071-7924
Grant information

This work has been funded by the European Union’s Horizon Europe research and innovation program under the ENERSHARE project, grant agreement No. 101069831

Copyright
© 2025 Ioannis Papagiannopoulos (Corresponding Author, Co-Author); Hercules Koutalidis (Co-Author); Panagiota Rempi (Co-Author); Christos Ntanos (Co-Author); Dimitrios Askounis (Co-Author) Creative Commons License

This work is licensed under a Creative Commons Attribution 4.0 International License.

First version published
Latest version published

Comments

Authors & roles

Ioannis Papagiannopoulos

School of Electrical and Computer Engineering, National Technical University of Athens, Zografou, Attica, 15773, Greece

Roles
Corresponding Author, Co-Author, Conceptualization, Investigation, Methodology, Project Administration, Supervision, Visualization, Writing – Original Draft Preparation, Writing – Review & Editing
0009-0000-3071-7924

Hercules Koutalidis

School of Electrical and Computer Engineering, National Technical University of Athens, Zografou, Attica, 15773, Greece

Roles
Co-Author, Conceptualization, Writing – Review & Editing
0009-0006-7697-4911

Panagiota Rempi

School of Electrical and Computer Engineering, National Technical University of Athens, Zografou, Attica, 15773, Greece

Roles
Co-Author, Conceptualization, Writing – Review & Editing
0009-0003-6628-8131

Christos Ntanos

School of Electrical and Computer Engineering, National Technical University of Athens, Zografou, Attica, 15773, Greece

Roles
Co-Author, Project Administration, Supervision, Writing – Review & Editing
0000-0002-5162-6500

Dimitrios Askounis

School of Electrical and Computer Engineering, National Technical University of Athens, Zografou, Attica, 15773, Greece

Roles
Co-Author, Funding Acquisition, Supervision

Downloads over the last 12 months:

Cited by

via Crossref

View citing articles