SOTAVerified

MaxViT: Multi-Axis Vision Transformer

2022-04-04Code Available3· sign in to hype

Zhengzhong Tu, Hossein Talebi, Han Zhang, Feng Yang, Peyman Milanfar, Alan Bovik, Yinxiao Li

Code Available — Be the first to reproduce this paper.

Reproduce

Code

Abstract

Transformers have recently gained significant attention in the computer vision community. However, the lack of scalability of self-attention mechanisms with respect to image size has limited their wide adoption in state-of-the-art vision backbones. In this paper we introduce an efficient and scalable attention model we call multi-axis attention, which consists of two aspects: blocked local and dilated global attention. These design choices allow global-local spatial interactions on arbitrary input resolutions with only linear complexity. We also present a new architectural element by effectively blending our proposed attention model with convolutions, and accordingly propose a simple hierarchical vision backbone, dubbed MaxViT, by simply repeating the basic building block over multiple stages. Notably, MaxViT is able to ''see'' globally throughout the entire network, even in earlier, high-resolution stages. We demonstrate the effectiveness of our model on a broad spectrum of vision tasks. On image classification, MaxViT achieves state-of-the-art performance under various settings: without extra data, MaxViT attains 86.5% ImageNet-1K top-1 accuracy; with ImageNet-21K pre-training, our model achieves 88.7% top-1 accuracy. For downstream tasks, MaxViT as a backbone delivers favorable performance on object detection as well as visual aesthetic assessment. We also show that our proposed model expresses strong generative modeling capability on ImageNet, demonstrating the superior potential of MaxViT blocks as a universal vision module. The source code and trained models will be available at https://github.com/google-research/maxvit.

Tasks

Benchmark Results

DatasetModelMetricClaimedVerifiedStatus
ImageNetMaxViT-T (224res)Top 1 Accuracy83.62Unverified
ImageNetMaxViT-L (224res)Top 1 Accuracy85.17Unverified
ImageNetMaxViT-B (224res)Top 1 Accuracy84.94Unverified
ImageNetMaxViT-S (224res)Top 1 Accuracy84.45Unverified
ImageNetMaxViT-XL (512res, JFT)Top 1 Accuracy89.53Unverified
ImageNetMaxViT-L (512res, JFT)Top 1 Accuracy89.41Unverified
ImageNetMaxViT-XL (384res, JFT)Top 1 Accuracy89.36Unverified
ImageNetMaxViT-L (384res, JFT)Top 1 Accuracy89.12Unverified
ImageNetMaxViT-B (512res, JFT)Top 1 Accuracy88.82Unverified
ImageNetMaxViT-XL (512res, 21K)Top 1 Accuracy88.7Unverified
ImageNetMaxViT-B (384res, JFT)Top 1 Accuracy88.69Unverified
ImageNetMaxViT-XL (384res, 21K)Top 1 Accuracy88.51Unverified
ImageNetMaxViT-L (512res, 21K)Top 1 Accuracy88.46Unverified
ImageNetMaxViT-B (512res, 21K)Top 1 Accuracy88.38Unverified
ImageNetMaxViT-L (384res, 21K)Top 1 Accuracy88.32Unverified
ImageNetMaxViT-B (512res)Top 1 Accuracy86.7Unverified
ImageNetMaxViT-L (384res)Top 1 Accuracy86.4Unverified
ImageNetMaxViT-B (384res)Top 1 Accuracy86.34Unverified
ImageNetMaxViT-S (512res)Top 1 Accuracy86.19Unverified
ImageNetMaxViT-T (384res)Top 1 Accuracy85.72Unverified

Reproductions