2022

Separable Self-attention for Mobile Vision Transformers

Mehta, Sachin, Rastegari, Mohammad

Understand

Mobile vision transformers (MobileViT) can achieve state-of-the-art performance across several mobile vision tasks, including classification and detection.

  • Though these models have fewer parameters, they have high latency as compared to convolutional neural network-based models.
  • The main efficiency bottleneck in MobileViT is the multi-headed self-attention (MHA) in transformers, which requires $O(k^2)$ time complexity with respect to the number of tokens (or patches) $k$.
  • Moreover, MHA requires costly operations (e.g., batch-wise matrix multiplication) for computing self-attention, impacting latency on resource-constrained devices.

Reading the bibliography…