TiC: Exploring Vision Transformer in Convolution
Song Zhang, Qingzhong Wang, Jiang Bian, Haoyi Xiong

TL;DR
This paper introduces TiC, a convolution-based vision transformer that uses MSA-Conv to handle images of varying sizes efficiently, improving flexibility and reducing computational costs compared to traditional ViT models.
Contribution
The paper proposes MSA-Conv, integrating self-attention into convolutions, enabling ViT to process arbitrary image sizes without retraining, and introduces TiC with capacity-enhancing mechanisms for improved image classification.
Findings
TiC achieves competitive accuracy on ImageNet-1K.
MSA-Conv reduces computational costs compared to global attention.
Capacity strategies improve long-distance token connections.
Abstract
While models derived from Vision Transformers (ViTs) have been phonemically surging, pre-trained models cannot seamlessly adapt to arbitrary resolution images without altering the architecture and configuration, such as sampling the positional encoding, limiting their flexibility for various vision tasks. For instance, the Segment Anything Model (SAM) based on ViT-Huge requires all input images to be resized to 10241024. To overcome this limitation, we propose the Multi-Head Self-Attention Convolution (MSA-Conv) that incorporates Self-Attention within generalized convolutions, including standard, dilated, and depthwise ones. Enabling transformers to handle images of varying sizes without retraining or rescaling, the use of MSA-Conv further reduces computational costs compared to global attention in ViT, which grows costly as image size increases. Later, we present the Vision…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAdvanced Neural Network Applications · Domain Adaptation and Few-Shot Learning · Brain Tumor Detection and Classification
MethodsAttention Is All You Need · Byte Pair Encoding · Convolution · Dense Connections · Vision Transformer · Label Smoothing · Adam · Absolute Position Encodings · Residual Connection · Layer Normalization
