P2T: Pyramid Pooling Transformer for Scene Understanding

22 Jun 2021  ·  Yu-Huan Wu, Yun Liu, Xin Zhan, Ming-Ming Cheng ·

Recently, the vision transformer has achieved great success by pushing the state-of-the-art of various vision tasks. One of the most challenging problems in the vision transformer is that the large sequence length of image tokens leads to high computational cost (quadratic complexity). A popular solution to this problem is to use a single pooling operation to reduce the sequence length. This paper considers how to improve existing vision transformers, where the pooled feature extracted by a single pooling operation seems less powerful. To this end, we note that pyramid pooling has been demonstrated to be effective in various vision tasks owing to its powerful ability in context abstraction. However, pyramid pooling has not been explored in backbone network design. To bridge this gap, we propose to adapt pyramid pooling to Multi-Head Self-Attention (MHSA) in the vision transformer, simultaneously reducing the sequence length and capturing powerful contextual features. Plugged with our pooling-based MHSA, we build a universal vision transformer backbone, dubbed Pyramid Pooling Transformer (P2T). Extensive experiments demonstrate that, when applied P2T as the backbone network, it shows substantial superiority in various vision tasks such as image classification, semantic segmentation, object detection, and instance segmentation, compared to previous CNN- and transformer-based networks. The code will be released at https://github.com/yuhuan-wu/P2T.

PDF Abstract

Results from the Paper


Ranked #5 on RGB Salient Object Detection on DUTS-TE (max F-measure metric)

     Get a GitHub badge
Task Dataset Model Metric Name Metric Value Global Rank Result Benchmark
RGB Salient Object Detection DUTS-TE P2T-Small MAE 0.029 # 7
max F-measure 0.912 # 5
RGB Salient Object Detection DUTS-TE P2T-Tiny MAE 0.033 # 9
max F-measure 0.895 # 7

Methods