金字塔视觉 Transformer:无需卷积的密集预测通用骨干网络

Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutions

罗平 Ping Luo · The University of Hong Kong / Nanjing University · 2021-02-24 · arXiv:2102.12122 ↗ · 被引 5093

打开互动全文版(逐段中英对照 + 图/公式 + 论文问答)→

摘要 · Abstract

尽管使用卷积神经网络(CNN)作为骨干网络在计算机视觉中取得了巨大成功,但本文研究了一种无需卷积即可用于许多密集预测任务的简单骨干网络。与最近专门为图像分类设计的 Transformer 模型(如 ViT)不同,我们提出了金字塔视觉 Transformer(PVT),它克服了将 Transformer 移植到各种密集预测任务的困难。与现有技术相比,PVT 具有几个优点。(1)与 ViT 通常具有低分辨率输出和高计算及内存成本不同,PVT 不仅可以在图像的密集分区上进行训练以获得高输出分辨率(这对密集预测很重要),还可以使用渐进式收缩金字塔来减少大特征图的计算量。(2)PVT 继承了 CNN 和 Transformer 的优点,通过简单地替换 CNN 骨干网络,使其成为各种视觉任务中无需卷积的统一骨干网络。(3)我们通过大量实验验证了 PVT,表明它提升了许多下游任务的性能,例如目标检测、语义分割和实例分割。例如,在参数数量相当的情况下,RetinaNet+PVT 在 COCO 数据集上达到了 40.4 AP,比 RetinaNet+ResNet50(36.3 AP)高出 4.1 个绝对 AP。我们希望 PVT 能够成为像素级预测的替代且有用的骨干网络,并促进未来的研究。代码可在 https://github.com/whai362/PVT 获取。

Although using convolutional neural networks (CNNs) as backbones achieves great successes in computer vision, this work investigates a simple backbone network useful for many dense prediction tasks without convolutions. Unlike the recently-proposed Transformer model (e.g., ViT) that is specially designed for image classification, we propose Pyramid Vision Transformer~(PVT), which overcomes the difficulties of porting Transformer to various dense prediction tasks. PVT has several merits compared to prior arts. (1) Different from ViT that typically has low-resolution outputs and high computational and memory cost, PVT can be not only trained on dense partitions of the image to achieve high output resolution, which is important for dense predictions but also using a progressive shrinking pyramid to reduce computations of large feature maps. (2) PVT inherits the advantages from both CNN and Transformer, making it a unified backbone in various vision tasks without convolutions by simply replacing CNN backbones. (3) We validate PVT by conducting extensive experiments, showing that it boosts the performance of many downstream tasks, e.g., object detection, semantic, and instance segmentation. For example, with a comparable number of parameters, RetinaNet+PVT achieves 40.4 AP on the COCO dataset, surpassing RetinNet+ResNet50 (36.3 AP) by 4.1 absolute AP. We hope PVT could serve as an alternative and useful backbone for pixel-level predictions and facilitate future researches. Code is available at https://github.com/whai362/PVT.

核心贡献 · Key contributions

局限 · Limitations

论文章节 · Sections(共 20)

阅读逐段中英对照全文 →