mlsanityData to 7 Oct 2026

Escaping the Big Data Paradigm with Compact Transformers

arXiv 2104.05704 ↗First posted 12 Apr 2021cs.CV cs.LGcited by 261

Not on the map. Why?

Abstract (arXiv)

With the rise of Transformers as the standard for language processing, and their advancements in computer vision, there has been a corresponding growth in parameter size and amounts of training data. Many have come to believe that because of this, transformers are not suitable for small sets of data. This trend leads to concerns such as: limited availability of data in certain scientific domains and the exclusion of those with limited resource from research in the field. In this paper, we aim to present an approach for small-scale learning by introducing Compact Transformers. We show for the first time that with the right size, convolutional tokenization, transformers can avoid overfitting and outperform state-of-the-art CNNs on small datasets. Our models are flexible in terms of model size, and can have as little as 0.28M parameters while achieving competitive results. Our best model can reach 98% accuracy when training from scratch on CIFAR-10 with only 3.7M parameters, which is a significant improvement in data-efficiency over previous Transformer based models being over 10x smaller than other transformers and is 15% the size of ResNet50 while achieving similar performance. CCT also outperforms many modern CNN based approaches, and even some recent NAS-based approaches. Additionally, we obtain a new SOTA result on Flowers-102 with 99.76% top-1 accuracy, and improve upon the existing baseline on ImageNet (82.71% accuracy with 29% as many parameters as ViT), as well as NLP tasks. Our simple and compact design for transformers makes them more feasible to study for those with limited computing resources and/or dealing with small datasets, while extending existing research efforts in data efficient transformers. Our code and pre-trained models are publicly available at https://github.com/SHI-Labs/Compact-Transformers.

Key facts. Cited by 261 papers in the map (data through 7 Oct 2026). Builds on 42 of its 64 references that are in the map. First posted on arXiv 12 Apr 2021.

Builds on

42 of 64 references.

References · 42

  1. 2017Attention Is All You Needcited by 59,932
  2. 2015Deep Residual Learning for Image Recognitioncited by 51,809
  3. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  4. 2014Adam: A Method for Stochastic Optimizationcited by 36,960
  5. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  6. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  7. 2020End-to-End Object Detection with Transformerscited by 7,384
  8. 2017mixup: Beyond Empirical Risk Minimizationcited by 5,155
  9. 2016SGDR: Stochastic Gradient Descent with Warm Restartscited by 4,993
  10. 2018MobileNetV2: Inverted Residuals and Linear Bottleneckscited by 4,773
  11. 2017Squeeze-and-Excitation Networkscited by 4,763
  12. 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
30 more
  1. 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,530
  2. 2019CutMix: Regularization Strategy to Train Strong Classifiers with Localizable Featurescited by 2,875
  3. 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,801
  4. 2015Character-level Convolutional Networks for Text Classificationcited by 2,293
  5. 2019RandAugment: Practical automated data augmentation with a reduced search spacecited by 2,261
  6. 2019ViLBERT: Pretraining Task-Agnostic Visiolinguistic Representations for Vision-and-Language Taskscited by 2,219
  7. 2016Identity Mappings in Deep Residual Networkscited by 1,960
  8. 2021Is Space-Time Attention All You Need for Video Understanding?cited by 1,609
  9. 2017Random Erasing Data Augmentationcited by 1,235
  10. 2019A Comprehensive Survey on Transfer Learningcited by 1,154
  11. 2021Tokens-to-Token ViT: Training Vision Transformers from Scratch on ImageNetcited by 1,096
  12. 2015Effective Approaches to Attention-based Neural Machine Translationcited by 1,024
  13. 2019VL-BERT: Pre-training of Generic Visual-Linguistic Representationscited by 954
  14. 2020Designing Network Design Spacescited by 954
  15. 2021CvT: Introducing Convolutions to Vision Transformerscited by 946
  16. 2017Revisiting Unreasonable Effectiveness of Data in Deep Learning Eracited by 916
  17. 2018Self-Attention Generative Adversarial Networkscited by 809
  18. 2014Deep Learning in Neural Networks: An Overviewcited by 765
  19. 2018ProxylessNAS: Direct Neural Architecture Search on Target Task and Hardwarecited by 666
  20. 2014Neural Turing Machinescited by 630
  21. 2019Stand-Alone Self-Attention in Vision Modelscited by 542
  22. 2021ConViT: Improving Vision Transformers with Soft Convolutional Inductive Biasescited by 484
  23. 2017Residual Attention Network for Image Classificationcited by 385
  24. 2019Attention Augmented Convolutional Networkscited by 363
  25. 2018Video Action Transformer Networkcited by 316
  26. 2021Incorporating Convolution Designs into Visual Transformerscited by 248
  27. 2019Local Relation Networks for Image Recognitioncited by 210
  28. 2021CheXtransfer: Performance and Parameter Efficiency of ImageNet Models for Chest X-Ray Interpretationcited by 57
  29. 2020Optimizing Deeper Transformers on Small Datasetscited by 41
  30. 2021Adam revisited: a weighted past gradients perspectivecited by 9

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2021: 23; 2022: 71; 2023: 49; 2024: 63; 2025: 33; 2026: 22.

