Low-Resolution Self-Attention for Semantic Segmentation

Yu-Huan Wu, Shi-Chen Zhang, Yun Liu, Le Zhang, Xin Zhan +4 more
10/8/2023
cs.CV

Official code: yuhuan-wu/LRFormer (79 stars, Apache-2.0, last commit 2025-06-13).

Abstract

Semantic segmentation tasks naturally require high-resolution information for pixel-wise segmentation and global context information for class prediction. While existing vision transformers demonstrate promising performance, they often utilize high-resolution context modeling, resulting in a computational bottleneck. In this work, we challenge conventional wisdom and introduce the Low-Resolution Self-Attention (LRSA) mechanism to capture global context at a significantly reduced computational cost, i.e., FLOPs. Our approach involves computing self-attention in a fixed low-resolution space regardless of the input image's resolution, with additional 3x3 depth-wise convolutions to capture fine details in the high-resolution space. We demonstrate the effectiveness of our LRSA approach by building the LRFormer, a vision transformer with an encoder-decoder structure. Extensive experiments on the ADE20K, COCO-Stuff, and Cityscapes datasets demonstrate that LRFormer outperforms state-of-the-art models. Code is available at https://github.com/yuhuan-wu/LRFormer.

View on arXivView PDF

Code Implementations(1)

yuhuan-wu/LRFormerOfficial100%
Apache-2.0

[IEEE TPAMI'25] Low-Resolution Self-Attention For Semantic Segmentation

798Shell, PythonOct 8, 20231 years agoApache-2.0

Similar Papers

Cite this paper

@article{wu2023lowresolution,
  title  = {Low-Resolution Self-Attention for Semantic Segmentation},
  author = {Yu-Huan Wu and Shi-Chen Zhang and Yun Liu and Le Zhang and Xin Zhan and Daquan Zhou and Jiashi Feng and Ming-Ming Cheng and Liangli Zhen},
  year   = {2023},
  eprint = {2310.05026},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2310.05026v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2310.05026.svg)](https://codeofpaper.com/paper/2310.05026)

Discussion