Segformer++: Efficient Token-Merging Strategies for High-Resolution Semantic Segmentation

Daniel Kienzle, Marco Kantonis, Robin Schön, Rainer Lienhart
5/23/2024
cs.CVcs.AIcs.LG

No official code found. Best implementation: KieDani/SegformerPlusPlus (26 stars, GPL-3.0, last commit 2025-12-11).

Abstract

Utilizing transformer architectures for semantic segmentation of high-resolution images is hindered by the attention's quadratic computational complexity in the number of tokens. A solution to this challenge involves decreasing the number of tokens through token merging, which has exhibited remarkable enhancements in inference speed, training efficiency, and memory utilization for image classification tasks. In this paper, we explore various token merging strategies within the framework of the Segformer architecture and perform experiments on multiple semantic segmentation and human pose estimation datasets. Notably, without model re-training, we, for example, achieve an inference acceleration of 61% on the Cityscapes dataset while maintaining the mIoU performance. Consequently, this paper facilitates the deployment of transformer-based architectures on resource-constrained devices and in real-time applications.

View on arXivView PDF

Code Implementations(1)

GPL-3.0

Official implementation of "Segformer++: Efficient Token-Merging Strategies for High-Resolution Semantic Segmentation

262Shell, PythonJun 17, 202410 months agoGPL-3.0
human-pose-estimationmachine-learningneural-networkssegmentationsemantic-segmentation

Similar Papers

Cite this paper

@article{kienzle2024segformer,
  title  = {Segformer++: Efficient Token-Merging Strategies for High-Resolution Semantic Segmentation},
  author = {Daniel Kienzle and Marco Kantonis and Robin Schön and Rainer Lienhart},
  year   = {2024},
  eprint = {2405.14467},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2405.14467v1}
}

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

Discussion