261 papers.

Sort:

By area:

  1. 2022Spikformer: When Spiking Neural Network Meets Transformercited by 263
  2. 2022EfficientFormer: Vision Transformers at MobileNet Speedcited by 240
  3. 2022Neighborhood Attention Transformercited by 235
  4. 2022Rethinking Visual Geo-localization for Large-Scale Applicationscited by 160
  5. 2022Rethinking Vision Transformers for MobileNet Size and Speedcited by 121
  6. 2021Shuffle Transformer: Rethinking Spatial Shuffle for Vision Transformercited by 115
  7. 2023R2Former: Unified Retrieval and Reranking Transformer for Place Recognitioncited by 102
  8. 2021Nested Hierarchical Transformer: Towards Accurate, Data-Efficient and Interpretable Visual Understandingcited by 97
  9. 2024Efficient Multimodal Large Language Models: A Surveycited by 95
  10. 2022Deep Visual Geo-localization Benchmarkcited by 83
  11. 2022Delving into Masked Autoencoders for Multi-Label Thorax Disease Classificationcited by 65
  12. 2022Dilated Neighborhood Attention Transformercited by 64
38 more
  1. 2022On the Symmetries of Deep Learning Models and their Internal Representationscited by 63
  2. 2021SeMask: Semantically Masked Transformers for Semantic Segmentationcited by 55
  3. 2023Mimetic Initialization of Self-Attention Layerscited by 52
  4. 2023Vector Quantized Time Series Generation with a Bidirectional Prior Modelcited by 49
  5. 2023PhysFormer++: Facial Video-based Physiological Measurement with SlowFast Temporal Difference Transformercited by 46
  6. 2021TriTransNet: RGB-D Salient Object Detection with a Triplet Transformer Embedding Networkcited by 45
  7. 2022Test-Time Robust Personalization for Federated Learningcited by 39
  8. 2021ConvMLP: Hierarchical Convolutional MLPs for Visioncited by 37
  9. 2022Few-Shot Diffusion Modelscited by 37
  10. 2022FedBR: Improving Federated Learning on Heterogeneous Data via Local Learning Bias Reductioncited by 35
  11. 2022Learning Across Domains and Devices: Style-Driven Source-Free Domain Adaptation in Clustered Federated Learningcited by 35
  12. 2023Improving Depth Gradient Continuity in Transformers: A Comparative Study on Monocular Depth Estimation with CNNcited by 35
  13. 2021A Little Robustness Goes a Long Way: Leveraging Robust Features for Targeted Transfer Attackscited by 33
  14. 2022Locality Guidance for Improving Vision Transformers on Tiny Datasetscited by 33
  15. 2023An Experimental Study of Byzantine-Robust Aggregation Schemes in Federated Learningcited by 32
  16. 2022The Fully Convolutional Transformer for Medical Image Segmentationcited by 31
  17. 2022One-Pixel Shortcut: on the Learning Preference of Deep Neural Networkscited by 29
  18. 2022Bridging the Gap Between Vision Transformers and Convolutional Neural Networks on Small Datasetscited by 28
  19. 2024Spikformer V2: Join the High Accuracy Club on ImageNet with an SNN Ticketcited by 28
  20. 2021Noisy Feature Mixupcited by 27
  21. 2022TokenMixup: Efficient Attention-guided Token-level Data Augmentation for Transformerscited by 26
  22. 2022Learning Sequential Descriptors for Sequence-based Visual Place Recognitioncited by 25
  23. 2023POSTER++: A simpler and stronger facial expression recognition networkcited by 25
  24. 2022Exploring the Relationship between Architecture and Adversarially Robust Generalizationcited by 23
  25. 2022Revisiting a kNN-based Image Classification System with High-capacity Storagecited by 22
  26. 2022Online Continual Learning with Contrastive Vision Transformercited by 21
  27. 2024Accurate and efficient structure elucidation from routine one-dimensional NMR spectra using multitask machine learningcited by 21
  28. 2022Eye-gaze-guided Vision Transformer for Rectifying Shortcut Learningcited by 20
  29. 2022VMFormer: End-to-End Video Matting with Transformercited by 20
  30. 2022RadioTransformer: A Cascaded Global-Focal Transformer for Visual Attention-guided Disease Classificationcited by 19
  31. 2022WaveMix: A Resource-efficient Neural Network for Image Analysiscited by 19
  32. 2022Spikeformer: A Novel Architecture for Training High-Performance Low-Latency Spiking Neural Networkcited by 19
  33. 2022MPCViT: Searching for Accurate and Efficient MPC-Friendly Vision Transformer with Heterogeneous Attentioncited by 19
  34. 2024Fourier-basis Functions to Bridge Augmentation Gap: Rethinking Frequency Augmentation in Image Classificationcited by 18
  35. 2022Efficient Image Generation with Variadic Attention Headscited by 17
  36. 2022Brain-inspired Multilayer Perceptron with Spiking Neuronscited by 16
  37. 2022Attention Distillation: self-supervised vision transformer students need more guidancecited by 16
  38. 2022Auto-scaling Vision Transformers without Trainingcited by 15

50 most cited of 261 All 261 (JSON)