Skip to main navigation Skip to search Skip to main content
68 Downloads (Pure)

Abstract

The widespread deployment of transformers in text classification creates the need for interpretable AI systems, particularly in regulatory-sensitive domains where transparency is mandatory. This pilot study presents the first adaptation of the Similarity Difference and Uniqueness (SIDU) method, originally developed for CNN explainability, to transformer architectures. We address the challenge of bridging spatial feature maps to sequential token representations by exploring two masking strategies: Persistent Homology masking, which utilizes angular distances between the [CLS] token and context tokens, and Cosine Similarity masking, based on semantic relationships. Our approach operates on final hidden layer representations, requiring multiple forward passes to evaluate different mask configurations and compute similarity-uniqueness scores for token-level explanations. Through quantitative and qualitative evaluation across diverse text classification scenarios, from movie reviews to legal document processing, we investigate how transformer hidden states can be leveraged for explainability. To support this evaluation, we introduce a novel metric called Average Token Activation, which captures the mean activation of individual tokens without relying on any threshold mechanisms typical of XAI plausibility evaluation metrics. Our findings reveal robust performance across different domains and classification setups, providing the first insights into the potential and limitations of this cross-domain XAI adaptation approach.
Original languageEnglish
Title of host publicationIEEE International Conference on Application of Information Technologies in Engineering, Management and Science (ICAI-TEMS)
PublisherIEEE (Institute of Electrical and Electronics Engineers)
Publication date2025
Article number11467689
ISBN (Print)979-8-3315-9863-1
ISBN (Electronic)979-8-3315-9862-4
DOIs
Publication statusPublished - 2025
Event1st IEEE International Conference on Application of Information Technologies in Engineering, Management and Science - Cosenza, Italy
Duration: 11 Nov 2025 → 14 Nov 2025
Conference number: 1st
https://www.icai-tems.eu

Conference

Conference1st IEEE International Conference on Application of Information Technologies in Engineering, Management and Science
Number1st
Country/TerritoryItaly
CityCosenza
Period11/11/2025 → 14/11/2025
Internet address

Keywords

  • Explainable AI (XAI)
  • NLP
  • legal decision support systems
  • Heatmap

Fingerprint

Dive into the research topics of 'Explaining Transformers Through Similarity Difference and Uniqueness Masks – A Pilot Study'. Together they form a unique fingerprint.

Cite this