Integration of Explainable AI Techniques with Large Language Models for Enhanced Interpretability for Sentiment Analysis

Thivya Thogesan, Anupiya Nugaliyadde, Kok Wai Wong
3/15/2025
cs.CLcs.AI

No confident code implementation found for this paper. 4 possible matches can be shown below.

Abstract

Interpretability remains a key difficulty in sentiment analysis with Large Language Models (LLMs), particularly in high-stakes applications where it is crucial to comprehend the rationale behind forecasts. This research addressed this by introducing a technique that applies SHAP (Shapley Additive Explanations) by breaking down LLMs into components such as embedding layer,encoder,decoder and attention layer to provide a layer-by-layer knowledge of sentiment prediction. The approach offers a clearer overview of how model interpret and categorise sentiment by breaking down LLMs into these parts. The method is evaluated using the Stanford Sentiment Treebank (SST-2) dataset, which shows how different sentences affect different layers. The effectiveness of layer-wise SHAP analysis in clarifying sentiment-specific token attributions is demonstrated by experimental evaluations, which provide a notable enhancement over current whole-model explainability techniques. These results highlight how the suggested approach could improve the reliability and transparency of LLM-based sentiment analysis in crucial applications.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 4 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{thogesan2025integration,
  title  = {Integration of Explainable AI Techniques with Large Language Models for Enhanced Interpretability for Sentiment Analysis},
  author = {Thivya Thogesan and Anupiya Nugaliyadde and Kok Wai Wong},
  year   = {2025},
  eprint = {2503.11948},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.11948v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2503.11948.svg)](https://codeofpaper.com/paper/2503.11948)

Discussion