awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
jacobgil avatar

jacobgil/vit-explain

0
View on GitHub↗
1,090 stars·108 forks·Python·MIT·16 views

Vit Explain

Vit-explain is a diagnostic framework designed to interpret the decision-making processes of vision transformer models. It functions as a toolkit for inspecting internal model states, allowing users to map visual attention and analyze how specific image features influence classification outcomes.

The project distinguishes itself by providing post-hoc model interpretation, which enables the analysis of trained neural networks without requiring architectural modifications or retraining. It employs techniques such as hook-based feature extraction to intercept internal activations during the forward pass, alongside methods like transformer attention rollout and layer-wise relevance propagation to trace the flow of information from input to output.

By generating heatmaps that track attention flow and weight distribution, the framework visualizes which specific pixels and patterns drive a model's predictions. It supports class-specific explanations by filtering attention maps with target class gradients, providing a diagnostic utility for debugging deep learning models and identifying the visual elements that contribute to classification results.

Features

  • Deep Learning Interpretability - Analyzes neural network decision-making processes by mapping visual attention weights and gradients to input image regions.
  • Transformer Explainability - Analyzes how vision transformer models process visual data by generating heatmaps that track attention flow across image regions.
  • Attention Rollout Techniques - Aggregates attention maps across multiple layers by recursively multiplying weight matrices to trace the flow of information.
  • Attention Visualizations - Generates heatmaps that track the flow of attention across image regions to reveal model processing priorities.
  • Computer Vision Model Debugging - Visualizes internal decision-making processes by highlighting specific pixels and patterns that drive classification results.
  • Internal Activation Hooks - Intercepts internal tensor activations during the forward pass to capture intermediate attention maps without modifying model architecture.
  • Attribution Gradients - Calculates feature importance by backpropagating gradients from target classification outputs to input image patches.
  • Relevance Propagation Methods - Distributes classification scores backward through network layers to identify which specific input pixels contributed most to the final prediction.
  • Class-Specific Explainers - Filters attention maps with target class gradients to isolate visual elements contributing to specific classification outcomes.
  • Transformer Explainability Tools - Provides diagnostic utilities for visualizing attention maps and gradients to interpret vision transformer classification features.
  • Architecture Interpretation - Analyzes trained model weights and gradients to provide visual explanations without requiring retraining or architectural changes.

Star history

Star history chart for jacobgil/vit-explainStar history chart for jacobgil/vit-explain

How this analysis was created: This summary and feature list are AI-generated from collected project material and can contain mistakes. Stars, license and language are imported from GitHub. Inclusion does not mean that we have tested or audited this project. Check the source documentation for any feature you depend on. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Projects sharing features with Vit Explain

These projects share indexed features with Vit Explain. Shared tags can include platform or build tooling; verify the primary use case before treating a result as a replacement.
  • cdpierse/transformers-interpretcdpierse avatar

    cdpierse/transformers-interpret

    1,412View on GitHub↗

    Transformers-interpret is a diagnostic library designed for the interpretability of transformer-based machine learning models. It functions as an attribution framework that quantifies the contribution of individual input tokens to a model's final predictions, allowing users to audit decision patterns and debug natural language processing tasks. The library utilizes gradient-based analysis and hook-based introspection to trace how specific input features influence model outputs. By mapping abstract numerical attribution scores back to human-readable linguistic units, it provides a clear view o

    Jupyter Notebookcaptumcomputer-visiondeep-learning
    View on GitHub↗1,412
  • jacobgil/pytorch-grad-camjacobgil avatar

    jacobgil/pytorch-grad-cam

    12,893View on 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
    View on GitHub↗12,893
  • transformerlensorg/transformerlensTransformerLensOrg avatar

    TransformerLensOrg/TransformerLens

    3,098View on GitHub↗

    TransformerLens is a library for mechanistic interpretability research designed to reverse engineer the learned algorithms within large language models. It provides a standardized framework for wrapping diverse transformer architectures, allowing researchers to extract, manipulate, and analyze internal activations and weights through a consistent interface. The project distinguishes itself through a comprehensive system of activation hooks that can capture, patch, and ablate internal tensors during the forward pass. It includes specialized utilities for decomposing fused projections, material

    Python
    View on GitHub↗3,098
  • christophm/interpretable-ml-bookchristophM avatar

    christophM/interpretable-ml-book

    5,317View on 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
    View on GitHub↗5,317
Compare all 20 related projects→

Frequently asked questions

What does jacobgil/vit-explain do?

Vit-explain is a diagnostic framework designed to interpret the decision-making processes of vision transformer models. It functions as a toolkit for inspecting internal model states, allowing users to map visual attention and analyze how specific image features influence classification outcomes.

What are the main features of jacobgil/vit-explain?

The main features of jacobgil/vit-explain are: Deep Learning Interpretability, Transformer Explainability, Attention Rollout Techniques, Attention Visualizations, Computer Vision Model Debugging, Internal Activation Hooks, Attribution Gradients, Relevance Propagation Methods.

Which projects share features with jacobgil/vit-explain?

Projects with overlapping indexed features include: cdpierse/transformers-interpret — Transformers-interpret is a diagnostic library designed for the interpretability of transformer-based 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… transformerlensorg/transformerlens — TransformerLens is a library for mechanistic interpretability research designed to reverse engineer the learned… christophm/interpretable-ml-book — This project is a comprehensive educational resource and technical manual focused on interpretable machine learning… tingsongyu/pytorch_tutorial — This project is a comprehensive collection of educational examples and reference implementations for building vision… tingsongyu/pytorch-tutorial-2nd — This project is a comprehensive instructional resource and course for building neural networks using PyTorch. It…

Curated searches featuring Vit Explain

Hand-picked collections where Vit Explain appears.
  • Machine Learning Model Interpretability Tools