Causal Interpretation of Self-Attention in Pre-Trained Transformers
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
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
- 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,801
- 2015Show, Attend and Tell: Neural Image Caption Generation with Visual Attentioncited by 1,421
- 2018Self-Attentive Sequential Recommendationcited by 1,169
- 2017Counterfactual Explanations without Opening the Black Box: Automated Decisions and the GDPRcited by 1,086
- 2019BERT4Rec: Sequential Recommendation with Bidirectional Encoder Representations from Transformercited by 952
- 2019Attention is not Explanationcited by 916
- 2019Attention is not not Explanationcited by 629
10 more
- 2016RETAIN: An Interpretable Predictive Model for Healthcare using Reverse Time Attention Mechanismcited by 344
- 2021The Causal-Neural Connection: Expressiveness, Learnability, and Inferencecited by 97
- 2022Neural Causal Models for Counterfactual Identification and Estimationcited by 54
- 2013Learning Sparse Causal Models is not NP-hardcited by 48
- 2018Structural Agnostic Modeling: Adversarial Learning of Causal Graphscited by 48
- 2021Counterfactual Explanations for Neural Recommenderscited by 27
- 2021Iterative Causal Discovery in the Possible Presence of Latent Confounders and Selection Biascited by 21
- 2023From Temporal to Contemporaneous Iterative Causal Discovery in the Presence of Latent Confounderscited by 9
- 2021Improving Efficiency and Accuracy of Causal Discovery Using a Hierarchical Wrappercited by 6
- 2022CLEAR: Causal Explanations from Attention in Neural Recommenderscited by 4
Built on by
Citing papers per year: 2024: 10; 2025: 10; 2026: 10.
30 papers.
Sort:
By area:
- 2024DeCo: Decoupling Token Compression from Semantic Abstraction in Multimodal Large Language Modelscited by 74
- 2025Token Activation Map to Visually Explain Multimodal LLMscited by 30
- 2024Causality for Large Language Modelscited by 24
- 2024Understanding Multimodal LLMs: the Mechanistic Interpretability of Llava in Visual Question Answeringcited by 11
- 2025Resilient Contrastive Pre-training under Non-Stationary Driftcited by 7
- 2024Probabilistic Conceptual Explainers: Trustworthy Conceptual Explanations for Vision Foundation Modelscited by 6
- 2024A Causal World Model Underlying Next Token Prediction: Exploring GPT in a Controlled Environmentcited by 6
- 2024Explain the Black Box for the Sake of Science: the Scientific Method in the Era of Generative Artificial Intelligencecited by 5
- 2025SurgXBench: Explainable Vision-Language Model Benchmark for Surgerycited by 5
- 2025Walking the Tightrope: Disentangling Beneficial and Detrimental Drifts in Non-Stationary Custom-Tuningcited by 4
- 2025Towards Practical Multi-label Causal Discovery in High-Dimensional Event Sequences via One-Shot Graph Aggregationcited by 4
- 2025One-Shot Multi-Label Causal Discovery in High-Dimensional Event Sequencescited by 4
18 more
- 2026CausalDetox: Causal Head Selection and Intervention for Language Model Detoxificationcited by 3
- 2026Your Autoregressive Model Already Reveals the Causal Graphcited by 2
- 2024Structural Disentanglement of Causal and Correlated Conceptscited by 1
- 2024CHANI: Correlation-based Hawkes Aggregation of Neurons with bio-Inspirationcited by 1
- 2024Inner-Probe: Discovering Copyright-related Data Generation in LLM Architecturecited by 1
- 2025Causal Process Models: Reframing Dynamic Causal Graph Discovery as a Reinforcement Learning Problemcited by 1
- 2025Hierarchical Self-Attention: Generalizing Neural Attention Mechanics to Multi-Scale Problemscited by 1
- 2024Transformers with Sparse Attention for Granger Causalitycited by 0
- 2025Dual Filter: A Transformer-like Inference Architecture for Hidden Markov Modelscited by 0
- 2025Reversal Invariance in Autoregressive Language Modelscited by 0
- 2026Memory Retrieval in Transformers: Insights from The Encoding Specificity Principlecited by 0
- 2026Multi-Agent Causal Reasoning System for Error Pattern Rule Automation in Vehiclescited by 0
- 2026ReBeCA: Unveiling Interpretable Behavior Hierarchy behind the Iterative Self-Reflection of Language Models with Causal Analysiscited by 0
- 2026Lifelong Learning in Vision-Language Models: Enhanced EWC with Cross-Modal Knowledge Retentioncited by 0
- 2026Transformer-like Inference from Optimal Controlcited by 0
- 2026PropLLM: Propagation-Aware Scene Reconstruction for Network Fault Diagnosiscited by 0
- 2026seq2cause: One Autoregressive Backbone, Four Causal Discovery Tasks in Event Sequencescited by 0
- 2026Small transformers track Bayesian evidence for latent common causes via a context-invariant mechanismcited by 0
- 2026Small transformers track Bayesian evidence for latent common causes via a context-invariant mechanism28 Sep 2026
- 2026seq2cause: One Autoregressive Backbone, Four Causal Discovery Tasks in Event Sequences25 Sep 2026
- 2026PropLLM: Propagation-Aware Scene Reconstruction for Network Fault Diagnosis30 May 2026
- 2026Transformer-like Inference from Optimal Control15 May 2026
- 2026Lifelong Learning in Vision-Language Models: Enhanced EWC with Cross-Modal Knowledge Retention12 May 2026
- 2026CausalDetox: Causal Head Selection and Intervention for Language Model Detoxification16 Apr 2026
- 2026ReBeCA: Unveiling Interpretable Behavior Hierarchy behind the Iterative Self-Reflection of Language Models with Causal Analysis6 Feb 2026
- 2026Multi-Agent Causal Reasoning System for Error Pattern Rule Automation in Vehicles1 Feb 2026
- 2026Your Autoregressive Model Already Reveals the Causal Graph1 Feb 2026
- 2026Memory Retrieval in Transformers: Insights from The Encoding Specificity Principle28 Jan 2026
- 2025Reversal Invariance in Autoregressive Language Models1 Nov 2025
- 2025One-Shot Multi-Label Causal Discovery in High-Dimensional Event Sequences27 Sep 2025
18 more
- 2025Towards Practical Multi-label Causal Discovery in High-Dimensional Event Sequences via One-Shot Graph Aggregation23 Sep 2025
- 2025Hierarchical Self-Attention: Generalizing Neural Attention Mechanics to Multi-Scale Problems18 Sep 2025
- 2025Causal Process Models: Reframing Dynamic Causal Graph Discovery as a Reinforcement Learning Problem18 Jul 2025
- 2025Token Activation Map to Visually Explain Multimodal LLMs29 Jun 2025
- 2025Walking the Tightrope: Disentangling Beneficial and Detrimental Drifts in Non-Stationary Custom-Tuning19 May 2025
- 2025SurgXBench: Explainable Vision-Language Model Benchmark for Surgery16 May 2025
- 2025Dual Filter: A Transformer-like Inference Architecture for Hidden Markov Models1 May 2025
- 2025Resilient Contrastive Pre-training under Non-Stationary Drift11 Feb 2025
- 2024A Causal World Model Underlying Next Token Prediction: Exploring GPT in a Controlled Environment10 Dec 2024
- 2024Transformers with Sparse Attention for Granger Causality20 Nov 2024
- 2024Understanding Multimodal LLMs: the Mechanistic Interpretability of Llava in Visual Question Answering17 Nov 2024
- 2024Causality for Large Language Models20 Oct 2024
- 2024Inner-Probe: Discovering Copyright-related Data Generation in LLM Architecture6 Oct 2024
- 2024Probabilistic Conceptual Explainers: Trustworthy Conceptual Explanations for Vision Foundation Models18 Jun 2024
- 2024Explain the Black Box for the Sake of Science: the Scientific Method in the Era of Generative Artificial Intelligence15 Jun 2024
- 2024DeCo: Decoupling Token Compression from Semantic Abstraction in Multimodal Large Language Models31 May 2024
- 2024CHANI: Correlation-based Hawkes Aggregation of Neurons with bio-Inspiration29 May 2024
- 2024Structural Disentanglement of Causal and Correlated Concepts25 May 2024
- 2024DeCo: Decoupling Token Compression from Semantic Abstraction in Multimodal Large Language Modelscited by 74
- 2025Token Activation Map to Visually Explain Multimodal LLMscited by 30
- 2024Understanding Multimodal LLMs: the Mechanistic Interpretability of Llava in Visual Question Answeringcited by 11
- 2025SurgXBench: Explainable Vision-Language Model Benchmark for Surgerycited by 5
- 2026Lifelong Learning in Vision-Language Models: Enhanced EWC with Cross-Modal Knowledge Retentioncited by 0
- 2026Lifelong Learning in Vision-Language Models: Enhanced EWC with Cross-Modal Knowledge Retention12 May 2026
- 2025Token Activation Map to Visually Explain Multimodal LLMs29 Jun 2025
- 2025SurgXBench: Explainable Vision-Language Model Benchmark for Surgery16 May 2025
- 2024Understanding Multimodal LLMs: the Mechanistic Interpretability of Llava in Visual Question Answering17 Nov 2024
- 2024DeCo: Decoupling Token Compression from Semantic Abstraction in Multimodal Large Language Models31 May 2024
- 2024Causality for Large Language Modelscited by 24
- 2025Resilient Contrastive Pre-training under Non-Stationary Driftcited by 7
- 2024Probabilistic Conceptual Explainers: Trustworthy Conceptual Explanations for Vision Foundation Modelscited by 6
- 2024Explain the Black Box for the Sake of Science: the Scientific Method in the Era of Generative Artificial Intelligencecited by 5
- 2025Towards Practical Multi-label Causal Discovery in High-Dimensional Event Sequences via One-Shot Graph Aggregationcited by 4
- 2025One-Shot Multi-Label Causal Discovery in High-Dimensional Event Sequencescited by 4
- 2026CausalDetox: Causal Head Selection and Intervention for Language Model Detoxificationcited by 3
- 2026Your Autoregressive Model Already Reveals the Causal Graphcited by 2
- 2024Structural Disentanglement of Causal and Correlated Conceptscited by 1
- 2024CHANI: Correlation-based Hawkes Aggregation of Neurons with bio-Inspirationcited by 1
- 2024Inner-Probe: Discovering Copyright-related Data Generation in LLM Architecturecited by 1
- 2025Causal Process Models: Reframing Dynamic Causal Graph Discovery as a Reinforcement Learning Problemcited by 1
12 most cited of 21 All 21 (JSON)
- 2026Small transformers track Bayesian evidence for latent common causes via a context-invariant mechanism28 Sep 2026
- 2026seq2cause: One Autoregressive Backbone, Four Causal Discovery Tasks in Event Sequences25 Sep 2026
- 2026PropLLM: Propagation-Aware Scene Reconstruction for Network Fault Diagnosis30 May 2026
- 2026Transformer-like Inference from Optimal Control15 May 2026
- 2026CausalDetox: Causal Head Selection and Intervention for Language Model Detoxification16 Apr 2026
- 2026ReBeCA: Unveiling Interpretable Behavior Hierarchy behind the Iterative Self-Reflection of Language Models with Causal Analysis6 Feb 2026
- 2026Your Autoregressive Model Already Reveals the Causal Graph1 Feb 2026
- 2025Reversal Invariance in Autoregressive Language Models1 Nov 2025
- 2025One-Shot Multi-Label Causal Discovery in High-Dimensional Event Sequences27 Sep 2025
- 2025Towards Practical Multi-label Causal Discovery in High-Dimensional Event Sequences via One-Shot Graph Aggregation23 Sep 2025
- 2025Hierarchical Self-Attention: Generalizing Neural Attention Mechanics to Multi-Scale Problems18 Sep 2025
- 2025Causal Process Models: Reframing Dynamic Causal Graph Discovery as a Reinforcement Learning Problem18 Jul 2025
12 newest of 21 All 21 (JSON)