Content-aware Token Sharing for Efficient Semantic Segmentation with Vision Transformers

Chenyang Lu, Daan de Geus, Gijs Dubbelman
2/14/2026

No official code found. Best implementation: tue-mps/cts-segmenter (24 stars, MIT, last commit 2023-06-03).

Abstract

This paper introduces Content-aware Token Sharing (CTS), a token reduction approach that improves the computational efficiency of semantic segmentation networks that use Vision Transformers (ViTs). Existing works have proposed token reduction approaches to improve the efficiency of ViT-based image classification networks, but these methods are not directly applicable to semantic segmentation, which we address in this work. We observe that, for semantic segmentation, multiple image patches can share a token if they contain the same semantic class, as they contain redundant information. Our approach leverages this by employing an efficient, class-agnostic policy network that predicts if image patches contain the same semantic class, and lets them share a token if they do. With experiments, we explore the critical design choices of CTS and show its effectiveness on the ADE20K, Pascal Context and Cityscapes datasets, various ViT backbones, and different segmentation decoders. With Content-aware Token Sharing, we are able to reduce the number of processed tokens by up to 44%, without diminishing the segmentation quality.

View on arXivView PDF

Code Implementations(1)

MIT

Content-aware Token Sharing applied to Segmenter

243PythonJun 3, 20233 years agoMIT

Similar Papers

Cite this paper

@article{lu2026contentaware,
  title  = {Content-aware Token Sharing for Efficient Semantic Segmentation with Vision Transformers},
  author = {Chenyang Lu and Daan de Geus and Gijs Dubbelman},
  year   = {2026},
  eprint = {2306.02095},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2306.02095},
  journal = {CVPR 2023 2023}
}

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

Discussion