SoT: Delving Deeper into Classification Head for Transformer
Not on the map. Why?
Abstract (arXiv)
Transformer models are not only successful in natural language processing (NLP) but also demonstrate high potential in computer vision (CV). Despite great advance, most of works only focus on improvement of architectures but pay little attention to the classification head. For years transformer models base exclusively on classification token to construct the final classifier, without explicitly harnessing high-level word tokens. In this paper, we propose a novel transformer model called second-order transformer (SoT), exploiting simultaneously the classification token and word tokens for the classifier. Specifically, we empirically disclose that high-level word tokens contain rich information, which per se are very competent with the classifier and moreover, are complementary to the classification token. To effectively harness such rich information, we propose multi-headed global cross-covariance pooling with singular value power normalization, which shares similar philosophy and thus is compatible with the transformer block, better than commonly used pooling methods. Then, we study comprehensively how to explicitly combine word tokens with classification token for building the final classification head. For CV tasks, our SoT significantly improves state-of-the-art vision transformers on challenging benchmarks including ImageNet and ImageNet-A. For NLP tasks, through fine-tuning based on pretrained language transformers including GPT and BERT, our SoT greatly boosts the performance on widely used tasks such as CoLA and RTE. Code will be available at https://peihuali.org/SoT
Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). Builds on 45 of its 74 references that are in the map. First posted on arXiv 22 Apr 2021.
Builds on
45 of 74 references.
References · 45
- 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
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2014Very Deep Convolutional Networks for Large-Scale Image Recognitioncited by 15,267
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
- 2014ImageNet Large Scale Visual Recognition Challengecited by 8,441
- 2016Densely Connected Convolutional Networkscited by 6,691
- 2016Grad-CAM: Visual Explanations from Deep Networks via Gradient-based Localizationcited by 6,690
- 2015Rethinking the Inception Architecture for Computer Visioncited by 5,451
33 more
- 2017mixup: Beyond Empirical Risk Minimizationcited by 5,155
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
- 2014Going Deeper with Convolutionscited by 4,231
- 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,115
- 2019CutMix: Regularization Strategy to Train Strong Classifiers with Localizable Featurescited by 2,875
- 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,665
- 2017Non-local Neural Networkscited by 2,290
- 2019RandAugment: Practical automated data augmentation with a reduced search spacecited by 2,261
- 2021Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutionscited by 1,960
- 2019fairseq: A Fast, Extensible Toolkit for Sequence Modelingcited by 1,486
- 2016Google's Neural Machine Translation System: Bridging the Gap between Human and Machine Translationcited by 1,471
- 2019Natural Adversarial Examplescited by 1,401
- 2017Random Erasing Data Augmentationcited by 1,235
- 2021Tokens-to-Token ViT: Training Vision Transformers from Scratch on ImageNetcited by 1,096
- 2021Transformers in Vision: A Surveycited by 1,009
- 2018Neural Network Acceptability Judgmentscited by 952
- 2017Revisiting Unreasonable Effectiveness of Data in Deep Learning Eracited by 916
- 2019SpanBERT: Improving Pre-training by Representing and Predicting Spanscited by 832
- 2020Transformer Interpretability Beyond Attention Visualizationcited by 620
- 2013Network In Networkcited by 600
- 2017Convolutional Sequence to Sequence Learningcited by 550
- 2021Rethinking Spatial Dimensions of Vision Transformerscited by 361
- 2015Bilinear CNNs for Fine-grained Visual Recognitioncited by 228
- 2021LambdaNetworks: Modeling Long-Range Interactions Without Attentioncited by 107
- 2021Transformer visualization via dictionary learning: contextualized embedding as a linear superposition of transformer factorscited by 106
- 2017Towards Faster Training of Global Covariance Pooling Networks by Iterative Matrix Square Root Normalizationcited by 65
- 2017Is Second-order Information Helpful for Large-scale Visual Recognition?cited by 44
- 2019Deep CNNs Meet Global Covariance Pooling: Better Representation and Generalizationcited by 42
- 2017Improved Bilinear Pooling with CNNscited by 29
- 2015Training Deep Networks with Structured Layers by Matrix Backpropagationcited by 28
- 2017A Tutorial on Canonical Correlation Methodscited by 14
- 2020What Deep CNNs Benefit from Global Covariance Pooling: An Optimization Perspectivecited by 8
Built on by
Citing papers per year: 2022: 1; 2023: 0; 2024: 3; 2025: 0; 2026: 1.
5 papers.
- 2022Boosting vision transformers for image retrievalcited by 19
- 2024Understanding Matrix Function Normalizations in Covariance Pooling through the Lens of Riemannian Geometrycited by 9
- 2024PM2: A New Prompting Multi-modal Model Paradigm for Few-shot Medical Image Classificationcited by 3
- 2024NOAH: Learning Pairwise Object Category Attentions for Image Classificationcited by 2
- 2026Orthogonal Polynomial Approximation for Matrix Log Normalization in Global Covariance Poolingcited by 0
- 2026Orthogonal Polynomial Approximation for Matrix Log Normalization in Global Covariance Pooling19 Aug 2026
- 2024Understanding Matrix Function Normalizations in Covariance Pooling through the Lens of Riemannian Geometry15 Jul 2024
- 2024PM2: A New Prompting Multi-modal Model Paradigm for Few-shot Medical Image Classification13 Apr 2024
- 2024NOAH: Learning Pairwise Object Category Attentions for Image Classification4 Feb 2024
- 2022Boosting vision transformers for image retrieval21 Oct 2022