Abstract
MicroViT is an ultra-lightweight Vision Transformer (ViT) architecture optimized for the stringent power and memory constraints of edge devices. By introducing an Efficient Single Head Attention (ESHA) mechanism, MicroViT achieves significant improvements in inference speed and energy efficiency compared to existing mobile-friendly models like the MobileViT series, while maintaining competitive accuracy on standard benchmarks.
Introduction
Vision Transformers (ViTs) have set new standards in computer vision, yet their high computational demands often preclude deployment on edge hardware such as smartphones or IoT sensors. Standard ViTs suffer from quadratic scaling of self-attention with image resolution and significant feature redundancy across multiple attention heads. MicroViT addresses these challenges by prioritizing power consumption and latency as primary design objectives alongside accuracy.
Methodology
MicroViT utilizes a 4-stage pyramid MetaFormer architecture. The core innovation is the Efficient Single Head Attention (ESHA) block, designed to minimize computational overhead while capturing global context.
Key components of the methodology include:
- Efficient Single Head Attention (ESHA): Instead of traditional multi-head attention, ESHA employs a single head processing approximately 21.5% of total channels. A portion of "un-touch" channels bypasses the attention mechanism to preserve features and reduce FLOPs.
- Group Convolutions for QKV: 3x3 group convolutions replace standard linear layers for generating Query, Key, and Value tensors, effectively capturing local spatial information prior to global attention.
- Spatial Reduction (SR): Depth-wise convolutions downsample Key and Value tensors to shorten token length, mitigating the quadratic bottleneck of self-attention.
- Hybrid Stages: The initial two stages use Depth-Wise Convolutions (DWConv) for local feature extraction, while the final two stages integrate ESHA for global context.
Experimental Results
The performance of MicroViT was evaluated on ImageNet-1K for classification and COCO for object detection.
ImageNet-1K Classification
MicroViT-S1 achieved a 72.6% Top-1 accuracy. Notably, it demonstrated a 3.6× speedup on GPU and a 6.7× speedup on CPU compared to MobileNetV2, while also providing a slight accuracy improvement.
Edge Device Efficiency
A critical metric for this study was energy consumption (Joules per image) measured on an NVIDIA Jetson Orin Nano.
As shown in the results, MicroViT-S1 reached a throughput of 773 images per second with a latency of 9.1ms, outperforming competitors in both speed and energy efficiency (measured in % accuracy per Joule).
Object Detection
On the COCO dataset using the RetinaNet framework, MicroViT-S3 achieved 36.0 AP, significantly outperforming MobileNetV2 (28.3 AP) and EfficientViT-M4 (32.7 AP) with lower computational requirements.
Conclusion and Future Work
MicroViT demonstrates that a carefully designed single-head attention mechanism, combined with spatial reduction and group convolutions, can deliver state-of-the-art efficiency for edge vision tasks. While high spatial reduction ratios can slightly impact accuracy, the overall trade-off favors real-time deployment. Future research will focus on extending this architecture to semantic segmentation and pose estimation.
Summary updated