Paper Reading AI Learner

Contrast-CAT: Contrasting Activations for Enhanced Interpretability in Transformer-based Text Classifiers

2025-07-27 11:53:01
Sungmin Han, Jeonghyun Lee, Sangkyun Lee

Abstract

Transformers have profoundly influenced AI research, but explaining their decisions remains challenging -- even for relatively simpler tasks such as classification -- which hinders trust and safe deployment in real-world applications. Although activation-based attribution methods effectively explain transformer-based text classification models, our findings reveal that these methods can be undermined by class-irrelevant features within activations, leading to less reliable interpretations. To address this limitation, we propose Contrast-CAT, a novel activation contrast-based attribution method that refines token-level attributions by filtering out class-irrelevant features. By contrasting the activations of an input sequence with reference activations, Contrast-CAT generates clearer and more faithful attribution maps. Experimental results across various datasets and models confirm that Contrast-CAT consistently outperforms state-of-the-art methods. Notably, under the MoRF setting, it achieves average improvements of x1.30 in AOPC and x2.25 in LOdds over the most competing methods, demonstrating its effectiveness in enhancing interpretability for transformer-based text classification.

Abstract (translated)

Transformer模型对AI研究产生了深远的影响,但解释它们的决策仍然具有挑战性——即使对于相对简单的任务(如分类)也是如此。这阻碍了实际应用中的信任和安全部署。虽然基于激活的方法能够有效解释基于Transformer的文本分类模型,我们的研究表明这些方法可能会受到激活中无关类别的特征干扰,从而导致不那么可靠的解释。为了解决这一限制,我们提出了Contrast-CAT,这是一种新的基于激活对比的归因方法,通过过滤掉无关类别的特征来优化令牌级别的归因。通过将输入序列的激活与参考激活进行比较,Contrast-CAT可以生成更清晰且更准确的归因图谱。 在各种数据集和模型上的实验结果证实了Contrast-CAT始终优于现有的最先进方法。特别地,在MoRF设置下,它分别比最佳竞争方法平均提高了AOPC值1.30倍和LOdds值2.25倍,展示了其增强基于Transformer的文本分类解释性的有效性。

URL

https://arxiv.org/abs/2507.21186

PDF

https://arxiv.org/pdf/2507.21186.pdf


Tags
3D Action Action_Localization Action_Recognition Activity Adversarial Agent Attention Autonomous Bert Boundary_Detection Caption Chat Classification CNN Compressive_Sensing Contour Contrastive_Learning Deep_Learning Denoising Detection Dialog Diffusion Drone Dynamic_Memory_Network Edge_Detection Embedding Embodied Emotion Enhancement Face Face_Detection Face_Recognition Facial_Landmark Few-Shot Gait_Recognition GAN Gaze_Estimation Gesture Gradient_Descent Handwriting Human_Parsing Image_Caption Image_Classification Image_Compression Image_Enhancement Image_Generation Image_Matting Image_Retrieval Inference Inpainting Intelligent_Chip Knowledge Knowledge_Graph Language_Model LLM Matching Medical Memory_Networks Multi_Modal Multi_Task NAS NMT Object_Detection Object_Tracking OCR Ontology Optical_Character Optical_Flow Optimization Person_Re-identification Point_Cloud Portrait_Generation Pose Pose_Estimation Prediction QA Quantitative Quantitative_Finance Quantization Re-identification Recognition Recommendation Reconstruction Regularization Reinforcement_Learning Relation Relation_Extraction Represenation Represenation_Learning Restoration Review RNN Robot Salient Scene_Classification Scene_Generation Scene_Parsing Scene_Text Segmentation Self-Supervised Semantic_Instance_Segmentation Semantic_Segmentation Semi_Global Semi_Supervised Sence_graph Sentiment Sentiment_Classification Sketch SLAM Sparse Speech Speech_Recognition Style_Transfer Summarization Super_Resolution Surveillance Survey Text_Classification Text_Generation Time_Series Tracking Transfer_Learning Transformer Unsupervised Video_Caption Video_Classification Video_Indexing Video_Prediction Video_Retrieval Visual_Relation VQA Weakly_Supervised Zero-Shot