mlsanityData to 7 Oct 2026

Causal Interpretation of Self-Attention in Pre-Trained Transformers

arXiv 2310.20307 ↗First posted 31 Oct 2023cs.AI cs.LGcited by 30

Not on the map. Why?

Abstract (arXiv)

We propose a causal interpretation of self-attention in the Transformer neural network architecture. We interpret self-attention as a mechanism that estimates a structural equation model for a given input sequence of symbols (tokens). The structural equation model can be interpreted, in turn, as a causal structure over the input symbols under the specific context of the input sequence. Importantly, this interpretation remains valid in the presence of latent confounders. Following this interpretation, we estimate conditional independence relations between input symbols by calculating partial correlations between their corresponding representations in the deepest attention layer. This enables learning the causal structure over an input sequence using existing constraint-based algorithms. In this sense, existing pre-trained Transformers can be utilized for zero-shot causal-discovery. We demonstrate this method by providing causal explanations for the outcomes of Transformers in two tasks: sentiment classification (NLP) and recommendation.

Key facts. Cited by 30 papers in the map (data through 7 Oct 2026). Builds on 22 of its 48 references that are in the map. First posted on arXiv 31 Oct 2023.

Builds on

22 of 48 references.

References · 22

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2020Language Models are Few-Shot Learnerscited by 32,199
  4. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  5. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
  6. 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,801
  7. 2015Show, Attend and Tell: Neural Image Caption Generation with Visual Attentioncited by 1,421
  8. 2018Self-Attentive Sequential Recommendationcited by 1,169
  9. 2017Counterfactual Explanations without Opening the Black Box: Automated Decisions and the GDPRcited by 1,086
  10. 2019BERT4Rec: Sequential Recommendation with Bidirectional Encoder Representations from Transformercited by 952
  11. 2019Attention is not Explanationcited by 916
  12. 2019Attention is not not Explanationcited by 629
10 more
  1. 2016RETAIN: An Interpretable Predictive Model for Healthcare using Reverse Time Attention Mechanismcited by 344
  2. 2021The Causal-Neural Connection: Expressiveness, Learnability, and Inferencecited by 97
  3. 2022Neural Causal Models for Counterfactual Identification and Estimationcited by 54
  4. 2013Learning Sparse Causal Models is not NP-hardcited by 48
  5. 2018Structural Agnostic Modeling: Adversarial Learning of Causal Graphscited by 48
  6. 2021Counterfactual Explanations for Neural Recommenderscited by 27
  7. 2021Iterative Causal Discovery in the Possible Presence of Latent Confounders and Selection Biascited by 21
  8. 2023From Temporal to Contemporaneous Iterative Causal Discovery in the Presence of Latent Confounderscited by 9
  9. 2021Improving Efficiency and Accuracy of Causal Discovery Using a Hierarchical Wrappercited by 6
  10. 2022CLEAR: Causal Explanations from Attention in Neural Recommenderscited by 4

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 10; 2025: 10; 2026: 10.

30 papers.

Sort:

By area:

  1. 2024DeCo: Decoupling Token Compression from Semantic Abstraction in Multimodal Large Language Modelscited by 74
  2. 2025Token Activation Map to Visually Explain Multimodal LLMscited by 30
  3. 2024Causality for Large Language Modelscited by 24
  4. 2024Understanding Multimodal LLMs: the Mechanistic Interpretability of Llava in Visual Question Answeringcited by 11
  5. 2025Resilient Contrastive Pre-training under Non-Stationary Driftcited by 7
  6. 2024Probabilistic Conceptual Explainers: Trustworthy Conceptual Explanations for Vision Foundation Modelscited by 6
  7. 2024A Causal World Model Underlying Next Token Prediction: Exploring GPT in a Controlled Environmentcited by 6
  8. 2024Explain the Black Box for the Sake of Science: the Scientific Method in the Era of Generative Artificial Intelligencecited by 5
  9. 2025SurgXBench: Explainable Vision-Language Model Benchmark for Surgerycited by 5
  10. 2025Walking the Tightrope: Disentangling Beneficial and Detrimental Drifts in Non-Stationary Custom-Tuningcited by 4
  11. 2025Towards Practical Multi-label Causal Discovery in High-Dimensional Event Sequences via One-Shot Graph Aggregationcited by 4
  12. 2025One-Shot Multi-Label Causal Discovery in High-Dimensional Event Sequencescited by 4
18 more
  1. 2026CausalDetox: Causal Head Selection and Intervention for Language Model Detoxificationcited by 3
  2. 2026Your Autoregressive Model Already Reveals the Causal Graphcited by 2
  3. 2024Structural Disentanglement of Causal and Correlated Conceptscited by 1
  4. 2024CHANI: Correlation-based Hawkes Aggregation of Neurons with bio-Inspirationcited by 1
  5. 2024Inner-Probe: Discovering Copyright-related Data Generation in LLM Architecturecited by 1
  6. 2025Causal Process Models: Reframing Dynamic Causal Graph Discovery as a Reinforcement Learning Problemcited by 1
  7. 2025Hierarchical Self-Attention: Generalizing Neural Attention Mechanics to Multi-Scale Problemscited by 1
  8. 2024Transformers with Sparse Attention for Granger Causalitycited by 0
  9. 2025Dual Filter: A Transformer-like Inference Architecture for Hidden Markov Modelscited by 0
  10. 2025Reversal Invariance in Autoregressive Language Modelscited by 0
  11. 2026Memory Retrieval in Transformers: Insights from The Encoding Specificity Principlecited by 0
  12. 2026Multi-Agent Causal Reasoning System for Error Pattern Rule Automation in Vehiclescited by 0
  13. 2026ReBeCA: Unveiling Interpretable Behavior Hierarchy behind the Iterative Self-Reflection of Language Models with Causal Analysiscited by 0
  14. 2026Lifelong Learning in Vision-Language Models: Enhanced EWC with Cross-Modal Knowledge Retentioncited by 0
  15. 2026Transformer-like Inference from Optimal Controlcited by 0
  16. 2026PropLLM: Propagation-Aware Scene Reconstruction for Network Fault Diagnosiscited by 0
  17. 2026seq2cause: One Autoregressive Backbone, Four Causal Discovery Tasks in Event Sequencescited by 0
  18. 2026Small transformers track Bayesian evidence for latent common causes via a context-invariant mechanismcited by 0