ICLR 2024poster19 citations

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

DIPANJYOTI PAUL, Arpita Chowdhury, Xinqi Xiong, Feng-Ju Chang, David Edward Carlyn, Samuel Stevens, Kaiya L Provost, Anuj Karpatne

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.

ExplainabilityInterpretabilityTransformerFine-grained recognitionAttribute discovery
BibTeX
@inproceedings{
paul2024a,
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 Edward Carlyn and Samuel Stevens and Kaiya L Provost and Anuj Karpatne and Bryan Carstens and Daniel Rubenstein and Charles Stewart and Tanya Berger-Wolf and Yu Su and Wei-Lun Chao},
booktitle={The Twelfth International Conference on Learning Representations},
year={2024},
url={https://openreview.net/forum?id=bkdWThqE6q}
}
A Simple Interpretable Transformer for Fine-Grained Image Classification and Analysis · ICLR 2024