awesome-repositories.com
Blog
awesome-repositories.com

Découvrez les meilleurs dépôts open-source grâce à notre recherche par IA.

ExplorerRecherches sélectionnéesAlternatives open sourceLogiciels auto-hébergésBlogPlan du site
ProjetÀ proposNotre méthodologiePresseServeur MCP
Mentions légalesConfidentialitéConditions d'utilisation
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
pytorch avatar

pytorch/captum

0
View on GitHub↗
5,652 stars·559 forks·Python·BSD-3-Clause·7 vuescaptum.ai↗

Captum

Captum is an open-source library for explaining model predictions by attributing them to input features, neurons, and layers using gradient-based and perturbation-based methods. It provides a modular framework for implementing, evaluating, and combining a range of explanation techniques, including gradient-based attribution, perturbation-based analysis, game-theoretic Shapley value approximation, and surrogate model explanations, with support for parallelization and noise stabilization.

The library distinguishes itself through its breadth of attribution methods and its support for advanced interpretability tasks. It includes a concept-based interpretability layer that quantifies how user-defined high-level concepts influence predictions, a custom algorithm extension framework for implementing new attribution methods, and capabilities for evaluating attribution quality, benchmarking algorithms, and testing model robustness against adversarial attacks. Captum also supports multimodal model explanation, training data influence analysis, and the attribution of internal layers and neurons to predictions.

Beyond core feature attribution, the library offers tools for concept detection, adversarial explanation generation, and visualization of attribution scores as heatmaps or overlays. It provides methods for smoothing and stabilizing attributions with noise, controlling approximation accuracy, and distributing computation across multiple processors or GPUs. Captum is designed to work across vision, text, and other model types without requiring architecture-specific modifications.

