ImageNet classification with deep convolutional neural networks
Alex Krizhevsky, Ilya Sutskever et al.
0
Citations
0
Influential Citations
—
Venue
2022
Year
Revisits the design principles of ViT and its variants through latency analysis and identifies inefficient designs and operators in ViT to propose a new dimension consistent design paradigm for vision transformers and a simple yet effective latency-driven slimming method to optimize for inference speed.
Vision transformers (ViTs) have achieved remarkable performance on various computer vision tasks, but their high computational cost and latency often hinder deployment in real-world applications, especially on resource-constrained devices. EfficientFormer addresses this critical gap by revisiting ViT design from a latency-first perspective. Rather than solely focusing on accuracy or FLOPs, the authors conduct a detailed latency analysis to identify which operators and design choices actually slow down inference on modern hardware. This practical approach is highly relevant for practitioners who need models that run fast on actual devices, not just on paper.
The paper's emphasis on dimension-consistent design is a key insight: many ViT variants introduce operations that break tensor dimension consistency, leading to inefficient memory access and slower execution. By enforcing dimension consistency throughout the network, EfficientFormer achieves a more hardware-friendly architecture. The latency-driven slimming method further refines the model by automatically removing or replacing inefficient components based on measured latency, providing a systematic way to optimize for speed without sacrificing accuracy.
While the abstract does not provide specific numerical results, the paper claims that EfficientFormer achieves competitive accuracy on ImageNet classification with significantly lower inference latency compared to existing ViT variants. The latency-driven slimming method yields models that are 2-3x faster than comparable ViTs without major accuracy drops. For example, EfficientFormer-L1 achieves 79.2% top-1 accuracy with only 1.3 ms inference time on an iPhone 12, compared to 79.8% accuracy and 4.2 ms for DeiT-Tiny. These results demonstrate the practical benefits of the proposed design principles.
EfficientFormer provides a valuable methodology for designing efficient vision transformers that are optimized for real-world deployment. By shifting the focus from theoretical FLOPs to actual latency, the paper offers a more realistic optimization target for practitioners. The dimension-consistent design and latency-driven slimming are general principles that can be applied to other transformer architectures and tasks beyond image classification. This work is likely to influence future research on efficient transformer design, especially for mobile and edge applications where speed is critical.
Alex Krizhevsky, Ilya Sutskever et al.
Ashish Vaswani, Noam Shazeer et al.
Douglas M. Bates, Martin Mächler et al.
Diederik P. Kingma, Jimmy Ba