hila-chefer/Transformer-Explainability
[CVPR 2021] Official PyTorch implementation for Transformer Interpretability Beyond Attention Visualization, a novel method to visualize classifications by Transformer based networks. observed · 2026-08-28
Health v2 · maintenance only
32/100
- Activity 0
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 2109
- days_rel: n/a
- days_push: 952
- n_releases_24m: 0
Adoption not part of the score
2014 stars · 261 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Official PyTorch implementation of the CVPR 2021 paper 'Transformer Interpretability Beyond Attention Visualization', providing relevance-based explanations for classifications made by Transformer models like ViT and BERT. It ships as Jupyter/Colab notebooks demonstrating per-class explanation visualization for vision and NLP tasks.
Use cases
- visualize which image patches a ViT used for its classification
- explain BERT token classifications with relevance heatmaps
- generate per-class explanations for transformer predictions
- understand transformer attention beyond raw attention maps
- reproduce CVPR 2021 transformer interpretability research
- add explainability to DeiT or other vision transformers
When to choose
- you need research-grade relevance/saliency explanations for ViT or BERT models
- you want per-class visual explanations rather than plain attention visualization
- you want runnable Colab notebooks to experiment quickly
When to avoid
- you need a production-ready, maintained explainability library with broad model support
- you need explainability for non-PyTorch or multimodal/encoder-decoder transformers (see the authors' follow-up work)
- you need an actively developed tool - the repo is primarily a paper artifact
Facets
library · maturity maintenance
machine-learning nlp image-processing data-visualization deep-learning computer-vision artificial-intelligence python explainability vision-transformer bert attention-visualization interpretability cvpr-2021 pytorch research-code natural-language-processing
1 source
- readme: https://github.com/hila-chefer/Transformer-Explainability · fetched 2026-08-28 · 47d40facad62
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| hila-chefer/Transformer-Explainability | main | 32 |
For agents
markdown · JSON · MCP: product_card(name="hila-chefer/Transformer-Explainability")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem