JOURNAL ARTICLE

Evaluating Robustness of Vision Transformers on Imbalanced Datasets (Student Abstract)

Kevin LiRahul DuggalDuen Horng Chau

Year: 2023 Journal:   Proceedings of the AAAI Conference on Artificial Intelligence Vol: 37 (13)Pages: 16252-16253   Publisher: Association for the Advancement of Artificial Intelligence

Abstract

Data in the real world is commonly imbalanced across classes. Training neural networks on imbalanced datasets often leads to poor performance on rare classes. Existing work in this area has primarily focused on Convolution Neural Networks (CNN), which are increasingly being replaced by Self-Attention-based Vision Transformers (ViT). Fundamentally, ViTs differ from CNNs in that they offer the flexibility in learning the appropriate inductive bias conducive to improving performance. This work is among the first to evaluate the performance of ViTs under class imbalance. We find that accuracy degradation in the presence of class imbalance is much more prominent in ViTs compared to CNNs. This degradation can be partially mitigated through loss reweighting - a popular strategy that increases the loss contributed by rare classes. We investigate the impact of loss reweighting on different components of a ViT, namely, the patch embedding, self-attention backbone, and linear classifier. Our ongoing investigations reveal that loss reweighting impacts mostly the linear classifier and self-attention backbone while having a small and negligible effect on the embedding layer.

Keywords:
Computer science Embedding Robustness (evolution) Artificial intelligence Transformer Machine learning Convolutional neural network Classifier (UML) Pattern recognition (psychology) Artificial neural network Engineering

Metrics

5
Cited By
0.66
FWCI (Field Weighted Citation Impact)
13
Refs
0.80
Citation Normalized Percentile
Is in top 1%
Is in top 10%

Citation History

Topics

Retinal Imaging and Analysis
Health Sciences →  Medicine →  Radiology, Nuclear Medicine and Imaging
Imbalanced Data Classification Techniques
Physical Sciences →  Computer Science →  Artificial Intelligence
Brain Tumor Detection and Classification
Life Sciences →  Neuroscience →  Neurology

Related Documents

JOURNAL ARTICLE

Vision Transformers Beat WideResNets on Small Scale Datasets Adversarial Robustness

Juntao WuZiyu SongXiaoyu ZhangShujun XieLongxin LinKe Wang

Journal:   Proceedings of the AAAI Conference on Artificial Intelligence Year: 2025 Vol: 39 (1)Pages: 886-894
JOURNAL ARTICLE

Certified Patch Robustness via Smoothed Vision Transformers

Hadi SalmanSaachi JainEric WongAleksander Mądry

Journal:   2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) Year: 2022 Pages: 15116-15126
JOURNAL ARTICLE

Evaluating and enhancing the robustness of vision transformers against adversarial attacks in medical imaging

Elif KancaSelen AyasElif Baykal KablanMurat Ekіncі

Journal:   Medical & Biological Engineering & Computing Year: 2024 Vol: 63 (3)Pages: 673-690
© 2026 ScienceGate Book Chapters — All rights reserved.