Vision Transformers for Histopathological Image Classification with Efficient Head Pruning

Analyzing histopathological images using state-of-the-art deep learning (DL) models requires specialized approaches due to the unique characteristics of these images. Recently, transformer architectures have been adopted to computer vision, treating images as sequences of patches, similar to words in natural language processing. Taking advantage of this, we employed transformers for histopathological image analysis. We utilized a knowledge distillation (KD) approach in which a student Vision Transformer (ViT) learns from a Convolutional Neural Network (CNN) teacher model. We assessed how the ViT’s attention heads were influenced by the signal received from the teacher. Building on that, this study further investigates the representations learned by the ViT’s attention heads. Our analysis reveals that many attention heads learn similar contexts or concepts, leading to redundancy in the learned representations. Additionally, by analyzing the mean of the maximum attention weights, we observed that only a few heads exhibit high confidence, indicating that they are critical for inference. To optimize the ViT, we performed head pruning at different rates, guided by ”head confidence” and ”head similarities”. Surprisingly, pruning certain heads not only maintained but, in some cases, improved model accuracy while also reducing training time when tested on breast cancer histopathological image classification.

Authors

Institutions

Publication Details

Journal
Procedia Computer Science
Published
2025-01-01
DOI
https://doi.org/10.1016/j.procs.2025.09.348
Primary Topic
AI in cancer detection
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Vision Transformers for Histopathological Image Classification with Efficient Head Pruning

V. B. Surya Prasath, Bruce J. Aronow, Hiroharu Kawanaka, Shyam Sundar Debsarkar et al.
Procedia Computer Science
AI in cancer detection
article

Vision Transformers for Histopathological Image Classification with Efficient Head Pruning

V. B. Surya Prasath, Bruce J. Aronow, Hiroharu Kawanaka, Shyam Sundar Debsarkar, Seddik Boudissa
article en

Abstract

Analyzing histopathological images using state-of-the-art deep learning (DL) models requires specialized approaches due to the unique characteristics of these images. Recently, transformer architectures have been adopted to computer vision, treating images as sequences of patches, similar to words in natural language processing. Taking advantage of this, we employed transformers for histopathological image analysis. We utilized a knowledge distillation (KD) approach in which a student Vision Transformer (ViT) learns from a Convolutional Neural Network (CNN) teacher model. We assessed how the ViT’s attention heads were influenced by the signal received from the teacher. Building on that, this study further investigates the representations learned by the ViT’s attention heads. Our analysis reveals that many attention heads learn similar contexts or concepts, leading to redundancy in the learned representations. Additionally, by analyzing the mean of the maximum attention weights, we observed that only a few heads exhibit high confidence, indicating that they are critical for inference. To optimize the ViT, we performed head pruning at different rates, guided by ”head confidence” and ”head similarities”. Surprisingly, pruning certain heads not only maintained but, in some cases, improved model accuracy while also reducing training time when tested on breast cancer histopathological image classification.

Procedia Computer ScienceVol. 270
Cincinnati Children's Hospital Medical Center (US), Mie University (JP), University of Cincinnati (US), University of Cincinnati Medical Center (US)
Openalex Percentile: Top 83%
AI in cancer detection
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.