Powerful Design of Small Vision Transformer on CIFAR10

Gent Wu
1/7/2025
cs.LGcs.CV

Official code: erow/PoorViTs (3 stars, last commit 2025-01-07).

Abstract

Vision Transformers (ViTs) have demonstrated remarkable success on large-scale datasets, but their performance on smaller datasets often falls short of convolutional neural networks (CNNs). This paper explores the design and optimization of Tiny ViTs for small datasets, using CIFAR-10 as a benchmark. We systematically evaluate the impact of data augmentation, patch token initialization, low-rank compression, and multi-class token strategies on model performance. Our experiments reveal that low-rank compression of queries in Multi-Head Latent Attention (MLA) incurs minimal performance loss, indicating redundancy in ViTs. Additionally, introducing multiple CLS tokens improves global representation capacity, boosting accuracy. These findings provide a comprehensive framework for optimizing Tiny ViTs, offering practical insights for efficient and effective designs. Code is available at https://github.com/erow/PoorViTs.

View on arXivView PDF

Code Implementations(1)

erow/PoorViTsOfficial100%
31PythonJan 7, 20251 years ago

Similar Papers

Cite this paper

@article{wu2025powerful,
  title  = {Powerful Design of Small Vision Transformer on CIFAR10},
  author = {Gent Wu},
  year   = {2025},
  eprint = {2501.06220},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2501.06220v1}
}

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/2501.06220.svg)](https://codeofpaper.com/paper/2501.06220)

Discussion