A Simple Interpretable Transformer for Fine-Grained Image Classification and Analysis

Dipanjyoti Paul, Arpita Chowdhury, Xinqi Xiong, Feng-Ju Chang, David E. Carlyn +9 more
2/12/2026

No official code found. Best implementation: Imageomics/INTR (60 stars, Apache-2.0, last commit 2024-04-15).

Abstract

We present a novel usage of Transformers to make image classification interpretable. Unlike mainstream classifiers that wait until the last fully connected layer to incorporate class information to make predictions, we investigate a proactive approach, asking each class to search for itself in an image. We realize this idea via a Transformer encoder-decoder inspired by DEtection TRansformer (DETR). We learn"class-specific"queries (one for each class) as input to the decoder, enabling each class to localize its patterns in an image via cross-attention. We name our approach INterpretable TRansformer (INTR), which is fairly easy to implement and exhibits several compelling properties. We show that INTR intrinsically encourages each class to attend distinctively; the cross-attention weights thus provide a faithful interpretation of the prediction. Interestingly, via"multi-head"cross-attention, INTR could identify different"attributes"of a class, making it particularly suitable for fine-grained classification and analysis, which we demonstrate on eight datasets. Our code and pre-trained models are publicly accessible at the Imageomics Institute GitHub site: https://github.com/Imageomics/INTR.

View on arXivView PDF

Code Implementations(1)

Imageomics/INTRCommunity100%
Apache-2.0

This is an official implementation for [ICLR'24] INTR: Interpretable Transformer for Fine-grained Image Classification.

606Python, Jupyter NotebookOct 27, 20232 years agoApache-2.0
computer-visionexplainable-aifine-grained-classificationimageomicsinterpretation+1 more

Similar Papers

Cite this paper

@article{paul2026simple,
  title  = {A Simple Interpretable Transformer for Fine-Grained Image Classification and Analysis},
  author = {Dipanjyoti Paul and Arpita Chowdhury and Xinqi Xiong and Feng-Ju Chang and David E. Carlyn and Samuel Stevens and Kaiya L. Provost and A. Karpatne and Bryan Carstens and Daniel I. Rubenstein and Charles V. Stewart and Tanya Y. Berger-Wolf and Yu Su and Wei-Lun Chao},
  year   = {2026},
  eprint = {2311.04157},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2311.04157},
  journal = {ICLR 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2311.04157.svg)](https://codeofpaper.com/paper/2311.04157)

Discussion