Mask-Adapter: The Devil is in the Masks for Open-Vocabulary Segmentation

Yongkang Li, Tianheng Cheng, Wenyu Liu, Xinggang Wang
2/9/2026

No official code found. Best implementation: hustvl/MaskAdapter (130 stars, Apache-2.0, last commit 2025-10-23).

Abstract

Recent open-vocabulary segmentation methods adopt mask generators to predict segmentation masks and leverage pretrained vision-language models, e.g., CLIP, to classify these masks via mask pooling. Although these approaches show promising results, it is counterintuitive that accurate masks often fail to yield accurate classification results through pooling CLIP image embeddings within the mask regions. In this paper, we reveal the performance limitations of mask pooling and introduce Mask-Adapter, a simple yet effective method to address these challenges in open-vocabulary segmentation. Compared to directly using proposal masks, our proposed Mask-Adapter extracts semantic activation maps from proposal masks, providing richer contextual information and ensuring alignment between masks and CLIP. Additionally, we propose a mask consistency loss that encourages proposal masks with similar IoUs to obtain similar CLIP embeddings to enhance models’ robustness to varying predicted masks. Mask-Adapter integrates seamlessly into open-vocabulary segmentation methods based on mask pooling in a plug-and-play manner, delivering more accurate classification results. Extensive experiments across several zero-shot benchmarks demonstrate significant performance gains for the proposed Mask-Adapter on several well-established methods. Notably, Mask-Adapter also extends effectively to SAM and achieves impressive results on several open-vocabulary segmentation datasets. Code and models are available at https://github.com/hustvl/MaskAdapter.

View on arXivView PDF

Code Implementations(1)

hustvl/MaskAdapterCommunity75%
Apache-2.0

[CVPR 2025] Official repository of the paper "Mask-Adapter: The Devil is in the Masks for Open-Vocabulary Segmentation"

1304C++, CudaNov 15, 202412 months agoApache-2.0
clipopen-vocabularyopen-vocabulary-segmentationopen-vocabulary-semantic-segmentationsegment-anything+4 more

Similar Papers

Cite this paper

@article{li2026maskadapter,
  title  = {Mask-Adapter: The Devil is in the Masks for Open-Vocabulary Segmentation},
  author = {Yongkang Li and Tianheng Cheng and Wenyu Liu and Xinggang Wang},
  year   = {2026},
  eprint = {2412.04533},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2412.04533},
  journal = {CVPR 2024 2024}
}

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

Discussion