PulseExploreJournal ClubDebatesTrendingResearchersJournals
Instagram
HomeExploreJournal ClubTrending
Synapse
⌘+K
Synapse
November 10, 2025Machine Learning0 citationsOpen Access

LLiMe: enhancing text classifier explanations with large language models

View Full Paper
FAFabrizio AngiulliFLFrancesco De LucaFFFabio Fassetti

Key Points

  • LLiMean improves the interpretability of text classification models, making them easier for users to understand.
  • The approach addresses limitations in standard LIME by effectively capturing the decision boundary in analyses.
  • Incorporating advances in large language models creates more coherent and relevant explanations for classification outcomes.
  • The method was validated using real datasets, showcasing its potential for enhanced interpretability in AI systems.

Abstract

Abstract The widespread diffusion of text black-box classifiers necessitates explainable AI (XAI) techniques for this domain. A seminal XAI technique is Local Interpretable Model-agnostic Explanations (LIME). For text classification, LIME maps an input sentence and its neighbours into a bag of words, using a linear regressor as an interpretable model. However, this strategy has significant limitations. Neighbouring sentences are constructed solely by extracting subsets of the input sentence, which may fail to accurately capture the local decision boundary. Moreover, these subsets are not guaranteed to be representative of the classification classes, potentially leading to unbalanced or misleading interpretability. Additionally, such generated sentences might lack semantic coherence. Furthermore, the resulting explanation is often limited to confirming the relevance of a term or highlighting the impact of its removal, without providing deeper insights. This work tries to overcome these limitations by proposing LLiMean extension of LIME that exploits advances in Large Language Models (LLMs) to perform a classifier-driven generation of the neighbourhood. Our approach allows neighbours to employ a vocabulary larger than that of the input text. A generation procedure is introduced to more effectively capture the local decision boundary by ensuring generated samples span all classes involved in the classification. Additionally, an LLM-driven explanation and a counterfactual generation procedure are presented, returning the most relevant set of editing operations to influence the black-box predictor’s decision. Thus, the approach provides a richer, easier-to-interpret explanation and high-quality counterfactuals compared to standard LIME. Experiments on real datasets witness the technique’s effectiveness in providing suitable, relevant, and interpretable explanations.

Ask AI
Helpful
Bookmark
Share
View Full Paper

Cite This Study

Angiulli et al. (2025) studied this question.

synapsesocial.com/papers/69253a31c0ce034ddc357754https://doi.org/10.1007/s10994-025-06920-z
Ask AI
Helpful
Bookmark
Share
View Full Paper