Captum: A unified and generic model interpretability library for PyTorch
Not on the map. Why?
Abstract (arXiv)
In this paper we introduce a novel, unified, open-source model interpretability library for PyTorch [12]. The library contains generic implementations of a number of gradient and perturbation-based attribution algorithms, also known as feature, neuron and layer importance algorithms, as well as a set of evaluation metrics for these algorithms. It can be used for both classification and non-classification models including graph-structured models built on Neural Networks (NN). In this paper we give a high-level overview of supported attribution algorithms and show how to perform memory-efficient and scalable computations. We emphasize that the three main characteristics of the library are multimodality, extensibility and ease of use. Multimodality supports different modality of inputs such as image, text, audio or video. Extensibility allows adding new algorithms and features. The library is also designed for easy understanding and use. Besides, we also introduce an interactive visualization tool called Captum Insights that is built on top of Captum library and allows sample-based model debugging and visualization using feature importance metrics.
Key facts. Cited by 542 papers in the map (data through 7 Oct 2026). First posted on arXiv 16 Sep 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 52; 2022: 89; 2023: 99; 2024: 132; 2025: 95; 2026: 75.
542 papers.
Sort:
By area:
- 2022Quantus: An Explainable AI Toolkit for Responsible Evaluation of Neural Network Explanations and Beyondcited by 171
- 2022Towards Faithful Model Explanation in NLP: A Surveycited by 129
- 2022OpenXAI: Towards a Transparent Evaluation of Model Explanationscited by 125
- 2024AttnLRP: Attention-Aware Layer-Wise Relevance Propagation for Transformerscited by 116
- 2021Do Concept Bottleneck Models Learn as Intended?cited by 114
- 2023Modeling Dense Multimodal Interactions Between Biological Pathways and Histology for Survival Predictioncited by 92
- 2024Discover-then-Name: Task-Agnostic Concept Bottlenecks via Automated Concept Discoverycited by 91
- 2024What is Your Data Worth to GPT? LLM-Scale Data Valuation with Influence Functionscited by 88
- 2024A Primer on the Inner Workings of Transformer-based Language Modelscited by 83
- 2023Inseq: An Interpretability Toolkit for Sequence Generation Modelscited by 78
- 2022Which Explanation Should I Choose? A Function Approximation Perspective to Characterizing Post Hoc Explanationscited by 77
- 2021Improving Deep Learning Interpretability by Saliency Guided Trainingcited by 68
38 more
- 2022Measuring the Mixing of Contextual Information in the Transformercited by 63
- 2022Concept Activation Regions: A Generalized Framework For Concept-Based Explanationscited by 57
- 2023Learning to Maximize Mutual Information for Dynamic Feature Selectioncited by 54
- 2023On Early Detection of Hallucinations in Factual Question Answeringcited by 54
- 2021Software for Dataset-wide XAI: From Local Explanations to Global Insights with Zennit, CoRelAy, and ViRelAycited by 53
- 2022Evaluation of post-hoc interpretability methods in time-series classificationcited by 53
- 2023Sequential Integrated Gradients: a simple but effective method for explaining language modelscited by 52
- 2025PyG 2.0: Scalable Learning on Real World Graphscited by 49
- 2022Learning to Estimate Shapley Values with Vision Transformerscited by 44
- 2023Encoding Time-Series Explanations through Self-Supervised Model Behavior Consistencycited by 42
- 2024shapiq: Shapley Interactions for Machine Learningcited by 42
- 2022Fairness via Explanation Quality: Evaluating Disparities in the Quality of Post hoc Explanationscited by 40
- 2021Defining and Quantifying the Emergence of Sparse Concepts in DNNscited by 36
- 2023SwiFT: Swin 4D fMRI Transformercited by 36
- 2022Modular and Parameter-Efficient Multimodal Fusion with Promptingcited by 35
- 2024Are We in the AI-Generated Text World Already? Quantifying and Monitoring AIGT on Social Mediacited by 35
- 2022Fairness Reprogrammingcited by 33
- 2023Analyzing Feed-Forward Blocks in Transformers through the Lens of Attention Mapscited by 33
- 2023Using Captum to Explain Generative Language Modelscited by 33
- 2021UNIREX: A Unified Learning Framework for Language Model Rationale Extractioncited by 32
- 2022The Harvard USPTO Patent Dataset: A Large-Scale, Well-Structured, and Multi-Purpose Corpus of Patent Applicationscited by 32
- 2021Perturbing Inputs for Fragile Interpretations in Deep Natural Language Processingcited by 30
- 2023AtMan: Understanding Transformer Predictions Through Memory Efficient Attention Manipulationcited by 30
- 2021Shared Interest: Measuring Human-AI Alignment to Identify Recurring Patterns in Model Behaviorcited by 29
- 2022On Explaining Multimodal Hateful Meme Detection Modelscited by 29
- 2022SAFARI: Versatile and Efficient Evaluations for Robustness of Interpretabilitycited by 28
- 2024Decoupling Pixel Flipping and Occlusion Strategy for Consistent XAI Benchmarkscited by 28
- 2024Navigating LLM Ethics: Advancements, Challenges, and Future Directionscited by 28
- 2021Temporal Dependencies in Feature Importance for Time Series Predictionscited by 27
- 2023Conditional Mutual Information for Disentangled Representations in Reinforcement Learningcited by 27
- 2021Evaluating explainable artificial intelligence methods for multi-label deep learning classification tasks in remote sensingcited by 26
- 2022ferret: a Framework for Benchmarking Explainers on Transformerscited by 26
- 2022Disentangled Explanations of Neural Network Predictions by Finding Relevant Subspacescited by 25
- 2022Xplique: A Deep Learning Explainability Toolboxcited by 24
- 2021Does BERT Learn as Humans Perceive? Understanding Linguistic Styles through Lexicacited by 23
- 2024Navigating Shortcuts, Spurious Correlations, and Confounders: From Origins via Detection to Mitigationcited by 22
- 2021Robust Models Are More Interpretable Because Attributions Look Normalcited by 21
- 2022Attribution-aware Weight Transfer: A Warm-Start Initialization for Class-Incremental Semantic Segmentationcited by 21
50 most cited of 542 All 542 (JSON)
- 2026A Comparative Explainability Framework for DeBERTa-v3 in Zero-Shot Medical Abstract Classification1 Oct 2026
- 2026WOMBAT: Whitebox Oracle for Molecular Benchmarking and Attribution Testing30 Sep 2026
- 2026GraphSelect for Budgeted Representation Selection in Multimodal Graph Inference27 Sep 2026
- 2026When Less Compute Is More: Adaptive Early Exit Improves Pretrained Outlier Detection26 Sep 2026
- 2026A Synthetic Ground-Truth Framework for the Evaluation of Explainable AI Methods24 Sep 2026
- 2026A Systematic Benchmark of Explainable Methods for Temporal Attribution in Sequential Recommendation Systems23 Sep 2026
- 2026Stable and Faithful Explanations for Knowledge Tracing15 Sep 2026
- 2026Spatial Attention Supervision for Defect Localization: Exploiting Ground-Truth Masks as Training Signal in Diffusion-Augmented Defect Detection5 Sep 2026
- 2026HiLRP: Toward One Trustworthy Explanation for Vision Transformer: Conservation-Valid Attribution via Attention Primitives1 Sep 2026
- 2026ToxLens: A Reproducible Graph-Learning Framework for Leakage-Aware, Uncertainty-Calibrated Molecular Toxicity Prediction31 Aug 2026
- 2026RACE: Scalable Statistical Estimation of Functional Consistency in LLM Neurons25 Aug 2026
- 2026LumiXAI: A Modular Full-Stack Framework for Feature Attribution25 Aug 2026
38 more
- 2026MIL-BERT: Classification of Arbitrarily Large Text with Performance and Explanatory Guarantees21 Aug 2026
- 2026Explainable Transformer Models for Clinical Prediction Tasks on Structured Electronic Health Records20 Aug 2026
- 2026Building real-time digital twin instances with Function+Data Flow: user evaluation and extension for iterative pipelines19 Aug 2026
- 2026EEG-PRISM: Physiologically-Grounded Interpretability of Predictions by EEG Foundation Models13 Aug 2026
- 2026DMDIntel: Interpreting Large Language Models via Dynamic Mode Decomposition13 Aug 2026
- 2026Beyond Attention: Signed Integrated Gradients Attribution in a BiomeGPT-Style Microbiome Transformer6 Aug 2026
- 2026A Physics-Flavored Transformer Network for Parametrizing Contraction Dynamics of Engineered Skeletal Muscle Tissues4 Aug 2026
- 2026Does Explainability Transfer? A Controlled Benchmark of Attribution Methods on Vision Transformers and CNNs3 Aug 2026
- 2026Crushing the Evidence: A Dual-Penalty Evasion Framework for Fooling White-Box Explainable AI Auditors1 Aug 2026
- 2026Token-Level Diagnosis of Sycophancy in LLMs with Attribution-Guided Steering31 Jul 2026
- 2026CircuitKIT : Circuit Discovery, Evaluation, and Application Toolkit for Mechanistic Interpretability21 Jul 2026
- 2026Scaling Time Series Classification via XAI-Driven Data Reduction17 Jul 2026
- 2026STAPO: Selective Trajectory-Aware Policy Optimization for LLM Agent Training6 Jul 2026
- 2026CARL: Constraint-Aware Reinforcement Learning for Planning with LLMs6 Jul 2026
- 2026Two Black Boxes, One Solver: Encoder Probing and Decoder Attribution for Neural Multi-Attribute VRP under Hard-Mask and Recourse Decoders5 Jul 2026
- 2026A Preliminary Study on Explaining Risk of Code Changes using LLM-Based Prediction Models2 Jul 2026
- 2026Surrogate Fidelity: When Can Open LLMs Explain Closed Ones?30 Jun 2026
- 2026IG-Lens: Exact Additive Probability Attribution Across Transformer Layers via Telescoping Integrated Gradients29 Jun 2026
- 2026Cross-Platform Generalisation Failure in Mental Health Natural Language Processing: A Five-Axis Fairness Audit of Transformer Models on Social Media25 Jun 2026
- 2026Themis: An explainable AI-enabled framework for Reinforcement Learning with Human Feedback23 Jun 2026
- 2026One Lens, Many Worlds : A Capability-Typed Interface for World-Model Interpretability7 Jun 2026
- 2026OPTIMUS-Prime: Minimal and Sufficient Concept Explanations for Deep Vision Models5 Jun 2026
- 2026The Dark Regulome: Disentangling Predictability from Regulation in Genomic Foundation Models5 Jun 2026
- 2026Attribution via Distributional Paths for Information Revelation2 Jun 2026
- 2026Structured Prompt Optimization Meets Reinforcement Learning for Global and Local Interpretability over Complex Text27 May 2026
- 2026Evaluating Local Explainability Metrics for Machine Learning Models on Tabular Data26 May 2026
- 2026Real Images, Worse Judgments: Evaluating Vision-Language Models on Concreteness and Imagery26 May 2026
- 2026Aligning Molecular Graph Explanations with Chemical Identity via InChIfied Invariants23 May 2026
- 2026Probabilistic Attribution For Large Language Models20 May 2026
- 2026ExECG: An Explainable AI Framework for ECG models19 May 2026
- 2026MetaBackdoor: Exploiting Positional Encoding as a Backdoor Attack Surface in LLMs14 May 2026
- 2026AIMing for Standardised Explainability Evaluation in GNNs: A Framework and Case Study on Graph Kernel Networks14 May 2026
- 2026Robust Biomedical Publication Type and Study Design Classification with Knowledge-Guided Perturbations12 May 2026
- 2026Enabling Performant and Flexible Model-Internal Observability for LLM Inference11 May 2026
- 2026Scaling Vision Models Does Not Consistently Improve Localisation-Based Explanation Quality11 May 2026
- 2026Graph neural network explanations reveal a topological signature of disease-associated hubs in biological networks8 May 2026
- 2026Graph Neural Network based Hierarchy-Aware Embeddings of Knowledge Graphs: Applications to Yeast Phenotype Prediction5 May 2026
- 2026GRAFT: Auditing Graph Neural Networks via Global Feature Attribution5 May 2026
50 newest of 542 All 542 (JSON)
- 2023Red Teaming Deep Neural Networks with Feature Synthesis Toolscited by 21
- 2025Interpretation Meets Safety: A Survey on Interpretation Methods and Tools for Improving LLM Safetycited by 10
- 2025Attributional Safety Failures in Large Language Models under Code-Mixed Perturbationscited by 6
- 2025Beyond Over-Refusal: Scenario-Based Diagnostics and Post-Hoc Mitigation for Exaggerated Refusals in LLMscited by 3
- 2026Feature salience - not task-informativeness - drives machine learning model explanationscited by 2
- 2024Towards a Game-theoretic Understanding of Explanation-based Membership Inference Attackscited by 1
- 2024Explaining the Model, Protecting Your Data: Revealing and Mitigating the Data Privacy Risks of Post-Hoc Model Explanations via Membership Inferencecited by 1
- 2026MetaBackdoor: Exploiting Positional Encoding as a Backdoor Attack Surface in LLMscited by 1
- 2024PureEBM: Universal Poison Purification via Mid-Run Dynamics of Energy-Based Modelscited by 0
- 2024IDT: Dual-Task Adversarial Attacks for Privacy Protectioncited by 0
- 2026MetaBackdoor: Exploiting Positional Encoding as a Backdoor Attack Surface in LLMs14 May 2026
- 2026Feature salience - not task-informativeness - drives machine learning model explanations9 Feb 2026
- 2025Beyond Over-Refusal: Scenario-Based Diagnostics and Post-Hoc Mitigation for Exaggerated Refusals in LLMs9 Oct 2025
- 2025Interpretation Meets Safety: A Survey on Interpretation Methods and Tools for Improving LLM Safety5 Jun 2025
- 2025Attributional Safety Failures in Large Language Models under Code-Mixed Perturbations20 May 2025
- 2024Explaining the Model, Protecting Your Data: Revealing and Mitigating the Data Privacy Risks of Post-Hoc Model Explanations via Membership Inference24 Jul 2024
- 2024IDT: Dual-Task Adversarial Attacks for Privacy Protection28 Jun 2024
- 2024PureEBM: Universal Poison Purification via Mid-Run Dynamics of Energy-Based Models28 May 2024
- 2024Towards a Game-theoretic Understanding of Explanation-based Membership Inference Attacks10 Apr 2024
- 2023Red Teaming Deep Neural Networks with Feature Synthesis Tools8 Feb 2023
- 2024AttnLRP: Attention-Aware Layer-Wise Relevance Propagation for Transformerscited by 116
- 2024CLEAR: Can Language Models Really Understand Causal Graphs?cited by 14
- 2023In-Context Explainers: Harnessing LLMs for Explaining Black Box Modelscited by 9
- 2022The Legal Argument Reasoning Task in Civil Procedurecited by 8
- 2024How Do Artificial Intelligences Think? The Three Mathematico-Cognitive Factors of Categorical Segmentation Operated by Synthetic Neuronscited by 3
- 2024Can Input Attributions Explain Inductive Reasoning in In-Context Learning?cited by 2
- 2026CARL: Constraint-Aware Reinforcement Learning for Planning with LLMscited by 0
- 2026CARL: Constraint-Aware Reinforcement Learning for Planning with LLMs6 Jul 2026
- 2024How Do Artificial Intelligences Think? The Three Mathematico-Cognitive Factors of Categorical Segmentation Operated by Synthetic Neurons26 Dec 2024
- 2024Can Input Attributions Explain Inductive Reasoning in In-Context Learning?20 Dec 2024
- 2024CLEAR: Can Language Models Really Understand Causal Graphs?24 Jun 2024
- 2024AttnLRP: Attention-Aware Layer-Wise Relevance Propagation for Transformers8 Feb 2024
- 2023In-Context Explainers: Harnessing LLMs for Explaining Black Box Models9 Oct 2023
- 2022The Legal Argument Reasoning Task in Civil Procedure5 Nov 2022
- 2024Mitigating Dialogue Hallucination for Large Vision Language Models via Adversarial Instruction Tuningcited by 7
- 2025See-in-Pairs: Reference Image-Guided Comparative Vision-Language Models for Medical Diagnosiscited by 2
- 2026Model Specific Task Similarity for Vision Language Model Selection via Layer Conductancecited by 0
- 2026Real Images, Worse Judgments: Evaluating Vision-Language Models on Concreteness and Imagerycited by 0
- 2026Real Images, Worse Judgments: Evaluating Vision-Language Models on Concreteness and Imagery26 May 2026
- 2026Model Specific Task Similarity for Vision Language Model Selection via Layer Conductance1 Feb 2026
- 2025See-in-Pairs: Reference Image-Guided Comparative Vision-Language Models for Medical Diagnosis22 Jun 2025
- 2024Mitigating Dialogue Hallucination for Large Vision Language Models via Adversarial Instruction Tuning15 Mar 2024
- 2022Quantus: An Explainable AI Toolkit for Responsible Evaluation of Neural Network Explanations and Beyondcited by 171
- 2022Towards Faithful Model Explanation in NLP: A Surveycited by 129
- 2022OpenXAI: Towards a Transparent Evaluation of Model Explanationscited by 125
- 2021Do Concept Bottleneck Models Learn as Intended?cited by 114
- 2023Modeling Dense Multimodal Interactions Between Biological Pathways and Histology for Survival Predictioncited by 92
- 2024Discover-then-Name: Task-Agnostic Concept Bottlenecks via Automated Concept Discoverycited by 91
- 2024What is Your Data Worth to GPT? LLM-Scale Data Valuation with Influence Functionscited by 88
- 2024A Primer on the Inner Workings of Transformer-based Language Modelscited by 83
- 2023Inseq: An Interpretability Toolkit for Sequence Generation Modelscited by 78
- 2022Which Explanation Should I Choose? A Function Approximation Perspective to Characterizing Post Hoc Explanationscited by 77
- 2021Improving Deep Learning Interpretability by Saliency Guided Trainingcited by 68
- 2022Measuring the Mixing of Contextual Information in the Transformercited by 63
12 most cited of 509 All 509 (JSON)
- 2026A Comparative Explainability Framework for DeBERTa-v3 in Zero-Shot Medical Abstract Classification1 Oct 2026
- 2026WOMBAT: Whitebox Oracle for Molecular Benchmarking and Attribution Testing30 Sep 2026
- 2026GraphSelect for Budgeted Representation Selection in Multimodal Graph Inference27 Sep 2026
- 2026A Synthetic Ground-Truth Framework for the Evaluation of Explainable AI Methods24 Sep 2026
- 2026A Systematic Benchmark of Explainable Methods for Temporal Attribution in Sequential Recommendation Systems23 Sep 2026
- 2026Stable and Faithful Explanations for Knowledge Tracing15 Sep 2026
- 2026Spatial Attention Supervision for Defect Localization: Exploiting Ground-Truth Masks as Training Signal in Diffusion-Augmented Defect Detection5 Sep 2026
- 2026HiLRP: Toward One Trustworthy Explanation for Vision Transformer: Conservation-Valid Attribution via Attention Primitives1 Sep 2026
- 2026ToxLens: A Reproducible Graph-Learning Framework for Leakage-Aware, Uncertainty-Calibrated Molecular Toxicity Prediction31 Aug 2026
- 2026RACE: Scalable Statistical Estimation of Functional Consistency in LLM Neurons25 Aug 2026
- 2026LumiXAI: A Modular Full-Stack Framework for Feature Attribution25 Aug 2026
- 2026MIL-BERT: Classification of Arbitrarily Large Text with Performance and Explanatory Guarantees21 Aug 2026
12 newest of 509 All 509 (JSON)