Features

  • Interpretability Libraries - Explains and understands predictions from PyTorch models by attributing importance to input features, neurons, and layers.
  • Integrated Gradient Attribution Methods - Implements integrated gradients to attribute predictions to input features along a baseline path.
  • Concept Importance Quantification - Quantifies how user-defined high-level concepts influence model predictions using directional derivatives and activation vectors.
  • Feature Attribution Methods - Computes how each input feature contributed to a prediction using gradient-based, perturbation-based, or surrogate-model methods.
  • Feature Importance Attribution - Measures how each input feature contributes to a model's prediction using attribution algorithms like Integrated Gradients.
  • Game Theoretic Explainability - Assigns feature importance using Shapley values from cooperative game theory, approximated via sampling or integration.
  • Attribution Gradients - Computes feature importance by backpropagating model outputs through the computational graph to input gradients.
  • Integrated Gradients Attribution Methods - Implements integrated gradients to attribute predictions to input features along a baseline path.
  • Concept Influence Measurement - Measures how much a user-defined high-level concept, like stripes, influences a model's predictions for a specific class.
  • Local Surrogate Models - Trains simpler interpretable models on perturbed samples around an input to explain local model behavior.
  • Custom Attribution Algorithm Frameworks - Provides a generic framework for implementing, benchmarking, and sharing new attribution methods.
  • PyTorch Libraries - An open-source library for attributing model predictions to input features, neurons, and layers using gradient-based and perturbation-based methods.
  • Cross-Modal Explanation - Applies interpretability methods to vision, text, and other model types without changing the underlying architecture.
  • Perturbation-Based Sampling - Measures prediction changes by systematically masking or altering input features to estimate their contribution.
  • SHAP Value Computations - Approximates SHAP values by adding noise, sampling points, and averaging gradients times input-baseline differences.
  • Shapley Value Calculators - Ships Shapley value calculators for game-theoretic feature attribution in model predictions.
  • Attribution Algorithm Benchmarks - Compares and evaluates custom interpretability methods against built-in attribution algorithms for reliability and performance.
  • Training Data Influence - Identifies which training examples most influenced a specific prediction to detect mislabeled data or debug model behavior.
  • Saliency Attribution Methods - Uses raw input gradients as attribution maps to highlight influential features.
  • Attribution Averaging - Reduces attribution variance by repeating methods with added Gaussian noise and combining results.
  • Layer Contribution Attribution Methods - Measures how individual neurons and layers contribute to a model's final prediction.
  • Neuron Importance Attribution - Measures the importance of individual neurons and layers to model predictions.
  • Sparse and Dense Feature Importance - Measures importance of both categorical and numerical features in recommendation model predictions.
  • Input Times Gradient Attribution Methods - Produces feature attributions by multiplying inputs by their gradients with respect to the output.
  • Concept Representation Detection - Determines how well a user-defined concept is represented in a model's internal representations.
  • Local Surrogate Explainers - Implements LIME-style local surrogate models to explain individual predictions.
  • Attribution Quality Evaluators - Ships tools to assess attribution reliability through sensitivity and consistency tests.
  • Training Data Influence Analysis - Identifies which training examples most influenced a given prediction to detect mislabeled data.
  • Attribution-Based Troubleshooting - Reveals feature contributions to unexpected outputs for diagnosing model behavior.
  • Concept Attribution Methods - Quantifies how user-defined high-level concepts influence model predictions.
  • Local Surrogate Explainers - Provides a LIME implementation for local surrogate explanations of individual predictions.
  • Layer Contribution Attribution Methods - Measures how individual neurons and layers contribute to a model's final prediction.
  • Neuron Importance Attribution - Measures the importance of individual neurons and layers to model predictions.
  • Adversarial Input Perturbation - Creates minimal input changes that alter a model's prediction, producing counterfactual explanations.
  • Token Attribution - Attributes output tokens of large language models back to the input tokens that influenced their generation.
  • Embedding Layer Contribution Analyzers - Measures how embedding layers and attention layers contribute to model predictions.
  • Interpretability Algorithm Benchmarks - Compares custom interpretability methods against built-in algorithms to evaluate their performance.
  • Token Attribution - Identifies which text tokens most influenced a model's prediction through attribution methods.
  • Multimodal Explanations - Attributes predictions separately across different input modalities like text and image in multimodal models.
  • Attribution Heatmaps - Generates heatmap overlays highlighting important image regions for model predictions.
  • Adversarial Robustness Testing - Generates minimal input perturbations to test model stability and identify vulnerabilities to adversarial attacks.
  • Algorithm Customization Frameworks - Provides generic base classes and hooks to implement, benchmark, and share new attribution methods.
  • DeepLift Attribution Methods - Implements DeepLift to attribute prediction differences to input differences from a reference.
  • DeepLiftSHAP Attribution Methods - Approximates SHAP values by averaging DeepLift attributions across multiple baseline-input pairs.
  • Guided BackPropagation Attribution Methods - Produces sharper attribution maps by back-propagating only positive gradients through ReLU activations.
  • Guided GradCam Attribution Methods - Combines Guided BackPropagation and GradCam for attribution maps on convolutional layers.
  • Multimodal Attribution Methods - Computes separate attribution scores for text and image modalities in multimodal models.
  • Attribution Heatmaps - Renders feature importance scores as heatmaps or overlays on the original input for human inspection.
  • Core Frameworks - Model interpretability and understanding for neural networks.
  • Explainability and Fairness - Interpretability library for PyTorch models.
  • Explainable AI Libraries - Model interpretability library for PyTorch models.
  • Model Interpretability - Model interpretability for PyTorch.
  • Outils de développement - Model interpretability and understanding.
  • Explainability - Listed in the “Explainability” section of the The Incredible Pytorch awesome list.

Historique des stars

Graphique de l'historique des stars pour pytorch/captumGraphique de l'historique des stars pour pytorch/captum

Recherche par IA

Explorez plus de dépôts awesome

Décrivez vos besoins en langage naturel — l'IA classe des milliers de projets open source sélectionnés par pertinence.

Start searching with AI

Alternatives open source à Captum

