kMaX-DeepLab: k-means Mask Transformer
Not on the map. Why?
Abstract (arXiv)
The rise of transformers in vision tasks not only advances network backbone designs, but also starts a brand-new page to achieve end-to-end image recognition (e.g., object detection and panoptic segmentation). Originated from Natural Language Processing (NLP), transformer architectures, consisting of self-attention and cross-attention, effectively learn long-range interactions between elements in a sequence. However, we observe that most existing transformer-based vision models simply borrow the idea from NLP, neglecting the crucial difference between languages and images, particularly the extremely large sequence length of spatially flattened pixel features. This subsequently impedes the learning in cross-attention between pixel features and object queries. In this paper, we rethink the relationship between pixels and object queries and propose to reformulate the cross-attention learning as a clustering process. Inspired by the traditional k-means clustering algorithm, we develop a k-means Mask Xformer (kMaX-DeepLab) for segmentation tasks, which not only improves the state-of-the-art, but also enjoys a simple and elegant design. As a result, our kMaX-DeepLab achieves a new state-of-the-art performance on COCO val set with 58.0% PQ, Cityscapes val set with 68.4% PQ, 44.0% AP, and 83.5% mIoU, and ADE20K val set with 50.9% PQ and 55.2% mIoU without test-time augmentation or external dataset. We hope our work can shed some light on designing transformers tailored for vision tasks. TensorFlow code and models are available at https://github.com/google-research/deeplab2 A PyTorch re-implementation is also available at https://github.com/bytedance/kmax-deeplab
Key facts. Cited by 12 papers in the map (data through 7 Oct 2026). Builds on 101 of its 118 references that are in the map. First posted on arXiv 8 Jul 2022.
Builds on
101 of 118 references.
References · 101
- 2017Attention Is All You Needcited by 59,932
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2014Microsoft COCO: Common Objects in Contextcited by 17,498
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
- 2014ImageNet Large Scale Visual Recognition Challengecited by 8,441
- 2020End-to-End Object Detection with Transformerscited by 7,384
- 2017Mask R-CNNcited by 7,259
- 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,530
- 2016The Cityscapes Dataset for Semantic Urban Scene Understandingcited by 4,427
38 more
- 2022A ConvNet for the 2020scited by 3,545
- 2020Deformable DETR: Deformable Transformers for End-to-End Object Detectioncited by 3,410
- 2020Longformer: The Long-Document Transformercited by 3,362
- 2016DeepLab: Semantic Image Segmentation with Deep Convolutional Nets, Atrous Convolution, and Fully Connected CRFscited by 3,239
- 2018Encoder-Decoder with Atrous Separable Convolution for Semantic Image Segmentationcited by 3,210
- 2014Sequence to Sequence Learning with Neural Networkscited by 2,974
- 2021SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformerscited by 2,923
- 2016Categorical Reparameterization with Gumbel-Softmaxcited by 2,708
- 2021Masked-attention Mask Transformer for Universal Image Segmentationcited by 2,338
- 2016Xception: Deep Learning with Depthwise Separable Convolutionscited by 2,320
- 2017Non-local Neural Networkscited by 2,290
- 2017Rethinking Atrous Convolution for Semantic Image Segmentationcited by 2,154
- 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,830
- 2020Big Bird: Transformers for Longer Sequencescited by 1,673
- 2020Reformer: The Efficient Transformercited by 1,658
- 2021ViViT: A Video Vision Transformercited by 1,610
- 2021TransUNet: Transformers Make Strong Encoders for Medical Image Segmentationcited by 1,552
- 2019Generating Long Sequences with Sparse Transformerscited by 1,523
- 2020Linformer: Self-Attention with Linear Complexitycited by 1,462
- 2020Rethinking Semantic Segmentation from a Sequence-to-Sequence Perspective with Transformerscited by 1,368
- 2017Multi-Task Learning Using Uncertainty to Weigh Losses for Scene Geometry and Semanticscited by 1,345
- 2021Per-Pixel Classification is Not All You Need for Semantic Segmentationcited by 1,148
- 2018Self-Attention with Relative Position Representationscited by 1,112
- 2015Effective Approaches to Attention-based Neural Machine Translationcited by 1,024
- 2018Dual Attention Network for Scene Segmentationcited by 1,001
- 2016Deep Networks with Stochastic Depthcited by 973
- 2021Multiscale Vision Transformerscited by 896
- 2020Object-Centric Learning with Slot Attentioncited by 865
- 2021Segmenter: Transformer for Semantic Segmentationcited by 855
- 2018Panoptic Segmentationcited by 796
- 2018Path Aggregation Network for Instance Segmentationcited by 796
- 2018Image Transformercited by 770
- 2021PVT v2: Improved Baselines with Pyramid Vision Transformercited by 749
- 2018AutoAugment: Learning Augmentation Policies from Datacited by 728
- 2018CCNet: Criss-Cross Attention for Semantic Segmentationcited by 717
- 2019Panoptic Feature Pyramid Networkscited by 644
- 2020Simple Copy-Paste is a Strong Data Augmentation Method for Instance Segmentationcited by 595
- 2014Semantic Image Segmentation with Deep Convolutional Nets and Fully Connected CRFscited by 552
50 most cited of 101 All 101 (JSON)
Built on by
Citing papers per year: 2023: 1; 2024: 8; 2025: 1; 2026: 2.
12 papers.
- 2024PEM: Prototype-based Efficient MaskFormer for Image Segmentationcited by 35
- 2024Textual Query-Driven Mask Transformer for Domain Generalized Segmentationcited by 20
- 2024SERNet-Former: Semantic Segmentation by Efficient Residual Network with Attention-Boosting Gates and Attention-Fusion Networkscited by 7
- 2026Beyond Accuracy: Benchmarking Cross-Task Consistency in Unified Multimodal Modelscited by 4
- 2024A Simple and Generalist Approach for Panoptic Segmentationcited by 3
- 2023High-level Feature Guided Decoding for Semantic Segmentationcited by 2
- 2024The revenge of BiSeNet: Efficient Multi-Task Image Segmentationcited by 2
- 2024Enhancing Temporal Consistency in Video Editing by Reconstructing Videos with 3D Gaussian Splattingcited by 2
- 2025VPNeXt -- Rethinking Dense Decoding for Plain Vision Transformercited by 1
- 2026Scenes as Objects, Not Primitives: Instance-Structured 3D Tokenization from Unposed Viewscited by 1
- 2024From Pixels to Objects: A Hierarchical Approach for Part and Object Segmentation Using Local and Global Aggregationcited by 0
- 2024Incorporating Feature Pyramid Tokenization and Open Vocabulary Semantic Segmentationcited by 0
- 2026Scenes as Objects, Not Primitives: Instance-Structured 3D Tokenization from Unposed Views28 Jun 2026
- 2026Beyond Accuracy: Benchmarking Cross-Task Consistency in Unified Multimodal Models27 Apr 2026
- 2025VPNeXt -- Rethinking Dense Decoding for Plain Vision Transformer23 Feb 2025
- 2024Incorporating Feature Pyramid Tokenization and Open Vocabulary Semantic Segmentation18 Dec 2024
- 2024From Pixels to Objects: A Hierarchical Approach for Part and Object Segmentation Using Local and Global Aggregation2 Sep 2024
- 2024A Simple and Generalist Approach for Panoptic Segmentation29 Aug 2024
- 2024Textual Query-Driven Mask Transformer for Domain Generalized Segmentation12 Jul 2024
- 2024Enhancing Temporal Consistency in Video Editing by Reconstructing Videos with 3D Gaussian Splatting4 Jun 2024
- 2024The revenge of BiSeNet: Efficient Multi-Task Image Segmentation15 Apr 2024
- 2024PEM: Prototype-based Efficient MaskFormer for Image Segmentation29 Feb 2024
- 2024SERNet-Former: Semantic Segmentation by Efficient Residual Network with Attention-Boosting Gates and Attention-Fusion Networks28 Jan 2024
- 2023High-level Feature Guided Decoding for Semantic Segmentation15 Mar 2023