paper-with-me

홈 › Papers

Analyzing Vision Transformers for Image Classification in Class Embedding Space

2023-10-29 · NeurIPS 2023 11 · Martina G. Vilas, Timothy Schaumlöffel, Gemma Roig

Despite the growing use of transformer models in computer vision, a mechanistic understanding of these networks is still needed. This work introduces a method to reverse-engineer Vision Transformers trained to solve image classification tasks. Inspired by previous research in NLP, we demonstrate how the inner representations at any level of the hierarchy can be projected onto the learned class embedding space to uncover how these networks build categorical representations for their predictions. We use our framework to show how image tokens develop class-specific representations that depend on attention mechanisms and contextual information, and give insights on how self-attention and MLP layers differentially contribute to this categorical composition. We additionally demonstrate that this method (1) can be used to determine the parts of an image that would be important for detecting the class of interest, and (2) exhibits significant advantages over traditional linear probing approaches. Taken together, our results position our proposed framework as a powerful tool for mechanistic interpretability and explainability research.

📄 PDF Abstract BibTeX arXiv:2310.18969

Code (1)

martinagvilas/vit-cls_emb 공식 구현 pytorch

Tasks

image-classificationImage Classification

Similar Papers 제목 키워드 기반

Interpretable Vision Transformers in Image Classification via SVDA

2026-02-11 · Vasileios Arampatzakis, George Pavlidis, Nikolaos Mitianoudis, Nikos Papamarkos arxiv

Vision Transformers (ViTs) have achieved state-of-the-art performance in image classification, yet their attention mechanisms often remain opaque and exhibit dense, non-structured behaviors. In this work, we adapt our pr…

Image ClassificationModel Compression

Time Series Representations for Classification Lie Hidden in Pretrained Vision Transformers

2025-06-10 · Simon Roschmann, Quentin Bouniot, Vasilii Feofanov, Ievgen Redko 외

Time series classification is a fundamental task in healthcare and industry, yet the development of time series foundation models (TSFMs) remains limited by the scarcity of publicly available time series datasets. In thi…

Time SeriesTime Series Classification

Do Vision Transformers See Like Convolutional Neural Networks?

2021-08-19 · NeurIPS 2021 12 · Maithra Raghu, Thomas Unterthiner, Simon Kornblith, Chiyuan Zhang 외

Convolutional neural networks (CNNs) have so far been the de-facto model for visual data. Recent work has shown that (Vision) Transformer models (ViT) can achieve comparable or even superior performance on image classifi…

Classificationimage-classificationImage ClassificationTransfer Learning

A Comprehensive Study of Vision Transformers in Image Classification Tasks

2023-12-02 · Mahmoud Khalil, Ahmad Khalil, Alioune Ngom

Image Classification is a fundamental task in the field of computer vision that frequently serves as a benchmark for gauging advancements in Computer Vision. Over the past few years, significant progress has been made in…

Classificationimage-classificationImage Classification

Sensitive Image Classification by Vision Transformers

2024-12-21 · Hanxian He, Campbell Wilson, Thanh Thi Nguyen, Janis Dalins

When it comes to classifying child sexual abuse images, managing similar inter-class correlations and diverse intra-class correlations poses a significant challenge. Vision transformer models, unlike conventional deep co…

Classificationimage-classificationImage ClassificationMetric Learning+1