How do Decisions Emerge across Layers in Neural Models? Interpretation with Differentiable Masking
Not on the map. Why?
Abstract (arXiv)
Attribution methods assess the contribution of inputs to the model prediction. One way to do so is erasure: a subset of inputs is considered irrelevant if it can be removed without affecting the prediction. Though conceptually simple, erasure's objective is intractable and approximate search remains expensive with modern deep NLP models. Erasure is also susceptible to the hindsight bias: the fact that an input can be dropped does not mean that the model `knows' it can be dropped. The resulting pruning is over-aggressive and does not reflect how the model arrives at the prediction. To deal with these challenges, we introduce Differentiable Masking. DiffMask learns to mask-out subsets of the input while maintaining differentiability. The decision to include or disregard an input token is made with a simple model based on intermediate hidden layers of the analyzed model. First, this makes the approach efficient because we predict rather than search. Second, as with probing classifiers, this reveals what the network `knows' at the corresponding layers. This lets us not only plot attribution heatmaps but also analyze how decisions are formed across network layers. We use DiffMask to study BERT models on sentiment classification and question answering.
Key facts. Cited by 63 papers in the map (data through 7 Oct 2026). First posted on arXiv 30 Apr 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 17; 2022: 5; 2023: 18; 2024: 12; 2025: 8; 2026: 3.
63 papers.
Sort:
By area:
- 2021Editing Factual Knowledge in Language Modelscited by 548
- 2023How does GPT-2 compute greater-than?: Interpreting mathematical abilities in a pre-trained language modelcited by 199
- 2023Causal Abstraction: A Theoretical Foundation for Mechanistic Interpretabilitycited by 194
- 2022Towards Faithful Model Explanation in NLP: A Surveycited by 129
- 2021The Out-of-Distribution Problem in Explainability and Search Methods for Feature Importance Explanationscited by 86
- 2021Neuron-level Interpretation of Deep NLP Models: A Surveycited by 81
- 2024RAVEL: Evaluating Interpretability Methods on Disentangling Language Model Representationscited by 77
- 2021When Can Models Learn From Explanations? A Formal Framework for Understanding the Roles of Explanation Datacited by 75
- 2023Do Large Language Models Know about Facts?cited by 49
- 2025MIB: A Mechanistic Interpretability Benchmarkcited by 49
- 2024Recurrent Neural Networks Learn to Store and Generate Sequences using Non-Linear Representationscited by 45
- 2023Break It Down: Evidence for Structural Compositionality in Neural Networkscited by 44
38 more
- 2025Language Models use Lookbacks to Track Beliefscited by 36
- 2021Sparse Interventions in Language Models with Differentiable Maskingcited by 34
- 2024Evaluating Open-Source Sparse Autoencoders on Disentangling Factual Knowledge in GPT-2 Smallcited by 34
- 2023ConvXAI: Delivering Heterogeneous AI Explanations via Conversations to Support Human-AI Scientific Writingcited by 31
- 2021Multilingual Language Models Predict Human Reading Behaviorcited by 29
- 2023AD-KD: Attribution-Driven Knowledge Distillation for Language Model Compressioncited by 26
- 2024The Quest for the Right Mediator: Surveying Mechanistic Interpretability Through the Lens of Causal Mediation Analysiscited by 24
- 2021Translation Error Detection as Rationale Extractioncited by 22
- 2024Optimal ablation for interpretabilitycited by 21
- 2021Connecting Attributions and QA Model Behavior on Realistic Counterfactualscited by 20
- 2021Interpreting Deep Learning Models in Natural Language Processing: A Reviewcited by 19
- 2025How Do Transformers Learn Variable Binding in Symbolic Programs?cited by 19
- 2023Discovering Knowledge-Critical Subnetworks in Pretrained Language Modelscited by 16
- 2025Causal Head Gating: A Framework for Interpreting Roles of Attention Heads in Transformerscited by 16
- 2022A Fine-grained Interpretability Evaluation Benchmark for Neural NLPcited by 15
- 2021Explaining Neural Network Predictions on Sentence Pairs via Learning Word-Group Maskscited by 12
- 2023Explainability of Vision Transformers: A Comprehensive Review and New Perspectivescited by 12
- 2021Thermostat: A Large Collection of NLP Model Explanations and Analysis Toolscited by 11
- 2022New Definitions and Evaluations for Saliency Methods: Staying Intrinsic, Complete and Soundcited by 10
- 2026From Directions to Regions: Decomposing Activations in Language Models via Local Geometrycited by 10
- 2023NeuroSurgeon: A Toolkit for Subnetwork Analysiscited by 9
- 2024The Heuristic Core: Understanding Subnetwork Generalization in Pretrained Language Modelscited by 9
- 2021DoT: An efficient Double Transformer for NLP tasks with tablescited by 8
- 2021Does Knowledge Help General NLU? An Empirical Studycited by 7
- 2025LLMs Process Lists With General Filter Headscited by 7
- 2022Differentiable Mathematical Programming for Object-Centric Representation Learningcited by 6
- 2023Automated multilingual detection of Pro-Kremlin propaganda in newspapers and Telegram postscited by 6
- 2024Attention Speaks Volumes: Localizing and Mitigating Bias in Language Modelscited by 6
- 2023Decoding Layer Saliency in Language Transformerscited by 5
- 2023A Multi-Grained Self-Interpretable Symbolic-Neural Model For Single/Multi-Labeled Text Classificationcited by 4
- 2023VISION DIFFMASK: Faithful Interpretation of Vision Transformers with Differentiable Patch Maskingcited by 4
- 2021How Does Adversarial Fine-Tuning Benefit BERT?cited by 3
- 2023Consistent Multi-Granular Rationale Extraction for Explainable Multi-hop Fact Verificationcited by 3
- 2025LaTIM: Measuring Latent Token-to-Token Interactions in Mamba Modelscited by 3
- 2023Assessing Word Importance Using Models Trained for Semantic Taskscited by 2
- 2023You Only Forward Once: Prediction and Rationalization in A Single Forward Passcited by 2
- 2024Robust and Scalable Model Editing for Large Language Modelscited by 2
- 2025Fact in Fragments: Deconstructing Complex Claims via LLM-based Atomic Fact Extraction and Verificationcited by 2
50 most cited of 63 All 63 (JSON)
- 2026A mechanistic study of language model introspection28 Sep 2026
- 2026Sentence-Level Contextual Entrainment in Large Language Models23 Jun 2026
- 2026From Directions to Regions: Decomposing Activations in Language Models via Local Geometry2 Feb 2026
- 2025LLMs Process Lists With General Filter Heads30 Oct 2025
- 2025Beyond the Vision Encoder: Identifying and Mitigating Spatial Bias in Large Vision-Language Models26 Sep 2025
- 2025Fact in Fragments: Deconstructing Complex Claims via LLM-based Atomic Fact Extraction and Verification9 Jun 2025
- 2025How Do Transformers Learn Variable Binding in Symbolic Programs?27 May 2025
- 2025Language Models use Lookbacks to Track Beliefs20 May 2025
- 2025Causal Head Gating: A Framework for Interpreting Roles of Attention Heads in Transformers19 May 2025
- 2025MIB: A Mechanistic Interpretability Benchmark17 Apr 2025
- 2025LaTIM: Measuring Latent Token-to-Token Interactions in Mamba Models21 Feb 2025
- 2024Attention Speaks Volumes: Localizing and Mitigating Bias in Language Models29 Oct 2024
38 more
- 2024Optimal ablation for interpretability16 Sep 2024
- 2024Evaluating Open-Source Sparse Autoencoders on Disentangling Factual Knowledge in GPT-2 Small5 Sep 2024
- 2024Recurrent Neural Networks Learn to Store and Generate Sequences using Non-Linear Representations20 Aug 2024
- 2024The Quest for the Right Mediator: Surveying Mechanistic Interpretability Through the Lens of Causal Mediation Analysis2 Aug 2024
- 2024In Tree Structure Should Sentence Be Generated20 Jun 2024
- 2024Using Interpretation Methods for Model Enhancement2 Apr 2024
- 2024Effectively Prompting Small-sized Language Models for Cross-lingual Tasks via Winning Tickets1 Apr 2024
- 2024Robust and Scalable Model Editing for Large Language Models26 Mar 2024
- 2024Where does In-context Translation Happen in Large Language Models7 Mar 2024
- 2024The Heuristic Core: Understanding Subnetwork Generalization in Pretrained Language Models6 Mar 2024
- 2024RAVEL: Evaluating Interpretability Methods on Disentangling Language Model Representations27 Feb 2024
- 2023Explainability of Vision Transformers: A Comprehensive Review and New Perspectives12 Nov 2023
- 2023You Only Forward Once: Prediction and Rationalization in A Single Forward Pass4 Nov 2023
- 2023Do Large Language Models Know about Facts?8 Oct 2023
- 2023Discovering Knowledge-Critical Subnetworks in Pretrained Language Models4 Oct 2023
- 2023NeuroSurgeon: A Toolkit for Subnetwork Analysis1 Sep 2023
- 2023Interpreting Sentiment Composition with Latent Semantic Tree31 Aug 2023
- 2023Unsupervised Text Style Transfer with Deep Generative Models31 Aug 2023
- 2023Decoding Layer Saliency in Language Transformers9 Aug 2023
- 2023Assessing Word Importance Using Models Trained for Semantic Tasks31 May 2023
- 2023AD-KD: Attribution-Driven Knowledge Distillation for Language Model Compression17 May 2023
- 2023ConvXAI: Delivering Heterogeneous AI Explanations via Conversations to Support Human-AI Scientific Writing16 May 2023
- 2023Consistent Multi-Granular Rationale Extraction for Explainable Multi-hop Fact Verification16 May 2023
- 2023How does GPT-2 compute greater-than?: Interpreting mathematical abilities in a pre-trained language model30 Apr 2023
- 2023VISION DIFFMASK: Faithful Interpretation of Vision Transformers with Differentiable Patch Masking13 Apr 2023
- 2023A Multi-Grained Self-Interpretable Symbolic-Neural Model For Single/Multi-Labeled Text Classification6 Mar 2023
- 2023Break It Down: Evidence for Structural Compositionality in Neural Networks26 Jan 2023
- 2023Automated multilingual detection of Pro-Kremlin propaganda in newspapers and Telegram posts25 Jan 2023
- 2023Causal Abstraction: A Theoretical Foundation for Mechanistic Interpretability11 Jan 2023
- 2022New Definitions and Evaluations for Saliency Methods: Staying Intrinsic, Complete and Sound5 Nov 2022
- 2022U3E: Unsupervised and Erasure-based Evidence Extraction for Machine Reading Comprehension6 Oct 2022
- 2022Differentiable Mathematical Programming for Object-Centric Representation Learning5 Oct 2022
- 2022Towards Faithful Model Explanation in NLP: A Survey22 Sep 2022
- 2022A Fine-grained Interpretability Evaluation Benchmark for Neural NLP23 May 2022
- 2021Consistency and Coherence from Points of Contextual Similarity22 Dec 2021
- 2021Sparse Interventions in Language Models with Differentiable Masking13 Dec 2021
- 2021Does BERT look at sentiment lexicon?19 Nov 2021
- 2021Interpreting Deep Learning Models in Natural Language Processing: A Review20 Oct 2021
50 newest of 63 All 63 (JSON)
- 2021Editing Factual Knowledge in Language Modelscited by 548
- 2023How does GPT-2 compute greater-than?: Interpreting mathematical abilities in a pre-trained language modelcited by 199
- 2023Causal Abstraction: A Theoretical Foundation for Mechanistic Interpretabilitycited by 194
- 2022Towards Faithful Model Explanation in NLP: A Surveycited by 129
- 2021The Out-of-Distribution Problem in Explainability and Search Methods for Feature Importance Explanationscited by 86
- 2021Neuron-level Interpretation of Deep NLP Models: A Surveycited by 81
- 2024RAVEL: Evaluating Interpretability Methods on Disentangling Language Model Representationscited by 77
- 2021When Can Models Learn From Explanations? A Formal Framework for Understanding the Roles of Explanation Datacited by 75
- 2023Do Large Language Models Know about Facts?cited by 49
- 2025MIB: A Mechanistic Interpretability Benchmarkcited by 49
- 2024Recurrent Neural Networks Learn to Store and Generate Sequences using Non-Linear Representationscited by 45
- 2023Break It Down: Evidence for Structural Compositionality in Neural Networkscited by 44
12 most cited of 61 All 61 (JSON)
- 2026A mechanistic study of language model introspection28 Sep 2026
- 2026Sentence-Level Contextual Entrainment in Large Language Models23 Jun 2026
- 2026From Directions to Regions: Decomposing Activations in Language Models via Local Geometry2 Feb 2026
- 2025LLMs Process Lists With General Filter Heads30 Oct 2025
- 2025Fact in Fragments: Deconstructing Complex Claims via LLM-based Atomic Fact Extraction and Verification9 Jun 2025
- 2025How Do Transformers Learn Variable Binding in Symbolic Programs?27 May 2025
- 2025Language Models use Lookbacks to Track Beliefs20 May 2025
- 2025Causal Head Gating: A Framework for Interpreting Roles of Attention Heads in Transformers19 May 2025
- 2025MIB: A Mechanistic Interpretability Benchmark17 Apr 2025
- 2024Attention Speaks Volumes: Localizing and Mitigating Bias in Language Models29 Oct 2024
- 2024Optimal ablation for interpretability16 Sep 2024
- 2024Evaluating Open-Source Sparse Autoencoders on Disentangling Factual Knowledge in GPT-2 Small5 Sep 2024
12 newest of 61 All 61 (JSON)