mlsanityData to 7 Oct 2026

GlobEnc: Quantifying Global Token Attribution by Incorporating the Whole Encoder Layer in Transformers

arXiv 2205.03286 ↗First posted 6 May 2022cs.CLcited by 44

Not on the map. Why?

Abstract (arXiv)

There has been a growing interest in interpreting the underlying dynamics of Transformers. While self-attention patterns were initially deemed as the primary option, recent studies have shown that integrating other components can yield more accurate explanations. This paper introduces a novel token attribution analysis method that incorporates all the components in the encoder block and aggregates this throughout layers. Through extensive quantitative and qualitative experiments, we demonstrate that our method can produce faithful and meaningful global token attributions. Our experiments reveal that incorporating almost every encoder component results in increasingly more accurate analysis in both local (single layer) and global (the whole model) settings. Our global attribution analysis significantly outperforms previous methods on various tasks regarding correlation with gradient-based saliency scores. Our code is freely available at https://github.com/mohsenfayyaz/GlobEnc.

Key facts. Cited by 44 papers in the map (data through 7 Oct 2026). Builds on 27 of its 34 references that are in the map. First posted on arXiv 6 May 2022.

Builds on

27 of 34 references.

References · 27

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,243
  4. 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,665
  5. 2013Deep Inside Convolutional Networks: Visualising Image Classification Models and Saliency Mapscited by 2,348
  6. 2019What Does BERT Look At? An Analysis of BERT's Attentioncited by 994
  7. 2019Attention is not Explanationcited by 916
  8. 2020Quantifying Attention Flow in Transformerscited by 759
  9. 2019Attention is not not Explanationcited by 629
  10. 2020HateXplain: A Benchmark Dataset for Explainable Hate Speech Detectioncited by 403
  11. 2019Is Attention Interpretable?cited by 387
  12. 2019Revealing the Dark Secrets of BERTcited by 300
15 more
  1. 2020BERT Loses Patience: Fast and Robust Inference with Early Exitcited by 267
  2. 2019Visualizing and Measuring the Geometry of BERTcited by 215
  3. 2015Visualizing and Understanding Neural Models in NLPcited by 199
  4. 2020A Diagnostic Study of Explainability Techniques for Text Classificationcited by 158
  5. 2020The elephant in the interpretability room: Why use attention as explanation when we have saliency methods?cited by 122
  6. 2019On Identifiability in Transformerscited by 115
  7. 2021BERT Busters: Outlier Dimensions that Disrupt Transformerscited by 110
  8. 2019Do Attention Heads in BERT Track Syntactic Dependencies?cited by 87
  9. 2016Investigating the influence of noise and distractors on the interpretation of neural networkscited by 54
  10. 2021Incorporating Residual and Normalization Layers into Analysis of Masked Language Modelscited by 50
  11. 2020Positional Artefacts Propagate Through Masked Language Model Embeddingscited by 34
  12. 2021Exploring the Role of BERT Token Representations to Explain Sentence Probing Resultscited by 29
  13. 2021On Explaining Your Explanations of BERT: An Empirical Study with Sequence Classificationcited by 21
  14. 2021Not All Models Localize Linguistic Knowledge in the Same Place: A Layer-wise Probing on BERToids' Representationscited by 16
  15. 2020Telling BERT's full story: from Local Attention to Global Aggregationcited by 15

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 9; 2024: 14; 2025: 15; 2026: 6.

44 papers.

Sort:

By area:

  1. 2023Inseq: An Interpretability Toolkit for Sequence Generation Modelscited by 78
  2. 2024From Understanding to Utilization: A Survey on Explainability for Large Language Modelscited by 47
  3. 2023Quantifying Context Mixing in Transformerscited by 43
  4. 2023Analyzing Feed-Forward Blocks in Transformers through the Lens of Attention Mapscited by 33
  5. 2023DecompX: Explaining Transformers Decisions by Propagating Token Decompositioncited by 31
  6. 2024InternalInspector I2: Robust Confidence Estimation in LLMs through Internal Statescited by 29
  7. 2023A Glitch in the Matrix? Locating and Detecting Language Model Grounding with Fakepediacited by 24
  8. 2025Steering MoE LLMs via Expert (De)Activationcited by 23
  9. 2025Collapse of Dense Retrievers: Short, Early, and Literal Biases Outranking Factual Evidencecited by 16
  10. 2023Homophone Disambiguation Reveals Patterns of Context Mixing in Speech Transformerscited by 13
  11. 2024An Unsupervised Approach to Achieve Supervised-Level Explainability in Healthcare Recordscited by 12
  12. 2024Evaluating Human Alignment and Model Faithfulness of LLM Rationalecited by 12
