U-MixFormer: UNet-like Transformer with Mix-Attention for Efficient Semantic Segmentation

Seul-Ki Yeom, Julian von Klitzing
12/11/2023
cs.CV

Official code: julian-klitzing/u-mixformer (79 stars, Apache-2.0, last commit 2026-01-27).

Abstract

Semantic segmentation has witnessed remarkable advancements with the adaptation of the Transformer architecture. Parallel to the strides made by the Transformer, CNN-based U-Net has seen significant progress, especially in high-resolution medical imaging and remote sensing. This dual success inspired us to merge the strengths of both, leading to the inception of a U-Net-based vision transformer decoder tailored for efficient contextual encoding. Here, we propose a novel transformer decoder, U-MixFormer, built upon the U-Net structure, designed for efficient semantic segmentation. Our approach distinguishes itself from the previous transformer methods by leveraging lateral connections between the encoder and decoder stages as feature queries for the attention modules, apart from the traditional reliance on skip connections. Moreover, we innovatively mix hierarchical feature maps from various encoder and decoder stages to form a unified representation for keys and values, giving rise to our unique mix-attention module. Our approach demonstrates state-of-the-art performance across various configurations. Extensive experiments show that U-MixFormer outperforms SegFormer, FeedFormer, and SegNeXt by a large margin. For example, U-MixFormer-B0 surpasses SegFormer-B0 and FeedFormer-B0 with 3.8% and 2.0% higher mIoU and 27.3% and 21.8% less computation and outperforms SegNext with 3.3% higher mIoU with MSCAN-T encoder on ADE20K. Code available at https://github.com/julian-klitzing/u-mixformer.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

OpenMMLab Semantic Segmentation Toolbox and Benchmark.

797Shell, Python8 months agoApache-2.0

Similar Papers

Cite this paper

@article{yeom2023umixformer,
  title  = {U-MixFormer: UNet-like Transformer with Mix-Attention for Efficient Semantic Segmentation},
  author = {Seul-Ki Yeom and Julian von Klitzing},
  year   = {2023},
  eprint = {2312.06272},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2312.06272v1}
}

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/2312.06272.svg)](https://codeofpaper.com/paper/2312.06272)

Discussion