arXiv(opens in a new tab)Computer ScienceJun 2021Cited by 2 papers on PaperVantage

Manuscript Offprint

arXiv:2106.13797

PVT v2: Improved baselines with Pyramid Vision Transformer

Wenhai Wang, Enze Xie, Xiang Li, Deng-Ping Fan, Kaitao Song, Ding Liang, Tong Lu, P. Luo, Ling Shao

Abstract

Transformer recently has presented encouraging progress in computer vision. In this work, we present new baselines by improving the original Pyramid Vision Transformer (PVT v1) by adding three designs, including (1) linear complexity attention layer, (2) overlapping patch embedding, and (3) convolutional feed-forward network. With these modifications, PVT v2 reduces the computational complexity of PVT v1 to linear and achieves significant improvements on fundamental vision tasks such as classification, detection, and segmentation. Notably, the proposed PVT v2 achieves comparable or better performances than recent works such as Swin Transformer. We hope this work will facilitate state-of-the-art Transformer researches in computer vision. Code is available at https://github.com/whai362/PVT.

1 Introduction

Recent studies on vision Transformer are converging on the backbone network [8, 31, 33, 34, 23, 36, 10, 5] designed for downstream vision tasks, such as image classification, object detection, instance and semantic segmentation. To date, there have been some promising results. For example, Vision Transformer (ViT) [8] first proves that a pure Transformer can archive state-of-the-art performance in image classification. Pyramid Vision Transformer (PVT v1) [33] shows that a pure Transformer backbone can also surpass CNN counterparts in dense prediction tasks such as detection and segmentation tasks [22, 41]. After that, Swin Transformer [23], CoaT [36], LeViT [10], and Twins [5] further improve the classification, detection, and segmentation performance with Transformer backbones.

This work aims to establish stronger and more feasible baselines built on the PVT v1 framework. We report that three design improvements, namely (1) linear complexity attention layer, (2) overlapping patch embedding, and (3) convolutional feed-forward network are orthogonal to the PVT v1 framework, and when used with PVT v1, they can bring better image classification, object detection, instance and semantic segmentation performance. The improved framework is termed as PVT v2. Specifically, PVT v2-B5 yields 83.8% top-1 error on ImageNet, which is better than Swin-B [23] and Twins-SVT-L [5], while our model has fewer parameters and GFLOPs. Moreover, GFL [19] with PVT-B2 archives 50.2 AP on COCO val2017, 2.6 AP higher than the one with Swin-T [23], 5.7 AP higher than the one with ResNet50 [13]. We hope these improved baselines will provide a reference for future research in vision Transformer.

References (39)