Escaping the Big Data Paradigm with Compact Transformers
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
- 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
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2020End-to-End Object Detection with Transformerscited by 7,384
- 2017mixup: Beyond Empirical Risk Minimizationcited by 5,155
- 2016SGDR: Stochastic Gradient Descent with Warm Restartscited by 4,993
- 2018MobileNetV2: Inverted Residuals and Linear Bottleneckscited by 4,773
- 2017Squeeze-and-Excitation Networkscited by 4,763
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
30 more
- 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,530
- 2019CutMix: Regularization Strategy to Train Strong Classifiers with Localizable Featurescited by 2,875
- 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,801
- 2015Character-level Convolutional Networks for Text Classificationcited by 2,293
- 2019RandAugment: Practical automated data augmentation with a reduced search spacecited by 2,261
- 2019ViLBERT: Pretraining Task-Agnostic Visiolinguistic Representations for Vision-and-Language Taskscited by 2,219
- 2016Identity Mappings in Deep Residual Networkscited by 1,960
- 2021Is Space-Time Attention All You Need for Video Understanding?cited by 1,609
- 2017Random Erasing Data Augmentationcited by 1,235
- 2019A Comprehensive Survey on Transfer Learningcited by 1,154
- 2021Tokens-to-Token ViT: Training Vision Transformers from Scratch on ImageNetcited by 1,096
- 2015Effective Approaches to Attention-based Neural Machine Translationcited by 1,024
- 2019VL-BERT: Pre-training of Generic Visual-Linguistic Representationscited by 954
- 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
- 2018Self-Attention Generative Adversarial Networkscited by 809
- 2014Deep Learning in Neural Networks: An Overviewcited by 765
- 2018ProxylessNAS: Direct Neural Architecture Search on Target Task and Hardwarecited by 666
- 2014Neural Turing Machinescited by 630
- 2019Stand-Alone Self-Attention in Vision Modelscited by 542
- 2021ConViT: Improving Vision Transformers with Soft Convolutional Inductive Biasescited by 484
- 2017Residual Attention Network for Image Classificationcited by 385
- 2019Attention Augmented Convolutional Networkscited by 363
- 2018Video Action Transformer Networkcited by 316
- 2021Incorporating Convolution Designs into Visual Transformerscited by 248
- 2019Local Relation Networks for Image Recognitioncited by 210
- 2021CheXtransfer: Performance and Parameter Efficiency of ImageNet Models for Chest X-Ray Interpretationcited by 57
- 2020Optimizing Deeper Transformers on Small Datasetscited by 41
- 2021Adam revisited: a weighted past gradients perspectivecited by 9
Built on by
Citing papers per year: 2021: 23; 2022: 71; 2023: 49; 2024: 63; 2025: 33; 2026: 22.
261 papers.
Sort:
By area:
- 2022Spikformer: When Spiking Neural Network Meets Transformercited by 263
- 2022EfficientFormer: Vision Transformers at MobileNet Speedcited by 240
- 2022Neighborhood Attention Transformercited by 235
- 2022Rethinking Visual Geo-localization for Large-Scale Applicationscited by 160
- 2022Rethinking Vision Transformers for MobileNet Size and Speedcited by 121
- 2021Shuffle Transformer: Rethinking Spatial Shuffle for Vision Transformercited by 115
- 2023R2Former: Unified Retrieval and Reranking Transformer for Place Recognitioncited by 102
- 2021Nested Hierarchical Transformer: Towards Accurate, Data-Efficient and Interpretable Visual Understandingcited by 97
- 2024Efficient Multimodal Large Language Models: A Surveycited by 95
- 2022Deep Visual Geo-localization Benchmarkcited by 83
- 2022Delving into Masked Autoencoders for Multi-Label Thorax Disease Classificationcited by 65
- 2022Dilated Neighborhood Attention Transformercited by 64
38 more
- 2022On the Symmetries of Deep Learning Models and their Internal Representationscited by 63
- 2021SeMask: Semantically Masked Transformers for Semantic Segmentationcited by 55
- 2023Mimetic Initialization of Self-Attention Layerscited by 52
- 2023Vector Quantized Time Series Generation with a Bidirectional Prior Modelcited by 49
- 2023PhysFormer++: Facial Video-based Physiological Measurement with SlowFast Temporal Difference Transformercited by 46
- 2021TriTransNet: RGB-D Salient Object Detection with a Triplet Transformer Embedding Networkcited by 45
- 2022Test-Time Robust Personalization for Federated Learningcited by 39
- 2021ConvMLP: Hierarchical Convolutional MLPs for Visioncited by 37
- 2022Few-Shot Diffusion Modelscited by 37
- 2022FedBR: Improving Federated Learning on Heterogeneous Data via Local Learning Bias Reductioncited by 35
- 2022Learning Across Domains and Devices: Style-Driven Source-Free Domain Adaptation in Clustered Federated Learningcited by 35
- 2023Improving Depth Gradient Continuity in Transformers: A Comparative Study on Monocular Depth Estimation with CNNcited by 35
- 2021A Little Robustness Goes a Long Way: Leveraging Robust Features for Targeted Transfer Attackscited by 33
- 2022Locality Guidance for Improving Vision Transformers on Tiny Datasetscited by 33
- 2023An Experimental Study of Byzantine-Robust Aggregation Schemes in Federated Learningcited by 32
- 2022The Fully Convolutional Transformer for Medical Image Segmentationcited by 31
- 2022One-Pixel Shortcut: on the Learning Preference of Deep Neural Networkscited by 29
- 2022Bridging the Gap Between Vision Transformers and Convolutional Neural Networks on Small Datasetscited by 28
- 2024Spikformer V2: Join the High Accuracy Club on ImageNet with an SNN Ticketcited by 28
- 2021Noisy Feature Mixupcited by 27
- 2022TokenMixup: Efficient Attention-guided Token-level Data Augmentation for Transformerscited by 26
- 2022Learning Sequential Descriptors for Sequence-based Visual Place Recognitioncited by 25
- 2023POSTER++: A simpler and stronger facial expression recognition networkcited by 25
- 2022Exploring the Relationship between Architecture and Adversarially Robust Generalizationcited by 23
- 2022Revisiting a kNN-based Image Classification System with High-capacity Storagecited by 22
- 2022Online Continual Learning with Contrastive Vision Transformercited by 21
- 2024Accurate and efficient structure elucidation from routine one-dimensional NMR spectra using multitask machine learningcited by 21
- 2022Eye-gaze-guided Vision Transformer for Rectifying Shortcut Learningcited by 20
- 2022VMFormer: End-to-End Video Matting with Transformercited by 20
- 2022RadioTransformer: A Cascaded Global-Focal Transformer for Visual Attention-guided Disease Classificationcited by 19
- 2022WaveMix: A Resource-efficient Neural Network for Image Analysiscited by 19
- 2022Spikeformer: A Novel Architecture for Training High-Performance Low-Latency Spiking Neural Networkcited by 19
- 2022MPCViT: Searching for Accurate and Efficient MPC-Friendly Vision Transformer with Heterogeneous Attentioncited by 19
- 2024Fourier-basis Functions to Bridge Augmentation Gap: Rethinking Frequency Augmentation in Image Classificationcited by 18
- 2022Efficient Image Generation with Variadic Attention Headscited by 17
- 2022Brain-inspired Multilayer Perceptron with Spiking Neuronscited by 16
- 2022Attention Distillation: self-supervised vision transformer students need more guidancecited by 16
- 2022Auto-scaling Vision Transformers without Trainingcited by 15
50 most cited of 261 All 261 (JSON)
- 2026The Polytopal Neural Network8 Oct 2026
- 2026QSV: Quat-Sphere-Vision for Coupled Quaternion Attention on Spherical Lattices24 Sep 2026
- 2026From ECG Signals to Representative-Morphology Heatmaps for Biometric Recognition23 Sep 2026
- 2026Optimal Pruning for Neural Architectures using Fisher Information Distances14 Sep 2026
- 2026Unified Multi-Layer Subspace Modeling for Cross-Domain OOD Detection6 Sep 2026
- 2026Mode Connectivity Beyond Classifiers: Evidence from Generative and Contrastive Models31 Aug 2026
- 2026Diversity Matters: Distributional Feature Coverage Sample Selection for Data-Efficient Backdoor Attacks10 Aug 2026
- 2026Sharpness-Aware Minimization and Muon: Robustness under the Spectral Norm28 Jul 2026
- 2026AutoNorm: Understanding Adaptive Normalization in Transformers through Differentiable Gating12 Jul 2026
- 2026AEGIS: A Multi-Task Joint-Embedding Predictive Architecture for Mammography30 Jun 2026
- 2026Balancing Uncertainty and Diversity of Samples: Leveraging Diversity of Least, High Confidence Samples for Effective Active Learning21 May 2026
- 2026FTerViT: Fully Ternary Vision Transformer20 May 2026
38 more
- 2026Checkerboard: Closed-Form and Data-Independent Trigger Design for Clean-Label Backdoor Attacks2 May 2026
- 2026Street-Legal Physical-World Adversarial Rim for License Plates2 Apr 2026
- 2026HAViT: Historical Attention Vision Transformer19 Mar 2026
- 2026TrainDeeploy: Hardware-Accelerated Parameter-Efficient Fine-Tuning of Small Transformer Models at the Extreme Edge10 Mar 2026
- 2026A statistical perspective on transformers for small longitudinal cohort data18 Feb 2026
- 2026Hyperparameter Transfer Laws for Non-Recurrent Multi-Path Neural Networks7 Feb 2026
- 2026TinyGuard:A lightweight Byzantine Defense for Resource-Constrained Federated Learning via Statistical Update Fingerprints2 Feb 2026
- 2026VibeTensor: System Software for Deep Learning, Fully Generated by AI Agents21 Jan 2026
- 2026Matching High-Dimensional Geometric Quantiles for Test-Time Adaptation of Transformers and Convolutional Networks Alike16 Jan 2026
- 2026ICONIC-444: A 3.1-Million-Image Dataset for OOD Detection Research15 Jan 2026
- 2025Self-attention vector output similarities reveal how machines pay attention26 Dec 2025
- 2025Privacy Blur: Quantifying Privacy and Utility for Image Data Release18 Dec 2025
- 2025The Eminence in Shadow: Exploiting Feature Boundary Ambiguity for Robust Backdoor Attacks11 Dec 2025
- 2025Efficient-Husformer: Efficient Multimodal Transformer Hyperparameter Optimization for Stress and Cognitive Loads27 Nov 2025
- 2025Rethinking Plant Disease Diagnosis: Bridging the Academic-Practical Gap with Vision Transformers and Zero-Shot Learning24 Nov 2025
- 2025LL-ViT: Edge Deployable Vision Transformers with Look Up Table Neurons2 Nov 2025
- 2025CoMViT: An Efficient Vision Backbone for Supervised Classification in Medical Imaging31 Oct 2025
- 2025Climate Adaptation-Aware Flood Prediction for Coastal Cities Using Deep Learning29 Oct 2025
- 2025Robust Point Cloud Reinforcement Learning via PCA-Based Canonicalization23 Oct 2025
- 2025Decoding Listeners Identity: Person Identification from EEG Signals Using a Lightweight Spiking Transformer17 Oct 2025
- 2025Semantic representations emerge in biologically inspired ensembles of cross-supervising neural networks16 Oct 2025
- 2025Flexible and Efficient Spatio-Temporal Transformer for Sequential Visual Place Recognition5 Oct 2025
- 2025Consistent View Alignment Improves Foundation Models for 3D Medical Image Segmentation17 Sep 2025
- 2025Multimodal Deep Learning for Phyllodes Tumor Classification from Ultrasound and Clinical Data29 Aug 2025
- 2025Enhancing compact convolutional transformers with super attention26 Aug 2025
- 2025Label Smoothing is a Pragmatic Information Bottleneck12 Aug 2025
- 2025CleanCTG: A Deep Learning Model for Multi-Artefact Detection and Reconstruction in Cardiotocography11 Aug 2025
- 2025Comparative Analysis of Vision Transformers and Traditional Deep Learning Approaches for Automated Pneumonia Detection in Chest X-Rays11 Jul 2025
- 2025DFYP: A Dynamic Fusion Framework with Spectral Channel Attention and Adaptive Operator learning for Crop Yield Prediction8 Jul 2025
- 2025Low-latency vision transformers via large-scale multi-head attention30 Jun 2025
- 2025Private Transformer Inference in MLaaS: A Survey15 May 2025
- 2025Connecting Independently Trained Modes via Layer-Wise Connectivity5 May 2025
- 2025Beyond Attention: Toward Machines with Intrinsic Higher Mental States2 May 2025
- 2025SteelBlastQC: Shot-blasted Steel Surface Dataset with Interpretable Detection of Surface Defects29 Apr 2025
- 2025BTFL: A Bayesian-based Test-Time Generalization Method for Internal and External Data Distributions in Federated learning9 Mar 2025
- 2025MarsLGPR: Mars Rover Localization with Ground Penetrating Radar6 Mar 2025
- 2025Do ImageNet-trained models learn shortcuts? The impact of frequency shortcuts on generalization5 Mar 2025
- 2025Learning from Noisy Labels with Contrastive Co-Transformer4 Mar 2025
50 newest of 261 All 261 (JSON)
- 2024How Lightweight Can A Vision Transformer Becited by 1
- 2024Parameter-Efficient Quantized Mixture-of-Experts Meets Vision-Language Instruction Tuning for Semiconductor Electron Micrograph Analysiscited by 1
- 2025A Retrospective Systematic Study on Hierarchical Sparse Query Transformer-assisted Ultrasound Screening for Early Hepatocellular Carcinomacited by 1
- 2025A Retrospective Systematic Study on Hierarchical Sparse Query Transformer-assisted Ultrasound Screening for Early Hepatocellular Carcinoma6 Feb 2025
- 2024Parameter-Efficient Quantized Mixture-of-Experts Meets Vision-Language Instruction Tuning for Semiconductor Electron Micrograph Analysis27 Aug 2024
- 2024How Lightweight Can A Vision Transformer Be25 Jul 2024
- 2022Spikformer: When Spiking Neural Network Meets Transformercited by 263
- 2022EfficientFormer: Vision Transformers at MobileNet Speedcited by 240
- 2022Neighborhood Attention Transformercited by 235
- 2022Rethinking Visual Geo-localization for Large-Scale Applicationscited by 160
- 2022Rethinking Vision Transformers for MobileNet Size and Speedcited by 121
- 2021Shuffle Transformer: Rethinking Spatial Shuffle for Vision Transformercited by 115
- 2023R2Former: Unified Retrieval and Reranking Transformer for Place Recognitioncited by 102
- 2021Nested Hierarchical Transformer: Towards Accurate, Data-Efficient and Interpretable Visual Understandingcited by 97
- 2022Deep Visual Geo-localization Benchmarkcited by 83
- 2022Delving into Masked Autoencoders for Multi-Label Thorax Disease Classificationcited by 65
- 2022Dilated Neighborhood Attention Transformercited by 64
- 2022On the Symmetries of Deep Learning Models and their Internal Representationscited by 63
12 most cited of 252 All 252 (JSON)
- 2026The Polytopal Neural Network8 Oct 2026
- 2026QSV: Quat-Sphere-Vision for Coupled Quaternion Attention on Spherical Lattices24 Sep 2026
- 2026From ECG Signals to Representative-Morphology Heatmaps for Biometric Recognition23 Sep 2026
- 2026Optimal Pruning for Neural Architectures using Fisher Information Distances14 Sep 2026
- 2026Unified Multi-Layer Subspace Modeling for Cross-Domain OOD Detection6 Sep 2026
- 2026Diversity Matters: Distributional Feature Coverage Sample Selection for Data-Efficient Backdoor Attacks10 Aug 2026
- 2026Sharpness-Aware Minimization and Muon: Robustness under the Spectral Norm28 Jul 2026
- 2026AutoNorm: Understanding Adaptive Normalization in Transformers through Differentiable Gating12 Jul 2026
- 2026AEGIS: A Multi-Task Joint-Embedding Predictive Architecture for Mammography30 Jun 2026
- 2026Balancing Uncertainty and Diversity of Samples: Leveraging Diversity of Least, High Confidence Samples for Effective Active Learning21 May 2026
- 2026FTerViT: Fully Ternary Vision Transformer20 May 2026
- 2026Checkerboard: Closed-Form and Data-Independent Trigger Design for Clean-Label Backdoor Attacks2 May 2026
12 newest of 252 All 252 (JSON)