# SegViT: Semantic Segmentation with Plain Vision Transformers

Source: [SegViT: Semantic Segmentation with Plain Vision Transformers](<https://www.sota2.com/research/paper/68fa6e2f1e209131cea3e67d>)

Collection index: [llms.txt](<https://www.sota2.com/research/llms.txt>)

Data updated: 2026-01-04T03:43:32.487Z

Authors: Bowen Zhang, Zhi Tian, Quan Tang, Xiangxiang Chu, Xiaolin Wei, Chunhua Shen, Yifan Liu

Published: 2022-10-12T00:30:26.000Z

## Abstract

We explore the capability of plain Vision Transformers (ViTs) for semantic segmentation and propose the SegVit. Previous ViT-based segmentation networks usually learn a pixel-level representation from the output of the ViT. Differently, we make use of the fundamental component -- attention mechanism, to generate masks for semantic segmentation. Specifically, we propose the Attention-to-Mask (ATM) module, in which the similarity maps between a set of learnable class tokens and the spatial feature maps are transferred to the segmentation masks. Experiments show that our proposed SegVit using the ATM module outperforms its counterparts using the plain ViT backbone on the ADE20K dataset and achieves new state-of-the-art performance on COCO-Stuff-10K and PASCAL-Context datasets. Furthermore, to reduce the computational cost of the ViT backbone, we propose query-based down-sampling (QD) and query-based up-sampling (QU) to build a Shrunk structure. With the proposed Shrunk structure, the model can save up to $40\\%$ computations while maintaining competitive performance.

## Recorded benchmark results

A research result applies to its stated dataset, split, metric and evaluation configuration. Compare like-for-like settings, preserve the metric's unit and direction, and distinguish paper-reported results from independent reproduction. The best result recorded here is not a claim of exhaustive, current global coverage.

- [Semantic Segmentation on Cityscapes (mIoU, GFLOPs, FPS)](<https://www.sota2.com/research/sota/semantic-segmentation-on-cityscapes-miou-gflops-fps.md>): Semantic segmentation; Cityscapes; mIoU: 75.2.

- [Semantic Segmentation on ADE20k (mIoU, GFLOPs, FPS)](<https://www.sota2.com/research/sota/semantic-segmentation-on-ade20k-miou-gflops-fps.md>): Semantic segmentation; ADE20K; mIoU: 48.3.

- [Semantic Segmentation on Cityscapes 1024 x 1024](<https://www.sota2.com/research/sota/semantic-segmentation-on-cityscapes-1024-x-1024.md>): Semantic segmentation; Cityscapes 1024 x 1024; mIoU: 75.7.

- [Semantic Segmentation on COCO-Stuff 10K](<https://www.sota2.com/research/sota/semantic-segmentation-on-coco-stuff-10k.md>): Semantic segmentation; COCO-Stuff 10K; mIoU: 52.

- [Semantic Segmentation on Cityscapes 768 x 768](<https://www.sota2.com/research/sota/semantic-segmentation-on-cityscapes-768-x-768.md>): Semantic segmentation; Cityscapes 768 x 768; mIoU: 74.4.

- [Semantic Segmentation on COCO-Stuff-10K (test)](<https://www.sota2.com/research/sota/semantic-segmentation-on-coco-stuff-10k-test.md>): Semantic segmentation; COCO-Stuff-10K (test); mIoU: 50.3.

- [Semantic Segmentation on ADE20k (512x512)](<https://www.sota2.com/research/sota/semantic-segmentation-on-ade20k-512x512.md>): Semantic segmentation; ADE20k 512 x 512; mIoU: 53.

- [Semantic Segmentation on ISPRS Potsdam](<https://www.sota2.com/research/sota/semantic-segmentation-on-isprs-potsdam.md>): Semantic segmentation; ISPRS Potsdam; mIoU: 86.85.

- [Semantic Segmentation on Pascal Context](<https://www.sota2.com/research/sota/semantic-segmentation-on-pascal-context.md>): Semantic segmentation; Pascal Context; mIoU: 66.61.

- [Semantic Segmentation on ADE20K](<https://www.sota2.com/research/sota/semantic-segmentation-on-ade20k.md>): Semantic segmentation; ADE20K; mIoU: 58.

- [Semantic Segmentation on ISPRS Vaihingen (test)](<https://www.sota2.com/research/sota/semantic-segmentation-on-isprs-vaihingen-test.md>): Semantic segmentation; ISPRS Vaihingen (test); F1 Score: 88.2.

- [Semantic Segmentation on ADE20K (val)](<https://www.sota2.com/research/sota/semantic-segmentation-on-ade20k-val.md>): Semantic segmentation; ADE20K (val); mIoU: not recorded.

- [Semantic Segmentation on PASCAL Context (val)](<https://www.sota2.com/research/sota/semantic-segmentation-on-pascal-context-val.md>): Semantic segmentation; PASCAL Context (val); mIoU: not recorded.

- [Semantic Segmentation on Pascal Context (test)](<https://www.sota2.com/research/sota/semantic-segmentation-on-pascal-context-test.md>): Semantic segmentation; Pascal Context (test); mIoU: not recorded.

- [Semantic Segmentation on PASCAL Context 59 (mIoU)](<https://www.sota2.com/research/sota/semantic-segmentation-on-pascal-context-59-miou.md>): Semantic segmentation; Pascal Context 59; mIoU: not recorded.

- [Semantic Segmentation on COCOStuff 164K](<https://www.sota2.com/research/sota/semantic-segmentation-on-cocostuff-164k.md>): Semantic segmentation; COCOStuff 164K; mIoU (Stuff-Specific): not recorded.

## Original sources and implementation

[Original paper](<https://arxiv.org/abs/2210.05844>)

[PDF](<https://arxiv.org/pdf/2210.05844.pdf>)

[Implementation](<https://github.com/zbwxp/SegVit>)
