[Paper Review] ResT V2: Simpler, Faster and Stronger
This paper proposes ResT V2, a simpler, faster, and stronger vision Transformer backbone that improves performance by replacing the multi-head interaction in EMSA with a pixel-shuffle upsampling strategy to recover high-frequency features lost during downsampling. ResT V2 achieves state-of-the-art accuracy on ImageNet, COCO, and ADE20K with higher throughput and fewer parameters than Swin Transformer and ConvNeXt.
This paper proposes ResTv2, a simpler, faster, and stronger multi-scale vision Transformer for visual recognition. ResTv2 simplifies the EMSA structure in ResTv1 (i.e., eliminating the multi-head interaction part) and employs an upsample operation to reconstruct the lost medium- and high-frequency information caused by the downsampling operation. In addition, we explore different techniques for better apply ResTv2 backbones to downstream tasks. We found that although combining EMSAv2 and window attention can greatly reduce the theoretical matrix multiply FLOPs, it may significantly decrease the computation density, thus causing lower actual speed. We comprehensively validate ResTv2 on ImageNet classification, COCO detection, and ADE20K semantic segmentation. Experimental results show that the proposed ResTv2 can outperform the recently state-of-the-art backbones by a large margin, demonstrating the potential of ResTv2 as solid backbones. The code and models will be made publicly available at \url{https://github.com/wofmanaf/ResT}
Motivation & Objective
- To develop a more efficient and accurate vision Transformer backbone that reduces computational cost without sacrificing performance.
- To address the performance degradation caused by downsampling in multi-head self-attention by reconstructing lost high-frequency features.
- To challenge the assumption that lower theoretical FLOPs always imply faster inference, particularly on GPU hardware.
- To explore effective ways to apply the ResT V2 backbone to downstream vision tasks such as detection and segmentation.
Proposed method
- Proposes EMSAv2, a simplified multi-head self-attention module that removes the multi-head interaction component to reduce complexity.
- Introduces a pixel-shuffle upsampling operation in EMSAv2 to reconstruct medium- and high-frequency features lost during downsampling.
- Designs a lightweight, convolution-based hourglass architecture through the 'downsample-upsample' operation to enhance local feature learning.
- Employs a residual connection structure to stabilize training and improve feature representation.
- Evaluates multiple strategies for deploying ResT V2 in downstream tasks, including combining it with window attention or global attention.
- Conducts ablation studies to analyze the trade-off between theoretical FLOPs and actual inference speed on GPU hardware.
Experimental results
Research questions
- RQ1Can removing the multi-head interaction in EMSA improve efficiency without degrading performance?
- RQ2Does upsampling via pixel-shuffle effectively recover information lost during downsampling in self-attention?
- RQ3Why does combining EMSAv2 with window attention reduce actual inference speed despite lowering theoretical FLOPs?
- RQ4How does ResT V2 compare to state-of-the-art backbones like Swin Transformer and ConvNeXt in terms of accuracy and speed across diverse vision tasks?
- RQ5To what extent do theoretical FLOPs correlate with actual inference speed on modern GPU hardware?
Key findings
- ResT V2-L achieves 84.2% Top-1 accuracy on ImageNet-1k with 87M parameters, outperforming Swin-B (83.5%) and ConvNeXt-B (83.8%) while achieving 415 images per second throughput.
- On COCO object detection, ResT V2-T achieves 47.6 box AP and 43.2 mask AP, surpassing Swin-T (+1.6 AP) and ConvNeXt-T (+1.4 AP) with higher inference speed (25.0 FPS vs. 21.8 and 23.4 FPS).
- On ADE20K semantic segmentation, ResT V2-T achieves 47.3 mIoU, outperforming Swin-T (45.8) and ConvNeXt-T (46.7) with 22.4 FPS, a 5.3% and 12.6% speed improvement respectively.
- ResT V2-B achieves 49.6 mIoU on ADE20K, exceeding Swin-S (49.2) and ConvNeXt-B (49.0) by 0.4 and 0.6 mIoU, respectively, with 19.2 FPS, a 30.6% speed gain over Swin-S.
- The study reveals that window attention reduces computation density on GPU, leading to slower actual inference speeds despite lower theoretical FLOPs, challenging the common assumption that FLOPs predict speed.
- The 'downsample-upsample' mechanism in EMSAv2 creates a lightweight hourglass structure that enhances local feature learning with minimal parameter and computation overhead.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.