32 more
  1. 2025A Close Look at Decomposition-based XAI-Methods for Transformer Language Modelscited by 10
  2. 2025Interpretation Meets Safety: A Survey on Interpretation Methods and Tools for Improving LLM Safetycited by 10
  3. 2024Better Explain Transformers by Illuminating Important Informationcited by 8
  4. 2024Attention Mechanisms Don't Learn Additive Models: Rethinking Feature Importance for Transformerscited by 8
  5. 2025Are We Paying Attention to Her? Investigating Gender Disambiguation and Attention in Machine Translationcited by 7
  6. 2024Unveiling and Manipulating Prompt Influence in Large Language Modelscited by 6
  7. 2024LibraGrad: Balancing Gradient Flow for Universally Better Vision Transformer Attributionscited by 5
  8. 2024Isotropy, Clusters, and Classifierscited by 4
  9. 2024NormXLogit: The Head-on-Top Never Liescited by 4
  10. 2025B-cos LM: Efficiently Transforming Pre-trained Language Models for Improved Explainabilitycited by 4
  11. 2024Counterfactuals As a Means for Evaluating Faithfulness of Attribution Methods in Autoregressive Language Modelscited by 3
  12. 2025Generalized Attention Flow: Feature Attribution for Transformer Models via Maximum Flowcited by 3
  13. 2023Computational modeling of semantic changecited by 2
  14. 2023Why bother with geometry? On the relevance of linear decompositions of Transformer embeddingscited by 2
  15. 2025Which Words Matter Most in Zero-Shot Prompts?cited by 2
  16. 2026Bridging the Semantic Gap for Categorical Data Clustering via Large Language Modelscited by 2
  17. 2023Centering the Margins: Outlier-Based Identification of Harmed Populations in Toxicity Detectioncited by 1
  18. 2024Explanation Regularisation through the Lens of Attributionscited by 1
  19. 2024Exploring the Plausibility of Hate and Counter Speech Detectors with Explainable AIcited by 1
  20. 2024How Language Models Prioritize Contextual Grammatical Cues?cited by 1
  21. 2025From Text to Graph: Leveraging Graph Neural Networks for Enhanced Explainability in NLPcited by 1
  22. 2025TESSER: Transfer-Enhancing Adversarial Attacks from Vision Transformers via Spectral and Semantic Regularizationcited by 1
  23. 2025Contrast-CAT: Contrasting Activations for Enhanced Interpretability in Transformer-based Text Classifierscited by 1
  24. 2025Cross-Attention is Half Explanation in Speech-to-Text Modelscited by 1
  25. 2025FrugalPrompt: Reducing Contextual Overhead in Large Language Models via Token Attributioncited by 1
  26. 2025Order-Level Attention Similarity Across Language Models: A Latent Commonalitycited by 1
  27. 2026TensorLens: End-to-End Transformer Analysis via High-Order Attention Tensorscited by 1
  28. 2025Bridging Fairness and Explainability: Can Input-Based Explanations Promote Fairness in Hate Speech Detection?cited by 0
  29. 2026Layer-wise Target Propagation: Efficient Component Attribution through Target Centric Propagationcited by 0
  30. 2026Multi-component Causal Tracing in Large Language Modelscited by 0
  31. 2026Every Time I Hire a Linguist, Inference Costs Go Down: On Linguistic Rules as Effective Prompt Compressorscited by 0
  32. 2026Multilinguality in Hybrid Attention LLMscited by 0