EEViT: Efficient Enhanced Vision Transformer Architectures with Information Propagation and Improved Inductive Bias
Open Access
Abstract
The Transformer architecture has been the foundational cornerstone of the recent AI revolution, serving as the backbone of Large Language Models, which have demonstrated impressive language understanding and reasoning capabilities. When pretrained on large amounts of data, Transformers have also shown to be highly effective in image classification via the advent of the Vision Transformer. However, they still lag in vision application performance compared to Convolutional Neural Networks (CNNs), which offer translational invariance, whereas Transformers lack inductive bias. Further, the Transformer relies on the attention mechanism, which despite increasing the receptive field, makes it computationally inefficient due to its quadratic time complexity. In this paper, we enhance the Transformer architecture, focusing on its above two shortcomings. We propose two efficient Vision Transformer architectures that significantly reduce the computational complexity without sacrificing classification performance. Our first enhanced architecture is the EEViT-PAR, which combines features from two recently proposed designs of PerceiverAR and CaiT. This enhancement leads to our second architecture, EEViT-IP, which provides implicit windowing capabilities akin to the SWIN Transformer and implicitly improves the inductive bias, while being extremely memory and computationally efficient. We perform detailed experiments on multiple image datasets to show the effectiveness of our architectures. Our best performing EEViT outperforms existing SOTA ViT models in terms of execution efficiency and surpasses or provides competitive classification accuracy on different benchmarks.Keywords
This publication has 16 references indexed in Scilit:
- Gemini: A Family of Highly Capable Multimodal ModelsarXiv, 2023
- Qwen Technical ReportarXiv, 2023
- Super Vision TransformerInternational Journal of Computer Vision, 2023
- LLaMA: Open and Efficient Foundation Language ModelsarXiv, 2023
- Convolutional Xformers for VisionarXiv, 2022
- Nyströmformer: A Nyström-based Algorithm for Approximating Self-AttentionProceedings of the AAAI Conference on Artificial Intelligence, 2021
- Learning Transferable Visual Models From Natural Language SupervisionarXiv, 2021
- Longformer: The Long-Document TransformerarXiv, 2020
- Scaling Laws for Autoregressive Generative ModelingarXiv, 2020
- Linformer: Self-Attention with Linear ComplexityarXiv, 2020