Lune

CVPR2023Top-tier venue

ZegCLIP: Towards Adapting CLIP for Zero-shot Semantic Segmentation

Ziqin Zhou, Yinjie Lei, Bowen Zhang, Lingqiao Liu, Yifan Liu

Abstract

Recently, CLIP has been applied to pixel-level zero-shot learning tasks via a two-stage scheme. The general idea is to first generate class-agnostic region proposals and then feed the cropped proposal regions to CLIP to utilize its image-level zero-shot classification capability. While effective, such a scheme requires two image encoders, one for proposal generation and one for CLIP, leading to a complicated pipeline and high computational cost. In this work, we pursue a simpler-and-efficient one-stage solution that directly extends CLIP's zero-shot prediction capability from image to pixel level. Our investigation starts with a straightforward extension as our baseline that generates semantic masks by comparing the similarity between text and patch embeddings extracted from CLIP. However, such a paradigm could heavily overfit the seen classes and fail to generalize to unseen classes. To handle this issue, we propose three simple-but-effective designs and figure out that they can significantly retain the inherent zeroshot capacity of CLIP and improve pixel-level generalization ability. Incorporating those modifications leads to an efficient zero-shot semantic segmentation system called ZegCLIP. Through extensive experiments on three public benchmarks, ZegCLIP demonstrates superior performance, outperforming the state-of-the-art methods by a large margin under both "inductive" and "transductive" zero-shot settings. In addition, compared with the two-stage method, our one-stage ZegCLIP achieves a speedup of about 5 times faster during inference. We release the code at https: //github.com/ZiqinZhou66/ZegCLIP.git .

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

32 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • LoCoOp: Few-Shot Out-of-Distribution Detection via Prompt Learning cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • LoCoOp: Few-Shot Out-of-Distribution Detection via Prompt Learning cites Learning Transferable Visual Models From Natural Language Supervision
  • Convolutions Die Hard: Open-Vocabulary Segmentation with Single Frozen Convolutional CLIP cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Convolutions Die Hard: Open-Vocabulary Segmentation with Single Frozen Convolutional CLIP cites Scaling Up Visual and Vision-Language Representation Learning With Noisy Text Supervision
  • Convolutions Die Hard: Open-Vocabulary Segmentation with Single Frozen Convolutional CLIP cites Language Models are Few-Shot Learners
  • Convolutions Die Hard: Open-Vocabulary Segmentation with Single Frozen Convolutional CLIP cites SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformers
  • An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale cites Language Models are Few-Shot Learners
  • Scaling Up Visual and Vision-Language Representation Learning With Noisy Text Supervision cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Scaling Up Visual and Vision-Language Representation Learning With Noisy Text Supervision cites Learning Transferable Visual Models From Natural Language Supervision
  • Segment Anything in High Quality cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Segment Anything in High Quality cites Language Models are Few-Shot Learners
  • Segment Anything in High Quality cites Learning Transferable Visual Models From Natural Language Supervision
  • Learning Transferable Visual Models From Natural Language Supervision cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Learning Transferable Visual Models From Natural Language Supervision cites Language Models are Few-Shot Learners
  • CLIP-Count: Towards Text-Guided Zero-Shot Object Counting cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • CLIP-Count: Towards Text-Guided Zero-Shot Object Counting cites Scaling Up Visual and Vision-Language Representation Learning With Noisy Text Supervision
  • CLIP-Count: Towards Text-Guided Zero-Shot Object Counting cites Learning Transferable Visual Models From Natural Language Supervision
  • SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformers cites Learning Transferable Visual Models From Natural Language Supervision
  • SGDiff: A Style Guided Diffusion Model for Fashion Synthesis cites Language Models are Few-Shot Learners
  • SGDiff: A Style Guided Diffusion Model for Fashion Synthesis cites Learning Transferable Visual Models From Natural Language Supervision
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers32

  1. Segment Anything in High QualityLei Ke, Mingqiao Ye, Martin Danelljan, Yifan Liu et al.NeurIPS 2023 · 709 citations
  2. Convolutions Die Hard: Open-Vocabulary Segmentation with Single Frozen Convolutional CLIPQihang Yu, Ju He, Xueqing Deng, Xiaohui Shen et al.NeurIPS 2023 · 285 citations
  3. LoCoOp: Few-Shot Out-of-Distribution Detection via Prompt LearningAtsuyuki Miyai, Qing Yu, Go Irie, Kiyoharu AizawaNeurIPS 2023 · 174 citations
  4. CLIP-Count: Towards Text-Guided Zero-Shot Object CountingRuixiang Jiang, Lingbo Liu, Changwen ChenACM MM 2023 · 78 citations
  5. SGDiff: A Style Guided Diffusion Model for Fashion SynthesisZhengwentai Sun, Yanghong Zhou, Honghong He, P. Y. MokACM MM 2023 · 44 citations

Builds on28

  1. Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
  2. Learning Transferable Visual Models From Natural Language SupervisionAlec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh et al.ICML 2021 · 47,906 citations
  3. An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn et al.ICLR 2021 · 21,477 citations
  4. SegFormer: Simple and Efficient Design for Semantic Segmentation with TransformersEnze Xie, Wenhai Wang, Zhiding Yu, Anima Anandkumar et al.NeurIPS 2021 · 9,661 citations
  5. Scaling Up Visual and Vision-Language Representation Learning With Noisy Text SupervisionChao Jia, Yinfei Yang, Ye Xia, Yi-Ting Chen et al.ICML 2021 · 5,401 citations

Related papers

  1. Exploring Regional Clues in CLIP for Zero-Shot Semantic SegmentationYi Zhang, Meng-Hao Guo, Miao Wang, Shi-Min HuCVPR 2024 · 20 citations
  2. Spectral Prompt Tuning: Unveiling Unseen Classes for Zero-Shot Semantic SegmentationWenhao Xu, Rongtao Xu, Changwei Wang, Shibiao Xu et al.AAAI 2024 · 21 citations
  3. Decoupling Zero-Shot Semantic SegmentationJian Ding, Nan Xue, Gui-Song Xia, Dengxin DaiCVPR 2022 · 255 citations
  4. Open Vocabulary Semantic Segmentation with Patch Aligned Contrastive LearningJishnu Mukhoti, Tsung-Yu Lin, Omid Poursaeed, Rui Wang et al.CVPR 2023
  5. VR-CLIP: Visual Refinement of CLIP for Zero-Shot Semantic SegmentationHaitao Jiang, Xu Li, Yuanyang Cao, Ying Zhang, Jianji WangCVPR Findings 2026
Dusk over the sea between two cliffs drawn in fine vertical lines