Rethinking Query, Key, and Value Embedding in Vision Transformer under Tiny Model Constraints
Not on the map. Why?
Abstract (arXiv)
A vision transformer (ViT) is the dominant model in the computer vision field. Despite numerous studies that mainly focus on dealing with inductive bias and complexity, there remains the problem of finding better transformer networks. For example, conventional transformer-based models usually use a projection layer for each query (Q), key (K), and value (V) embedding before multi-head self-attention. Insufficient consideration of semantic Q, K, and V embedding may lead to a performance drop. In this paper, we propose three types of structures for Q, K, and V embedding. The first structure utilizes two layers with ReLU, which is a non-linear embedding for Q, K, and V. The second involves sharing one of the non-linear layers to share knowledge among Q, K, and V. The third proposed structure shares all non-linear layers with code parameters. The codes are trainable, and the values determine the embedding process to be performed among Q, K, and V. Hence, we demonstrate the superior image classification performance of the proposed approaches in experiments compared to several state-of-the-art approaches. The proposed method achieved 71.4% with a few parameters (of 3.1M) on the ImageNet-1k dataset compared to that required by the original transformer model of XCiT-N12 (69.9%). Additionally, the method achieved 93.3% with only 2.9M parameters in transfer learning on average for the CIFAR-10, CIFAR-100, Stanford Cars datasets, and STL-10 datasets, which is better than the accuracy of 92.2% obtained via the original XCiT-N12 model.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 37 of its 45 references that are in the map. First posted on arXiv 19 Nov 2021.
Builds on
37 of 45 references.
References · 37
- 2017Attention Is All You Needcited by 59,932
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2015U-Net: Convolutional Networks for Biomedical Image Segmentationcited by 19,604
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
- 2020End-to-End Object Detection with Transformerscited by 7,384
- 2019EfficientNet: Rethinking Model Scaling for Convolutional Neural Networkscited by 6,415
- 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,874
- 2015You Only Look Once: Unified, Real-Time Object Detectioncited by 4,829
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
- 2014Going Deeper with Convolutionscited by 4,231
25 more
- 2019Searching for MobileNetV3cited by 1,984
- 2017Learning Transferable Architectures for Scalable Image Recognitioncited by 1,097
- 2021Tokens-to-Token ViT: Training Vision Transformers from Scratch on ImageNetcited by 1,096
- 2021Perceiver: General Perception with Iterative Attentioncited by 1,089
- 2021Transformers in Vision: A Surveycited by 1,009
- 2020Designing Network Design Spacescited by 954
- 2021CvT: Introducing Convolutions to Vision Transformerscited by 946
- 2017Revisiting Unreasonable Effectiveness of Data in Deep Learning Eracited by 916
- 2021PVT v2: Improved Baselines with Pyramid Vision Transformercited by 749
- 2020A Survey on Visual Transformercited by 653
- 2021How to train your ViT? Data, Augmentation, and Regularization in Vision Transformerscited by 562
- 2018Do Better ImageNet Models Transfer Better?cited by 560
- 2021ConViT: Improving Vision Transformers with Soft Convolutional Inductive Biasescited by 484
- 2021Rethinking Spatial Dimensions of Vision Transformerscited by 361
- 2021XCiT: Cross-Covariance Image Transformerscited by 335
- 2021Focal Self-attention for Local-Global Interactions in Vision Transformerscited by 286
- 2021Global Filter Networks for Image Classificationcited by 257
- 2021Incorporating Convolution Designs into Visual Transformerscited by 248
- 2021Mobile-Former: Bridging MobileNet and Transformercited by 234
- 2021LocalViT: Analyzing Locality in Vision Transformerscited by 228
- 2021Co-Scale Conv-Attentional Image Transformerscited by 224
- 2021ViTAE: Vision Transformer Advanced by Exploring Intrinsic Inductive Biascited by 216
- 2021VOLO: Vision Outlooker for Visual Recognitioncited by 164
- 2021ResT: An Efficient Transformer for Visual Recognitioncited by 79
- 2021ConTNet: Why not use convolution and transformer at the same time?cited by 38
Built on by
Not cited yet.