Projets open source similaires, classés selon le nombre de fonctionnalités partagées avec Captum.
  • christophm/interpretable-ml-bookAvatar de christophM

    christophM/interpretable-ml-book

    5,317Voir sur GitHub↗

    This project is a comprehensive educational resource and technical manual focused on interpretable machine learning and explainable AI. It serves as a textbook and reference for implementing techniques that make complex machine learning models transparent and understandable to humans. The resource provides guidance on both building inherently transparent models, such as decision trees and sparse linear models, and applying post-hoc explanation methods to black-box systems. It details specific methodologies for quantifying feature importance, generating rationales for individual predictions, a

    Jupyter Notebook
    Voir sur GitHub↗5,317
  • jacobgil/pytorch-grad-camAvatar de jacobgil

    jacobgil/pytorch-grad-cam

    12,893Voir sur GitHub↗

    This project is a computer vision explainable AI library and framework for PyTorch, providing a suite of tools to visualize and audit the internal decision-making processes of deep neural networks. It serves as a neural network attribution tool and debugging utility to identify which image regions drive model predictions. The library is distinguished by its support for both gradient-based and gradient-free attribution methods, allowing for the generation of visual heatmaps and attribution maps without requiring modifications to the original model source code. It further differentiates itself

    Python
    Voir sur GitHub↗12,893
  • shap/shapAvatar de shap

    shap/shap

    25,049Voir sur GitHub↗

    SHAP is an explainable AI toolkit that provides a game theoretic framework for interpreting machine learning model predictions. It functions as a feature attribution engine, decomposing model outputs into the sum of individual feature effects to clarify how specific input variables influence a final decision. By assigning importance values to these inputs, the library enables users to understand the logic behind complex predictive models. The project distinguishes itself through its versatility and specialized calculation methods. It operates as a model-agnostic diagnostic library, capable of

    Jupyter Notebookdeep-learningexplainabilitygradient-boosting
    Voir sur GitHub↗25,049
  • marcotcr/limeAvatar de marcotcr

    marcotcr/lime

    12,142Voir sur GitHub↗

    This project is an agnostic model interpretability framework and explainability tool designed to provide local interpretable explanations for individual predictions. It functions as a local surrogate model that approximates the behavior of any machine learning classifier or regression model to identify the most influential features for a specific instance. The framework is designed to be model-agnostic, meaning it can explain predictions across tabular, text, and image data regardless of the underlying architecture. It employs local linear approximations and feature importance visualization t

    JavaScript
    Voir sur GitHub↗12,142
Voir les 30 alternatives à Captum→

Questions fréquentes

Que fait pytorch/captum ?

Captum is an open-source library for explaining model predictions by attributing them to input features, neurons, and layers using gradient-based and perturbation-based methods. It provides a modular framework for implementing, evaluating, and combining a range of explanation techniques, including gradient-based attribution, perturbation-based analysis, game-theoretic Shapley value approximation, and surrogate model explanations, with support for parallelization and noise…

Quelles sont les fonctionnalités principales de pytorch/captum ?

Les fonctionnalités principales de pytorch/captum sont : Interpretability Libraries, Integrated Gradient Attribution Methods, Concept Importance Quantification, Feature Attribution Methods, Feature Importance Attribution, Game Theoretic Explainability, Attribution Gradients, Integrated Gradients Attribution Methods.

Quelles sont les alternatives open-source à pytorch/captum ?

Les alternatives open-source à pytorch/captum incluent : christophm/interpretable-ml-book — This project is a comprehensive educational resource and technical manual focused on interpretable machine learning… jacobgil/pytorch-grad-cam — This project is a computer vision explainable AI library and framework for PyTorch, providing a suite of tools to… shap/shap — SHAP is an explainable AI toolkit that provides a game theoretic framework for interpreting machine learning model… marcotcr/lime — This project is an agnostic model interpretability framework and explainability tool designed to provide local… cdpierse/transformers-interpret — Transformers-interpret is a diagnostic library designed for the interpretability of transformer-based machine learning… slundberg/shap — SHAP is a machine learning explainer that uses a game-theoretic framework to estimate the contribution of each feature…