OpenViSTAI · Agents · Blockchain · Crypto
Menu
AI Developer Tools & SDKs

Transformer Explainability

Transformer Explainability is an open-source PyTorch implementation of a method for visualizing and interpreting classifications made by vision and language Transformer models, including class-specific explanations.

Independent OpenViST project profile, based on linked sources.

Transformer Explainability — OpenViST project profile in AI Developer Tools & SDKs.
OpenViST project illustration. See the linked sources for product details.
Understand the project

Practical overview

When it fits

Use it when you want to inspect class-specific explanations for a Transformer prediction or work through the provided ViT and BERT examples.

Who it is for

  • Researchers and developers analyzing predictions from Transformer classifiers.
  • PyTorch users exploring vision or NLP model explanations through Jupyter notebooks.

Documented uses

  • Visualize an image classifier’s explanation for a selected class or its top class.
  • Explore BERT or ViT explainability through the repository’s example notebooks.
  • Reproduce documented ViT segmentation and perturbation evaluations or BERT results when the required data and weights are available.
Before you choose

Requirements & limits

  • The project is a code repository and PyTorch implementation, not a hosted analysis service.
  • The README describes an image workflow based on the samples folder and generate_visualization function.
  • Reproducing evaluations requires task-specific data; the BERT reproduction instructions also require pretrained classifier weights.
  • The repository identifies a separate follow-on project for broader attention-model explainability, including multimodal and encoder-decoder Transformers.

Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.

Source-based practical guide

Generate an image-classification explanation

Use the documented image-input workflow to request an explanation for a chosen class or the top class.

Before you start

  • The repository’s code and an image input.
  • A selected class index if you want an explanation for a class other than the top class.

Steps

  1. Add the image to the repository’s samples folder.

  2. Call the generate_visualization function for the image.

  3. Set class_index to the class of interest; omit it to visualize the top class.

Expected outcome

A visualization for the selected class, or for the model’s top class when no class index is specified.

Guide limitations

  • The README describes this workflow for image inputs; it does not provide installation or environment setup instructions in the available text.
Evidence and transparency

Sources & review

Source record details
Source availability
Active
Sources checked
16 October 2026
Original website title
hila-chefer/Transformer-Explainability · Official homepage title · retained in its source language