Journal article
Vision transformers: from semantic segmentation to dense prediction
- Abstract:
- The emergence of vision transformers (ViTs) in image classification has shifted the methodologies for visual representation learning. In particular, ViTs learn visual representation at full receptive field per layer across all the image patches, in comparison to the increasing receptive fields of CNNs across layers and other alternatives (e.g., large kernels and atrous convolution). In this work, for the first time we explore the global context learning potentials of ViTs for dense visual prediction (e.g., semantic segmentation). Our motivation is that through learning global context at full receptive field layer by layer, ViTs may capture stronger long-range dependency information, critical for dense prediction tasks. We first demonstrate that encoding an image as a sequence of patches, a vanilla ViT without local convolution and resolution reduction can yield stronger visual representation for semantic segmentation. For example, our model, termed as SEgmentation TRansformer (SETR), excels on ADE20K (50.28% mIoU, the first position in the test leaderboard on the day of submission) and performs competitively on Cityscapes. However, the basic ViT architecture falls short in broader dense prediction applications, such as object detection and instance segmentation, due to its lack of a pyramidal structure, high computational demand, and insufficient local context. For tackling general dense visual prediction tasks in a cost-effective manner, we further formulate a family of Hierarchical Local-Global (HLG) Transformers, characterized by local attention within windows and global-attention across windows in a pyramidal architecture. Extensive experiments show that our methods achieve appealing performance on a variety of dense prediction tasks (e.g., object detection and instance segmentation and semantic segmentation) as well as image classification. Our code and models are available at https://github.com/fudan-zvg/SETR.
- Publication status:
- Published
- Peer review status:
- Peer reviewed
Actions
Access Document
- Files:
-
-
(Preview, Accepted manuscript, pdf, 17.8MB, Terms of use)
-
- Publisher copy:
- 10.1007/s11263-024-02173-w
Authors
+ National Natural Science Foundation of China
More from this funder
- Funder identifier:
- https://ror.org/01h0zpd94
- Grant:
- 62106050
- 62376060
- Publisher:
- Springer
- Journal:
- International Journal of Computer Vision More from this journal
- Volume:
- 132
- Issue:
- 12
- Pages:
- 6142-6162
- Publication date:
- 2024-07-16
- Acceptance date:
- 2024-07-01
- DOI:
- EISSN:
-
1573-1405
- ISSN:
-
0920-5691
- Language:
-
English
- Keywords:
- Pubs id:
-
2018003
- Local pid:
-
pubs:2018003
- Deposit date:
-
2024-09-05
- ARK identifier:
Terms of use
- Copyright holder:
- Zhang et al.
- Copyright date:
- 2024
- Rights statement:
- © 2024, The Author(s), under exclusive licence to Springer Science Business Media, LLC, part of Springer Nature.
- Notes:
- This is the accepted manuscript version of the article. The final version is available online from Springer at https://dx.doi.org/10.1007/s11263-024-02173-w
If you are the owner of this record, you can report an update to it here: Report update to this record