Explainable AI: Context-Aware Layer-Wise Integrated Gradients for Explaining Transformer Models
Not on the map. Why?
Abstract (arXiv)
Transformer models achieve state-of-the-art performance across domains and tasks, yet their deeply layered representations make their predictions difficult to interpret. Existing explainability methods rely on final-layer attributions, capture either local token-level attributions or global attention patterns without unification, and lack context-awareness of inter-token dependencies and structural components. They also fail to capture how relevance evolves across layers and how structural components shape decision-making. To address these limitations, we proposed the Context-Aware Layer-wise Integrated Gradients (CA-LIG) Framework, a unified hierarchical attribution framework that computes layer-wise Integrated Gradients within each Transformer block and fuses these token-level attributions with class-specific attention gradients. This integration yields signed, context-sensitive attribution maps that capture supportive and opposing evidence while tracing the hierarchical flow of relevance through the Transformer layers. We evaluate the CA-LIG Framework across diverse tasks, domains, and transformer model families, including sentiment analysis and long and multi-class document classification with BERT, hate speech detection in a low-resource language setting with XLM-R and AfroLM, and image classification with Masked Autoencoder vision Transformer model. Across all tasks and architectures, CA-LIG provides more faithful attributions, shows stronger sensitivity to contextual dependencies, and produces clearer, more semantically coherent visualizations than established explainability methods. These results indicate that CA-LIG provides a more comprehensive, context-aware, and reliable explanation of Transformer decision-making, advancing both the practical interpretability and conceptual understanding of deep neural models.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 59 of its 80 references that are in the map. First posted on arXiv 18 Feb 2026.
Builds on
59 of 80 references.
References · 59
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2021Masked Autoencoders Are Scalable Vision Learnerscited by 7,339
- 2016Grad-CAM: Visual Explanations from Deep Networks via Gradient-based Localizationcited by 6,690
- 2017A Unified Approach to Interpreting Model Predictionscited by 6,488
- 2016"Why Should I Trust You?": Explaining the Predictions of Any Classifiercited by 5,040
- 2019Unsupervised Cross-lingual Representation Learning at Scalecited by 3,907
- 2017Axiomatic Attribution for Deep Networkscited by 3,350
- 2015Learning Deep Features for Discriminative Localizationcited by 2,430
- 2018Deep contextualized word representationscited by 2,285
- 2013Visualizing and Understanding Convolutional Networkscited by 2,278
38 more
- 2017Learning Important Features Through Propagating Activation Differencescited by 1,454
- 2017Interpretability Beyond Feature Attribution: Quantitative Testing with Concept Activation Vectors (TCAV)cited by 1,309
- 2017SmoothGrad: removing noise by adding noisecited by 1,097
- 2019BERT Rediscovers the Classical NLP Pipelinecited by 1,046
- 2019What Does BERT Look At? An Analysis of BERT's Attentioncited by 994
- 2019Attention is not Explanationcited by 916
- 2020A Primer in BERTology: What we know about how BERT workscited by 807
- 2019How Contextual are Contextualized Word Representations? Comparing the Geometry of BERT, ELMo, and GPT-2 Embeddingscited by 770
- 2020Quantifying Attention Flow in Transformerscited by 759
- 2019Attention is not not Explanationcited by 629
- 2020Transformer Interpretability Beyond Attention Visualizationcited by 620
- 2019ERASER: A Benchmark to Evaluate Rationalized NLP Modelscited by 523
- 2019Is Attention Interpretable?cited by 387
- 2019Linguistic Knowledge and Transferability of Contextual Representationscited by 382
- 2019Revealing the Dark Secrets of BERTcited by 300
- 2022From Anecdotal Evidence to Quantitative Evaluation Methods: A Systematic Review on Evaluating Explainable AIcited by 299
- 2019A Multiscale Visualization of Attention in the Transformer Modelcited by 292
- 2019Assessing BERT's Syntactic Abilitiescited by 191
- 2019Full-Gradient Representation for Neural Network Visualizationcited by 189
- 2019Fine-tune BERT for Extractive Summarizationcited by 122
- 2024AttnLRP: Attention-Aware Layer-Wise Relevance Propagation for Transformerscited by 116
- 2020Explaining Explanations: Axiomatic Feature Interactions for Deep Networkscited by 103
- 2021Guided Integrated Gradients: An Adaptive Path Method for Removing Noisecited by 102
- 2017Explaining Recurrent Neural Network Predictions in Sentiment Analysiscited by 87
- 2024A Primer on the Inner Workings of Transformer-based Language Modelscited by 83
- 2022Measuring the Mixing of Contextual Information in the Transformercited by 63
- 2023AttentionViz: A Global View of Transformer Attentioncited by 50
- 2022AfroLM: A Self-Active Learning-based Multilingual Pretrained Language Model for 23 African Languagescited by 46
- 2024Explainable Artificial Intelligence: A Survey of Needs, Techniques, Applications, and Future Directioncited by 46
- 2024Fantastic Semantics and Where to Find Them: Investigating Which Layers of Generative LLMs Reflect Lexical Semanticscited by 43
- 2024IRCAN: Mitigating Knowledge Conflicts in LLM Generation via Identifying and Reweighting Context-Aware Neuronscited by 36
- 2020Interpreting Attention Models with Human Visual Attention in Machine Reading Comprehensioncited by 29
- 2021Relative Importance in Sentence Processingcited by 22
- 2025Attention Consistency for LLMs Explanationcited by 10
- 2024Semantic-Driven Topic Modeling Using Transformer-Based Embeddings and Clustering Algorithmscited by 8
- 2024Ethio-Fake: Cutting-Edge Approaches to Combat Fake News in Under-Resourced Languages Using Explainable AIcited by 8
- 2025SMART-Vision: Survey of Modern Action Recognition Techniques in Visioncited by 8
- 2023First Attempt at Building Parallel Corpora for Machine Translation of Northeast India's Very Low-Resource Languagescited by 7
50 most cited of 59 All 59 (JSON)
Built on by
Citing papers per year: 2026: 1.
1 paper.